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

Unified Diff: Source/core/paint/NinePieceImagePainter.cpp

Issue 1339183003: NOT FOR LANDING Experiment with allocating SVGImageForContainer on demand (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 3 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 | « Source/core/paint/ImagePainter.cpp ('k') | Source/core/style/StyleFetchedImage.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/NinePieceImagePainter.cpp
diff --git a/Source/core/paint/NinePieceImagePainter.cpp b/Source/core/paint/NinePieceImagePainter.cpp
index 26f394f9c00775d65cad44c39f58a7599c2706f8..88350298432726a278ea7653babe5d8f7cb3195a 100644
--- a/Source/core/paint/NinePieceImagePainter.cpp
+++ b/Source/core/paint/NinePieceImagePainter.cpp
@@ -44,9 +44,6 @@ bool NinePieceImagePainter::paint(GraphicsContext* graphicsContext, const Layout
IntSize imageSize = m_layoutObject.calculateImageIntrinsicDimensions(styleImage, borderImageRect.size(),
LayoutBoxModelObject::DoNotScaleByEffectiveZoom);
- // If both values are 'auto' then the intrinsic width and/or height of the image should be used, if any.
- styleImage->setContainerSizeForLayoutObject(&m_layoutObject, imageSize, style.effectiveZoom());
-
IntRectOutsets borderWidths(style.borderTopWidth(), style.borderRightWidth(),
style.borderBottomWidth(), style.borderLeftWidth());
NinePieceImageGrid grid(ninePieceImage, imageSize, borderImageRect, borderWidths);
« no previous file with comments | « Source/core/paint/ImagePainter.cpp ('k') | Source/core/style/StyleFetchedImage.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698