| 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 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2616 if (elementRareData()) | 2616 if (elementRareData()) |
| 2617 return elementRareData()->intersectionObserverData(); | 2617 return elementRareData()->intersectionObserverData(); |
| 2618 return nullptr; | 2618 return nullptr; |
| 2619 } | 2619 } |
| 2620 | 2620 |
| 2621 NodeIntersectionObserverData& Element::ensureIntersectionObserverData() | 2621 NodeIntersectionObserverData& Element::ensureIntersectionObserverData() |
| 2622 { | 2622 { |
| 2623 return ensureElementRareData().ensureIntersectionObserverData(); | 2623 return ensureElementRareData().ensureIntersectionObserverData(); |
| 2624 } | 2624 } |
| 2625 | 2625 |
| 2626 HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>* Element::resizeO
bserverData() const |
| 2627 { |
| 2628 if (hasRareData()) |
| 2629 return elementRareData()->resizeObserverData(); |
| 2630 return nullptr; |
| 2631 } |
| 2632 |
| 2633 HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>& Element::ensureR
esizeObserverData() |
| 2634 { |
| 2635 return ensureElementRareData().ensureResizeObserverData(); |
| 2636 } |
| 2637 |
| 2626 // Step 1 of http://domparsing.spec.whatwg.org/#insertadjacenthtml() | 2638 // Step 1 of http://domparsing.spec.whatwg.org/#insertadjacenthtml() |
| 2627 static Element* contextElementForInsertion(const String& where, Element* element
, ExceptionState& exceptionState) | 2639 static Element* contextElementForInsertion(const String& where, Element* element
, ExceptionState& exceptionState) |
| 2628 { | 2640 { |
| 2629 if (equalIgnoringCase(where, "beforeBegin") || equalIgnoringCase(where, "aft
erEnd")) { | 2641 if (equalIgnoringCase(where, "beforeBegin") || equalIgnoringCase(where, "aft
erEnd")) { |
| 2630 Element* parent = element->parentElement(); | 2642 Element* parent = element->parentElement(); |
| 2631 if (!parent) { | 2643 if (!parent) { |
| 2632 exceptionState.throwDOMException(NoModificationAllowedError, "The el
ement has no parent."); | 2644 exceptionState.throwDOMException(NoModificationAllowedError, "The el
ement has no parent."); |
| 2633 return nullptr; | 2645 return nullptr; |
| 2634 } | 2646 } |
| 2635 return parent; | 2647 return parent; |
| (...skipping 1063 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3699 | 3711 |
| 3700 DEFINE_TRACE_WRAPPERS(Element) | 3712 DEFINE_TRACE_WRAPPERS(Element) |
| 3701 { | 3713 { |
| 3702 if (hasRareData()) { | 3714 if (hasRareData()) { |
| 3703 visitor->traceWrappers(elementRareData()); | 3715 visitor->traceWrappers(elementRareData()); |
| 3704 } | 3716 } |
| 3705 ContainerNode::traceWrappers(visitor); | 3717 ContainerNode::traceWrappers(visitor); |
| 3706 } | 3718 } |
| 3707 | 3719 |
| 3708 } // namespace blink | 3720 } // namespace blink |
| OLD | NEW |