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

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

Issue 17471008: Rework compositor touch hit testing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix lifetime issue with Internals::m_currentTouchEventRects 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
Index: Source/core/rendering/RenderBox.cpp
diff --git a/Source/core/rendering/RenderBox.cpp b/Source/core/rendering/RenderBox.cpp
index 30e8eb901e26a172d38dff8df9eab70e52d0d328..46e1dde1730661c91bfd3f0ba621fc5d2880ebd7 100644
--- a/Source/core/rendering/RenderBox.cpp
+++ b/Source/core/rendering/RenderBox.cpp
@@ -580,6 +580,18 @@ void RenderBox::addFocusRingRects(Vector<IntRect>& rects, const LayoutPoint& add
rects.append(pixelSnappedIntRect(additionalOffset, size()));
}
+void RenderBox::addLayerHitTestRects(LayerHitTestRects& layerRects, const RenderLayer* currentLayer, const LayoutPoint& layerOffset) const
+{
+ LayoutPoint adjustedLayerOffset = layerOffset + locationOffset();
+ RenderBoxModelObject::addLayerHitTestRects(layerRects, currentLayer, adjustedLayerOffset);
+}
+
+void RenderBox::computeOwnHitTestRects(Vector<IntRect>& rects, const LayoutPoint& layerOffset) const
+{
+ if (!size().isEmpty())
+ rects.append(pixelSnappedIntRect(layerOffset, size()));
leviw_travelin_and_unemployed 2013/07/18 18:08:39 This won't actually get pixel snapping right since
Rick Byers 2013/07/18 19:58:52 Done. Also fixed RenderBlock::computeOwnHitTestRe
leviw_travelin_and_unemployed 2013/07/18 20:21:48 Yes.
Rick Byers 2013/07/18 22:20:32 Done. The only complication was RenderInline::com
+}
+
LayoutRect RenderBox::reflectionBox() const
{
LayoutRect result;

Powered by Google App Engine
This is Rietveld 408576698