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

Side by Side Diff: Source/core/platform/graphics/WidthIterator.cpp

Issue 64643009: Remove duplicated headers from core/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 7 years 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) 2003, 2006, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed. 2 * Copyright (C) 2003, 2006, 2008, 2009, 2010, 2011 Apple Inc. All rights reserv ed.
3 * Copyright (C) 2008 Holger Hans Peter Freyther 3 * Copyright (C) 2008 Holger Hans Peter Freyther
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details. 13 * Library General Public License for more details.
14 * 14 *
15 * You should have received a copy of the GNU Library General Public License 15 * You should have received a copy of the GNU Library General Public License
16 * along with this library; see the file COPYING.LIB. If not, write to 16 * along with this library; see the file COPYING.LIB. If not, write to
17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA. 18 * Boston, MA 02110-1301, USA.
19 * 19 *
20 */ 20 */
21 21
22 #include "config.h" 22 #include "config.h"
23 #include "core/platform/graphics/WidthIterator.h" 23 #include "core/platform/graphics/WidthIterator.h"
24 24
25 #include "core/platform/graphics/Font.h"
26 #include "core/platform/graphics/SimpleFontData.h" 25 #include "core/platform/graphics/SimpleFontData.h"
27 #include "platform/fonts/GlyphBuffer.h" 26 #include "platform/fonts/GlyphBuffer.h"
28 #include "platform/fonts/Latin1TextIterator.h" 27 #include "platform/fonts/Latin1TextIterator.h"
29 #include "platform/text/SurrogatePairAwareTextIterator.h" 28 #include "platform/text/SurrogatePairAwareTextIterator.h"
30 #include "wtf/MathExtras.h" 29 #include "wtf/MathExtras.h"
31 30
32 using namespace WTF; 31 using namespace WTF;
33 using namespace Unicode; 32 using namespace Unicode;
34 using namespace std; 33 using namespace std;
35 34
(...skipping 302 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 unsigned oldSize = glyphBuffer.size(); 337 unsigned oldSize = glyphBuffer.size();
339 advance(m_currentCharacter + 1, &glyphBuffer); 338 advance(m_currentCharacter + 1, &glyphBuffer);
340 float w = 0; 339 float w = 0;
341 for (unsigned i = oldSize; i < glyphBuffer.size(); ++i) 340 for (unsigned i = oldSize; i < glyphBuffer.size(); ++i)
342 w += glyphBuffer.advanceAt(i); 341 w += glyphBuffer.advanceAt(i);
343 width = w; 342 width = w;
344 return glyphBuffer.size() > oldSize; 343 return glyphBuffer.size() > oldSize;
345 } 344 }
346 345
347 } 346 }
OLDNEW
« no previous file with comments | « Source/core/platform/graphics/SimpleFontData.cpp ('k') | Source/core/platform/graphics/filters/FEBlend.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698