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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2607403002: Disallow setting invalid values for registered properties via CSSOM (Closed)
Patch Set: Created 3 years, 12 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/Document.cpp
diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
index 3bc2657a5f609d7db757599f8e4dbe79d87420f1..0aa465755b9c5b703e7a7657ad9b6d7c0b74b000 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -6446,6 +6446,10 @@ PropertyRegistry* Document::propertyRegistry() {
return m_propertyRegistry;
}
+const PropertyRegistry* Document::propertyRegistry() const {
+ return const_cast<Document*>(this)->propertyRegistry();
+}
+
void Document::incrementPasswordCount() {
++m_passwordCount;
if (isSecureContext() || m_passwordCount != 1) {

Powered by Google App Engine
This is Rietveld 408576698