| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |