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

Issue 26694003: Add support for [TreatNullAs] extended attribute for reflected attributes (Closed)

Created:
7 years, 2 months ago by Inactive
Modified:
7 years, 2 months ago
CC:
blink-reviews, Nils Barth (inactive), kenneth.christiansen, kojih, gavinp+prerender_chromium.org, jsbell+bindings_chromium.org, pdr, feature-media-reviews_chromium.org, eae+blinkwatch, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, nessy, f(malita), adamk+blink_chromium.org, Stephen Chennney, Nate Chapin, vcarbune.chromium
Visibility:
Public.

Description

Add support for [TreatNullAs] extended attribute for reflected attributes Add support for [TreatNullAs] extended attribute for reflected attributes and fix the bindings generator so that [Reflect] no longer implies [TreatNullAs=NullString]. This way, newly introduced reflected attributes will behave according to specification. This CL adds [TreatNullAs=NullString] extended attribute to all existing reflected attributes of type DOMString so that there is no web-exposed behavior change. This makes it more explicit that we treat null as the Null string for those attributes and it makes it clear that we don't match the specifications in many cases. In follow-up patches, we should gradually remove those [TreatNullAs=NullString] extended attributes for reflected attributes when the specification does not indicate [TreatNullAs=EmptyString] and when other browser behave according to the specification. R=arv, haraken BUG=304959 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159260

Patch Set 1 #

Total comments: 2

Patch Set 2 : Move code to a subroutine #

Unified diffs Side-by-side diffs Delta from patch set Stats (+252 lines, -243 lines) Patch
M Source/bindings/scripts/code_generator_v8.pm View 1 3 chunks +20 lines, -11 lines 0 comments Download
M Source/bindings/tests/idls/TestObject.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/dom/Element.idl View 3 chunks +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLAnchorElement.idl View 1 chunk +12 lines, -12 lines 0 comments Download
M Source/core/html/HTMLAppletElement.idl View 1 chunk +11 lines, -11 lines 0 comments Download
M Source/core/html/HTMLAreaElement.idl View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/html/HTMLBRElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLBaseElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLBaseFontElement.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLBodyElement.idl View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/html/HTMLButtonElement.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLDivElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLElement.idl View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLEmbedElement.idl View 1 chunk +6 lines, -6 lines 0 comments Download
M Source/core/html/HTMLFieldSetElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLFontElement.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFormElement.idl View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLFrameElement.idl View 1 chunk +7 lines, -7 lines 0 comments Download
M Source/core/html/HTMLFrameSetElement.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLHRElement.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLHeadElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLHeadingElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLHtmlElement.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLIFrameElement.idl View 1 chunk +12 lines, -12 lines 0 comments Download
M Source/core/html/HTMLImageElement.idl View 1 chunk +10 lines, -10 lines 0 comments Download
M Source/core/html/HTMLInputElement.idl View 2 chunks +16 lines, -16 lines 0 comments Download
M Source/core/html/HTMLKeygenElement.idl View 1 chunk +3 lines, -3 lines 0 comments Download
M Source/core/html/HTMLLIElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLabelElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLegendElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLLinkElement.idl View 1 chunk +8 lines, -8 lines 0 comments Download
M Source/core/html/HTMLMapElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLMarqueeElement.idl View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLMediaElement.idl View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLMetaElement.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLModElement.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLOListElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLObjectElement.idl View 1 chunk +13 lines, -13 lines 0 comments Download
M Source/core/html/HTMLOptGroupElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLOutputElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLParagraphElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLParamElement.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLQuoteElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLScriptElement.idl View 1 chunk +7 lines, -7 lines 0 comments Download
M Source/core/html/HTMLSelectElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLSourceElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLStyleElement.idl View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/html/HTMLTableCaptionElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLTableCellElement.idl View 1 chunk +11 lines, -11 lines 0 comments Download
M Source/core/html/HTMLTableColElement.idl View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLTableElement.idl View 1 chunk +9 lines, -9 lines 0 comments Download
M Source/core/html/HTMLTableRowElement.idl View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLTableSectionElement.idl View 1 chunk +4 lines, -4 lines 0 comments Download
M Source/core/html/HTMLTextAreaElement.idl View 1 chunk +5 lines, -5 lines 0 comments Download
M Source/core/html/HTMLTrackElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLUListElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/HTMLVideoElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/html/shadow/HTMLContentElement.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/svg/SVGGlyphRefElement.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
Inactive
7 years, 2 months ago (2013-10-09 14:40:40 UTC) #1
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/26694003/diff/1/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/26694003/diff/1/Source/bindings/scripts/code_generator_v8.pm#newcode1843 Source/bindings/scripts/code_generator_v8.pm:1843: my $mode = ""; Can this be extracted ...
7 years, 2 months ago (2013-10-09 14:55:18 UTC) #2
Inactive
https://codereview.chromium.org/26694003/diff/1/Source/bindings/scripts/code_generator_v8.pm File Source/bindings/scripts/code_generator_v8.pm (right): https://codereview.chromium.org/26694003/diff/1/Source/bindings/scripts/code_generator_v8.pm#newcode1843 Source/bindings/scripts/code_generator_v8.pm:1843: my $mode = ""; On 2013/10/09 14:55:19, arv wrote: ...
7 years, 2 months ago (2013-10-09 15:17:40 UTC) #3
arv (Not doing code reviews)
Thanks Even more LGTM
7 years, 2 months ago (2013-10-09 15:32:48 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ch.dumez@samsung.com/26694003/7001
7 years, 2 months ago (2013-10-09 17:02:10 UTC) #5
commit-bot: I haz the power
Change committed as 159260
7 years, 2 months ago (2013-10-09 21:05:12 UTC) #6
haraken
LGTM
7 years, 2 months ago (2013-10-09 22:08:43 UTC) #7
philipj_slow
This change accidentally (?) added this in HTMLMediaElement.idl: [Reflect, TreatNullAs=NullString, TreatNullAs=NullString] attribute DOMString mediaGroup; I'll ...
7 years, 2 months ago (2013-10-10 07:46:03 UTC) #8
do-not-use
On 2013/10/10 07:46:03, philipj wrote: > This change accidentally (?) added this in HTMLMediaElement.idl: > ...
7 years, 2 months ago (2013-10-10 12:55:40 UTC) #9
Inactive
7 years, 2 months ago (2013-10-10 13:24:30 UTC) #10
Message was sent while issue was closed.
On 2013/10/10 12:55:40, Christophe Dumez wrote:
> On 2013/10/10 07:46:03, philipj wrote:
> > This change accidentally (?) added this in HTMLMediaElement.idl:
> > 
> > [Reflect, TreatNullAs=NullString, TreatNullAs=NullString] attribute
DOMString
> > mediaGroup;
> > 
> > I'll drop the duplicate in <https://codereview.chromium.org/26759003/>, but
> you
> > might want to check if there are more such cases.
> 
> Thanks for notifying me. I'll check today.

I checked, I couldn't find any other bad duplicates.

Powered by Google App Engine
This is Rietveld 408576698