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

Issue 1636873005: blink: Fix naming and const-ness of constants and non-constants. (Closed)

Created:
4 years, 11 months ago by danakj
Modified:
4 years, 10 months ago
CC:
chromium-reviews, blink-reviews-platform-graphics_chromium.org, dshwang, dcheng, kinuko+watch, blink-reviews-wtf_chromium.org, rwlbuis, krit, drott+blinkwatch_chromium.org, Justin Novosad, dglazkov+blink, Rik, blink-reviews-bindings_chromium.org, blink-reviews-paint_chromium.org, blink-reviews, blink-reviews-api_chromium.org, vmpstr+blinkwatch_chromium.org, Mads Ager (chromium), philipj_slow, jbroman, Raymond Toy, feature-media-reviews_chromium.org, pdr+graphicswatchlist_chromium.org, eric.carlson_apple.com, Stephen Chennney, mlamouri+watch-blink_chromium.org, slimming-paint-reviews_chromium.org, f(malita), oilpan-reviews, danakj+watch_chromium.org, kouhei+heap_chromium.org, Mikhail, piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

blink: Fix naming and const-ness of constants and non-constants. If a variable is named kFoo it should be a compile-time constant, and vice versa. Make these match by making variables actually be const, or by changing the name if they are not compile-time constant. R=pdr BUG=580743 Committed: https://crrev.com/1305f726bd299d30b0206bdd787eda473be7cce3 Cr-Commit-Position: refs/heads/master@{#371680}

Patch Set 1 #

Patch Set 2 : constants: . #

Total comments: 3

Patch Set 3 : constants: indents #

Unified diffs Side-by-side diffs Delta from patch set Stats (+223 lines, -223 lines) Patch
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.h View 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/ScriptStreamer.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8ScriptRunner.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/experiments/Experiments.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/experiments/ExperimentsTest.cpp View 1 2 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp View 1 1 chunk +18 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/paint/MediaControlsPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.cpp View 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/DragImage.cpp View 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/audio/DynamicsCompressorKernel.cpp View 4 chunks +9 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/audio/FFTFrame.cpp View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/WebMediaConstraints.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/exported/linux/WebFontInfo.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/fonts/CharacterEmoji.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositingReasons.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositingReasons.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/ChromeClientImpl.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/FrameSerializerTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/web/tests/WebDocumentTest.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebFrameTest.cpp View 7 chunks +16 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/web/tests/WebViewTest.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/wtf/PartitionAllocTest.cpp View 69 chunks +127 lines, -127 lines 0 comments Download
M third_party/WebKit/Source/wtf/dtoa/cached-powers.cc View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/platform/WebMediaConstraints.h View 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (10 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1636873005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1636873005/1
4 years, 11 months ago (2016-01-26 22:57:46 UTC) #2
danakj
https://codereview.chromium.org/1636873005/diff/20001/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp File third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp (left): https://codereview.chromium.org/1636873005/diff/20001/third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp#oldcode312 third_party/WebKit/Source/core/frame/SubresourceIntegrityTest.cpp:312: {"XVVXBGoYw6AJOh9J+Z8pBDMVVPfkBpngexkA7JqZu8d5GENND6TEIup/tA1v5GPr", HashAlgorithmSha384}, This looks like it's doing struct initialization, ...
4 years, 11 months ago (2016-01-26 23:04:02 UTC) #4
danakj
+kbr for the Source/modules changes
4 years, 11 months ago (2016-01-26 23:05:53 UTC) #6
Ken Russell (switch to Gerrit)
Source/modules lgtm
4 years, 11 months ago (2016-01-26 23:08:29 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1636873005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1636873005/20001
4 years, 11 months ago (2016-01-26 23:08:30 UTC) #8
danakj
+thakis for wtf/ +bashi for bindings/
4 years, 11 months ago (2016-01-26 23:09:41 UTC) #10
pdr.
LGTM for everything except wtf and bindings.
4 years, 11 months ago (2016-01-26 23:22:18 UTC) #13
Peter Kasting
https://codereview.chromium.org/1636873005/diff/20001/third_party/WebKit/Source/core/experiments/Experiments.cpp File third_party/WebKit/Source/core/experiments/Experiments.cpp (right): https://codereview.chromium.org/1636873005/diff/20001/third_party/WebKit/Source/core/experiments/Experiments.cpp#newcode20 third_party/WebKit/Source/core/experiments/Experiments.cpp:20: const char kExperimentsMetaName[] = "api-experiments"; Bogus indenting? (And this ...
4 years, 11 months ago (2016-01-26 23:23:11 UTC) #14
danakj
https://codereview.chromium.org/1636873005/diff/20001/third_party/WebKit/Source/core/experiments/Experiments.cpp File third_party/WebKit/Source/core/experiments/Experiments.cpp (right): https://codereview.chromium.org/1636873005/diff/20001/third_party/WebKit/Source/core/experiments/Experiments.cpp#newcode20 third_party/WebKit/Source/core/experiments/Experiments.cpp:20: const char kExperimentsMetaName[] = "api-experiments"; On 2016/01/26 23:23:11, Peter ...
4 years, 11 months ago (2016-01-26 23:36:18 UTC) #15
haraken
bindings/ and wtf/ LGTM
4 years, 11 months ago (2016-01-26 23:41:46 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1636873005/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1636873005/40001
4 years, 11 months ago (2016-01-26 23:45:07 UTC) #19
danakj
On Tue, Jan 26, 2016 at 3:41 PM, <haraken@chromium.org> wrote: > bindings/ and wtf/ LGTM ...
4 years, 11 months ago (2016-01-26 23:48:31 UTC) #20
danakj
On Tue, Jan 26, 2016 at 3:41 PM, <haraken@chromium.org> wrote: > bindings/ and wtf/ LGTM ...
4 years, 11 months ago (2016-01-26 23:50:04 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 11 months ago (2016-01-27 01:38:39 UTC) #23
commit-bot: I haz the power
4 years, 11 months ago (2016-01-27 01:39:35 UTC) #25
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1305f726bd299d30b0206bdd787eda473be7cce3
Cr-Commit-Position: refs/heads/master@{#371680}

Powered by Google App Engine
This is Rietveld 408576698