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

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

Issue 1780893004: Adjust the rounding methodology for tiled background phase (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Snap as we go Created 4 years, 9 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/paint/BackgroundImageGeometry.h
diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
index 8a63e2815df211ae573e41fea5d10cbc5d7fcefe..87de25ee3832cb7de859579f470ff630136285d0 100644
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
@@ -29,8 +29,8 @@ public:
const GlobalPaintFlags, const FillLayer&, const LayoutRect& paintRect);
LayoutRect destRect() const { return m_destRect; }
- LayoutSize tileSize() const { return m_tileSize; }
- LayoutSize imageContainerSize() const { return m_imageContainerSize; }
+ LayoutSize tileSize() const { ASSERT(m_imageContainerSize == m_tileSize); return m_tileSize; }
Stephen Chennney 2016/03/11 17:39:01 I'll remove these before landing, and remove the n
+ LayoutSize imageContainerSize() const { ASSERT(m_imageContainerSize == m_tileSize); return m_imageContainerSize; }
LayoutPoint 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.
@@ -49,10 +49,7 @@ private:
void setNoRepeatX(LayoutUnit xOffset);
void setNoRepeatY(LayoutUnit yOffset);
- void pixelSnapGeometry();
-
void useFixedAttachment(const LayoutPoint& attachmentPoint);
- void clip(const LayoutRect&);
void setHasNonLocalGeometry() { m_hasNonLocalGeometry = true; }
LayoutRect m_destRect;

Powered by Google App Engine
This is Rietveld 408576698