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

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: Removed bad comment 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..b34cd98f3083f97871418f3c3e15ce07e1c73b5a 100644
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
@@ -30,7 +30,6 @@ public:
LayoutRect destRect() const { return m_destRect; }
LayoutSize tileSize() const { return m_tileSize; }
- LayoutSize imageContainerSize() const { 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.
@@ -41,7 +40,6 @@ public:
private:
void setDestRect(const LayoutRect& destRect) { m_destRect = destRect; }
void setPhase(const LayoutPoint& phase) { m_phase = phase; }
- void setImageContainerSize(const LayoutSize& imageContainerSize) { m_imageContainerSize = imageContainerSize; }
void setTileSize(const LayoutSize& tileSize) { m_tileSize = tileSize; }
void setSpaceSize(const LayoutSize& repeatSpacing) { m_repeatSpacing = repeatSpacing; }
void setPhaseX(LayoutUnit x) { m_phase.setX(x); }
@@ -49,15 +47,11 @@ 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;
LayoutPoint m_phase;
- LayoutSize m_imageContainerSize;
LayoutSize m_tileSize;
LayoutSize m_repeatSpacing;
bool m_hasNonLocalGeometry;

Powered by Google App Engine
This is Rietveld 408576698