Bug 153490 - Fix build with ENABLE_DEVICE_ORIENTATION on non-iOS platforms
Summary: Fix build with ENABLE_DEVICE_ORIENTATION on non-iOS platforms
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-01-26 10:20 PST by Olivier Blin
Modified: 2016-01-26 11:02 PST (History)
4 users (show)

See Also:


Attachments
Patch (1.89 KB, patch)
2016-01-26 10:30 PST, Olivier Blin
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Blin 2016-01-26 10:20:01 PST
Build with ENABLE_DEVICE_ORIENTATION is broken on non-iOS platforms:

/WebKit/Source/WebCore/history/PageCache.cpp: In function ‘bool WebCore::canCachePage(WebCore::Page&)’:
/WebKit/Source/WebCore/history/PageCache.cpp:201:48: error: no matching function for call to ‘WebCore::DeviceMotionController::isActiveAt(WebCore::Page&)’
     if (DeviceMotionController::isActiveAt(page)) {
                                                ^
In file included from /WebKit/Source/WebCore/history/PageCache.cpp:34:0:
/WebKit/Source/WebCore/dom/DeviceMotionController.h:59:17: note: candidate: static bool WebCore::DeviceMotionController::isActiveAt(WebCore::Page*)
     static bool isActiveAt(Page*);
                 ^
/WebKit/Source/WebCore/dom/DeviceMotionController.h:59:17: note:   no known conversion for argument 1 from ‘WebCore::Page’ to ‘WebCore::Page*’
/WebKit/Source/WebCore/history/PageCache.cpp:206:53: error: no matching function for call to ‘WebCore::DeviceOrientationController::isActiveAt(WebCore::Page&)’
     if (DeviceOrientationController::isActiveAt(page)) {
                                                     ^
In file included from /WebKit/Source/WebCore/history/PageCache.cpp:35:0:
/WebKit/Source/WebCore/dom/DeviceOrientationController.h:61:17: note: candidate: static bool WebCore::DeviceOrientationController::isActiveAt(WebCore::Page*)
     static bool isActiveAt(Page*);
                 ^
/WebKit/Source/WebCore/dom/DeviceOrientationController.h:61:17: note:   no known conversion for argument 1 from ‘WebCore::Page’ to ‘WebCore::Page*’


This has been broken since r178702, which changed the Page argument from a pointer to a reference in logCanCachePageDecision().
Comment 1 Olivier Blin 2016-01-26 10:30:20 PST
Created attachment 269887 [details]
Patch
Comment 2 WebKit Commit Bot 2016-01-26 11:02:49 PST
Comment on attachment 269887 [details]
Patch

Clearing flags on attachment: 269887

Committed r195601: <http://trac.webkit.org/changeset/195601>
Comment 3 WebKit Commit Bot 2016-01-26 11:02:52 PST
All reviewed patches have been landed.  Closing bug.