| 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. | 3 * Copyright (C) 2003, 2004, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
| 4 * All right reserved. | 4 * All right reserved. |
| 5 * Copyright (C) 2010 Google Inc. All rights reserved. | 5 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 6 * Copyright (C) 2013 Adobe Systems Incorporated. | 6 * Copyright (C) 2013 Adobe Systems Incorporated. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 928 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 bool prohibitBreakInside = m_currentStyle->hasTextCombine() && | 939 bool prohibitBreakInside = m_currentStyle->hasTextCombine() && |
| 940 layoutText.isCombineText() && | 940 layoutText.isCombineText() && |
| 941 LineLayoutTextCombine(layoutText).isCombined(); | 941 LineLayoutTextCombine(layoutText).isCombined(); |
| 942 | 942 |
| 943 // This is currently only used for word-break: break-all, specifically for the | 943 // This is currently only used for word-break: break-all, specifically for the |
| 944 // case where we have a break opportunity within a word, then a string of non- | 944 // case where we have a break opportunity within a word, then a string of non- |
| 945 // breakable content that ends up making our word wider than the current line. | 945 // breakable content that ends up making our word wider than the current line. |
| 946 // See: fast/css3-text/css3-word-break/word-break-all-wrap-with-floats.html | 946 // See: fast/css3-text/css3-word-break/word-break-all-wrap-with-floats.html |
| 947 float widthMeasurementAtLastBreakOpportunity = 0; | 947 float widthMeasurementAtLastBreakOpportunity = 0; |
| 948 | 948 |
| 949 Hyphenation* hyphenation = style.getHyphenation(); | 949 Hyphenation* hyphenation = m_autoWrap ? style.getHyphenation() : nullptr; |
| 950 bool disableSoftHyphen = style.getHyphens() == HyphensNone; | 950 bool disableSoftHyphen = style.getHyphens() == HyphensNone; |
| 951 float hyphenWidth = 0; | 951 float hyphenWidth = 0; |
| 952 bool isLineEmpty = m_lineInfo.isEmpty(); | 952 bool isLineEmpty = m_lineInfo.isEmpty(); |
| 953 | 953 |
| 954 if (layoutText.isSVGInlineText()) { | 954 if (layoutText.isSVGInlineText()) { |
| 955 breakWords = false; | 955 breakWords = false; |
| 956 breakAll = false; | 956 breakAll = false; |
| 957 keepAll = false; | 957 keepAll = false; |
| 958 } | 958 } |
| 959 | 959 |
| (...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1531 | 1531 |
| 1532 if (style.getTextIndentType() == TextIndentHanging) | 1532 if (style.getTextIndentType() == TextIndentHanging) |
| 1533 indentText = indentText == IndentText ? DoNotIndentText : IndentText; | 1533 indentText = indentText == IndentText ? DoNotIndentText : IndentText; |
| 1534 | 1534 |
| 1535 return indentText; | 1535 return indentText; |
| 1536 } | 1536 } |
| 1537 | 1537 |
| 1538 } // namespace blink | 1538 } // namespace blink |
| 1539 | 1539 |
| 1540 #endif // BreakingContextInlineHeaders_h | 1540 #endif // BreakingContextInlineHeaders_h |
| OLD | NEW |