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

Issue 386353002: Implement reflected attributes of HTMLMarqueeElement in Blink-in-JS (Closed)

Created:
6 years, 5 months ago by haraken
Modified:
6 years, 5 months ago
CC:
abarth-chromium, arv+blink, blink-reviews, blink-reviews-bindings_chromium.org, blink-reviews-html_chromium.org, Inactive, dglazkov+blink
Project:
blink
Visibility:
Public.

Description

Implement reflected attributes of HTMLMarqueeElement in Blink-in-JS This CL implements HTMLMarqueeElement.{behavior,bgColor,direction,height,hspace,trueSpeed,vspace,width} in Blink-in-JS. This CL doesn't remove any code from C++ since reflected attributes don't have corresponding code in C++. BUG=341031 TEST=fast/dom/marquee-element.html Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178043

Patch Set 1 #

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -31 lines) Patch
M Source/bindings/core/v8/PrivateScriptRunner.cpp View 1 1 chunk +2 lines, -1 line 0 comments Download
M Source/bindings/core/v8/PrivateScriptRunner.js View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/scripts/v8_types.py View 1 2 1 chunk +1 line, -1 line 0 comments Download
M Source/bindings/templates/attributes.cpp View 2 chunks +5 lines, -4 lines 0 comments Download
M Source/bindings/tests/results/V8TestObject.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/core/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/core_generated.gyp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/core/html/HTMLMarqueeElement.idl View 1 1 chunk +8 lines, -8 lines 0 comments Download
M Source/core/html/HTMLMarqueeElement.js View 1 2 5 chunks +19 lines, -14 lines 2 comments Download
M Source/core/testing/PrivateScriptTest.js View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 9 (0 generated)
haraken
abarth@, arv@: PTAL.
6 years, 5 months ago (2014-07-14 04:58:56 UTC) #1
haraken
https://codereview.chromium.org/386353002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp File Source/bindings/core/v8/PrivateScriptRunner.cpp (right): https://codereview.chromium.org/386353002/diff/20001/Source/bindings/core/v8/PrivateScriptRunner.cpp#newcode95 Source/bindings/core/v8/PrivateScriptRunner.cpp:95: v8::Handle<v8::Value> initializeFunction = classObject->Get(v8String(isolate, "initialize")); I renamed 'constructor' to ...
6 years, 5 months ago (2014-07-14 05:01:51 UTC) #2
abarth-chromium
LGTM https://codereview.chromium.org/386353002/diff/20001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/386353002/diff/20001/Source/bindings/scripts/v8_types.py#newcode542 Source/bindings/scripts/v8_types.py:542: cpp_value = 'std::max(0, int(%s))' % cpp_value static_cast<int>(...) https://codereview.chromium.org/386353002/diff/20001/Source/core/html/HTMLMarqueeElement.js ...
6 years, 5 months ago (2014-07-14 06:04:35 UTC) #3
abarth-chromium
https://codereview.chromium.org/386353002/diff/20001/Source/core/html/HTMLMarqueeElement.idl File Source/core/html/HTMLMarqueeElement.idl (right): https://codereview.chromium.org/386353002/diff/20001/Source/core/html/HTMLMarqueeElement.idl#newcode28 Source/core/html/HTMLMarqueeElement.idl:28: [ImplementedInPrivateScript, Reflect] attribute unsigned long hspace; Does |Reflect| do ...
6 years, 5 months ago (2014-07-14 06:05:18 UTC) #4
haraken
https://codereview.chromium.org/386353002/diff/20001/Source/bindings/scripts/v8_types.py File Source/bindings/scripts/v8_types.py (right): https://codereview.chromium.org/386353002/diff/20001/Source/bindings/scripts/v8_types.py#newcode542 Source/bindings/scripts/v8_types.py:542: cpp_value = 'std::max(0, int(%s))' % cpp_value On 2014/07/14 06:04:35, ...
6 years, 5 months ago (2014-07-14 09:59:12 UTC) #5
haraken
The CQ bit was checked by haraken@chromium.org
6 years, 5 months ago (2014-07-14 10:00:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/haraken@chromium.org/386353002/40001
6 years, 5 months ago (2014-07-14 10:01:18 UTC) #7
commit-bot: I haz the power
Change committed as 178043
6 years, 5 months ago (2014-07-14 11:04:12 UTC) #8
arv (Not doing code reviews)
6 years, 5 months ago (2014-07-14 14:49:09 UTC) #9
Message was sent while issue was closed.
https://codereview.chromium.org/386353002/diff/40001/Source/core/html/HTMLMar...
File Source/core/html/HTMLMarqueeElement.js (right):

https://codereview.chromium.org/386353002/diff/40001/Source/core/html/HTMLMar...
Source/core/html/HTMLMarqueeElement.js:65: if (value.valueOf() === false)
This will fail when set to null or undefined.

The boolean reflect is just falsey so this should be:

if (!value) {

(Using .valueOf() is most likely a bug. Real code hardly ever uses it.)

https://codereview.chromium.org/386353002/diff/40001/Source/core/html/HTMLMar...
Source/core/html/HTMLMarqueeElement.js:68: this.setAttribute(attributeName,
value ? '' : null);
You already handled the the falsey case.

this.setAttribute(attributeName, '');

Powered by Google App Engine
This is Rietveld 408576698