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

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

Issue 953693002: InlinedVisitor: Migrate css to use inlined tracing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 10 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
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 bool isSupportedFormat() const; 58 bool isSupportedFormat() const;
59 59
60 String customCSSText() const; 60 String customCSSText() const;
61 61
62 bool hasFailedOrCanceledSubresources() const; 62 bool hasFailedOrCanceledSubresources() const;
63 63
64 FontResource* fetch(Document*); 64 FontResource* fetch(Document*);
65 65
66 bool equals(const CSSFontFaceSrcValue&) const; 66 bool equals(const CSSFontFaceSrcValue&) const;
67 67
68 void traceAfterDispatch(Visitor* visitor) { CSSValue::traceAfterDispatch(vis itor); } 68 DEFINE_INLINE_TRACE_AFTER_DISPATCH() { CSSValue::traceAfterDispatch(visitor) ; }
69 69
70 private: 70 private:
71 CSSFontFaceSrcValue(const String& resource, bool local, ContentSecurityPolic yDisposition shouldCheckContentSecurityPolicy) 71 CSSFontFaceSrcValue(const String& resource, bool local, ContentSecurityPolic yDisposition shouldCheckContentSecurityPolicy)
72 : CSSValue(FontFaceSrcClass) 72 : CSSValue(FontFaceSrcClass)
73 , m_resource(resource) 73 , m_resource(resource)
74 , m_isLocal(local) 74 , m_isLocal(local)
75 , m_shouldCheckContentSecurityPolicy(shouldCheckContentSecurityPolicy) 75 , m_shouldCheckContentSecurityPolicy(shouldCheckContentSecurityPolicy)
76 { 76 {
77 } 77 }
78 78
79 void restoreCachedResourceIfNeeded(Document*); 79 void restoreCachedResourceIfNeeded(Document*);
80 bool shouldSetCrossOriginAccessControl(const KURL& resource, SecurityOrigin* ); 80 bool shouldSetCrossOriginAccessControl(const KURL& resource, SecurityOrigin* );
81 81
82 String m_resource; 82 String m_resource;
83 String m_format; 83 String m_format;
84 Referrer m_referrer; 84 Referrer m_referrer;
85 bool m_isLocal; 85 bool m_isLocal;
86 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy; 86 ContentSecurityPolicyDisposition m_shouldCheckContentSecurityPolicy;
87 87
88 ResourcePtr<FontResource> m_fetched; 88 ResourcePtr<FontResource> m_fetched;
89 }; 89 };
90 90
91 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFaceSrcValue, isFontFaceSrcValue()); 91 DEFINE_CSS_VALUE_TYPE_CASTS(CSSFontFaceSrcValue, isFontFaceSrcValue());
92 92
93 } 93 }
94 94
95 #endif 95 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698