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

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

Issue 26390004: Rework SVG sizing (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix mishap during rebase in svg.css Created 6 years, 8 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/SVGSVGElement.h
diff --git a/Source/core/svg/SVGSVGElement.h b/Source/core/svg/SVGSVGElement.h
index 3e03653cdeda9edac91e2dfb71c5ca99dfc6280c..0f1f51718bc524d960b4435ff089417395dfecc6 100644
--- a/Source/core/svg/SVGSVGElement.h
+++ b/Source/core/svg/SVGSVGElement.h
@@ -62,14 +62,8 @@ public:
bool useCurrentView() const { return m_useCurrentView; }
SVGViewSpec* currentView();
- enum ConsiderCSSMode {
- RespectCSSProperties,
- IgnoreCSSProperties
- };
-
- // RenderSVGRoot wants to query the intrinsic size, by only examining the width/height attributes.
- Length intrinsicWidth(ConsiderCSSMode = RespectCSSProperties) const;
- Length intrinsicHeight(ConsiderCSSMode = RespectCSSProperties) const;
+ Length intrinsicWidth() const;
+ Length intrinsicHeight() const;
FloatSize currentViewportSize() const;
FloatRect currentViewBoxRect() const;
@@ -116,8 +110,8 @@ public:
Element* getElementById(const AtomicString&) const;
- bool widthAttributeEstablishesViewport() const;
- bool heightAttributeEstablishesViewport() const;
+ bool hasIntrinsicWidth() const;
+ bool hasIntrinsicHeight() const;
SVGAnimatedLength* x() const { return m_x.get(); }
SVGAnimatedLength* y() const { return m_y.get(); }
@@ -129,6 +123,8 @@ private:
virtual ~SVGSVGElement();
virtual void parseAttribute(const QualifiedName&, const AtomicString&) OVERRIDE;
+ virtual bool isPresentationAttribute(const QualifiedName&) const OVERRIDE;
+ virtual void collectStyleForPresentationAttribute(const QualifiedName&, const AtomicString&, MutableStylePropertySet*) OVERRIDE;
virtual bool rendererIsNeeded(const RenderStyle&) OVERRIDE;
virtual RenderObject* createRenderer(RenderStyle*) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698