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

Unified Diff: Source/core/rendering/RenderRuby.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/RenderRuby.h
diff --git a/Source/core/rendering/RenderRuby.h b/Source/core/rendering/RenderRuby.h
index 2058cad94885639f08f914d849a06d9f9cae5c9e..8f1453c29c80653e9ae1f0a508856d0491217318 100644
--- a/Source/core/rendering/RenderRuby.h
+++ b/Source/core/rendering/RenderRuby.h
@@ -63,7 +63,7 @@ protected:
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
private:
- virtual bool isRuby() const OVERRIDE { return true; }
+ virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectRuby || RenderInline::isOfType(type); }
virtual const char* renderName() const OVERRIDE { return "RenderRuby (inline)"; }
virtual bool createsAnonymousWrapper() const OVERRIDE { return true; }
};
@@ -81,7 +81,7 @@ protected:
virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
private:
- virtual bool isRuby() const OVERRIDE { return true; }
+ virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectRuby || RenderBlockFlow::isOfType(type); }
virtual const char* renderName() const OVERRIDE { return "RenderRuby (block)"; }
virtual bool createsAnonymousWrapper() const OVERRIDE { return true; }
virtual void removeLeftoverAnonymousBlock(RenderBlock*) OVERRIDE { ASSERT_NOT_REACHED(); }

Powered by Google App Engine
This is Rietveld 408576698