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

Issue 29323008: Fix IDL dependency computation for partial interfaces (Closed)

Created:
7 years, 2 months ago by Nils Barth (inactive)
Modified:
7 years, 2 months ago
Reviewers:
haraken, Inactive, kihong
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, adamk+blink_chromium.org, Nate Chapin, Inactive, kouhei (in TOK), kihong
Visibility:
Public.

Description

Fix IDL dependency computation for partial interfaces Current IDL dependencies consider partial interfaces as dependencies for *all* IDL files (to avoid having to resolve it to a particular file). The code has 2 mistakes, however: 1. It fails to do this for supplemental IDL files (notably testing), which have just gotten a partial interface. 2. There's a typo in a regex, which means it fails on simple IDL files. This fixes both bugs, and simplifies the partial interface determination code. This fixes the problem that required this revert: Revert r160289 "Vibration cannot be canceled during pattern vibration." https://codereview.chromium.org/30063003/ This should allow this CL to be relanded: Vibration cannot be canceled during pattern vibration. https://codereview.chromium.org/18478003/ To verify that this CL works (excluding testing), verify that NavigationVibration.idl is a global dependency: cd "$CHROMIUM_DIR" regyp # eg gclient runhooks ninja -C out/Release -j100 all_webkit touch third_party/WebKit/Source/modules/vibration/NavigatorVibration.idl ninja -C out/Release -j100 all_webkit # should rebuild all bindings To verify that it has fixed the problem, apply the patch and verify InternalVibration.idl is a global dependency: cd "$BLINK_DIR" git co -b reland-vibe git cl patch 18478003 cd "$CHROMIUM_DIR" regyp # eg gclient runhooks ninja -C out/Release -j100 all_webkit touch third_party/WebKit/Source/modules/vibration/testing/InternalsVibration.idl ninja -C out/Release -j100 all_webkit # should rebuild all bindings BUG=222504, 261467, 310137 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=160362

Patch Set 1 #

Total comments: 2

Patch Set 2 : Tweaks #

Patch Set 3 : Typo #

Total comments: 2

Patch Set 4 : Remove dupes, fix comments #

Patch Set 5 : Remove dupes, fix comments (reupload) #

Patch Set 6 : Re-re-upload #

Patch Set 7 : Reupload 4 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -18 lines) Patch
M Source/bindings/derived_sources.gyp View 1 2 3 4 chunks +12 lines, -5 lines 0 comments Download
M Source/bindings/scripts/generate_bindings.pl View 1 2 3 1 chunk +6 lines, -4 lines 0 comments Download
M Source/build/scripts/list_idl_files_with_partial_interface.py View 1 chunk +10 lines, -9 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Nils Barth (inactive)
Chris or haraken, could y'all take a look at this please? (Fixes Kihong's problem and ...
7 years, 2 months ago (2013-10-23 07:27:18 UTC) #1
kihong
https://codereview.chromium.org/29323008/diff/1/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/29323008/diff/1/Source/bindings/derived_sources.gyp#newcode204 Source/bindings/derived_sources.gyp:204: '<@(main_idl_files)', Don't we need to add support_idl_files here also?
7 years, 2 months ago (2013-10-23 07:40:34 UTC) #2
Nils Barth (inactive)
https://codereview.chromium.org/29323008/diff/1/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/29323008/diff/1/Source/bindings/derived_sources.gyp#newcode204 Source/bindings/derived_sources.gyp:204: '<@(main_idl_files)', On 2013/10/23 07:40:34, kihong wrote: > Don't we ...
7 years, 2 months ago (2013-10-23 08:13:17 UTC) #3
kihong
https://codereview.chromium.org/29323008/diff/80001/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/29323008/diff/80001/Source/bindings/derived_sources.gyp#newcode267 Source/bindings/derived_sources.gyp:267: '<@(support_idl_files) <@(generated_support_idl_files)', IMHO, we don't need support_idl_files here also?
7 years, 2 months ago (2013-10-23 08:18:43 UTC) #4
Nils Barth (inactive)
Thanks for comment Kihong, this clarifies and simplifies it! https://codereview.chromium.org/29323008/diff/80001/Source/bindings/derived_sources.gyp File Source/bindings/derived_sources.gyp (right): https://codereview.chromium.org/29323008/diff/80001/Source/bindings/derived_sources.gyp#newcode267 Source/bindings/derived_sources.gyp:267: ...
7 years, 2 months ago (2013-10-23 10:29:00 UTC) #5
haraken
LGTM, but please wait for an approval from kihong.
7 years, 2 months ago (2013-10-23 12:15:39 UTC) #6
kihong
lgtm Thanks Nils.
7 years, 2 months ago (2013-10-23 14:26:02 UTC) #7
Michael van Ouwerkerk
On 2013/10/23 14:26:02, kihong wrote: > lgtm > > Thanks Nils. Thanks for the quick ...
7 years, 2 months ago (2013-10-23 17:02:59 UTC) #8
Inactive
lgtm
7 years, 2 months ago (2013-10-23 18:24:06 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nbarth@chromium.org/29323008/210001
7 years, 2 months ago (2013-10-23 18:24:24 UTC) #10
commit-bot: I haz the power
7 years, 2 months ago (2013-10-23 19:21:44 UTC) #11
Message was sent while issue was closed.
Change committed as 160362

Powered by Google App Engine
This is Rietveld 408576698