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

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

Issue 640593002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/[css|rendering|clipboard] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebased the patch Created 6 years, 2 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/RenderTextFragment.h
diff --git a/Source/core/rendering/RenderTextFragment.h b/Source/core/rendering/RenderTextFragment.h
index 4f70b4293d4849c91f2a5fb9e1eb84b595671699..55084b1d72cfbf9b5d3ce501cc10b9e360d12bca 100644
--- a/Source/core/rendering/RenderTextFragment.h
+++ b/Source/core/rendering/RenderTextFragment.h
@@ -31,43 +31,43 @@ namespace blink {
// first letter and that must therefore have different styles (and positions in the render tree).
// We cache offsets so that text transformations can be applied in such a way that we can recover
// the original unaltered string from our corresponding DOM node.
-class RenderTextFragment FINAL : public RenderText {
+class RenderTextFragment final : public RenderText {
public:
RenderTextFragment(Node*, StringImpl*, int startOffset, int length);
RenderTextFragment(Node*, StringImpl*);
virtual ~RenderTextFragment();
- virtual void trace(Visitor*) OVERRIDE;
+ virtual void trace(Visitor*) override;
- virtual bool isTextFragment() const OVERRIDE { return true; }
+ virtual bool isTextFragment() const override { return true; }
- virtual bool canBeSelectionLeaf() const OVERRIDE { return node() && node()->hasEditableStyle(); }
+ virtual bool canBeSelectionLeaf() const override { return node() && node()->hasEditableStyle(); }
unsigned start() const { return m_start; }
unsigned end() const { return m_end; }
- virtual unsigned textStartOffset() const OVERRIDE { return start(); }
+ virtual unsigned textStartOffset() const override { return start(); }
RenderBoxModelObject* firstLetter() const { return m_firstLetter; }
void setFirstLetter(RenderBoxModelObject* firstLetter) { m_firstLetter = firstLetter; }
RenderText* firstRenderTextInFirstLetter() const;
StringImpl* contentString() const { return m_contentString.get(); }
- virtual PassRefPtr<StringImpl> originalText() const OVERRIDE;
+ virtual PassRefPtr<StringImpl> originalText() const override;
- virtual void setText(PassRefPtr<StringImpl>, bool force = false) OVERRIDE;
+ virtual void setText(PassRefPtr<StringImpl>, bool force = false) override;
- virtual void transformText() OVERRIDE;
+ virtual void transformText() override;
- virtual const char* renderName() const OVERRIDE FINAL { return "RenderTextFragment"; }
+ virtual const char* renderName() const override final { return "RenderTextFragment"; }
protected:
- virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) OVERRIDE;
+ virtual void styleDidChange(StyleDifference, const RenderStyle* oldStyle) override;
private:
- virtual void willBeDestroyed() OVERRIDE;
+ virtual void willBeDestroyed() override;
- virtual UChar previousCharacter() const OVERRIDE;
+ virtual UChar previousCharacter() const override;
RenderBlock* blockForAccompanyingFirstLetter() const;
- virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) OVERRIDE;
+ virtual void updateHitTestResult(HitTestResult&, const LayoutPoint&) override;
unsigned m_start;
unsigned m_end;
« no previous file with comments | « Source/core/rendering/RenderTextControlSingleLine.h ('k') | Source/core/rendering/RenderThemeChromiumAndroid.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698