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

Unified Diff: Source/core/page/TouchDisambiguation.cpp

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/page/TouchAdjustment.cpp ('k') | Source/core/page/animation/AnimationController.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/TouchDisambiguation.cpp
diff --git a/Source/core/page/TouchDisambiguation.cpp b/Source/core/page/TouchDisambiguation.cpp
index a0ba0d9f7dfe1186efc3bcec9e1bd74a80df5162..4cab1f50e6cce83128c82af68bba715dfebfdadf 100644
--- a/Source/core/page/TouchDisambiguation.cpp
+++ b/Source/core/page/TouchDisambiguation.cpp
@@ -51,7 +51,7 @@ namespace WebCore {
static IntRect boundingBoxForEventNodes(Node* eventNode)
{
- if (!eventNode->document()->view())
+ if (!eventNode->document().view())
return IntRect();
IntRect result;
@@ -65,7 +65,7 @@ static IntRect boundingBoxForEventNodes(Node* eventNode)
result.unite(node->pixelSnappedBoundingBox());
node = NodeTraversal::next(node, eventNode);
}
- return eventNode->document()->view()->contentsToWindow(result);
+ return eventNode->document().view()->contentsToWindow(result);
}
static float scoreTouchTarget(IntPoint touchPoint, int padding, IntRect boundingBox)
« no previous file with comments | « Source/core/page/TouchAdjustment.cpp ('k') | Source/core/page/animation/AnimationController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698