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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 #include "core/css/resolver/StyleResolver.h" | 47 #include "core/css/resolver/StyleResolver.h" |
48 #include "core/css/resolver/StyleResolverParentScope.h" | 48 #include "core/css/resolver/StyleResolverParentScope.h" |
49 #include "core/css/resolver/StyleResolverStats.h" | 49 #include "core/css/resolver/StyleResolverStats.h" |
50 #include "core/dom/AXObjectCache.h" | 50 #include "core/dom/AXObjectCache.h" |
51 #include "core/dom/Attr.h" | 51 #include "core/dom/Attr.h" |
52 #include "core/dom/CSSSelectorWatch.h" | 52 #include "core/dom/CSSSelectorWatch.h" |
53 #include "core/dom/ClientRect.h" | 53 #include "core/dom/ClientRect.h" |
54 #include "core/dom/ClientRectList.h" | 54 #include "core/dom/ClientRectList.h" |
55 #include "core/dom/DatasetDOMStringMap.h" | 55 #include "core/dom/DatasetDOMStringMap.h" |
56 #include "core/dom/ElementDataCache.h" | 56 #include "core/dom/ElementDataCache.h" |
57 #include "core/dom/ElementIntersectionObserverData.h" | |
58 #include "core/dom/ElementRareData.h" | 57 #include "core/dom/ElementRareData.h" |
59 #include "core/dom/ElementTraversal.h" | 58 #include "core/dom/ElementTraversal.h" |
60 #include "core/dom/ExceptionCode.h" | 59 #include "core/dom/ExceptionCode.h" |
61 #include "core/dom/FirstLetterPseudoElement.h" | 60 #include "core/dom/FirstLetterPseudoElement.h" |
62 #include "core/dom/Fullscreen.h" | 61 #include "core/dom/Fullscreen.h" |
63 #include "core/dom/LayoutTreeBuilder.h" | 62 #include "core/dom/LayoutTreeBuilder.h" |
64 #include "core/dom/MutationObserverInterestGroup.h" | 63 #include "core/dom/MutationObserverInterestGroup.h" |
65 #include "core/dom/MutationRecord.h" | 64 #include "core/dom/MutationRecord.h" |
66 #include "core/dom/NamedNodeMap.h" | 65 #include "core/dom/NamedNodeMap.h" |
67 #include "core/dom/NodeComputedStyle.h" | 66 #include "core/dom/NodeComputedStyle.h" |
| 67 #include "core/dom/NodeIntersectionObserverData.h" |
68 #include "core/dom/PresentationAttributeStyle.h" | 68 #include "core/dom/PresentationAttributeStyle.h" |
69 #include "core/dom/PseudoElement.h" | 69 #include "core/dom/PseudoElement.h" |
70 #include "core/dom/ScriptableDocumentParser.h" | 70 #include "core/dom/ScriptableDocumentParser.h" |
71 #include "core/dom/SelectorQuery.h" | 71 #include "core/dom/SelectorQuery.h" |
72 #include "core/dom/StyleChangeReason.h" | 72 #include "core/dom/StyleChangeReason.h" |
73 #include "core/dom/StyleEngine.h" | 73 #include "core/dom/StyleEngine.h" |
74 #include "core/dom/Text.h" | 74 #include "core/dom/Text.h" |
75 #include "core/dom/custom/CustomElement.h" | 75 #include "core/dom/custom/CustomElement.h" |
76 #include "core/dom/custom/CustomElementRegistrationContext.h" | 76 #include "core/dom/custom/CustomElementRegistrationContext.h" |
77 #include "core/dom/shadow/InsertionPoint.h" | 77 #include "core/dom/shadow/InsertionPoint.h" |
(...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2589 if (!exceptionState.hadException()) | 2589 if (!exceptionState.hadException()) |
2590 return newChild; | 2590 return newChild; |
2591 } | 2591 } |
2592 return nullptr; | 2592 return nullptr; |
2593 } | 2593 } |
2594 | 2594 |
2595 exceptionState.throwDOMException(SyntaxError, "The value provided ('" + wher
e + "') is not one of 'beforeBegin', 'afterBegin', 'beforeEnd', or 'afterEnd'.")
; | 2595 exceptionState.throwDOMException(SyntaxError, "The value provided ('" + wher
e + "') is not one of 'beforeBegin', 'afterBegin', 'beforeEnd', or 'afterEnd'.")
; |
2596 return nullptr; | 2596 return nullptr; |
2597 } | 2597 } |
2598 | 2598 |
2599 ElementIntersectionObserverData* Element::intersectionObserverData() const | 2599 NodeIntersectionObserverData* Element::intersectionObserverData() const |
2600 { | 2600 { |
2601 if (elementRareData()) | 2601 if (elementRareData()) |
2602 return elementRareData()->intersectionObserverData(); | 2602 return elementRareData()->intersectionObserverData(); |
2603 return nullptr; | 2603 return nullptr; |
2604 } | 2604 } |
2605 | 2605 |
2606 ElementIntersectionObserverData& Element::ensureIntersectionObserverData() | 2606 NodeIntersectionObserverData& Element::ensureIntersectionObserverData() |
2607 { | 2607 { |
2608 return ensureElementRareData().ensureIntersectionObserverData(); | 2608 return ensureElementRareData().ensureIntersectionObserverData(); |
2609 } | 2609 } |
2610 | 2610 |
2611 // Step 1 of http://domparsing.spec.whatwg.org/#insertadjacenthtml() | 2611 // Step 1 of http://domparsing.spec.whatwg.org/#insertadjacenthtml() |
2612 static Element* contextElementForInsertion(const String& where, Element* element
, ExceptionState& exceptionState) | 2612 static Element* contextElementForInsertion(const String& where, Element* element
, ExceptionState& exceptionState) |
2613 { | 2613 { |
2614 if (equalIgnoringCase(where, "beforeBegin") || equalIgnoringCase(where, "aft
erEnd")) { | 2614 if (equalIgnoringCase(where, "beforeBegin") || equalIgnoringCase(where, "aft
erEnd")) { |
2615 Element* parent = element->parentElement(); | 2615 Element* parent = element->parentElement(); |
2616 if (!parent) { | 2616 if (!parent) { |
(...skipping 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3646 { | 3646 { |
3647 #if ENABLE(OILPAN) | 3647 #if ENABLE(OILPAN) |
3648 if (hasRareData()) | 3648 if (hasRareData()) |
3649 visitor->trace(elementRareData()); | 3649 visitor->trace(elementRareData()); |
3650 visitor->trace(m_elementData); | 3650 visitor->trace(m_elementData); |
3651 #endif | 3651 #endif |
3652 ContainerNode::trace(visitor); | 3652 ContainerNode::trace(visitor); |
3653 } | 3653 } |
3654 | 3654 |
3655 } // namespace blink | 3655 } // namespace blink |
OLD | NEW |