Chromium Code Reviews| 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); |
| + } |
| } |
| } |