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

Unified Diff: third_party/WebKit/Source/core/svg/SVGSVGElement.h

Issue 2290173005: Synthesize preserveAspectRatio='none' for non-viewBoxed <img> (Closed)
Patch Set: New baselines Created 4 years, 4 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/svg/SVGSVGElement.h
diff --git a/third_party/WebKit/Source/core/svg/SVGSVGElement.h b/third_party/WebKit/Source/core/svg/SVGSVGElement.h
index 6d24b0ebef1d95fb8c5a0393a1281293f32f0510..a7dbd3efc85d72ea1e441cb6d52009f01844fdbd 100644
--- a/third_party/WebKit/Source/core/svg/SVGSVGElement.h
+++ b/third_party/WebKit/Source/core/svg/SVGSVGElement.h
@@ -59,6 +59,7 @@ public:
float intrinsicHeight() const;
FloatSize currentViewportSize() const;
FloatRect currentViewBoxRect() const;
+ SVGPreserveAspectRatio* currentPreserveAspectRatio() const;
float currentScale() const;
void setCurrentScale(float scale);
@@ -133,6 +134,7 @@ private:
void inheritViewAttributes(SVGViewElement*);
+ bool shouldSynthesizeViewBox() const;
void updateUserTransform();
void finishParsingChildren() override;

Powered by Google App Engine
This is Rietveld 408576698