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 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "bindings/core/v8/DOMDataStore.h" | 28 #include "bindings/core/v8/DOMDataStore.h" |
29 #include "bindings/core/v8/Dictionary.h" | 29 #include "bindings/core/v8/Dictionary.h" |
30 #include "bindings/core/v8/ExceptionMessages.h" | 30 #include "bindings/core/v8/ExceptionMessages.h" |
31 #include "bindings/core/v8/ExceptionState.h" | 31 #include "bindings/core/v8/ExceptionState.h" |
32 #include "bindings/core/v8/V8DOMActivityLogger.h" | 32 #include "bindings/core/v8/V8DOMActivityLogger.h" |
33 #include "bindings/core/v8/V8DOMWrapper.h" | 33 #include "bindings/core/v8/V8DOMWrapper.h" |
34 #include "bindings/core/v8/V8PerContextData.h" | 34 #include "bindings/core/v8/V8PerContextData.h" |
35 #include "core/CSSValueKeywords.h" | 35 #include "core/CSSValueKeywords.h" |
36 #include "core/SVGNames.h" | 36 #include "core/SVGNames.h" |
37 #include "core/XLinkNames.h" | |
38 #include "core/XMLNames.h" | 37 #include "core/XMLNames.h" |
39 #include "core/animation/AnimationTimeline.h" | 38 #include "core/animation/AnimationTimeline.h" |
40 #include "core/animation/css/CSSAnimations.h" | 39 #include "core/animation/css/CSSAnimations.h" |
41 #include "core/css/CSSImageValue.h" | 40 #include "core/css/CSSImageValue.h" |
42 #include "core/css/CSSStyleSheet.h" | 41 #include "core/css/CSSStyleSheet.h" |
43 #include "core/css/CSSValuePool.h" | 42 #include "core/css/CSSValuePool.h" |
44 #include "core/css/PropertySetCSSStyleDeclaration.h" | 43 #include "core/css/PropertySetCSSStyleDeclaration.h" |
45 #include "core/css/StylePropertySet.h" | 44 #include "core/css/StylePropertySet.h" |
46 #include "core/css/parser/CSSParser.h" | 45 #include "core/css/parser/CSSParser.h" |
47 #include "core/css/resolver/SelectorFilterParentScope.h" | 46 #include "core/css/resolver/SelectorFilterParentScope.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 #include "core/loader/DocumentLoader.h" | 111 #include "core/loader/DocumentLoader.h" |
113 #include "core/page/ChromeClient.h" | 112 #include "core/page/ChromeClient.h" |
114 #include "core/page/FocusController.h" | 113 #include "core/page/FocusController.h" |
115 #include "core/page/Page.h" | 114 #include "core/page/Page.h" |
116 #include "core/page/PointerLockController.h" | 115 #include "core/page/PointerLockController.h" |
117 #include "core/page/SpatialNavigation.h" | 116 #include "core/page/SpatialNavigation.h" |
118 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" | 117 #include "core/page/scrolling/ScrollCustomizationCallbacks.h" |
119 #include "core/page/scrolling/ScrollState.h" | 118 #include "core/page/scrolling/ScrollState.h" |
120 #include "core/page/scrolling/ScrollStateCallback.h" | 119 #include "core/page/scrolling/ScrollStateCallback.h" |
121 #include "core/paint/PaintLayer.h" | 120 #include "core/paint/PaintLayer.h" |
| 121 #include "core/svg/SVGAElement.h" |
122 #include "core/svg/SVGDocumentExtensions.h" | 122 #include "core/svg/SVGDocumentExtensions.h" |
123 #include "core/svg/SVGElement.h" | 123 #include "core/svg/SVGElement.h" |
124 #include "platform/EventDispatchForbiddenScope.h" | 124 #include "platform/EventDispatchForbiddenScope.h" |
125 #include "platform/RuntimeEnabledFeatures.h" | 125 #include "platform/RuntimeEnabledFeatures.h" |
126 #include "platform/UserGestureIndicator.h" | 126 #include "platform/UserGestureIndicator.h" |
127 #include "platform/graphics/CompositorMutableProperties.h" | 127 #include "platform/graphics/CompositorMutableProperties.h" |
128 #include "platform/scroll/ScrollableArea.h" | 128 #include "platform/scroll/ScrollableArea.h" |
129 #include "wtf/BitVector.h" | 129 #include "wtf/BitVector.h" |
130 #include "wtf/HashFunctions.h" | 130 #include "wtf/HashFunctions.h" |
131 #include "wtf/text/CString.h" | 131 #include "wtf/text/CString.h" |
(...skipping 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2906 return *rareData.dataset(); | 2906 return *rareData.dataset(); |
2907 } | 2907 } |
2908 | 2908 |
2909 KURL Element::hrefURL() const | 2909 KURL Element::hrefURL() const |
2910 { | 2910 { |
2911 // FIXME: These all have href() or url(), but no common super class. Why doe
sn't | 2911 // FIXME: These all have href() or url(), but no common super class. Why doe
sn't |
2912 // <link> implement URLUtils? | 2912 // <link> implement URLUtils? |
2913 if (isHTMLAnchorElement(*this) || isHTMLAreaElement(*this) || isHTMLLinkElem
ent(*this)) | 2913 if (isHTMLAnchorElement(*this) || isHTMLAreaElement(*this) || isHTMLLinkElem
ent(*this)) |
2914 return getURLAttribute(hrefAttr); | 2914 return getURLAttribute(hrefAttr); |
2915 if (isSVGAElement(*this)) | 2915 if (isSVGAElement(*this)) |
2916 return getURLAttribute(XLinkNames::hrefAttr); | 2916 return toSVGAElement(*this).legacyHrefURL(document()); |
2917 return KURL(); | 2917 return KURL(); |
2918 } | 2918 } |
2919 | 2919 |
2920 KURL Element::getURLAttribute(const QualifiedName& name) const | 2920 KURL Element::getURLAttribute(const QualifiedName& name) const |
2921 { | 2921 { |
2922 #if ENABLE(ASSERT) | 2922 #if ENABLE(ASSERT) |
2923 if (elementData()) { | 2923 if (elementData()) { |
2924 if (const Attribute* attribute = attributes().find(name)) | 2924 if (const Attribute* attribute = attributes().find(name)) |
2925 ASSERT(isURLAttribute(*attribute)); | 2925 ASSERT(isURLAttribute(*attribute)); |
2926 } | 2926 } |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3615 { | 3615 { |
3616 #if ENABLE(OILPAN) | 3616 #if ENABLE(OILPAN) |
3617 if (hasRareData()) | 3617 if (hasRareData()) |
3618 visitor->trace(elementRareData()); | 3618 visitor->trace(elementRareData()); |
3619 visitor->trace(m_elementData); | 3619 visitor->trace(m_elementData); |
3620 #endif | 3620 #endif |
3621 ContainerNode::trace(visitor); | 3621 ContainerNode::trace(visitor); |
3622 } | 3622 } |
3623 | 3623 |
3624 } // namespace blink | 3624 } // namespace blink |
OLD | NEW |