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

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

Issue 566973002: Constify the rendering/ selection code (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderReplaced.cpp ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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-2009, 2013 Apple Inc. All rights reserved. 4 * Copyright (C) 2004-2009, 2013 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 float firstRunX() const; 106 float firstRunX() const;
107 float firstRunY() const; 107 float firstRunY() const;
108 108
109 virtual void setText(PassRefPtr<StringImpl>, bool force = false); 109 virtual void setText(PassRefPtr<StringImpl>, bool force = false);
110 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len , bool force = false); 110 void setTextWithOffset(PassRefPtr<StringImpl>, unsigned offset, unsigned len , bool force = false);
111 111
112 virtual void transformText(); 112 virtual void transformText();
113 113
114 virtual bool canBeSelectionLeaf() const OVERRIDE { return true; } 114 virtual bool canBeSelectionLeaf() const OVERRIDE { return true; }
115 virtual void setSelectionState(SelectionState s) OVERRIDE FINAL; 115 virtual void setSelectionState(SelectionState s) OVERRIDE FINAL;
116 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer, bool clipToVisibleContent = true) OVERRIDE; 116 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer, bool clipToVisibleContent = true) const OVERR IDE;
117 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) OVERRIDE; 117 virtual LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* e xtraWidthToEndOfLine = 0) OVERRIDE;
118 118
119 LayoutUnit marginLeft() const { return minimumValueForLength(style()->margin Left(), 0); } 119 LayoutUnit marginLeft() const { return minimumValueForLength(style()->margin Left(), 0); }
120 LayoutUnit marginRight() const { return minimumValueForLength(style()->margi nRight(), 0); } 120 LayoutUnit marginRight() const { return minimumValueForLength(style()->margi nRight(), 0); }
121 121
122 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t OVERRIDE FINAL; 122 virtual LayoutRect clippedOverflowRectForPaintInvalidation(const RenderLayer ModelObject* paintInvalidationContainer, const PaintInvalidationState* = 0) cons t OVERRIDE FINAL;
123 virtual const RenderLayerModelObject* containerForPaintInvalidation() const OVERRIDE; 123 virtual const RenderLayerModelObject* containerForPaintInvalidation() const OVERRIDE;
124 124
125 InlineTextBox* firstTextBox() const { return m_firstTextBox; } 125 InlineTextBox* firstTextBox() const { return m_firstTextBox; }
126 InlineTextBox* lastTextBox() const { return m_lastTextBox; } 126 InlineTextBox* lastTextBox() const { return m_lastTextBox; }
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 inline RenderText* Text::renderer() const 244 inline RenderText* Text::renderer() const
245 { 245 {
246 return toRenderText(CharacterData::renderer()); 246 return toRenderText(CharacterData::renderer());
247 } 247 }
248 248
249 void applyTextTransform(const RenderStyle*, String&, UChar); 249 void applyTextTransform(const RenderStyle*, String&, UChar);
250 250
251 } // namespace blink 251 } // namespace blink
252 252
253 #endif // RenderText_h 253 #endif // RenderText_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderReplaced.cpp ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698