Commit 3851cf42 authored by philipj@opera.com's avatar philipj@opera.com

Remove HTMLPreElement.wrap IDL attribute

Intent to Deprecate and Remove:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/XiDb0IKd2rw/Bb8IPddHejMJ

BUG=398353

Review URL: https://codereview.chromium.org/427533003

git-svn-id: svn://svn.chromium.org/blink/trunk@179131 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 54df3f5f
...@@ -83,10 +83,6 @@ PASS e = make('option'); e.removeAttribute('selected'); e.defaultSelected is fal ...@@ -83,10 +83,6 @@ PASS e = make('option'); e.removeAttribute('selected'); e.defaultSelected is fal
PASS e = make('option'); e.setAttribute('selected', ''); e.defaultSelected is true PASS e = make('option'); e.setAttribute('selected', ''); e.defaultSelected is true
PASS e = make('option'); e.setAttribute('selected', 'x'); e.defaultSelected = false; e.getAttribute('selected') is null PASS e = make('option'); e.setAttribute('selected', 'x'); e.defaultSelected = false; e.getAttribute('selected') is null
PASS e = make('option'); e.setAttribute('selected', 'x'); e.defaultSelected = true; e.getAttribute('selected') is '' PASS e = make('option'); e.setAttribute('selected', 'x'); e.defaultSelected = true; e.getAttribute('selected') is ''
PASS e = make('pre'); e.removeAttribute('wrap'); e.wrap is false
PASS e = make('pre'); e.setAttribute('wrap', ''); e.wrap is true
PASS e = make('pre'); e.setAttribute('wrap', 'x'); e.wrap = false; e.getAttribute('wrap') is null
PASS e = make('pre'); e.setAttribute('wrap', 'x'); e.wrap = true; e.getAttribute('wrap') is ''
PASS e = make('script'); e.removeAttribute('defer'); e.defer is false PASS e = make('script'); e.removeAttribute('defer'); e.defer is false
PASS e = make('script'); e.setAttribute('defer', ''); e.defer is true PASS e = make('script'); e.setAttribute('defer', ''); e.defer is true
PASS e = make('script'); e.setAttribute('defer', 'x'); e.defer = false; e.getAttribute('defer') is null PASS e = make('script'); e.setAttribute('defer', 'x'); e.defer = false; e.getAttribute('defer') is null
......
...@@ -21,7 +21,6 @@ var attributes = [ ...@@ -21,7 +21,6 @@ var attributes = [
[ "object", "declare" ], [ "object", "declare" ],
[ "ol", "compact" ], [ "ol", "compact" ],
[ "option", "defaultSelected", "selected" ], [ "option", "defaultSelected", "selected" ],
[ "pre", "wrap" ],
[ "script", "defer" ], [ "script", "defer" ],
[ "select", "multiple" ], [ "select", "multiple" ],
[ "td", "noWrap" ], [ "td", "noWrap" ],
......
...@@ -391,7 +391,6 @@ public: ...@@ -391,7 +391,6 @@ public:
HTMLImageElementX = 396, HTMLImageElementX = 396,
HTMLImageElementY = 397, HTMLImageElementY = 397,
HTMLOptionsCollectionRemoveElement = 398, HTMLOptionsCollectionRemoveElement = 398,
HTMLPreElementWrap = 399,
SelectionBaseNode = 400, SelectionBaseNode = 400,
SelectionBaseOffset = 401, SelectionBaseOffset = 401,
SelectionExtentNode = 402, SelectionExtentNode = 402,
......
...@@ -27,7 +27,6 @@ ...@@ -27,7 +27,6 @@
#include "core/CSSValueKeywords.h" #include "core/CSSValueKeywords.h"
#include "core/HTMLNames.h" #include "core/HTMLNames.h"
#include "core/css/StylePropertySet.h" #include "core/css/StylePropertySet.h"
#include "core/frame/UseCounter.h"
namespace blink { namespace blink {
...@@ -50,12 +49,10 @@ bool HTMLPreElement::isPresentationAttribute(const QualifiedName& name) const ...@@ -50,12 +49,10 @@ bool HTMLPreElement::isPresentationAttribute(const QualifiedName& name) const
void HTMLPreElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style) void HTMLPreElement::collectStyleForPresentationAttribute(const QualifiedName& name, const AtomicString& value, MutableStylePropertySet* style)
{ {
if (name == wrapAttr) { if (name == wrapAttr)
UseCounter::count(document(), UseCounter::HTMLPreElementWrap);
style->setProperty(CSSPropertyWhiteSpace, CSSValuePreWrap); style->setProperty(CSSPropertyWhiteSpace, CSSValuePreWrap);
} else { else
HTMLElement::collectStyleForPresentationAttribute(name, value, style); HTMLElement::collectStyleForPresentationAttribute(name, value, style);
}
} }
} }
...@@ -20,7 +20,4 @@ ...@@ -20,7 +20,4 @@
interface HTMLPreElement : HTMLElement { interface HTMLPreElement : HTMLElement {
[Reflect, MeasureAs=HTMLPreElementWidth] attribute long width; [Reflect, MeasureAs=HTMLPreElementWidth] attribute long width;
// Extensions
[Reflect, MeasureAs=HTMLPreElementWrap] attribute boolean wrap;
}; };
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment