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

Unified Diff: Source/core/rendering/RenderBoxModelObject.cpp

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: CR feedback - accumulate LayoutRects instead of IntRects, disable when page isn't composited. Also… Created 7 years, 5 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/rendering/RenderBoxModelObject.h ('k') | Source/core/rendering/RenderInline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderBoxModelObject.cpp
diff --git a/Source/core/rendering/RenderBoxModelObject.cpp b/Source/core/rendering/RenderBoxModelObject.cpp
index 809d44c78e4bcc1cd621a90954b8d350fc564eca..73deaad418ccac04349c16c21b923a64c83ebd3c 100644
--- a/Source/core/rendering/RenderBoxModelObject.cpp
+++ b/Source/core/rendering/RenderBoxModelObject.cpp
@@ -2543,6 +2543,18 @@ void RenderBoxModelObject::setContinuation(RenderBoxModelObject* continuation)
}
}
+void RenderBoxModelObject::computeLayerHitTestRects(LayerHitTestRects& rects) const
+{
+ RenderLayerModelObject::computeLayerHitTestRects(rects);
+
+ // If there is a continuation then we need to consult it here, since this is
+ // the root of the tree walk and it wouldn't otherwise get picked up.
+ // Continuations should always be siblings in the tree, so any others should
+ // get picked up already by the tree walk.
+ if (continuation())
+ continuation()->computeLayerHitTestRects(rects);
+}
+
RenderObject* RenderBoxModelObject::firstLetterRemainingText() const
{
if (!firstLetterRemainingTextMap)
« no previous file with comments | « Source/core/rendering/RenderBoxModelObject.h ('k') | Source/core/rendering/RenderInline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698