diff options
author | Allan Sandfeld Jensen <allan.jensen@digia.com> | 2013-09-17 11:01:33 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-09-19 20:50:05 +0200 |
commit | 2925efd2fcef1f8b9fd48979144877c1a5ec214b (patch) | |
tree | 5e0720412202468499c2bd41d4ec8d5952618f8a /Source/WebKit2/UIProcess/API/C/WKPage.cpp | |
parent | 4ff1d0e1e73e6467aeed9313afe09ec6ece4884d (diff) | |
download | qtwebkit-2925efd2fcef1f8b9fd48979144877c1a5ec214b.tar.gz |
Remove C++11 requirement in WebKit2
Removes all use of C++11 specific features in WebKit2. This consists of
template<S<T>> syntax, a few uses of auto, and a single use of std::move.
Change-Id: I1bbd356c430802caf5f7440cd0d3bb2ba49ed098
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@digia.com>
Diffstat (limited to 'Source/WebKit2/UIProcess/API/C/WKPage.cpp')
-rw-r--r-- | Source/WebKit2/UIProcess/API/C/WKPage.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/Source/WebKit2/UIProcess/API/C/WKPage.cpp b/Source/WebKit2/UIProcess/API/C/WKPage.cpp index 611186f5a..2d9ae5e51 100644 --- a/Source/WebKit2/UIProcess/API/C/WKPage.cpp +++ b/Source/WebKit2/UIProcess/API/C/WKPage.cpp @@ -884,11 +884,11 @@ WKScrollPinningBehavior WKPageGetScrollPinningBehavior(WKPageRef page) ScrollPinningBehavior pinning = toImpl(page)->scrollPinningBehavior(); switch (pinning) { - case WebCore::ScrollPinningBehavior::DoNotPin: + case DoNotPin: return kWKScrollPinningBehaviorDoNotPin; - case WebCore::ScrollPinningBehavior::PinToTop: + case PinToTop: return kWKScrollPinningBehaviorPinToTop; - case WebCore::ScrollPinningBehavior::PinToBottom: + case PinToBottom: return kWKScrollPinningBehaviorPinToBottom; } @@ -898,17 +898,17 @@ WKScrollPinningBehavior WKPageGetScrollPinningBehavior(WKPageRef page) void WKPageSetScrollPinningBehavior(WKPageRef page, WKScrollPinningBehavior pinning) { - ScrollPinningBehavior corePinning = ScrollPinningBehavior::DoNotPin; + ScrollPinningBehavior corePinning = DoNotPin; switch (pinning) { case kWKScrollPinningBehaviorDoNotPin: - corePinning = ScrollPinningBehavior::DoNotPin; + corePinning = DoNotPin; break; case kWKScrollPinningBehaviorPinToTop: - corePinning = ScrollPinningBehavior::PinToTop; + corePinning = PinToTop; break; case kWKScrollPinningBehaviorPinToBottom: - corePinning = ScrollPinningBehavior::PinToBottom; + corePinning = PinToBottom; break; default: ASSERT_NOT_REACHED(); |