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

Side by Side Diff: third_party/WebKit/Source/core/dom/ElementRareData.h

Issue 2801243002: More tweaks to <script nonce> hiding. (Closed)
Patch Set: Moved tests. Created 3 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 } 186 }
187 187
188 using ResizeObserverDataMap = 188 using ResizeObserverDataMap =
189 HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>; 189 HeapHashMap<Member<ResizeObserver>, Member<ResizeObservation>>;
190 190
191 ResizeObserverDataMap* ResizeObserverData() const { 191 ResizeObserverDataMap* ResizeObserverData() const {
192 return resize_observer_data_; 192 return resize_observer_data_;
193 } 193 }
194 ResizeObserverDataMap& EnsureResizeObserverData(); 194 ResizeObserverDataMap& EnsureResizeObserverData();
195 195
196 const AtomicString& GetNonce() const { return nonce_; }
197 void SetNonce(const AtomicString& nonce) { nonce_ = nonce; }
198
196 DECLARE_TRACE_AFTER_DISPATCH(); 199 DECLARE_TRACE_AFTER_DISPATCH();
197 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH(); 200 DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH();
198 201
199 private: 202 private:
200 CompositorProxiedPropertySet& EnsureCompositorProxiedPropertySet(); 203 CompositorProxiedPropertySet& EnsureCompositorProxiedPropertySet();
201 void ClearCompositorProxiedPropertySet() { proxied_properties_ = nullptr; } 204 void ClearCompositorProxiedPropertySet() { proxied_properties_ = nullptr; }
202 205
203 LayoutSize minimum_size_for_resizing_; 206 LayoutSize minimum_size_for_resizing_;
204 ScrollOffset saved_layer_scroll_offset_; 207 ScrollOffset saved_layer_scroll_offset_;
208 AtomicString nonce_;
205 209
206 Member<DatasetDOMStringMap> dataset_; 210 Member<DatasetDOMStringMap> dataset_;
207 Member<ElementShadow> shadow_; 211 Member<ElementShadow> shadow_;
208 Member<ClassList> class_list_; 212 Member<ClassList> class_list_;
209 Member<NamedNodeMap> attribute_map_; 213 Member<NamedNodeMap> attribute_map_;
210 Member<AttrNodeList> attr_node_list_; 214 Member<AttrNodeList> attr_node_list_;
211 Member<InlineCSSStyleDeclaration> cssom_wrapper_; 215 Member<InlineCSSStyleDeclaration> cssom_wrapper_;
212 Member<InlineStylePropertyMap> cssom_map_wrapper_; 216 Member<InlineStylePropertyMap> cssom_map_wrapper_;
213 std::unique_ptr<CompositorProxiedPropertySet> proxied_properties_; 217 std::unique_ptr<CompositorProxiedPropertySet> proxied_properties_;
214 218
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 inline CompositorProxiedPropertySet& 288 inline CompositorProxiedPropertySet&
285 ElementRareData::EnsureCompositorProxiedPropertySet() { 289 ElementRareData::EnsureCompositorProxiedPropertySet() {
286 if (!proxied_properties_) 290 if (!proxied_properties_)
287 proxied_properties_ = CompositorProxiedPropertySet::Create(); 291 proxied_properties_ = CompositorProxiedPropertySet::Create();
288 return *proxied_properties_; 292 return *proxied_properties_;
289 } 293 }
290 294
291 } // namespace blink 295 } // namespace blink
292 296
293 #endif // ElementRareData_h 297 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698