OLD | NEW |
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, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 4 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights 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 1503 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1514 charactersWithHyphen->append(string); | 1514 charactersWithHyphen->append(string); |
1515 charactersWithHyphen->append(hyphenString); | 1515 charactersWithHyphen->append(hyphenString); |
1516 string = charactersWithHyphen->toString().createView(); | 1516 string = charactersWithHyphen->toString().createView(); |
1517 maximumLength = string.length(); | 1517 maximumLength = string.length(); |
1518 } | 1518 } |
1519 | 1519 |
1520 ASSERT(maximumLength >= static_cast<int>(string.length())); | 1520 ASSERT(maximumLength >= static_cast<int>(string.length())); |
1521 | 1521 |
1522 TextRun run(string, textPos(), expansion(), expansionBehavior(), direction()
, dirOverride() || style->rtlOrdering() == VisualOrder, !textRenderer->canUseSim
pleFontCodePath()); | 1522 TextRun run(string, textPos(), expansion(), expansionBehavior(), direction()
, dirOverride() || style->rtlOrdering() == VisualOrder, !textRenderer->canUseSim
pleFontCodePath()); |
1523 run.setTabSize(!style->collapseWhiteSpace(), style->tabSize()); | 1523 run.setTabSize(!style->collapseWhiteSpace(), style->tabSize()); |
| 1524 run.setCharacterScanForCodePath(!textRenderer->canUseSimpleFontCodePath()); |
1524 run.setDistributeJustification(style->textJustify() == TextJustifyDistribute
); | 1525 run.setDistributeJustification(style->textJustify() == TextJustifyDistribute
); |
1525 if (textRunNeedsRenderingContext(font)) | 1526 if (textRunNeedsRenderingContext(font)) |
1526 run.setRenderingContext(SVGTextRunRenderingContext::create(textRenderer)
); | 1527 run.setRenderingContext(SVGTextRunRenderingContext::create(textRenderer)
); |
1527 | 1528 |
1528 // Propagate the maximum length of the characters buffer to the TextRun, eve
n when we're only processing a substring. | 1529 // Propagate the maximum length of the characters buffer to the TextRun, eve
n when we're only processing a substring. |
1529 run.setCharactersLength(maximumLength); | 1530 run.setCharactersLength(maximumLength); |
1530 ASSERT(run.charactersLength() >= run.length()); | 1531 ASSERT(run.charactersLength() >= run.length()); |
1531 return run; | 1532 return run; |
1532 } | 1533 } |
1533 | 1534 |
(...skipping 22 matching lines...) Expand all Loading... |
1556 printedCharacters = fprintf(stderr, "\t%s %p", obj->renderName(), obj); | 1557 printedCharacters = fprintf(stderr, "\t%s %p", obj->renderName(), obj); |
1557 const int rendererCharacterOffset = 24; | 1558 const int rendererCharacterOffset = 24; |
1558 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) | 1559 for (; printedCharacters < rendererCharacterOffset; printedCharacters++) |
1559 fputc(' ', stderr); | 1560 fputc(' ', stderr); |
1560 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); | 1561 fprintf(stderr, "(%d,%d) \"%s\"\n", start(), start() + len(), value.utf8().d
ata()); |
1561 } | 1562 } |
1562 | 1563 |
1563 #endif | 1564 #endif |
1564 | 1565 |
1565 } // namespace WebCore | 1566 } // namespace WebCore |
OLD | NEW |