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

Issue 15556003: Auto-generate V8HTMLFormElement::namedPropertyGetter (Closed)

Created:
7 years, 7 months ago by kojih
Modified:
7 years, 7 months ago
Reviewers:
haraken
CC:
blink-reviews, jsbell+bindings_chromium.org, eae+blinkwatch, abarth-chromium, adamk+blink_chromium.org, Nate Chapin, alancutter (OOO until 2018)
Base URL:
https://chromium.googlesource.com/chromium/blink@master
Visibility:
Public.

Description

Auto-generate namedPropertyGetter of V8HTMLFormElement and HTMLFrameSetElement Removed V8HTMLFormElementCustom.cpp. Removed V8HTMLFrameSetElementCustom.cpp. Add attribute: [DoNotCheckJSProperty] Named/indexed property interceptors of V8 is called whenever a script accesses any object property. If we want not to override callback property or property in prototype chain by named getter, we have to check if there is already such property in head of named getter. (for example, document.all.length) On the other hand, there is another kind of named getter: which we want to override property, thus we must not check it (for example, DOMStringMap) For getter with [DoNotCheckJSProperty], generator does not generate check code. R=haraken@chromium.org BUG=229740 TEST=No tests. refactoring. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=150907

Patch Set 1 #

Patch Set 2 : Introduce DoNotCheckJSProperty #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -150 lines) Patch
M Source/bindings/bindings.gypi View 1 1 chunk +0 lines, -2 lines 0 comments Download
M Source/bindings/scripts/CodeGeneratorV8.pm View 1 3 chunks +7 lines, -9 lines 0 comments Download
M Source/bindings/scripts/IDLAttributes.txt View 1 1 chunk +1 line, -0 lines 0 comments Download
D Source/bindings/v8/custom/V8HTMLFormElementCustom.cpp View 1 chunk +0 lines, -70 lines 0 comments Download
D Source/bindings/v8/custom/V8HTMLFrameSetElementCustom.cpp View 1 1 chunk +0 lines, -63 lines 0 comments Download
M Source/core/html/HTMLFormElement.h View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLFormElement.cpp View 2 chunks +27 lines, -0 lines 0 comments Download
M Source/core/html/HTMLFormElement.idl View 1 2 chunks +2 lines, -3 lines 0 comments Download
M Source/core/html/HTMLFrameSetElement.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/html/HTMLFrameSetElement.cpp View 1 2 chunks +13 lines, -0 lines 0 comments Download
M Source/core/html/HTMLFrameSetElement.idl View 1 1 chunk +2 lines, -3 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
kojih
r? WDYT of [NoGetRealNamedPropertyInPrototypeChainCheck] [NoHasRealNamedCallbackPropertyCheck]
7 years, 7 months ago (2013-05-21 11:12:10 UTC) #1
haraken
> because it is necessary not to check it. Would you elaborate on this? I ...
7 years, 7 months ago (2013-05-21 14:11:22 UTC) #2
kojih
without [NoHasRealNamedCallbackPropertyCheck], 3 tests failed. [1] fast/dom/collection-length-should-not-be-overridden.html [2] fast/forms/input-named-action-overrides-action-attribute.html [3] fast/forms/state-restore-hidden.html All of these case, ...
7 years, 7 months ago (2013-05-22 03:03:16 UTC) #3
kojih
On the other hand, document.all.length should be "length" property of document.all instead of element named ...
7 years, 7 months ago (2013-05-22 03:10:52 UTC) #4
kojih
updated & merged https://codereview.chromium.org/15540004/
7 years, 7 months ago (2013-05-22 09:32:20 UTC) #5
haraken
Discussed offline how the checks should be added. We reached the conclusion described in the ...
7 years, 7 months ago (2013-05-22 09:44:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/15556003/6001
7 years, 7 months ago (2013-05-22 09:48:11 UTC) #7
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=9293
7 years, 7 months ago (2013-05-22 10:55:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/15556003/6001
7 years, 7 months ago (2013-05-22 11:54:14 UTC) #9
commit-bot: I haz the power
Retried try job too often on linux_layout_rel for step(s) webkit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=linux_layout_rel&number=9303
7 years, 7 months ago (2013-05-22 12:29:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kojih@chromium.org/15556003/6001
7 years, 7 months ago (2013-05-22 15:47:15 UTC) #11
commit-bot: I haz the power
7 years, 7 months ago (2013-05-22 16:28:24 UTC) #12
Message was sent while issue was closed.
Change committed as 150907

Powered by Google App Engine
This is Rietveld 408576698