summaryrefslogtreecommitdiffstats
path: root/WebCore/bindings/js/JSStyleSheetListCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/bindings/js/JSStyleSheetListCustom.cpp')
-rw-r--r--WebCore/bindings/js/JSStyleSheetListCustom.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/bindings/js/JSStyleSheetListCustom.cpp b/WebCore/bindings/js/JSStyleSheetListCustom.cpp
index 7bf9389..eb96a67 100644
--- a/WebCore/bindings/js/JSStyleSheetListCustom.cpp
+++ b/WebCore/bindings/js/JSStyleSheetListCustom.cpp
@@ -49,13 +49,13 @@ void JSStyleSheetList::markChildren(MarkStack& markStack)
bool JSStyleSheetList::canGetItemsForName(ExecState*, StyleSheetList* styleSheetList, const Identifier& propertyName)
{
- return styleSheetList->getNamedItem(propertyName);
+ return styleSheetList->getNamedItem(identifierToString(propertyName));
}
-JSValue JSStyleSheetList::nameGetter(ExecState* exec, const Identifier& propertyName, const PropertySlot& slot)
+JSValue JSStyleSheetList::nameGetter(ExecState* exec, JSValue slotBase, const Identifier& propertyName)
{
- JSStyleSheetList* thisObj = static_cast<JSStyleSheetList*>(asObject(slot.slotBase()));
- HTMLStyleElement* element = thisObj->impl()->getNamedItem(propertyName);
+ JSStyleSheetList* thisObj = static_cast<JSStyleSheetList*>(asObject(slotBase));
+ HTMLStyleElement* element = thisObj->impl()->getNamedItem(identifierToString(propertyName));
ASSERT(element);
return toJS(exec, element->sheet());
}