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

Unified Diff: Source/core/html/HTMLPreElement.cpp

Issue 268663005: Add use counters for a number of extensions and non-standard APIs (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: measure HTMLPreElementWrap internally also Created 6 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: Source/core/html/HTMLPreElement.cpp
diff --git a/Source/core/html/HTMLPreElement.cpp b/Source/core/html/HTMLPreElement.cpp
index 830f015f8413b80701f3b6d6a543e7112023b217..49a029a92b452995e2c2d5223a7f5c474c3967dd 100644
--- a/Source/core/html/HTMLPreElement.cpp
+++ b/Source/core/html/HTMLPreElement.cpp
@@ -27,6 +27,7 @@
#include "CSSValueKeywords.h"
#include "HTMLNames.h"
#include "core/css/StylePropertySet.h"
+#include "core/frame/UseCounter.h"
namespace WebCore {
@@ -52,10 +53,12 @@ bool HTMLPreElement::isPresentationAttribute(const QualifiedName& name) const
void HTMLPreElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
{
- if (name == wrapAttr)
+ if (name == wrapAttr) {
+ UseCounter::count(document(), UseCounter::HTMLPreElementWrap);
eseidel 2014/05/02 05:14:09 i see, I thought this was HTMLPreElement::parseAtt
style->setProperty(CSSPropertyWhiteSpace, CSSValuePreWrap);
- else
+ } else {
HTMLElement::collectStyleForPresentationAttribute(name, value, style);
+ }
}
}

Powered by Google App Engine
This is Rietveld 408576698