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

Issue 2884493002: Bindings: Require [CachedAttribute] method to be const (Closed)

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

Description

Bindings: Require [CachedAttribute] callbacks to be const Since most "isAttribDirty()" methods were already const, require it in the docs and via casting in the generated code to ensure that the check is idempotent. Mostly for consistency, but this prevents us from triggering unexpected side effects in future optimizations. Update the one place (navigator.languages) where a non-const method was being used. Review-Url: https://codereview.chromium.org/2884493002 Cr-Commit-Position: refs/heads/master@{#472247} Committed: https://chromium.googlesource.com/chromium/src/+/001f6234b60a15a1b009a3df5089e2adc9cde03b

Patch Set 1 #

Patch Set 2 : Updated binding test expectations #

Patch Set 3 : update binding test expectations #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -20 lines) Patch
M third_party/WebKit/Source/bindings/IDLExtendedAttributes.md View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestInterfaceDocument.cpp View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/bindings/tests/results/core/V8TestObject.cpp View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/frame/Navigator.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/frame/NavigatorLanguage.h View 1 chunk +3 lines, -3 lines 1 comment Download
M third_party/WebKit/Source/core/frame/NavigatorLanguage.cpp View 1 chunk +3 lines, -7 lines 0 comments Download

Messages

Total messages: 29 (19 generated)
jsbell
bashi@ - This is not ready to land yet (blocked on crbug.com/721933 -- running/rebasing the ...
3 years, 7 months ago (2017-05-15 17:42:30 UTC) #3
bashi
Yes, this change totally makes sense to me. +yukishiino, haraken, WDYT? FYI: I uploaded a ...
3 years, 7 months ago (2017-05-15 18:01:44 UTC) #5
haraken1
LGTM (Once the lazy cached accessor is available, I'd like to replace [CachedAttribute] with the ...
3 years, 7 months ago (2017-05-15 18:19:02 UTC) #7
Yuki
LGTM.
3 years, 7 months ago (2017-05-16 06:25:54 UTC) #9
jsbell
Thanks, bindings folks! dcheng@ - can you do an OWNERS review for Source/core/frame and note ...
3 years, 7 months ago (2017-05-16 19:06:46 UTC) #18
dcheng
LGTM, but why do we even have NavigatorLanguage? It seems like it'd be easier to ...
3 years, 7 months ago (2017-05-16 21:44:10 UTC) #19
jsbell
On 2017/05/16 21:44:10, dcheng (in AEST) wrote: > why do we even have NavigatorLanguage? I ...
3 years, 7 months ago (2017-05-16 22:18:53 UTC) #22
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/2884493002/40001
3 years, 7 months ago (2017-05-16 22:20:44 UTC) #25
dcheng
On 2017/05/16 22:18:53, jsbell wrote: > On 2017/05/16 21:44:10, dcheng (in AEST) wrote: > > ...
3 years, 7 months ago (2017-05-16 22:29:29 UTC) #26
commit-bot: I haz the power
3 years, 7 months ago (2017-05-16 23:36:32 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/001f6234b60a15a1b009a3df5089...

Powered by Google App Engine
This is Rietveld 408576698