WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
88406
[Chromium] DeviceOrientation cleanup
https://bugs.webkit.org/show_bug.cgi?id=88406
Summary
[Chromium] DeviceOrientation cleanup
Amy Ousterhout
Reported
2012-06-06 03:14:16 PDT
[WebKit] DeviceOrientation cleanup
Attachments
Patch
(5.43 KB, patch)
2012-06-06 03:30 PDT
,
Amy Ousterhout
no flags
Details
Formatted Diff
Diff
Patch
(6.35 KB, patch)
2012-06-06 04:28 PDT
,
Amy Ousterhout
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Amy Ousterhout
Comment 1
2012-06-06 03:30:34 PDT
Created
attachment 145978
[details]
Patch
WebKit Review Bot
Comment 2
2012-06-06 03:34:17 PDT
Please wait for approval from
abarth@webkit.org
,
dglazkov@chromium.org
,
fishd@chromium.org
,
jamesr@chromium.org
or
tkent@chromium.org
before submitting, as this patch contains changes to the Chromium public API. See also
https://trac.webkit.org/wiki/ChromiumWebKitAPI
.
Hans Wennborg
Comment 3
2012-06-06 03:55:20 PDT
Comment on
attachment 145978
[details]
Patch Thanks very much! Some more context: this change is a clean-up based on fishd's comments in
https://bugs.webkit.org/show_bug.cgi?id=47078#c12
View in context:
https://bugs.webkit.org/attachment.cgi?id=145978&action=review
> Source/WebKit/chromium/ChangeLog:8 > + Added a default constructor to WebDeviceOrientation.h and added set functions for each property.
Instead of "Added", maybe we should say "Make default constructor public". Also, we should note that the reason we're doing this is because we want to remove the big 8-parameter constructor.
> Source/WebKit/chromium/public/WebDeviceOrientation.h:50 > + WebDeviceOrientation()
Please add something like "// FIXME: Remove once Chromium is updated." above the old constructor.
> Source/WebKit/chromium/public/WebDeviceOrientation.h:51 > + : m_isNull(true),
for initializer lists in WebKit, we put the commas in the same column as the colon, for example : m_isNull(true) , m_canProvideAlpha(false) I realize this was wrong in the file already, but we might as well take the opportunity to fix it while we're here. (See "Other Punctuation" at
http://www.webkit.org/coding/coding-style.html
)
> Source/WebKit/chromium/public/WebDeviceOrientation.h:67 > + m_isNull = isNull;
since the function only contains one line, maybe we should just write it as void setNull(bool isNull) { m_isNull = isNull; }
> Source/WebKit/chromium/public/WebDeviceOrientation.h:70 > + void setAlpha(double alpha)
I think a blank line here would make the file easier to read. That way setAlpha, canProvideAlpha, and alpha would form its own little section, and we should do the same for beta, gamma, and absolute.
Amy Ousterhout
Comment 4
2012-06-06 04:28:26 PDT
Created
attachment 145989
[details]
Patch
Amy Ousterhout
Comment 5
2012-06-06 04:29:50 PDT
Thanks for the review. I made the changes you suggested, and also changed the name of the bug to have "[Chromium]" instead of "[WebKit]".
Hans Wennborg
Comment 6
2012-06-06 04:36:50 PDT
Comment on
attachment 145989
[details]
Patch LGTM, thanks! As noted in
comment #2
, we'll need one of the Chromium public API gatekeepers to approve this.
Kent Tamura
Comment 7
2012-06-06 17:34:31 PDT
Comment on
attachment 145989
[details]
Patch ok
WebKit Review Bot
Comment 8
2012-06-06 18:36:32 PDT
Comment on
attachment 145989
[details]
Patch Clearing flags on attachment: 145989 Committed
r119661
: <
http://trac.webkit.org/changeset/119661
>
WebKit Review Bot
Comment 9
2012-06-06 18:36:39 PDT
All reviewed patches have been landed. Closing bug.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug