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

Unified Diff: Source/core/rendering/RenderTextControl.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/RenderTextControl.h
diff --git a/Source/core/rendering/RenderTextControl.h b/Source/core/rendering/RenderTextControl.h
index a042009448123b172bea15a5a81e3223cacd9a4f..4bbb1b4d5876cda98eaa7080d57313d5cb90d7cc 100644
--- a/Source/core/rendering/RenderTextControl.h
+++ b/Source/core/rendering/RenderTextControl.h
@@ -69,9 +69,10 @@ protected:
// element as an implementation detail which would normally be affected by this.
virtual int inlineBlockBaseline(LineDirectionMode direction) const OVERRIDE { return lastLineBoxBaseline(direction); }
+ virtual bool isOfType(RenderObjectType type) const OVERRIDE { return type == RenderObjectTextControl || RenderBlockFlow::isOfType(type); }
+
private:
virtual const char* renderName() const OVERRIDE { return "RenderTextControl"; }
- virtual bool isTextControl() const OVERRIDE FINAL { return true; }
virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, LayoutUnit& maxLogicalWidth) const OVERRIDE FINAL;
virtual void computePreferredLogicalWidths() OVERRIDE FINAL;
virtual void removeLeftoverAnonymousBlock(RenderBlock*) OVERRIDE FINAL { }

Powered by Google App Engine
This is Rietveld 408576698