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

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

Issue 2727093002: Account for perspective and preserve-3d in mapToVisualRectInAncestorSpace (Closed)
Patch Set: none Created 3 years, 10 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: third_party/WebKit/Source/core/layout/LayoutObject.h
diff --git a/third_party/WebKit/Source/core/layout/LayoutObject.h b/third_party/WebKit/Source/core/layout/LayoutObject.h
index 67bcbbd38f4e103540fadfe864bb21597d146a7d..3a2b86fdc59d662f0e53c47e815ae2d15609a326 100644
--- a/third_party/WebKit/Source/core/layout/LayoutObject.h
+++ b/third_party/WebKit/Source/core/layout/LayoutObject.h
@@ -45,6 +45,7 @@
#include "core/style/ComputedStyle.h"
#include "platform/geometry/FloatQuad.h"
#include "platform/geometry/LayoutRect.h"
+#include "platform/geometry/TransformState.h"
#include "platform/graphics/CompositingReasons.h"
#include "platform/graphics/PaintInvalidationReason.h"
#include "platform/graphics/paint/DisplayItemClient.h"
@@ -68,7 +69,6 @@ class LayoutView;
class ObjectPaintProperties;
class PaintLayer;
class PseudoStyleRequest;
-class TransformState;
struct PaintInfo;
struct PaintInvalidatorContext;
@@ -1403,11 +1403,18 @@ class CORE_EXPORT LayoutObject : public ImageResourceObserver,
// return value will be true only if the clipped rect has non-zero area.
// See the documentation for LayoutRect::inclusiveIntersect for more
// information.
- virtual bool mapToVisualRectInAncestorSpace(
+ bool mapToVisualRectInAncestorSpace(
const LayoutBoxModelObject* ancestor,
LayoutRect&,
VisualRectFlags = DefaultVisualRectFlags) const;
+ // Do not call this method directly. Call mapToVisualRectInAncestorSpace
+ // instead.
+ virtual bool mapToVisualRectInAncestorSpaceInternal(
+ const LayoutBoxModelObject* ancestor,
+ TransformState&,
+ VisualRectFlags = DefaultVisualRectFlags) const;
+
// Allows objects to adjust |visualEffect|, which is in the space of the
// paint invalidation container, for any special raster effects that might
// expand the rastered pixel area. Returns true if the rect is expanded.
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutInline.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698