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

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

Issue 1993713002: Move line painting to BlockFlowPainter. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Invoke BlockFlowPainter from BlockPainter instead. Created 4 years, 7 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // but are pointers into the enclosing inline / block (see LayoutInline's 59 // but are pointers into the enclosing inline / block (see LayoutInline's
60 // and LayoutBlock's m_lineBoxes). 60 // and LayoutBlock's m_lineBoxes).
61 // 61 //
62 // 62 //
63 // This class implements the preferred logical widths computation 63 // This class implements the preferred logical widths computation
64 // for its underlying text. The widths are stored into m_minWidth 64 // for its underlying text. The widths are stored into m_minWidth
65 // and m_maxWidth. They are computed lazily based on 65 // and m_maxWidth. They are computed lazily based on
66 // m_preferredLogicalWidthsDirty. 66 // m_preferredLogicalWidthsDirty.
67 // 67 //
68 // The previous comment applies also for painting. See e.g. 68 // The previous comment applies also for painting. See e.g.
69 // BlockPainter::paintContents in particular the use of LineBoxListPainter. 69 // BlockFlowPainter::paintContents in particular the use of LineBoxListPainter.
70 class CORE_EXPORT LayoutText : public LayoutObject { 70 class CORE_EXPORT LayoutText : public LayoutObject {
71 public: 71 public:
72 // FIXME: If the node argument is not a Text node or the string argument is 72 // FIXME: If the node argument is not a Text node or the string argument is
73 // not the content of the Text node, updating text-transform property 73 // not the content of the Text node, updating text-transform property
74 // doesn't re-transform the string. 74 // doesn't re-transform the string.
75 LayoutText(Node*, PassRefPtr<StringImpl>); 75 LayoutText(Node*, PassRefPtr<StringImpl>);
76 #if ENABLE(ASSERT) 76 #if ENABLE(ASSERT)
77 ~LayoutText() override; 77 ~LayoutText() override;
78 #endif 78 #endif
79 79
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 inline LayoutText* Text::layoutObject() const 291 inline LayoutText* Text::layoutObject() const
292 { 292 {
293 return toLayoutText(CharacterData::layoutObject()); 293 return toLayoutText(CharacterData::layoutObject());
294 } 294 }
295 295
296 void applyTextTransform(const ComputedStyle*, String&, UChar); 296 void applyTextTransform(const ComputedStyle*, String&, UChar);
297 297
298 } // namespace blink 298 } // namespace blink
299 299
300 #endif // LayoutText_h 300 #endif // LayoutText_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/paint/BlockFlowPainter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698