Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontDescription.h

Issue 2815523002: Rename Script() returning UScriptCode to GetScript() (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights
6 * reserved. 6 * reserved.
7 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 7 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 FontSmoothingMode FontSmoothing() const { 186 FontSmoothingMode FontSmoothing() const {
187 return static_cast<FontSmoothingMode>(fields_.font_smoothing_); 187 return static_cast<FontSmoothingMode>(fields_.font_smoothing_);
188 } 188 }
189 TextRenderingMode TextRendering() const { 189 TextRenderingMode TextRendering() const {
190 return static_cast<TextRenderingMode>(fields_.text_rendering_); 190 return static_cast<TextRenderingMode>(fields_.text_rendering_);
191 } 191 }
192 const LayoutLocale* Locale() const { return locale_.Get(); } 192 const LayoutLocale* Locale() const { return locale_.Get(); }
193 const LayoutLocale& LocaleOrDefault() const { 193 const LayoutLocale& LocaleOrDefault() const {
194 return LayoutLocale::ValueOrDefault(locale_.Get()); 194 return LayoutLocale::ValueOrDefault(locale_.Get());
195 } 195 }
196 UScriptCode Script() const { return LocaleOrDefault().Script(); } 196 UScriptCode GetScript() const { return LocaleOrDefault().GetScript(); }
197 bool IsSyntheticBold() const { return fields_.synthetic_bold_; } 197 bool IsSyntheticBold() const { return fields_.synthetic_bold_; }
198 bool IsSyntheticItalic() const { return fields_.synthetic_italic_; } 198 bool IsSyntheticItalic() const { return fields_.synthetic_italic_; }
199 bool UseSubpixelPositioning() const { 199 bool UseSubpixelPositioning() const {
200 return fields_.subpixel_text_position_; 200 return fields_.subpixel_text_position_;
201 } 201 }
202 202
203 FontTraits Traits() const; 203 FontTraits Traits() const;
204 float WordSpacing() const { return word_spacing_; } 204 float WordSpacing() const { return word_spacing_; }
205 float LetterSpacing() const { return letter_spacing_; } 205 float LetterSpacing() const { return letter_spacing_; }
206 FontOrientation Orientation() const { 206 FontOrientation Orientation() const {
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 }; 390 };
391 391
392 static TypesettingFeatures default_typesetting_features_; 392 static TypesettingFeatures default_typesetting_features_;
393 393
394 static bool use_subpixel_text_positioning_; 394 static bool use_subpixel_text_positioning_;
395 }; 395 };
396 396
397 } // namespace blink 397 } // namespace blink
398 398
399 #endif 399 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698