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

Unified Diff: Source/core/svg/SVGImageElement.cpp

Issue 1219493005: Cleanups to viewport-handling and image invalidation in LayoutSVGImage (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 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: Source/core/svg/SVGImageElement.cpp
diff --git a/Source/core/svg/SVGImageElement.cpp b/Source/core/svg/SVGImageElement.cpp
index 786f32affd5c2d8674b0fb3d57f16eb1f018f1a1..4e1d852d8775e4f590f50b1882d82aa06c3930b2 100644
--- a/Source/core/svg/SVGImageElement.cpp
+++ b/Source/core/svg/SVGImageElement.cpp
@@ -127,9 +127,9 @@ void SVGImageElement::svgAttributeChanged(const QualifiedName& attrName)
if (!object)
return;
- // FIXME: if isLengthAttribute then we should avoid this
- // call if the viewport didn't change, however since we don't
- // have the computed style yet we can't use updateImageViewport.
+ // FIXME: if isLengthAttribute then we should avoid this call if the
+ // viewport didn't change, however since we don't have the computed
+ // style yet we can't use updateBoundingBox/updateImageContainerSize.
// See http://crbug.com/466200.
markForLayoutAndParentResourceInvalidation(object);
return;
« Source/core/layout/svg/LayoutSVGImage.cpp ('K') | « Source/core/layout/svg/LayoutSVGImage.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698