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

Issue 2303893003: Pass ResizeObserver as 'this' to callback (Closed)

Created:
4 years, 3 months ago by atotic1
Modified:
4 years, 3 months ago
Reviewers:
haraken, esprehn, eae
CC:
bashi, blink-reviews, blink-reviews-bindings_chromium.org, chromium-reviews, lkawai
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass ResizeObserver as 'this' to callback I had to implement a custom callback dispatch handler. Used MutationObserver code as a template. Added a test case. BUG=641353 Committed: https://crrev.com/e4ae0871bcb1c269d81b006eb9522c306a2bdf37 Cr-Commit-Position: refs/heads/master@{#417464}

Patch Set 1 #

Total comments: 3

Patch Set 2 : CR fixes #

Total comments: 5

Patch Set 3 : CR fix, merge master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -1 line) Patch
M third_party/WebKit/LayoutTests/resize-observer/observe.html View 1 2 2 chunks +26 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/bindings/bindings.gni View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A third_party/WebKit/Source/bindings/core/v8/V8ResizeObserverCallbackCustom.cpp View 1 1 chunk +45 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/observer/ResizeObserverCallback.idl View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 35 (17 generated)
atotic1
ResizeObserver callback was not setting 'this' in callback to ResizeObserver. Fixed by implementing custom callback ...
4 years, 3 months ago (2016-09-01 21:11:48 UTC) #3
haraken
In terms of bindings, LGTM with comments. bashi@, lkawai@: The custom bindings should be removed ...
4 years, 3 months ago (2016-09-01 21:28:24 UTC) #6
atotic1
On 2016/09/01 at 21:28:24, haraken wrote: > Basically please just copy & paste V8MutationObserverCallback the ...
4 years, 3 months ago (2016-09-01 23:05:07 UTC) #8
haraken
LGTM from the binding perspective. I want to have eae@ take another look from the ...
4 years, 3 months ago (2016-09-01 23:18:47 UTC) #11
eae
https://codereview.chromium.org/2303893003/diff/40001/third_party/WebKit/LayoutTests/resize-observer/observe.html File third_party/WebKit/LayoutTests/resize-observer/observe.html (right): https://codereview.chromium.org/2303893003/diff/40001/third_party/WebKit/LayoutTests/resize-observer/observe.html#newcode177 third_party/WebKit/LayoutTests/resize-observer/observe.html:177: ro = null; // must null every reference to ...
4 years, 3 months ago (2016-09-05 20:52:48 UTC) #14
esprehn
https://codereview.chromium.org/2303893003/diff/40001/third_party/WebKit/LayoutTests/resize-observer/observe.html File third_party/WebKit/LayoutTests/resize-observer/observe.html (right): https://codereview.chromium.org/2303893003/diff/40001/third_party/WebKit/LayoutTests/resize-observer/observe.html#newcode177 third_party/WebKit/LayoutTests/resize-observer/observe.html:177: ro = null; // must null every reference to ...
4 years, 3 months ago (2016-09-06 01:35:31 UTC) #15
atotic1
The answer to leaks.... https://codereview.chromium.org/2303893003/diff/40001/third_party/WebKit/LayoutTests/resize-observer/observe.html File third_party/WebKit/LayoutTests/resize-observer/observe.html (right): https://codereview.chromium.org/2303893003/diff/40001/third_party/WebKit/LayoutTests/resize-observer/observe.html#newcode177 third_party/WebKit/LayoutTests/resize-observer/observe.html:177: ro = null; // must ...
4 years, 3 months ago (2016-09-06 17:22:37 UTC) #16
haraken
https://codereview.chromium.org/2303893003/diff/40001/third_party/WebKit/LayoutTests/resize-observer/observe.html File third_party/WebKit/LayoutTests/resize-observer/observe.html (right): https://codereview.chromium.org/2303893003/diff/40001/third_party/WebKit/LayoutTests/resize-observer/observe.html#newcode177 third_party/WebKit/LayoutTests/resize-observer/observe.html:177: ro = null; // must null every reference to ...
4 years, 3 months ago (2016-09-07 01:59:45 UTC) #17
esprehn
That still doesn't make sense though, all refs should be dropped at the end of ...
4 years, 3 months ago (2016-09-07 02:01:50 UTC) #18
esprehn
That still doesn't make sense though, all refs should be dropped at the end of ...
4 years, 3 months ago (2016-09-07 02:01:51 UTC) #19
haraken
On 2016/09/07 02:01:51, esprehn wrote: > That still doesn't make sense though, all refs should ...
4 years, 3 months ago (2016-09-07 02:05:10 UTC) #20
atotic1
On 2016/09/07 at 02:05:10, haraken wrote: > On 2016/09/07 02:01:51, esprehn wrote: > > That ...
4 years, 3 months ago (2016-09-07 18:37:04 UTC) #23
haraken
LGTM
4 years, 3 months ago (2016-09-07 23:15:04 UTC) #26
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/2303893003/60001
4 years, 3 months ago (2016-09-07 23:25:14 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/255015)
4 years, 3 months ago (2016-09-07 23:33:34 UTC) #30
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/2303893003/60001
4 years, 3 months ago (2016-09-08 21:37:44 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:60001)
4 years, 3 months ago (2016-09-09 00:52:40 UTC) #33
commit-bot: I haz the power
4 years, 3 months ago (2016-09-09 00:55:42 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e4ae0871bcb1c269d81b006eb9522c306a2bdf37
Cr-Commit-Position: refs/heads/master@{#417464}

Powered by Google App Engine
This is Rietveld 408576698