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

Issue 2809543002: bindings: Pass is_null flag to attribute setters when they are nullable (Closed)

Created:
3 years, 8 months ago by bashi
Modified:
3 years, 8 months ago
Reviewers:
haraken
CC:
chromium-reviews, devtools-reviews_chromium.org, caseq+blink_chromium.org, shans, rjwright, blink-reviews-animation_chromium.org, blink-reviews-html_chromium.org, lushnikov+blink_chromium.org, pfeldman+blink_chromium.org, dglazkov+blink, blink-reviews-bindings_chromium.org, darktears, blink-reviews, apavlov+blink_chromium.org, kozyatinskiy+blink_chromium.org, Eric Willigers
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

bindings: Pass is_null flag to attribute setters when they are nullable Some types can express null by itself (e.g. pointers) but some others are not (e.g. bool). Ideally we should wrap these types with Nullable<T> to make it nullable. However, changing to use Nullable<T> requires a lot of changes in the binding layer. As a workaround, use a flag to indicate it is null or not. BUG=709833 Review-Url: https://codereview.chromium.org/2809543002 Cr-Commit-Position: refs/heads/master@{#463169} Committed: https://chromium.googlesource.com/chromium/src/+/b4de20aaeabfe3d6476d9d431992079c9d09486a

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -36 lines) Patch
M third_party/WebKit/Source/bindings/scripts/v8_attributes.py View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/idls/core/TestObject.idl View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 4 chunks +48 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/Animation.h View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/Animation.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationTest.cpp View 11 chunks +16 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationTimeline.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationTimeline.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationTimelineTest.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/animation/EffectStackTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/animation/css/CSSAnimations.cpp View 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.h View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLInputElement.cpp View 3 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorAnimationAgent.cpp View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
bashi
PTAL. Context: https://codereview.chromium.org/2805493002/#msg15
3 years, 8 months ago (2017-04-10 02:29:46 UTC) #4
haraken
Yeah, it looks nasty to use an is_null flag but it looks like we're already ...
3 years, 8 months ago (2017-04-10 02:38:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2809543002/1
3 years, 8 months ago (2017-04-10 02:58:17 UTC) #9
commit-bot: I haz the power
3 years, 8 months ago (2017-04-10 03:11:01 UTC) #13
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/b4de20aaeabfe3d6476d9d431992...

Powered by Google App Engine
This is Rietveld 408576698