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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutObject.cpp

Issue 2620383004: Fix graphics layer backing and offset for composited selection handles. (Closed)
Patch Set: none Created 3 years, 11 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 | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/layout/LayoutObject.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.cpp b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
index ca896f73f2f0d1ea771b0d2219404d2792f8f44f..ae2594cc5117c3c276a14aeb9e13325f6c373b9c 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.cpp
@@ -2315,35 +2315,6 @@ TransformationMatrix LayoutObject::localToAncestorTransform(
return transformState.accumulatedTransform();
}
-FloatPoint LayoutObject::localToInvalidationBackingPoint(
- const LayoutPoint& localPoint,
- PaintLayer** backingLayer) {
- const LayoutBoxModelObject& paintInvalidationContainer =
- containerForPaintInvalidation();
- DCHECK(paintInvalidationContainer.layer());
-
- if (backingLayer)
- *backingLayer = paintInvalidationContainer.layer();
- FloatPoint containerPoint =
- localToAncestorPoint(FloatPoint(localPoint), &paintInvalidationContainer,
- TraverseDocumentBoundaries);
-
- // A layoutObject can have no invalidation backing if it is from a detached
- // frame, or when forced compositing is disabled.
- if (paintInvalidationContainer.layer()->compositingState() == NotComposited)
- return containerPoint;
-
- PaintLayer::mapPointInPaintInvalidationContainerToBacking(
- paintInvalidationContainer, containerPoint);
-
- if (GraphicsLayer* backingLayer =
- paintInvalidationContainer.layer()->graphicsLayerBacking(this)) {
- containerPoint.move(-backingLayer->offsetFromLayoutObject());
- }
-
- return containerPoint;
-}
-
LayoutSize LayoutObject::offsetFromContainer(const LayoutObject* o) const {
ASSERT(o == container());
return o->hasOverflowClip()
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698