| Index: third_party/WebKit/Source/core/testing/Internals.cpp
|
| diff --git a/third_party/WebKit/Source/core/testing/Internals.cpp b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| index fdfc91a8a533f41b73511a0b794d81e87369f1fe..0eb0e411f9da35ed6cb9d42596f9336a0509a4d0 100644
|
| --- a/third_party/WebKit/Source/core/testing/Internals.cpp
|
| +++ b/third_party/WebKit/Source/core/testing/Internals.cpp
|
| @@ -1641,18 +1641,19 @@ static unsigned EventHandlerCount(
|
| return count;
|
| }
|
|
|
| -unsigned Internals::wheelEventHandlerCount(Document* document) {
|
| +unsigned Internals::wheelEventHandlerCount(Document* document) const {
|
| DCHECK(document);
|
| return EventHandlerCount(*document,
|
| EventHandlerRegistry::kWheelEventBlocking);
|
| }
|
|
|
| -unsigned Internals::scrollEventHandlerCount(Document* document) {
|
| +unsigned Internals::scrollEventHandlerCount(Document* document) const {
|
| DCHECK(document);
|
| return EventHandlerCount(*document, EventHandlerRegistry::kScrollEvent);
|
| }
|
|
|
| -unsigned Internals::touchStartOrMoveEventHandlerCount(Document* document) {
|
| +unsigned Internals::touchStartOrMoveEventHandlerCount(
|
| + Document* document) const {
|
| DCHECK(document);
|
| return EventHandlerCount(
|
| *document, EventHandlerRegistry::kTouchStartOrMoveEventBlocking) +
|
| @@ -1660,7 +1661,8 @@ unsigned Internals::touchStartOrMoveEventHandlerCount(Document* document) {
|
| EventHandlerRegistry::kTouchStartOrMoveEventPassive);
|
| }
|
|
|
| -unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) {
|
| +unsigned Internals::touchEndOrCancelEventHandlerCount(
|
| + Document* document) const {
|
| DCHECK(document);
|
| return EventHandlerCount(
|
| *document, EventHandlerRegistry::kTouchEndOrCancelEventBlocking) +
|
| @@ -1668,6 +1670,11 @@ unsigned Internals::touchEndOrCancelEventHandlerCount(Document* document) {
|
| EventHandlerRegistry::kTouchEndOrCancelEventPassive);
|
| }
|
|
|
| +unsigned Internals::pointerEventHandlerCount(Document* document) const {
|
| + DCHECK(document);
|
| + return EventHandlerCount(*document, EventHandlerRegistry::kPointerEvent);
|
| +}
|
| +
|
| static PaintLayer* FindLayerForGraphicsLayer(PaintLayer* search_root,
|
| GraphicsLayer* graphics_layer,
|
| IntSize* layer_offset,
|
|
|