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

Issue 2798063003: [Bindings] Remove V8HiddenValue (Closed)

Created:
3 years, 8 months ago by peria
Modified:
3 years, 8 months ago
Reviewers:
haraken, Yuki, bashi
CC:
chromium-reviews, blink-reviews, blink-reviews-bindings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove V8HiddenValue class. This class was used to handle hidden values (private properties) of V8 objects, and was replaced with V8PrivateProperty. We no longer need the class itself. BUG=611864 Review-Url: https://codereview.chromium.org/2798063003 Cr-Commit-Position: refs/heads/master@{#463197} Committed: https://chromium.googlesource.com/chromium/src/+/91ee8664ce7bc2a8fc792c6144cc8dd4408402b9

Patch Set 1 : rebase #

Patch Set 2 : remove files #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -119 lines) Patch
M third_party/WebKit/Source/bindings/bindings.gni View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptPromisePropertyBase.cpp View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.h View 4 chunks +21 lines, -23 lines 3 comments Download
D third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.h View 1 1 chunk +0 lines, -37 lines 0 comments Download
D third_party/WebKit/Source/bindings/core/v8/V8HiddenValue.cpp View 1 1 chunk +0 lines, -51 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/custom/V8WindowCustom.cpp View 2 chunks +2 lines, -4 lines 0 comments Download

Messages

Total messages: 27 (21 generated)
peria
PTL
3 years, 8 months ago (2017-04-10 06:50:02 UTC) #16
haraken
LGTM You'll need to delete V8HiddenValue.{h,cpp}
3 years, 8 months ago (2017-04-10 06:54:15 UTC) #19
bashi
lgtm
3 years, 8 months ago (2017-04-10 06:58:43 UTC) #20
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/2798063003/80001
3 years, 8 months ago (2017-04-10 06:59:44 UTC) #23
commit-bot: I haz the power
Committed patchset #2 (id:80001) as https://chromium.googlesource.com/chromium/src/+/91ee8664ce7bc2a8fc792c6144cc8dd4408402b9
3 years, 8 months ago (2017-04-10 08:47:54 UTC) #26
Yuki
3 years, 8 months ago (2017-04-10 09:12:01 UTC) #27
Message was sent while issue was closed.
LGTM.

https://codereview.chromium.org/2798063003/diff/80001/third_party/WebKit/Sour...
File third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.h (right):

https://codereview.chromium.org/2798063003/diff/80001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.h:83:
ListenerProperty(isolate, is_attribute).GetOrEmpty(object);
nit: Better to use GetOrUndefined().

https://codereview.chromium.org/2798063003/diff/80001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.h:91: bool
is_attribute) {
nit:

I think this is a good chance to replace a boolean parameter with an enum type. 
This kind of abuse of booleans is discouraged in Blink's style guide.

https://codereview.chromium.org/2798063003/diff/80001/third_party/WebKit/Sour...
third_party/WebKit/Source/bindings/core/v8/V8EventListenerHelper.h:93: isolate,
is_attribute ? "EventListenerList::attributeListener"
Event listeners are often used, and it deserves to define their own entries in
V8_PRIVATE_PROPERTY_FOR_EACH, I think.

Powered by Google App Engine
This is Rietveld 408576698