OLD | NEW |
---|---|
1 /* | 1 /* |
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) |
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) | 3 * (C) 2000 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Dirk Mueller (mueller@kde.org) | 4 * (C) 2000 Dirk Mueller (mueller@kde.org) |
5 * Copyright (C) 2003, 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. | 5 * Copyright (C) 2003, 2006, 2007, 2010, 2011 Apple Inc. All rights reserved. |
6 * Copyright (C) 2008 Holger Hans Peter Freyther | 6 * Copyright (C) 2008 Holger Hans Peter Freyther |
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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
149 } | 149 } |
150 #if OS(MACOSX) | 150 #if OS(MACOSX) |
151 const SimpleFontData* fontDataForCombiningCharacterSequence(const UChar*, si ze_t length, FontDataVariant) const; | 151 const SimpleFontData* fontDataForCombiningCharacterSequence(const UChar*, si ze_t length, FontDataVariant) const; |
152 #endif | 152 #endif |
153 std::pair<GlyphData, GlyphPage*> glyphDataAndPageForCharacter(UChar32, bool mirror, FontDataVariant = AutoVariant) const; | 153 std::pair<GlyphData, GlyphPage*> glyphDataAndPageForCharacter(UChar32, bool mirror, FontDataVariant = AutoVariant) const; |
154 bool primaryFontHasGlyphForCharacter(UChar32) const; | 154 bool primaryFontHasGlyphForCharacter(UChar32) const; |
155 | 155 |
156 static bool isCJKIdeograph(UChar32); | 156 static bool isCJKIdeograph(UChar32); |
157 static bool isCJKIdeographOrSymbol(UChar32); | 157 static bool isCJKIdeographOrSymbol(UChar32); |
158 | 158 |
159 static unsigned expansionOpportunityCount(const LChar*, size_t length, TextD irection, bool& isAfterExpansion); | 159 static unsigned expansionOpportunityCount(const LChar*, size_t length, TextD irection, bool& isAfterExpansion, bool distributeJustification = false); |
leviw_travelin_and_unemployed
2013/11/01 20:39:14
Yech, boolean params! Why not just use the TextJus
dw.im
2013/11/02 03:13:01
Because.... I only need to check text-justify is d
dw.im
2013/11/04 02:11:09
I used boolean parameter here again,
because incl
| |
160 static unsigned expansionOpportunityCount(const UChar*, size_t length, TextD irection, bool& isAfterExpansion); | 160 static unsigned expansionOpportunityCount(const UChar*, size_t length, TextD irection, bool& isAfterExpansion, bool distributeJustification = false); |
161 | 161 |
162 static void setShouldUseSmoothing(bool); | 162 static void setShouldUseSmoothing(bool); |
163 static bool shouldUseSmoothing(); | 163 static bool shouldUseSmoothing(); |
164 | 164 |
165 enum CodePath { Auto, Simple, Complex, SimpleWithGlyphOverflow }; | 165 enum CodePath { Auto, Simple, Complex, SimpleWithGlyphOverflow }; |
166 CodePath codePath(const TextRun&) const; | 166 CodePath codePath(const TextRun&) const; |
167 static CodePath characterRangeCodePath(const LChar*, unsigned) { return Simp le; } | 167 static CodePath characterRangeCodePath(const LChar*, unsigned) { return Simp le; } |
168 static CodePath characterRangeCodePath(const UChar*, unsigned len); | 168 static CodePath characterRangeCodePath(const UChar*, unsigned len); |
169 | 169 |
170 private: | 170 private: |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
333 | 333 |
334 namespace WTF { | 334 namespace WTF { |
335 | 335 |
336 template <> struct OwnedPtrDeleter<WebCore::TextLayout> { | 336 template <> struct OwnedPtrDeleter<WebCore::TextLayout> { |
337 static void deletePtr(WebCore::TextLayout*); | 337 static void deletePtr(WebCore::TextLayout*); |
338 }; | 338 }; |
339 | 339 |
340 } | 340 } |
341 | 341 |
342 #endif | 342 #endif |
OLD | NEW |