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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutText.h

Issue 1363913004: [Reland] Invalidate whitespace text on text color changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 virtual void transformText(); 146 virtual void transformText();
147 147
148 bool canBeSelectionLeaf() const override { return true; } 148 bool canBeSelectionLeaf() const override { return true; }
149 void setSelectionState(SelectionState) final; 149 void setSelectionState(SelectionState) final;
150 LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* pai ntInvalidationContainer) const override; 150 LayoutRect selectionRectForPaintInvalidation(const LayoutBoxModelObject* pai ntInvalidationContainer) const override;
151 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt hToEndOfLine = nullptr) override; 151 LayoutRect localCaretRect(InlineBox*, int caretOffset, LayoutUnit* extraWidt hToEndOfLine = nullptr) override;
152 152
153 InlineTextBox* firstTextBox() const { return m_firstTextBox; } 153 InlineTextBox* firstTextBox() const { return m_firstTextBox; }
154 InlineTextBox* lastTextBox() const { return m_lastTextBox; } 154 InlineTextBox* lastTextBox() const { return m_lastTextBox; }
155 155
156 // True if we have inline text box children which implies rendered text (or whitespace) output.
157 bool hasTextBoxes() const { return firstTextBox(); }
158
156 int caretMinOffset() const override; 159 int caretMinOffset() const override;
157 int caretMaxOffset() const override; 160 int caretMaxOffset() const override;
158 unsigned resolvedTextLength() const; 161 unsigned resolvedTextLength() const;
159 162
160 int previousOffset(int current) const final; 163 int previousOffset(int current) const final;
161 int previousOffsetForBackwardDeletion(int current) const final; 164 int previousOffsetForBackwardDeletion(int current) const final;
162 int nextOffset(int current) const final; 165 int nextOffset(int current) const final;
163 166
164 bool containsReversedText() const { return m_containsReversedText; } 167 bool containsReversedText() const { return m_containsReversedText; }
165 168
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 inline LayoutText* Text::layoutObject() const 283 inline LayoutText* Text::layoutObject() const
281 { 284 {
282 return toLayoutText(CharacterData::layoutObject()); 285 return toLayoutText(CharacterData::layoutObject());
283 } 286 }
284 287
285 void applyTextTransform(const ComputedStyle*, String&, UChar); 288 void applyTextTransform(const ComputedStyle*, String&, UChar);
286 289
287 } // namespace blink 290 } // namespace blink
288 291
289 #endif // LayoutText_h 292 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTreeAsText.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698