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

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

Issue 570763003: Remove unneeded bool from RenderView::selectionBounds (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebaselined (again and again) 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/RenderSelectionInfo.h ('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) const OVERR IDE; 116 virtual LayoutRect selectionRectForPaintInvalidation(const RenderLayerModelO bject* paintInvalidationContainer) const OVERRIDE;
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 InlineTextBox* firstTextBox() const { return m_firstTextBox; } 122 InlineTextBox* firstTextBox() const { return m_firstTextBox; }
123 InlineTextBox* lastTextBox() const { return m_lastTextBox; } 123 InlineTextBox* lastTextBox() const { return m_lastTextBox; }
124 124
125 virtual int caretMinOffset() const OVERRIDE; 125 virtual int caretMinOffset() const OVERRIDE;
126 virtual int caretMaxOffset() const OVERRIDE; 126 virtual int caretMaxOffset() const OVERRIDE;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 inline RenderText* Text::renderer() const 238 inline RenderText* Text::renderer() const
239 { 239 {
240 return toRenderText(CharacterData::renderer()); 240 return toRenderText(CharacterData::renderer());
241 } 241 }
242 242
243 void applyTextTransform(const RenderStyle*, String&, UChar); 243 void applyTextTransform(const RenderStyle*, String&, UChar);
244 244
245 } // namespace blink 245 } // namespace blink
246 246
247 #endif // RenderText_h 247 #endif // RenderText_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderSelectionInfo.h ('k') | Source/core/rendering/RenderText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698