OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 | 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 { | 84 { |
85 m_contentSecurityPolicy->setOverrideAllowInlineStyle(true); | 85 m_contentSecurityPolicy->setOverrideAllowInlineStyle(true); |
86 } | 86 } |
87 | 87 |
88 ~InlineStyleOverrideScope() | 88 ~InlineStyleOverrideScope() |
89 { | 89 { |
90 m_contentSecurityPolicy->setOverrideAllowInlineStyle(false); | 90 m_contentSecurityPolicy->setOverrideAllowInlineStyle(false); |
91 } | 91 } |
92 | 92 |
93 private: | 93 private: |
94 ContentSecurityPolicy* m_contentSecurityPolicy; | 94 RawPtrWillBeMember<ContentSecurityPolicy> m_contentSecurityPolicy; |
95 }; | 95 }; |
96 | 96 |
97 static CSSStyleRule* asCSSStyleRule(CSSRule*); | 97 static CSSStyleRule* asCSSStyleRule(CSSRule*); |
98 static CSSMediaRule* asCSSMediaRule(CSSRule*); | 98 static CSSMediaRule* asCSSMediaRule(CSSRule*); |
99 | 99 |
100 static PassOwnPtrWillBeRawPtr<InspectorCSSAgent> create(InspectorDOMAgent* d
omAgent, InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent, I
nspectorResourceContentLoader* resourceContentLoader) | 100 static PassOwnPtrWillBeRawPtr<InspectorCSSAgent> create(InspectorDOMAgent* d
omAgent, InspectorPageAgent* pageAgent, InspectorResourceAgent* resourceAgent, I
nspectorResourceContentLoader* resourceContentLoader) |
101 { | 101 { |
102 return adoptPtrWillBeNoop(new InspectorCSSAgent(domAgent, pageAgent, res
ourceAgent, resourceContentLoader)); | 102 return adoptPtrWillBeNoop(new InspectorCSSAgent(domAgent, pageAgent, res
ourceAgent, resourceContentLoader)); |
103 } | 103 } |
104 | 104 |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 bool m_isSettingStyleSheetText; | 222 bool m_isSettingStyleSheetText; |
223 | 223 |
224 friend class InspectorResourceContentLoaderCallback; | 224 friend class InspectorResourceContentLoaderCallback; |
225 friend class StyleSheetBinder; | 225 friend class StyleSheetBinder; |
226 }; | 226 }; |
227 | 227 |
228 | 228 |
229 } // namespace blink | 229 } // namespace blink |
230 | 230 |
231 #endif // !defined(InspectorCSSAgent_h) | 231 #endif // !defined(InspectorCSSAgent_h) |
OLD | NEW |