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

Side by Side Diff: Source/core/layout/LayoutTextCombine.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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/layout/LayoutTextCombine.h ('k') | Source/core/layout/LayoutTextControl.h » ('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 * Copyright (C) 2011 Apple Inc. All rights reserved. 2 * Copyright (C) 2011 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 19 matching lines...) Expand all
30 30
31 LayoutTextCombine::LayoutTextCombine(Node* node, PassRefPtr<StringImpl> string) 31 LayoutTextCombine::LayoutTextCombine(Node* node, PassRefPtr<StringImpl> string)
32 : LayoutText(node, string) 32 : LayoutText(node, string)
33 , m_combinedTextWidth(0) 33 , m_combinedTextWidth(0)
34 , m_scaleX(1.0f) 34 , m_scaleX(1.0f)
35 , m_isCombined(false) 35 , m_isCombined(false)
36 , m_needsFontUpdate(false) 36 , m_needsFontUpdate(false)
37 { 37 {
38 } 38 }
39 39
40 void LayoutTextCombine::styleDidChange(StyleDifference diff, const LayoutStyle* oldStyle) 40 void LayoutTextCombine::styleDidChange(StyleDifference diff, const ComputedStyle * oldStyle)
41 { 41 {
42 setStyleInternal(LayoutStyle::clone(styleRef())); 42 setStyleInternal(ComputedStyle::clone(styleRef()));
43 LayoutText::styleDidChange(diff, oldStyle); 43 LayoutText::styleDidChange(diff, oldStyle);
44 44
45 updateIsCombined(); 45 updateIsCombined();
46 } 46 }
47 47
48 void LayoutTextCombine::setTextInternal(PassRefPtr<StringImpl> text) 48 void LayoutTextCombine::setTextInternal(PassRefPtr<StringImpl> text)
49 { 49 {
50 LayoutText::setTextInternal(text); 50 LayoutText::setTextInternal(text);
51 51
52 updateIsCombined(); 52 updateIsCombined();
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 } else { 154 } else {
155 m_scaleX = 1.0f; 155 m_scaleX = 1.0f;
156 } 156 }
157 } 157 }
158 158
159 if (shouldUpdateFont) 159 if (shouldUpdateFont)
160 style()->font().update(fontSelector); 160 style()->font().update(fontSelector);
161 } 161 }
162 162
163 } // namespace blink 163 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTextCombine.h ('k') | Source/core/layout/LayoutTextControl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698