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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp

Issue 2889653002: Remove cullRect() from PaintOpBuffer. (Closed)
Patch Set: movecullrect2 rebase-once-and-for-all Created 3 years, 7 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/svg/LayoutSVGResourcePattern.cpp
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
index e07568e0623f11a8404db0999c5ecc6660771cd7..b368fc943a3ba748820945b23b5b93c331352b1f 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePattern.cpp
@@ -122,7 +122,8 @@ std::unique_ptr<PatternData> LayoutSVGResourcePattern::BuildPatternData(
std::unique_ptr<PatternData> pattern_data = WTF::WrapUnique(new PatternData);
pattern_data->pattern = Pattern::CreatePaintRecordPattern(
- AsPaintRecord(tile_bounds, tile_transform));
+ AsPaintRecord(tile_bounds.Size(), tile_transform),
+ FloatRect(FloatPoint(), tile_bounds.Size()));
// Compute pattern space transformation.
pattern_data->transform.Translate(tile_bounds.X(), tile_bounds.Y());
@@ -196,7 +197,7 @@ LayoutSVGResourcePattern::ResolveContentElement() const {
}
sk_sp<PaintRecord> LayoutSVGResourcePattern::AsPaintRecord(
- const FloatRect& tile_bounds,
+ const FloatSize& size,
const AffineTransform& tile_transform) const {
DCHECK(!should_collect_pattern_attributes_);
@@ -205,7 +206,7 @@ sk_sp<PaintRecord> LayoutSVGResourcePattern::AsPaintRecord(
SVGUnitTypes::kSvgUnitTypeObjectboundingbox)
content_transform = tile_transform;
- FloatRect bounds(FloatPoint(), tile_bounds.Size());
+ FloatRect bounds(FloatPoint(), size);
const LayoutSVGResourceContainer* pattern_layout_object =
ResolveContentElement();
DCHECK(pattern_layout_object);

Powered by Google App Engine
This is Rietveld 408576698