OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. | 4 * Copyright (C) 2004-2008, 2013, 2014 Apple Inc. All rights reserved. |
5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 5 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. | 6 * Copyright (C) 2011 Motorola Mobility. All rights reserved. |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 #include "core/html/HTMLElement.h" | 26 #include "core/html/HTMLElement.h" |
27 | 27 |
28 #include "bindings/core/v8/ExceptionState.h" | 28 #include "bindings/core/v8/ExceptionState.h" |
29 #include "bindings/core/v8/ScriptEventListener.h" | 29 #include "bindings/core/v8/ScriptEventListener.h" |
30 #include "core/CSSPropertyNames.h" | 30 #include "core/CSSPropertyNames.h" |
31 #include "core/CSSValueKeywords.h" | 31 #include "core/CSSValueKeywords.h" |
32 #include "core/HTMLNames.h" | 32 #include "core/HTMLNames.h" |
| 33 #include "core/V8HTMLElementWrapperFactory.h" // FIXME: should be bindings/core/
v8 |
33 #include "core/XMLNames.h" | 34 #include "core/XMLNames.h" |
34 #include "core/css/CSSMarkup.h" | 35 #include "core/css/CSSMarkup.h" |
35 #include "core/css/CSSValuePool.h" | 36 #include "core/css/CSSValuePool.h" |
36 #include "core/css/StylePropertySet.h" | 37 #include "core/css/StylePropertySet.h" |
37 #include "core/dom/DocumentFragment.h" | 38 #include "core/dom/DocumentFragment.h" |
38 #include "core/dom/ElementTraversal.h" | 39 #include "core/dom/ElementTraversal.h" |
39 #include "core/dom/ExceptionCode.h" | 40 #include "core/dom/ExceptionCode.h" |
40 #include "core/dom/NodeTraversal.h" | 41 #include "core/dom/NodeTraversal.h" |
41 #include "core/dom/Text.h" | 42 #include "core/dom/Text.h" |
42 #include "core/dom/shadow/ElementShadow.h" | 43 #include "core/dom/shadow/ElementShadow.h" |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
982 event->setDefaultHandled(); | 983 event->setDefaultHandled(); |
983 } | 984 } |
984 } | 985 } |
985 | 986 |
986 const AtomicString& HTMLElement::eventParameterName() | 987 const AtomicString& HTMLElement::eventParameterName() |
987 { | 988 { |
988 DEFINE_STATIC_LOCAL(const AtomicString, eventString, ("event", AtomicString:
:ConstructFromLiteral)); | 989 DEFINE_STATIC_LOCAL(const AtomicString, eventString, ("event", AtomicString:
:ConstructFromLiteral)); |
989 return eventString; | 990 return eventString; |
990 } | 991 } |
991 | 992 |
| 993 v8::Handle<v8::Object> HTMLElement::wrap(v8::Handle<v8::Object> creationContext,
v8::Isolate* isolate) |
| 994 { |
| 995 return createV8HTMLWrapper(this, creationContext, isolate); |
| 996 } |
| 997 |
992 } // namespace blink | 998 } // namespace blink |
993 | 999 |
994 #ifndef NDEBUG | 1000 #ifndef NDEBUG |
995 | 1001 |
996 // For use in the debugger | 1002 // For use in the debugger |
997 void dumpInnerHTML(blink::HTMLElement*); | 1003 void dumpInnerHTML(blink::HTMLElement*); |
998 | 1004 |
999 void dumpInnerHTML(blink::HTMLElement* element) | 1005 void dumpInnerHTML(blink::HTMLElement* element) |
1000 { | 1006 { |
1001 printf("%s\n", element->innerHTML().ascii().data()); | 1007 printf("%s\n", element->innerHTML().ascii().data()); |
1002 } | 1008 } |
1003 #endif | 1009 #endif |
OLD | NEW |