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/SimpleFontData.cpp

Issue 1881983003: Move PartitionAlloc related things into wtf/allocator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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) 2005, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2005, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2006 Alexey Proskuryakov 3 * Copyright (C) 2006 Alexey Proskuryakov
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 31
32 #include "SkPaint.h" 32 #include "SkPaint.h"
33 #include "SkPath.h" 33 #include "SkPath.h"
34 #include "SkTypeface.h" 34 #include "SkTypeface.h"
35 #include "SkTypes.h" 35 #include "SkTypes.h"
36 #include "platform/fonts/FontDescription.h" 36 #include "platform/fonts/FontDescription.h"
37 #include "platform/fonts/GlyphPage.h" 37 #include "platform/fonts/GlyphPage.h"
38 #include "platform/fonts/VDMXParser.h" 38 #include "platform/fonts/VDMXParser.h"
39 #include "platform/geometry/FloatRect.h" 39 #include "platform/geometry/FloatRect.h"
40 #include "wtf/MathExtras.h" 40 #include "wtf/MathExtras.h"
41 #include "wtf/Partitions.h" 41 #include "wtf/allocator/Partitions.h"
42 #include "wtf/text/CharacterNames.h" 42 #include "wtf/text/CharacterNames.h"
43 #include "wtf/text/Unicode.h" 43 #include "wtf/text/Unicode.h"
44 #include <unicode/unorm.h> 44 #include <unicode/unorm.h>
45 #include <unicode/utf16.h> 45 #include <unicode/utf16.h>
46 46
47 namespace blink { 47 namespace blink {
48 48
49 const float smallCapsFontSizeMultiplier = 0.7f; 49 const float smallCapsFontSizeMultiplier = 0.7f;
50 const float emphasisMarkFontSizeMultiplier = 0.5f; 50 const float emphasisMarkFontSizeMultiplier = 0.5f;
51 51
(...skipping 395 matching lines...) Expand 10 before | Expand all | Expand 10 after
447 if (glyphs[i]) { 447 if (glyphs[i]) {
448 pageToFill->setGlyphDataForIndex(offset + i, glyphs[i], this); 448 pageToFill->setGlyphDataForIndex(offset + i, glyphs[i], this);
449 haveGlyphs = true; 449 haveGlyphs = true;
450 } 450 }
451 } 451 }
452 452
453 return haveGlyphs; 453 return haveGlyphs;
454 } 454 }
455 455
456 } // namespace blink 456 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698