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

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: Rebase 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..2a677f8011a8e024026d65e45ef915ff55660675 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 tileSizeBeforeRound() const { return m_tileSizeBeforeRound; }
f(malita) 2015/11/16 16:36:14 I find the current name confusing - is there a bet
davve 2015/11/17 13:08:28 Yes, that's probably a better name.
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 setTileSizeBeforeRound(const IntSize& tileSize) { m_tileSize = m_tileSizeBeforeRound = tileSize; }
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_tileSizeBeforeRound;
IntSize m_tileSize;
IntSize m_repeatSpacing;
bool m_hasNonLocalGeometry;

Powered by Google App Engine
This is Rietveld 408576698