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

Unified Diff: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h

Issue 1427943002: Wrap SVGImage for container during paint (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use IntSize for SVGImageForContainer Created 5 years, 1 month 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/paint/BackgroundImageGeometry.h
diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
index a40080ae861db26ecd5d0515338ee79b2e714eb6..7c96e8d0340ce3372d63fea26b21c3a576c6bb1f 100644
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
@@ -26,11 +26,11 @@ public:
{ }
void calculate(const LayoutBoxModelObject&, const LayoutBoxModelObject* paintContainer,
- const GlobalPaintFlags, const FillLayer&, const LayoutRect& paintRect,
- const LayoutObject* backgroundObject = nullptr);
+ const GlobalPaintFlags, const FillLayer&, const LayoutRect& paintRect);
IntRect destRect() const { return m_destRect; }
IntSize tileSize() const { return m_tileSize; }
+ IntSize imageContainerSize() const { return m_imageContainerSize; }
IntPoint phase() const { return m_phase; }
// Space-size represents extra width and height that may be added to
// the image if used as a pattern with background-repeat: space.
@@ -41,6 +41,7 @@ public:
private:
void setDestRect(const IntRect& destRect) { m_destRect = destRect; }
void setPhase(const IntPoint& phase) { m_phase = phase; }
+ void setImageContainerSize(const IntSize& imageContainerSize) { m_imageContainerSize = imageContainerSize; }
void setTileSize(const IntSize& tileSize) { m_tileSize = tileSize; }
void setSpaceSize(const IntSize& repeatSpacing) { m_repeatSpacing = repeatSpacing; }
void setPhaseX(int x) { m_phase.setX(x); }
@@ -54,6 +55,7 @@ private:
IntRect m_destRect;
IntPoint m_phase;
+ IntSize m_imageContainerSize;
IntSize m_tileSize;
IntSize m_repeatSpacing;
bool m_hasNonLocalGeometry;

Powered by Google App Engine
This is Rietveld 408576698