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

Issue 743883005: Store binary flags in bool instead of int in WebInputEvent (Closed)

Created:
6 years, 1 month ago by majidvp
Modified:
6 years ago
CC:
blink-reviews, dglazkov+blink, sadrul, lanwei, jdduke (slow)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Store binary flags in bool instead of int in WebInputEvent Avoiding unnecessary size increase and improve readability by using the more appropriate type. The comments in the code justifying the use of int type are incorrect. In particular, these types are always initialized via the ctor that does a memset on the sizeof, so padding DOES get initialized and shouldn't be reported by valgrind as uninitialized memory. BUG=435608 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=186343

Patch Set 1 #

Patch Set 2 : Include remaining bools #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -26 lines) Patch
M Source/web/WebInputEvent.cpp View 1 1 chunk +3 lines, -3 lines 0 comments Download
M public/web/WebInputEvent.h View 1 6 chunks +11 lines, -23 lines 0 comments Download

Messages

Total messages: 16 (7 generated)
majidvp
6 years ago (2014-11-26 20:36:03 UTC) #2
Rick Byers
lgtm, thanks!
6 years ago (2014-11-26 22:17:39 UTC) #4
Rick Byers
On 2014/11/26 22:17:39, Rick Byers wrote: > lgtm, thanks! It's probably worth mentioning in the ...
6 years ago (2014-11-26 22:20:12 UTC) #5
Rick Byers
+jochen for a random non-US OWNER in Source/web
6 years ago (2014-11-26 22:23:14 UTC) #8
jochen (gone - plz use gerrit)
lgtm
6 years ago (2014-11-27 14:58:13 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/743883005/20001
6 years ago (2014-11-28 15:54:47 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu/builds/92343)
6 years ago (2014-11-28 16:42:56 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/743883005/20001
6 years ago (2014-12-02 21:49:02 UTC) #15
commit-bot: I haz the power
6 years ago (2014-12-02 22:53:34 UTC) #16
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=186343

Powered by Google App Engine
This is Rietveld 408576698