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

Unified Diff: Source/core/rendering/svg/RenderSVGRoot.h

Issue 613783002: Smaller vtbls in RenderObject (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: RenderObject: Cut down vtbls a bit Created 6 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
Index: Source/core/rendering/svg/RenderSVGRoot.h
diff --git a/Source/core/rendering/svg/RenderSVGRoot.h b/Source/core/rendering/svg/RenderSVGRoot.h
index 1ed703a0356caea1f7ace9348202798f37e744b3..01d32e1d8bc17842a22bcd5ed808033a13053052 100644
--- a/Source/core/rendering/svg/RenderSVGRoot.h
+++ b/Source/core/rendering/svg/RenderSVGRoot.h
@@ -74,8 +74,7 @@ private:
virtual const RenderObjectChildList* virtualChildren() const OVERRIDE { return children(); }
virtual const char* renderName() const OVERRIDE { return "RenderSVGRoot"; }
- virtual bool isSVGRoot() const OVERRIDE { return true; }
- virtual bool isSVG() const OVERRIDE { return true; }
+ virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectSVG || type == RenderObjectSVGRoot || RenderReplaced::isOfType(type); }
virtual LayoutUnit computeReplacedLogicalWidth(ShouldComputePreferred = ComputeActual) const OVERRIDE;
virtual LayoutUnit computeReplacedLogicalHeight() const OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698