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

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

Issue 2103563002: Fix rounding of phase for background image (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Re-add expectation. Created 4 years, 6 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 48c9bcdb594df75063a6cb26922a69e9d6b09dc5..49e4b7c9f9568592a9f63144d09903ba4522a1f8 100644
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.h
@@ -44,6 +44,7 @@ private:
void setSpaceSize(const LayoutSize& repeatSpacing) { m_repeatSpacing = repeatSpacing; }
void setPhaseX(LayoutUnit x) { m_phase.setX(x); }
void setPhaseY(LayoutUnit y) { m_phase.setY(y); }
+
void setNoRepeatX(LayoutUnit xOffset);
void setNoRepeatY(LayoutUnit yOffset);
void setRepeatX(const FillLayer&, LayoutUnit, LayoutUnit, LayoutUnit, LayoutUnit);
@@ -54,6 +55,7 @@ private:
void useFixedAttachment(const LayoutPoint& attachmentPoint);
void setHasNonLocalGeometry() { m_hasNonLocalGeometry = true; }
+ // TODO(schenney): Convert these to IntPoints for values that we snap
LayoutRect m_destRect;
LayoutPoint m_phase;
LayoutSize m_tileSize;

Powered by Google App Engine
This is Rietveld 408576698