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

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

Issue 1195583002: Measure the impact of a propsed change to createAttribute() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: check attr's document Created 5 years, 6 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
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index bb1befff42ad782cca0803922720d80baf23c5b1..3864deea2aee5e9947d3edc38408d1937735e4bf 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -4480,6 +4480,8 @@ WeakPtrWillBeRawPtr<Document> Document::contextDocument()
PassRefPtrWillBeRawPtr<Attr> Document::createAttribute(const AtomicString& name, ExceptionState& exceptionState)
{
+ if (isHTMLDocument() && name != name.lower())
+ UseCounter::count(*this, UseCounter::HTMLDocumentCreateAttributeNameNotLowercase);
return createAttributeNS(nullAtom, name, exceptionState, true);
}
« no previous file with comments | « no previous file | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698