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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp

Issue 2678263002: Plumb border radius through when computing clip visual rects. (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/platform/graphics/compositing/PaintArtifactCompositor.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
index 85faa47843757739f06908f6240e1c56126d6cf3..0f77c59eba92bd1e85f6c982f159067a7b71e907 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -282,7 +282,7 @@ static void applyClipsBetweenStates(const PropertyTreeState& localState,
#endif
FloatRect combinedClip =
- geometryMapper.localToAncestorClipRect(localState, ancestorState);
+ geometryMapper.localToAncestorClipRect(localState, ancestorState).rect();
ccList.CreateAndAppendPairedBeginItem<cc::FloatClipDisplayItem>(
gfx::RectF(combinedClip));
@@ -600,14 +600,18 @@ bool PaintArtifactCompositor::mightOverlap(
EffectPaintPropertyNode::root());
FloatRect paintChunkScreenVisualRect =
- geometryMapper.localToAncestorVisualRect(
- paintChunk.bounds, paintChunk.properties.propertyTreeState,
- rootPropertyTreeState);
+ geometryMapper
+ .localToAncestorVisualRect(paintChunk.bounds,
+ paintChunk.properties.propertyTreeState,
+ rootPropertyTreeState)
+ .rect();
FloatRect pendingLayerScreenVisualRect =
- geometryMapper.localToAncestorVisualRect(
- candidatePendingLayer.bounds, candidatePendingLayer.propertyTreeState,
- rootPropertyTreeState);
+ geometryMapper
+ .localToAncestorVisualRect(candidatePendingLayer.bounds,
+ candidatePendingLayer.propertyTreeState,
+ rootPropertyTreeState)
+ .rect();
return paintChunkScreenVisualRect.intersects(pendingLayerScreenVisualRect);
}
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/graphics/paint/FloatClipRect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698