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

Unified Diff: Source/web/LinkHighlight.cpp

Issue 1096383007: Position adjustment for composited scrolling is not needed if the layer has box decorations. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Layout test Created 5 years, 8 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 | « LayoutTests/platform/linux/compositing/gestures/gesture-tapHighlight-with-box-shadow-expected.png ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/LinkHighlight.cpp
diff --git a/Source/web/LinkHighlight.cpp b/Source/web/LinkHighlight.cpp
index f19536da70cb34861c45c0f546191f3b34014237..2f51d0c0b93217fc2e492f78eaba94d6dfcf78a2 100644
--- a/Source/web/LinkHighlight.cpp
+++ b/Source/web/LinkHighlight.cpp
@@ -213,7 +213,7 @@ bool LinkHighlight::computeHighlightLayerPathAndPosition(const LayoutBoxModelObj
// FIXME: this hack should not be necessary. It's a consequence of the fact that composited layers for scrolling are represented
// differently in Blink than other composited layers.
- if (paintInvalidationContainer->layer()->needsCompositedScrolling() && m_node->layoutObject() != paintInvalidationContainer)
+ if (!paintInvalidationContainer->layer()->hasBoxDecorationsOrBackground() && paintInvalidationContainer->layer()->needsCompositedScrolling() && m_node->layoutObject() != paintInvalidationContainer)
chrishtr 2015/04/27 17:50:03 Can you explain why it's not needed if there are b
pals 2015/04/28 10:28:24 I am not very familiar of this code. I thought as
chrishtr 2015/04/29 05:11:41 Ok. I'll need to think about this some more. This
chrishtr 2015/06/06 05:28:09 I just tried deleting the adjustment hack in lines
pals 2015/06/15 06:01:04 Done.
absoluteQuad.move(-positionAdjustForCompositedScrolling.x(), -positionAdjustForCompositedScrolling.y());
// Transform node quads in target absolute coords to local coordinates in the compositor layer.
« no previous file with comments | « LayoutTests/platform/linux/compositing/gestures/gesture-tapHighlight-with-box-shadow-expected.png ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698