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

Unified Diff: third_party/WebKit/Source/core/dom/ElementRareData.h

Issue 2801243002: More tweaks to <script nonce> hiding. (Closed)
Patch Set: Element. Created 3 years, 8 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 ad4f572f92bb28ac70611aaab76f7acc1157cd71..71bbc819fc1874355928f856e3f707fa4b37a34c 100644
--- a/third_party/WebKit/Source/core/dom/ElementRareData.h
+++ b/third_party/WebKit/Source/core/dom/ElementRareData.h
@@ -194,6 +194,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();
@@ -203,6 +206,7 @@ class ElementRareData : public NodeRareData {
LayoutSize minimum_size_for_resizing_;
ScrollOffset saved_layer_scroll_offset_;
+ AtomicString nonce_;
Member<DatasetDOMStringMap> dataset_;
Member<ElementShadow> shadow_;

Powered by Google App Engine
This is Rietveld 408576698