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

Side by Side Diff: Source/core/css/FontFace.cpp

Issue 99103006: Moving GraphicsContext and dependencies from core to platform. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Final patch - fixes Android 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSSegmentedFontFace.cpp ('k') | Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 #include "core/css/CSSPrimitiveValue.h" 44 #include "core/css/CSSPrimitiveValue.h"
45 #include "core/css/CSSUnicodeRangeValue.h" 45 #include "core/css/CSSUnicodeRangeValue.h"
46 #include "core/css/CSSValueList.h" 46 #include "core/css/CSSValueList.h"
47 #include "core/css/StylePropertySet.h" 47 #include "core/css/StylePropertySet.h"
48 #include "core/css/StyleRule.h" 48 #include "core/css/StyleRule.h"
49 #include "core/dom/DOMError.h" 49 #include "core/dom/DOMError.h"
50 #include "core/dom/Document.h" 50 #include "core/dom/Document.h"
51 #include "core/dom/ExceptionCode.h" 51 #include "core/dom/ExceptionCode.h"
52 #include "core/frame/Frame.h" 52 #include "core/frame/Frame.h"
53 #include "core/page/Settings.h" 53 #include "core/page/Settings.h"
54 #include "core/platform/graphics/SimpleFontData.h"
55 #include "core/svg/SVGFontFaceElement.h" 54 #include "core/svg/SVGFontFaceElement.h"
56 #include "platform/fonts/FontDescription.h" 55 #include "platform/fonts/FontDescription.h"
57 #include "platform/fonts/FontTraitsMask.h" 56 #include "platform/fonts/FontTraitsMask.h"
57 #include "platform/fonts/SimpleFontData.h"
58 58
59 namespace WebCore { 59 namespace WebCore {
60 60
61 class FontFaceReadyPromiseResolver { 61 class FontFaceReadyPromiseResolver {
62 public: 62 public:
63 static PassOwnPtr<FontFaceReadyPromiseResolver> create(ScriptPromise promise , ExecutionContext* context) 63 static PassOwnPtr<FontFaceReadyPromiseResolver> create(ScriptPromise promise , ExecutionContext* context)
64 { 64 {
65 return adoptPtr(new FontFaceReadyPromiseResolver(promise, context)); 65 return adoptPtr(new FontFaceReadyPromiseResolver(promise, context));
66 } 66 }
67 67
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
531 unsigned numRanges = rangeList->length(); 531 unsigned numRanges = rangeList->length();
532 for (unsigned i = 0; i < numRanges; i++) { 532 for (unsigned i = 0; i < numRanges; i++) {
533 CSSUnicodeRangeValue* range = toCSSUnicodeRangeValue(rangeList->item WithoutBoundsCheck(i)); 533 CSSUnicodeRangeValue* range = toCSSUnicodeRangeValue(rangeList->item WithoutBoundsCheck(i));
534 cssFontFace->ranges().add(range->from(), range->to()); 534 cssFontFace->ranges().add(range->from(), range->to());
535 } 535 }
536 } 536 }
537 return cssFontFace; 537 return cssFontFace;
538 } 538 }
539 539
540 } // namespace WebCore 540 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSSegmentedFontFace.cpp ('k') | Source/core/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698