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

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

Issue 2697193011: DO NOT LAND: Test no paint invalidation for LayoutText. (Closed)
Patch Set: Created 3 years, 10 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 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 LayoutText(Node*, PassRefPtr<StringImpl>); 74 LayoutText(Node*, PassRefPtr<StringImpl>);
75 #if DCHECK_IS_ON() 75 #if DCHECK_IS_ON()
76 ~LayoutText() override; 76 ~LayoutText() override;
77 #endif 77 #endif
78 78
79 const char* name() const override { return "LayoutText"; } 79 const char* name() const override { return "LayoutText"; }
80 80
81 virtual bool isTextFragment() const; 81 virtual bool isTextFragment() const;
82 virtual bool isWordBreak() const; 82 virtual bool isWordBreak() const;
83 83
84 LayoutRect visualRect() const override { return parent()->visualRect(); }
85
84 virtual PassRefPtr<StringImpl> originalText() const; 86 virtual PassRefPtr<StringImpl> originalText() const;
85 87
86 void extractTextBox(InlineTextBox*); 88 void extractTextBox(InlineTextBox*);
87 void attachTextBox(InlineTextBox*); 89 void attachTextBox(InlineTextBox*);
88 void removeTextBox(InlineTextBox*); 90 void removeTextBox(InlineTextBox*);
89 91
90 const String& text() const { return m_text; } 92 const String& text() const { return m_text; }
91 virtual unsigned textStartOffset() const { return 0; } 93 virtual unsigned textStartOffset() const { return 0; }
92 String plainText() const; 94 String plainText() const;
93 95
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 355
354 inline LayoutText* Text::layoutObject() const { 356 inline LayoutText* Text::layoutObject() const {
355 return toLayoutText(CharacterData::layoutObject()); 357 return toLayoutText(CharacterData::layoutObject());
356 } 358 }
357 359
358 void applyTextTransform(const ComputedStyle*, String&, UChar); 360 void applyTextTransform(const ComputedStyle*, String&, UChar);
359 361
360 } // namespace blink 362 } // namespace blink
361 363
362 #endif // LayoutText_h 364 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.cpp ('k') | third_party/WebKit/Source/core/paint/PaintInvalidator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698