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

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

Issue 2167323002: Fix the positioning of backgrounds positioned right and bottom (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
« no previous file with comments | « third_party/WebKit/LayoutTests/css3/background/background-right-bottom-subpixel-position-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
diff --git a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
index a2fc11089a9f3b876d027649c19e7309f2bf34b9..44cfc084e45a59e220ef9e393797167a3f7c019a 100644
--- a/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
+++ b/third_party/WebKit/Source/core/paint/BackgroundImageGeometry.cpp
@@ -340,9 +340,6 @@ void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const L
// incorrectly using sub-pixel values that won't be present in the painted tile.
setTileSize(applySubPixelHeuristicToImageSize(fillTileSize, m_destRect));
- setDestRect(LayoutRect(pixelSnappedIntRect(m_destRect)));
-
-
EFillRepeat backgroundRepeatX = fillLayer.repeatX();
EFillRepeat backgroundRepeatY = fillLayer.repeatY();
LayoutUnit unsnappedAvailableWidth = positioningAreaSize.width() - fillTileSize.width();
@@ -423,7 +420,6 @@ void BackgroundImageGeometry::calculate(const LayoutBoxModelObject& obj, const L
// Snap as-yet unsnapped values.
DCHECK(m_phase == LayoutPoint(roundedIntPoint(m_phase)));
setDestRect(LayoutRect(pixelSnappedIntRect(m_destRect)));
-
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/LayoutTests/css3/background/background-right-bottom-subpixel-position-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698