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

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

Issue 126713004: Remove Node.prefix so it's no longer visible to script. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove spurious OVERRIDE. Created 6 years, 11 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 | « Source/core/dom/Element.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/Element.cpp
diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp
index 93572948085381bc34c160015916411a50e51446..ce95fa7a721aede2ebe9ae924bdbe53c3ef61880 100644
--- a/Source/core/dom/Element.cpp
+++ b/Source/core/dom/Element.cpp
@@ -73,6 +73,7 @@
#include "core/frame/ContentSecurityPolicy.h"
#include "core/frame/Frame.h"
#include "core/frame/FrameView.h"
+#include "core/frame/UseCounter.h"
#include "core/html/ClassList.h"
#include "core/html/HTMLCollection.h"
#include "core/html/HTMLDocument.h"
@@ -1232,6 +1233,8 @@ String Element::nodeNamePreservingCase() const
void Element::setPrefix(const AtomicString& prefix, ExceptionState& exceptionState)
{
+ UseCounter::count(document(), UseCounter::ElementSetPrefix);
+
checkSetPrefix(prefix, exceptionState);
if (exceptionState.hadException())
return;
« no previous file with comments | « Source/core/dom/Element.h ('k') | Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698