Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Side by Side Diff: third_party/WebKit/Source/core/dom/Element.cpp

Issue 2274253002: Added counters for pointer boundary events fired. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.h ('k') | third_party/WebKit/Source/core/events/EventTarget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698