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

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

Issue 2604083002: Remove infinite clip in PaintArtifactCompositor. (Closed)
Patch Set: none 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 00b42f49923192a032fd0eac271336db5f9aa865..faf4f8c40da861bce3e9b9087db13a1b25e92ca1 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintArtifactCompositor.cpp
@@ -297,11 +297,8 @@ static void applyClipsBetweenStates(const PropertyTreeState& localState,
FloatRect combinedClip;
bool success = false;
- // TODO(chrishtr) :get rid of infiniteIntRect here.
- combinedClip = geometryMapper.localToVisualRectInAncestorSpace(
- FloatRect(LayoutRect::infiniteIntRect()), localState, ancestorState,
- success);
-
+ combinedClip = geometryMapper.localToAncestorClipRect(localState,
+ ancestorState, success);
DCHECK(success);
ccList.CreateAndAppendPairedBeginItem<cc::FloatClipDisplayItem>(
« no previous file with comments | « no previous file | third_party/WebKit/Source/platform/graphics/paint/GeometryMapper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698