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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/Font.cpp

Issue 1672553004: Use FontFallbackPriority Fonts in FontFallbackIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win rebaselines for emoji related test Created 4 years, 9 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 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, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2006, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (c) 2007, 2008, 2010 Google Inc. All rights reserved. 6 * Copyright (c) 2007, 2008, 2010 Google Inc. All rights reserved.
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 490 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 if (data.glyph != verticalRightData.glyph) 501 if (data.glyph != verticalRightData.glyph)
502 return data; 502 return data;
503 // The glyphs are identical, meaning that we should just use the hor izontal glyph. 503 // The glyphs are identical, meaning that we should just use the hor izontal glyph.
504 if (verticalRightData.fontData) 504 if (verticalRightData.fontData)
505 return verticalRightData; 505 return verticalRightData;
506 } 506 }
507 } 507 }
508 return data; 508 return data;
509 } 509 }
510 510
511 PassRefPtr<FontFallbackIterator> Font::createFontFallbackIterator() const 511 PassRefPtr<FontFallbackIterator> Font::createFontFallbackIterator(
512 FontFallbackPriority fallbackPriority) const
512 { 513 {
513 return FontFallbackIterator::create(m_fontDescription, m_fontFallbackList); 514 return FontFallbackIterator::create(m_fontDescription,
515 m_fontFallbackList,
516 fallbackPriority);
514 } 517 }
515 518
516 GlyphData Font::glyphDataForCharacter(UChar32& c, bool mirror, bool normalizeSpa ce, FontDataVariant variant) const 519 GlyphData Font::glyphDataForCharacter(UChar32& c, bool mirror, bool normalizeSpa ce, FontDataVariant variant) const
517 { 520 {
518 ASSERT(isMainThread()); 521 ASSERT(isMainThread());
519 522
520 if (variant == AutoVariant) { 523 if (variant == AutoVariant) {
521 if (m_fontDescription.variant() == FontVariantSmallCaps) { 524 if (m_fontDescription.variant() == FontVariantSmallCaps) {
522 bool includeDefault = false; 525 bool includeDefault = false;
523 UChar32 upperC = toUpper(c, m_fontDescription.locale(includeDefault) ); 526 UChar32 upperC = toUpper(c, m_fontDescription.locale(includeDefault) );
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 { 827 {
825 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts(); 828 return m_fontFallbackList && m_fontFallbackList->loadingCustomFonts();
826 } 829 }
827 830
828 bool Font::isFallbackValid() const 831 bool Font::isFallbackValid() const
829 { 832 {
830 return !m_fontFallbackList || m_fontFallbackList->isValid(); 833 return !m_fontFallbackList || m_fontFallbackList->isValid();
831 } 834 }
832 835
833 } // namespace blink 836 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/fonts/Font.h ('k') | third_party/WebKit/Source/platform/fonts/FontDataRange.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698