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

Unified Diff: Source/core/rendering/RenderText.h

Issue 129173004: Update rendering classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 11 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
« no previous file with comments | « Source/core/rendering/RenderTableSection.h ('k') | Source/core/rendering/RenderTextControl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderText.h
diff --git a/Source/core/rendering/RenderText.h b/Source/core/rendering/RenderText.h
index 4f8e0fc7068288ea7b5d35acc61c9424e0e23483..8c311180c47ac2b24c032e34eef0a930ea55a65e 100755
--- a/Source/core/rendering/RenderText.h
+++ b/Source/core/rendering/RenderText.h
@@ -44,7 +44,7 @@ public:
virtual ~RenderText();
#endif
- virtual const char* renderName() const;
+ virtual const char* renderName() const OVERRIDE;
virtual bool isTextFragment() const;
virtual bool isWordBreak() const;
@@ -109,10 +109,10 @@ public:
virtual void transformText();
- virtual bool canBeSelectionLeaf() const { return true; }
+ virtual bool canBeSelectionLeaf() const OVERRIDE { return true; }
virtual void setSelectionState(SelectionState s) OVERRIDE FINAL;
virtual LayoutRect selectionRectForRepaint(const RenderLayerModelObject* repaintContainer, bool clipToVisibleContent = true) OVERRIDE;
- virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = 0);
+ virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidthToEndOfLine = 0) OVERRIDE;
LayoutUnit marginLeft() const { return minimumValueForLength(style()->marginLeft(), 0); }
LayoutUnit marginRight() const { return minimumValueForLength(style()->marginRight(), 0); }
@@ -122,8 +122,8 @@ public:
InlineTextBox* firstTextBox() const { return m_firstTextBox; }
InlineTextBox* lastTextBox() const { return m_lastTextBox; }
- virtual int caretMinOffset() const;
- virtual int caretMaxOffset() const;
+ virtual int caretMinOffset() const OVERRIDE;
+ virtual int caretMaxOffset() const OVERRIDE;
unsigned renderedTextLength() const;
virtual int previousOffset(int current) const OVERRIDE FINAL;
@@ -150,10 +150,10 @@ public:
protected:
virtual void computePreferredLogicalWidths(float leadWidth);
- virtual void willBeDestroyed();
+ virtual void willBeDestroyed() OVERRIDE;
virtual void styleWillChange(StyleDifference, const RenderStyle*) OVERRIDE FINAL { }
- virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle);
+ virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
virtual void setTextInternal(PassRefPtr<StringImpl>);
virtual UChar previousCharacter() const;
« no previous file with comments | « Source/core/rendering/RenderTableSection.h ('k') | Source/core/rendering/RenderTextControl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698