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; |