| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ight reserved. | 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ight reserved. |
| 4 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 5 * Copyright (C) 2013 Adobe Systems Incorporated. | 5 * Copyright (C) 2013 Adobe Systems Incorporated. |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 728 bool breakAll = m_currentStyle->wordBreak() == BreakAllWordBreak && m_autoWr
ap; | 728 bool breakAll = m_currentStyle->wordBreak() == BreakAllWordBreak && m_autoWr
ap; |
| 729 bool keepAll = m_currentStyle->wordBreak() == KeepAllWordBreak && m_autoWrap
; | 729 bool keepAll = m_currentStyle->wordBreak() == KeepAllWordBreak && m_autoWrap
; |
| 730 bool prohibitBreakInside = m_currentStyle->hasTextCombine() && layoutText.is
CombineText() && LineLayoutTextCombine(layoutText).isCombined(); | 730 bool prohibitBreakInside = m_currentStyle->hasTextCombine() && layoutText.is
CombineText() && LineLayoutTextCombine(layoutText).isCombined(); |
| 731 | 731 |
| 732 // This is currently only used for word-break: break-all, specifically for t
he case | 732 // This is currently only used for word-break: break-all, specifically for t
he case |
| 733 // where we have a break opportunity within a word, then a string of non-bre
akable | 733 // where we have a break opportunity within a word, then a string of non-bre
akable |
| 734 // content that ends up making our word wider than the current line. | 734 // content that ends up making our word wider than the current line. |
| 735 // See: fast/css3-text/css3-word-break/word-break-all-wrap-with-floats.html | 735 // See: fast/css3-text/css3-word-break/word-break-all-wrap-with-floats.html |
| 736 float widthMeasurementAtLastBreakOpportunity = 0; | 736 float widthMeasurementAtLastBreakOpportunity = 0; |
| 737 | 737 |
| 738 Hyphenation* hyphenation = style.getHyphens() == HyphensAuto | 738 Hyphenation* hyphenation = style.getHyphenation(); |
| 739 ? Hyphenation::get(font.getFontDescription().locale()) : nullptr; | |
| 740 bool disableSoftHyphen = style.getHyphens() == HyphensNone; | 739 bool disableSoftHyphen = style.getHyphens() == HyphensNone; |
| 741 float hyphenWidth = 0; | 740 float hyphenWidth = 0; |
| 742 | 741 |
| 743 if (layoutText.isSVGInlineText()) { | 742 if (layoutText.isSVGInlineText()) { |
| 744 breakWords = false; | 743 breakWords = false; |
| 745 breakAll = false; | 744 breakAll = false; |
| 746 keepAll = false; | 745 keepAll = false; |
| 747 } | 746 } |
| 748 | 747 |
| 749 // Use LineBreakType::Normal for break-all. When a word does not fit, | 748 // Use LineBreakType::Normal for break-all. When a word does not fit, |
| (...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1185 | 1184 |
| 1186 if (style.getTextIndentType() == TextIndentHanging) | 1185 if (style.getTextIndentType() == TextIndentHanging) |
| 1187 indentText = indentText == IndentText ? DoNotIndentText : IndentText; | 1186 indentText = indentText == IndentText ? DoNotIndentText : IndentText; |
| 1188 | 1187 |
| 1189 return indentText; | 1188 return indentText; |
| 1190 } | 1189 } |
| 1191 | 1190 |
| 1192 } // namespace blink | 1191 } // namespace blink |
| 1193 | 1192 |
| 1194 #endif // BreakingContextInlineHeaders_h | 1193 #endif // BreakingContextInlineHeaders_h |
| OLD | NEW |