summaryrefslogtreecommitdiff
path: root/Source/WebCore/bindings/js/JSAttrCustom.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/bindings/js/JSAttrCustom.cpp')
-rw-r--r--Source/WebCore/bindings/js/JSAttrCustom.cpp22
1 files changed, 4 insertions, 18 deletions
diff --git a/Source/WebCore/bindings/js/JSAttrCustom.cpp b/Source/WebCore/bindings/js/JSAttrCustom.cpp
index 07e1689a2..d45cf6d2c 100644
--- a/Source/WebCore/bindings/js/JSAttrCustom.cpp
+++ b/Source/WebCore/bindings/js/JSAttrCustom.cpp
@@ -10,7 +10,7 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
+ * 3. Neither the name of Apple Inc. ("Apple") nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
@@ -29,28 +29,14 @@
#include "config.h"
#include "JSAttr.h"
-#include "Document.h"
#include "Element.h"
-#include "HTMLNames.h"
-
-using namespace JSC;
namespace WebCore {
-using namespace HTMLNames;
-
-void JSAttr::visitChildren(JSCell* cell, SlotVisitor& visitor)
+void JSAttr::visitAdditionalChildren(JSC::SlotVisitor& visitor)
{
- JSAttr* thisObject = jsCast<JSAttr*>(cell);
- ASSERT_GC_OBJECT_INHERITS(thisObject, info());
- COMPILE_ASSERT(StructureFlags & OverridesVisitChildren, OverridesVisitChildrenWithoutSettingFlag);
- ASSERT(thisObject->structure()->typeInfo().overridesVisitChildren());
-
- Base::visitChildren(thisObject, visitor);
- Element* element = thisObject->impl().ownerElement();
- if (!element)
- return;
- visitor.addOpaqueRoot(root(element));
+ if (Element* element = wrapped().ownerElement())
+ visitor.addOpaqueRoot(root(element));
}
} // namespace WebCore