| 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 2774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2785 void Element::releasePointerCapture(int pointerId, ExceptionState& exceptionStat
e) | 2785 void Element::releasePointerCapture(int pointerId, ExceptionState& exceptionStat
e) |
| 2786 { | 2786 { |
| 2787 if (document().frame()) { | 2787 if (document().frame()) { |
| 2788 if (!document().frame()->eventHandler().isPointerEventActive(pointerId)) | 2788 if (!document().frame()->eventHandler().isPointerEventActive(pointerId)) |
| 2789 exceptionState.throwDOMException(InvalidPointerId, "InvalidPointerId
"); | 2789 exceptionState.throwDOMException(InvalidPointerId, "InvalidPointerId
"); |
| 2790 else | 2790 else |
| 2791 document().frame()->eventHandler().releasePointerCapture(pointerId,
this); | 2791 document().frame()->eventHandler().releasePointerCapture(pointerId,
this); |
| 2792 } | 2792 } |
| 2793 } | 2793 } |
| 2794 | 2794 |
| 2795 bool Element::hasPointerCapture(int pointerId) | 2795 bool Element::hasPointerCapture(int pointerId) const |
| 2796 { | 2796 { |
| 2797 return document().frame() && document().frame()->eventHandler().hasPointerCa
pture(pointerId, this); | 2797 return document().frame() && document().frame()->eventHandler().hasPointerCa
pture(pointerId, this); |
| 2798 } | 2798 } |
| 2799 | 2799 |
| 2800 bool Element::hasProcessedPointerCapture(int pointerId) const |
| 2801 { |
| 2802 return document().frame() && document().frame()->eventHandler().hasProcessed
PointerCapture(pointerId, this); |
| 2803 } |
| 2804 |
| 2800 String Element::innerText() | 2805 String Element::innerText() |
| 2801 { | 2806 { |
| 2802 // We need to update layout, since plainText uses line boxes in the layout t
ree. | 2807 // We need to update layout, since plainText uses line boxes in the layout t
ree. |
| 2803 document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this); | 2808 document().updateStyleAndLayoutIgnorePendingStylesheetsForNode(this); |
| 2804 | 2809 |
| 2805 if (!layoutObject()) | 2810 if (!layoutObject()) |
| 2806 return textContent(true); | 2811 return textContent(true); |
| 2807 | 2812 |
| 2808 return plainText(EphemeralRange::rangeOfContents(*this), TextIteratorForInne
rText); | 2813 return plainText(EphemeralRange::rangeOfContents(*this), TextIteratorForInne
rText); |
| 2809 } | 2814 } |
| (...skipping 1031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3841 | 3846 |
| 3842 DEFINE_TRACE_WRAPPERS(Element) | 3847 DEFINE_TRACE_WRAPPERS(Element) |
| 3843 { | 3848 { |
| 3844 if (hasRareData()) { | 3849 if (hasRareData()) { |
| 3845 visitor->traceWrappers(elementRareData()); | 3850 visitor->traceWrappers(elementRareData()); |
| 3846 } | 3851 } |
| 3847 ContainerNode::traceWrappers(visitor); | 3852 ContainerNode::traceWrappers(visitor); |
| 3848 } | 3853 } |
| 3849 | 3854 |
| 3850 } // namespace blink | 3855 } // namespace blink |
| OLD | NEW |