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

Side by Side Diff: Source/core/rendering/RenderTextFragment.h

Issue 14383002: Apply FINAL to the RenderObject hierarchy. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase, add OVERRIDEs. Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * (C) 1999 Lars Knoll (knoll@kde.org) 2 * (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Dirk Mueller (mueller@kde.org) 3 * (C) 2000 Dirk Mueller (mueller@kde.org)
4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 13 matching lines...) Expand all
24 #define RenderTextFragment_h 24 #define RenderTextFragment_h
25 25
26 #include "RenderText.h" 26 #include "RenderText.h"
27 27
28 namespace WebCore { 28 namespace WebCore {
29 29
30 // Used to represent a text substring of an element, e.g., for text runs that ar e split because of 30 // Used to represent a text substring of an element, e.g., for text runs that ar e split because of
31 // first letter and that must therefore have different styles (and positions in the render tree). 31 // first letter and that must therefore have different styles (and positions in the render tree).
32 // We cache offsets so that text transformations can be applied in such a way th at we can recover 32 // We cache offsets so that text transformations can be applied in such a way th at we can recover
33 // the original unaltered string from our corresponding DOM node. 33 // the original unaltered string from our corresponding DOM node.
34 class RenderTextFragment : public RenderText { 34 class RenderTextFragment FINAL : public RenderText {
35 public: 35 public:
36 RenderTextFragment(Node*, StringImpl*, int startOffset, int length); 36 RenderTextFragment(Node*, StringImpl*, int startOffset, int length);
37 RenderTextFragment(Node*, StringImpl*); 37 RenderTextFragment(Node*, StringImpl*);
38 virtual ~RenderTextFragment(); 38 virtual ~RenderTextFragment();
39 39
40 virtual bool isTextFragment() const { return true; } 40 virtual bool isTextFragment() const { return true; }
41 41
42 virtual bool canBeSelectionLeaf() const OVERRIDE { return node() && node()-> rendererIsEditable(); } 42 virtual bool canBeSelectionLeaf() const OVERRIDE { return node() && node()-> rendererIsEditable(); }
43 43
44 unsigned start() const { return m_start; } 44 unsigned start() const { return m_start; }
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 ASSERT_WITH_SECURITY_IMPLICATION(!object || toRenderText(object)->isTextFrag ment()); 80 ASSERT_WITH_SECURITY_IMPLICATION(!object || toRenderText(object)->isTextFrag ment());
81 return static_cast<const RenderTextFragment*>(object); 81 return static_cast<const RenderTextFragment*>(object);
82 } 82 }
83 83
84 // This will catch anyone doing an unnecessary cast. 84 // This will catch anyone doing an unnecessary cast.
85 void toRenderTextFragment(const RenderTextFragment*); 85 void toRenderTextFragment(const RenderTextFragment*);
86 86
87 } // namespace WebCore 87 } // namespace WebCore
88 88
89 #endif // RenderTextFragment_h 89 #endif // RenderTextFragment_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTextControlMultiLine.h ('k') | Source/core/rendering/RenderTextTrackCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698