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

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

Issue 2795413003: Rewrite references to "wtf/" to "platform/wtf/" in platform/fonts. (Closed)
Patch Set: 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) 2015 Google Inc. All rights reserved. 2 * Copyright (C) 2015 Google 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 13 matching lines...) Expand all
24 */ 24 */
25 25
26 #include "platform/fonts/shaping/CachingWordShaper.h" 26 #include "platform/fonts/shaping/CachingWordShaper.h"
27 27
28 #include "platform/fonts/CharacterRange.h" 28 #include "platform/fonts/CharacterRange.h"
29 #include "platform/fonts/SimpleFontData.h" 29 #include "platform/fonts/SimpleFontData.h"
30 #include "platform/fonts/shaping/CachingWordShapeIterator.h" 30 #include "platform/fonts/shaping/CachingWordShapeIterator.h"
31 #include "platform/fonts/shaping/HarfBuzzShaper.h" 31 #include "platform/fonts/shaping/HarfBuzzShaper.h"
32 #include "platform/fonts/shaping/ShapeCache.h" 32 #include "platform/fonts/shaping/ShapeCache.h"
33 #include "platform/fonts/shaping/ShapeResultBuffer.h" 33 #include "platform/fonts/shaping/ShapeResultBuffer.h"
34 #include "wtf/text/CharacterNames.h" 34 #include "platform/wtf/text/CharacterNames.h"
35 35
36 namespace blink { 36 namespace blink {
37 37
38 ShapeCache* CachingWordShaper::shapeCache() const { 38 ShapeCache* CachingWordShaper::shapeCache() const {
39 return m_font.m_fontFallbackList->shapeCache(m_font.m_fontDescription); 39 return m_font.m_fontFallbackList->shapeCache(m_font.m_fontDescription);
40 } 40 }
41 41
42 float CachingWordShaper::width(const TextRun& run, 42 float CachingWordShaper::width(const TextRun& run,
43 HashSet<const SimpleFontData*>* fallbackFonts, 43 HashSet<const SimpleFontData*>* fallbackFonts,
44 FloatRect* glyphBounds) { 44 FloatRect* glyphBounds) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 142
143 GlyphData CachingWordShaper::emphasisMarkGlyphData( 143 GlyphData CachingWordShaper::emphasisMarkGlyphData(
144 const TextRun& emphasisMarkRun) const { 144 const TextRun& emphasisMarkRun) const {
145 ShapeResultBuffer buffer; 145 ShapeResultBuffer buffer;
146 shapeResultsForRun(shapeCache(), &m_font, emphasisMarkRun, &buffer); 146 shapeResultsForRun(shapeCache(), &m_font, emphasisMarkRun, &buffer);
147 147
148 return buffer.emphasisMarkGlyphData(m_font.m_fontDescription); 148 return buffer.emphasisMarkGlyphData(m_font.m_fontDescription);
149 } 149 }
150 150
151 }; // namespace blink 151 }; // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698