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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.cpp

Issue 2604073002: Apply offset from the correct graphics layer; simplify code for link highlights. (Closed)
Patch Set: Created 4 years 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: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index 2146ec37fff702c9672c646f6c04d27b07ea09eb..5e4aa2e0aa0f6b6283e68a6d9a4b2eb6e4d102fa 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -548,11 +548,8 @@ void PaintLayer::mapPointInPaintInvalidationContainerToBacking(
const LayoutBoxModelObject& paintInvalidationContainer,
FloatPoint& point) {
PaintLayer* paintInvalidationLayer = paintInvalidationContainer.layer();
- if (!paintInvalidationLayer->groupedMapping()) {
- point.move(paintInvalidationLayer->compositedLayerMapping()
- ->contentOffsetInCompositingLayer());
Xianzhu 2016/12/29 05:48:12 Was confused by this when working on VisualRectMap
Xianzhu 2016/12/29 06:33:00 I just paused CQ because of a question: Is there
chrishtr 2016/12/29 16:53:04 This one is not ok. Re-inserted this line. As you
+ if (!paintInvalidationLayer->groupedMapping())
return;
- }
LayoutBoxModelObject* transformedAncestor =
paintInvalidationLayer->enclosingTransformedAncestor()->layoutObject();
« no previous file with comments | « third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp ('k') | third_party/WebKit/Source/web/LinkHighlightImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698