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

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

Issue 427533003: Remove HTMLPreElement.wrap IDL attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: leave style alone Created 6 years, 5 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/frame/UseCounter.h ('k') | Source/core/html/HTMLPreElement.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLPreElement.cpp
diff --git a/Source/core/html/HTMLPreElement.cpp b/Source/core/html/HTMLPreElement.cpp
index 250f08c3fc53b0c20d5995ffaa74fe4e0aa0b489..a4956ff986bba36feecbcee6c873fe3e4067c115 100644
--- a/Source/core/html/HTMLPreElement.cpp
+++ b/Source/core/html/HTMLPreElement.cpp
@@ -27,7 +27,6 @@
#include "core/CSSValueKeywords.h"
#include "core/HTMLNames.h"
#include "core/css/StylePropertySet.h"
-#include "core/frame/UseCounter.h"
namespace blink {
@@ -50,12 +49,10 @@ bool HTMLPreElement::isPresentationAttribute(const QualifiedName& name) const
void HTMLPreElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
{
- if (name == wrapAttr) {
- UseCounter::count(document(), UseCounter::HTMLPreElementWrap);
+ if (name == wrapAttr)
style->setProperty(CSSPropertyWhiteSpace, CSSValuePreWrap);
- } else {
+ else
HTMLElement::collectStyleForPresentationAttribute(name, value, style);
- }
}
}
« no previous file with comments | « Source/core/frame/UseCounter.h ('k') | Source/core/html/HTMLPreElement.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698