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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h

Issue 2802443002: Compute rounded-ness of visual rects (Closed)
Patch Set: none Created 3 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
Index: third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h
index 5766bfaf755e4ebd38f1c60f30d8e399678e5de3..27bf48ae3948ccd9f2175de34151102496c86872 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h
@@ -51,7 +51,7 @@ class PLATFORM_EXPORT GeometryMapper {
static void sourceToDestinationVisualRect(
const PropertyTreeState& sourceState,
const PropertyTreeState& destinationState,
- FloatRect& mappingRect);
+ FloatClipRect& mappingRect);
// Same as sourceToDestinationVisualRect() except that only transforms are
// applied.
@@ -79,7 +79,7 @@ class PLATFORM_EXPORT GeometryMapper {
static void localToAncestorVisualRect(
const PropertyTreeState& localTransformState,
const PropertyTreeState& ancestorState,
- FloatRect& mappingRect);
+ FloatClipRect& mappingRect);
// Maps from a rect in |localTransformNode| space to its transformed rect in
// |ancestorTransformNode| space. This is computed by multiplying the rect by
@@ -149,13 +149,13 @@ class PLATFORM_EXPORT GeometryMapper {
static void sourceToDestinationVisualRectInternal(
const PropertyTreeState& sourceState,
const PropertyTreeState& destinationState,
- FloatRect& mappingRect,
+ FloatClipRect& mappingRect,
bool& success);
static void localToAncestorVisualRectInternal(
const PropertyTreeState& localTransformState,
const PropertyTreeState& ancestorState,
- FloatRect& mappingRect,
+ FloatClipRect& mappingRect,
bool& success);
static void localToAncestorRectInternal(
@@ -183,7 +183,7 @@ class PLATFORM_EXPORT GeometryMapper {
static void slowLocalToAncestorVisualRectWithEffects(
const PropertyTreeState& localState,
const PropertyTreeState& ancestorState,
- FloatRect& mappingRect,
+ FloatClipRect& mappingRect,
bool& success);
static const TransformationMatrix& identityMatrix();

Powered by Google App Engine
This is Rietveld 408576698