| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "platform/fonts/GlyphBuffer.h" | 30 #include "platform/fonts/GlyphBuffer.h" |
| 31 #include "platform/geometry/FloatSize.h" | 31 #include "platform/geometry/FloatSize.h" |
| 32 #include "platform/text/TextBreakIterator.h" | 32 #include "platform/text/TextBreakIterator.h" |
| 33 #include "platform/text/TextRun.h" | 33 #include "platform/text/TextRun.h" |
| 34 #include "wtf/StdLibExtras.h" | 34 #include "wtf/StdLibExtras.h" |
| 35 #include "wtf/unicode/CharacterNames.h" | 35 #include "wtf/unicode/CharacterNames.h" |
| 36 #include <ApplicationServices/ApplicationServices.h> | 36 #include <ApplicationServices/ApplicationServices.h> |
| 37 | 37 |
| 38 using namespace std; | 38 using namespace std; |
| 39 | 39 |
| 40 namespace WebCore { | 40 namespace blink { |
| 41 | 41 |
| 42 ComplexTextController::ComplexTextController(const Font* font, const TextRun& ru
n, bool mayUseNaturalWritingDirection, HashSet<const SimpleFontData*>* fallbackF
onts, bool forTextEmphasis) | 42 ComplexTextController::ComplexTextController(const Font* font, const TextRun& ru
n, bool mayUseNaturalWritingDirection, HashSet<const SimpleFontData*>* fallbackF
onts, bool forTextEmphasis) |
| 43 : m_font(*font) | 43 : m_font(*font) |
| 44 , m_run(run) | 44 , m_run(run) |
| 45 , m_isLTROnly(true) | 45 , m_isLTROnly(true) |
| 46 , m_mayUseNaturalWritingDirection(mayUseNaturalWritingDirection) | 46 , m_mayUseNaturalWritingDirection(mayUseNaturalWritingDirection) |
| 47 , m_forTextEmphasis(forTextEmphasis) | 47 , m_forTextEmphasis(forTextEmphasis) |
| 48 , m_currentCharacter(0) | 48 , m_currentCharacter(0) |
| 49 , m_end(run.length()) | 49 , m_end(run.length()) |
| 50 , m_totalWidth(0) | 50 , m_totalWidth(0) |
| (...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 glyphOrigin.y += advance.height; | 606 glyphOrigin.y += advance.height; |
| 607 | 607 |
| 608 lastCharacterIndex = characterIndex; | 608 lastCharacterIndex = characterIndex; |
| 609 } | 609 } |
| 610 if (!isMonotonic) | 610 if (!isMonotonic) |
| 611 complexTextRun.setIsNonMonotonic(); | 611 complexTextRun.setIsNonMonotonic(); |
| 612 } | 612 } |
| 613 m_totalWidth += widthSinceLastCommit; | 613 m_totalWidth += widthSinceLastCommit; |
| 614 } | 614 } |
| 615 | 615 |
| 616 } // namespace WebCore | 616 } // namespace blink |
| OLD | NEW |