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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/ElementRareData.h
diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.h b/third_party/WebKit/Source/core/dom/ElementRareData.h
index 0a851d1fa41de7a8ad035147faae61e5e0da626a..ea7cc01f301c5e2726cbd801169bd878226f511c 100644
--- a/third_party/WebKit/Source/core/dom/ElementRareData.h
+++ b/third_party/WebKit/Source/core/dom/ElementRareData.h
@@ -193,6 +193,9 @@ class ElementRareData : public NodeRareData {
}
ResizeObserverDataMap& EnsureResizeObserverData();
+ const AtomicString& GetNonce() const { return nonce_; }
+ void SetNonce(const AtomicString& nonce) { nonce_ = nonce; }
+
DECLARE_TRACE_AFTER_DISPATCH();
DECLARE_TRACE_WRAPPERS_AFTER_DISPATCH();
@@ -202,6 +205,7 @@ class ElementRareData : public NodeRareData {
LayoutSize minimum_size_for_resizing_;
ScrollOffset saved_layer_scroll_offset_;
+ AtomicString nonce_;
Member<DatasetDOMStringMap> dataset_;
Member<ElementShadow> shadow_;
« 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