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

Side by Side Diff: Source/core/css/CSSFontFaceSrcValue.h

Issue 182063004: Rename adoptRefCountedWillBeRefCountedGarbageCollected to adoptRefWillBeRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSFontFaceRule.h ('k') | Source/core/css/CSSFontFeatureValue.h » ('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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 Apple 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 23 matching lines...) Expand all
34 namespace WebCore { 34 namespace WebCore {
35 35
36 class FontResource; 36 class FontResource;
37 class Document; 37 class Document;
38 class SVGFontFaceElement; 38 class SVGFontFaceElement;
39 39
40 class CSSFontFaceSrcValue : public CSSValue { 40 class CSSFontFaceSrcValue : public CSSValue {
41 public: 41 public:
42 static PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> create(const String& reso urce) 42 static PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> create(const String& reso urce)
43 { 43 {
44 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSFontFaceSr cValue(resource, false)); 44 return adoptRefWillBeRefCountedGarbageCollected(new CSSFontFaceSrcValue( resource, false));
45 } 45 }
46 static PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> createLocal(const String& resource) 46 static PassRefPtrWillBeRawPtr<CSSFontFaceSrcValue> createLocal(const String& resource)
47 { 47 {
48 return adoptRefCountedWillBeRefCountedGarbageCollected(new CSSFontFaceSr cValue(resource, true)); 48 return adoptRefWillBeRefCountedGarbageCollected(new CSSFontFaceSrcValue( resource, true));
49 } 49 }
50 50
51 const String& resource() const { return m_resource; } 51 const String& resource() const { return m_resource; }
52 const String& format() const { return m_format; } 52 const String& format() const { return m_format; }
53 bool isLocal() const { return m_isLocal; } 53 bool isLocal() const { return m_isLocal; }
54 54
55 void setFormat(const String& format) { m_format = format; } 55 void setFormat(const String& format) { m_format = format; }
56 56
57 bool isSupportedFormat() const; 57 bool isSupportedFormat() const;
58 58
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 #if ENABLE(SVG_FONTS) 93 #if ENABLE(SVG_FONTS)
94 SVGFontFaceElement* m_svgFontFaceElement; 94 SVGFontFaceElement* m_svgFontFaceElement;
95 #endif 95 #endif
96 }; 96 };
97 97
98 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFaceSrcValue, isFontFaceSrcValue()); 98 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFaceSrcValue, isFontFaceSrcValue());
99 99
100 } 100 }
101 101
102 #endif 102 #endif
OLDNEW
« no previous file with comments | « Source/core/css/CSSFontFaceRule.h ('k') | Source/core/css/CSSFontFeatureValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698