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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 MediaListSourceMediaRule, | 70 MediaListSourceMediaRule, |
71 MediaListSourceImportRule | 71 MediaListSourceImportRule |
72 }; | 72 }; |
73 | 73 |
74 enum StyleSheetsUpdateType { | 74 enum StyleSheetsUpdateType { |
75 InitialFrontendLoad = 0, | 75 InitialFrontendLoad = 0, |
76 ExistingFrontendRefresh, | 76 ExistingFrontendRefresh, |
77 }; | 77 }; |
78 | 78 |
79 class InlineStyleOverrideScope { | 79 class InlineStyleOverrideScope { |
| 80 STACK_ALLOCATED(); |
80 public: | 81 public: |
81 InlineStyleOverrideScope(SecurityContext* context) | 82 InlineStyleOverrideScope(SecurityContext* context) |
82 : m_contentSecurityPolicy(context->contentSecurityPolicy()) | 83 : m_contentSecurityPolicy(context->contentSecurityPolicy()) |
83 { | 84 { |
84 m_contentSecurityPolicy->setOverrideAllowInlineStyle(true); | 85 m_contentSecurityPolicy->setOverrideAllowInlineStyle(true); |
85 } | 86 } |
86 | 87 |
87 ~InlineStyleOverrideScope() | 88 ~InlineStyleOverrideScope() |
88 { | 89 { |
89 m_contentSecurityPolicy->setOverrideAllowInlineStyle(false); | 90 m_contentSecurityPolicy->setOverrideAllowInlineStyle(false); |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 bool m_isSettingStyleSheetText; | 222 bool m_isSettingStyleSheetText; |
222 | 223 |
223 friend class InspectorResourceContentLoaderCallback; | 224 friend class InspectorResourceContentLoaderCallback; |
224 friend class StyleSheetBinder; | 225 friend class StyleSheetBinder; |
225 }; | 226 }; |
226 | 227 |
227 | 228 |
228 } // namespace blink | 229 } // namespace blink |
229 | 230 |
230 #endif // !defined(InspectorCSSAgent_h) | 231 #endif // !defined(InspectorCSSAgent_h) |
OLD | NEW |