Changeset 238546 in webkit
- Timestamp:
- Nov 27, 2018 12:59:00 AM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r238544 r238546 1 2018-11-27 Fujii Hironori <Hironori.Fujii@sony.com> 2 3 Remove "using namespace WebCore" under Source/WebKit/WebProcess/InjectedBundle/API 4 https://bugs.webkit.org/show_bug.cgi?id=191995 5 6 Reviewed by Alex Christensen. 7 8 The statement "using namespace WebCore" should be placed inside 9 namespace WebKit for unified source builds. But, source files 10 defining WebKit API can't be enclosed by namespace WebKit { } 11 becuase they are defined in the global scope. 12 13 "using namespace WebCore" in global scope and unified source 14 builds may cause build breaks (Bug 191853). 15 16 Remove "using namespace WebCore" in the global scope. Use 17 "WebCore::" prefix instead. 18 19 * WebProcess/InjectedBundle/API/c/WKBundle.cpp: 20 (WKBundleClearAllDatabases): 21 (WKBundleSetDatabaseQuota): 22 (WKBundleClearResourceLoadStatistics): 23 (WKBundleResourceLoadStatisticsNotifyObserver): 24 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: 25 (WKBundleFrameGetFrameLoadState): 26 (WKBundleFrameClearOpener): 27 (WKBundleFrameCallShouldCloseOnWebView): 28 (WKBundleFrameCopySecurityOrigin): 29 (WKBundleFrameFocus): 30 * WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp: 31 * WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp: 32 1 33 2018-11-26 Wenson Hsieh <wenson_hsieh@apple.com> 2 34 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundle.cpp
r235851 r238546 49 49 #include <WebCore/ServiceWorkerThreadProxy.h> 50 50 51 using namespace WebCore;52 51 using namespace WebKit; 53 52 … … 251 250 void WKBundleClearAllDatabases(WKBundleRef) 252 251 { 253 DatabaseTracker::singleton().deleteAllDatabasesImmediately();252 WebCore::DatabaseTracker::singleton().deleteAllDatabasesImmediately(); 254 253 } 255 254 … … 257 256 { 258 257 // Historically, we've used the following (somewhat nonsensical) string for the databaseIdentifier of local files. 259 DatabaseTracker::singleton().setQuota(*SecurityOriginData::fromDatabaseIdentifier("file__0"), quota);258 WebCore::DatabaseTracker::singleton().setQuota(*SecurityOriginData::fromDatabaseIdentifier("file__0"), quota); 260 259 } 261 260 … … 322 321 void WKBundleClearResourceLoadStatistics(WKBundleRef) 323 322 { 324 ResourceLoadObserver::shared().clearState();323 WebCore::ResourceLoadObserver::shared().clearState(); 325 324 } 326 325 327 326 void WKBundleResourceLoadStatisticsNotifyObserver(WKBundleRef) 328 327 { 329 ResourceLoadObserver::shared().notifyObserver();328 WebCore::ResourceLoadObserver::shared().notifyObserver(); 330 329 } 331 330 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
r236930 r238546 46 46 #include <WebCore/Page.h> 47 47 48 using namespace WebCore;49 48 using namespace WebKit; 50 49 … … 76 75 WKFrameLoadState WKBundleFrameGetFrameLoadState(WKBundleFrameRef frameRef) 77 76 { 78 Frame* coreFrame = toImpl(frameRef)->coreFrame();77 WebCore::Frame* coreFrame = toImpl(frameRef)->coreFrame(); 79 78 if (!coreFrame) 80 79 return kWKFrameLoadStateFinished; 81 80 82 81 switch (coreFrame->loader().state()) { 83 case FrameStateProvisional:82 case WebCore::FrameStateProvisional: 84 83 return kWKFrameLoadStateProvisional; 85 case FrameStateCommittedPage:84 case WebCore::FrameStateCommittedPage: 86 85 return kWKFrameLoadStateCommitted; 87 case FrameStateComplete:86 case WebCore::FrameStateComplete: 88 87 return kWKFrameLoadStateFinished; 89 88 } … … 150 149 void WKBundleFrameClearOpener(WKBundleFrameRef frameRef) 151 150 { 152 Frame* coreFrame = toImpl(frameRef)->coreFrame();151 WebCore::Frame* coreFrame = toImpl(frameRef)->coreFrame(); 153 152 if (coreFrame) 154 153 coreFrame->loader().setOpener(0); … … 262 261 bool WKBundleFrameCallShouldCloseOnWebView(WKBundleFrameRef frameRef) 263 262 { 264 Frame* coreFrame = toImpl(frameRef)->coreFrame();263 WebCore::Frame* coreFrame = toImpl(frameRef)->coreFrame(); 265 264 if (!coreFrame) 266 265 return true; … … 276 275 WKSecurityOriginRef WKBundleFrameCopySecurityOrigin(WKBundleFrameRef frameRef) 277 276 { 278 Frame* coreFrame = toImpl(frameRef)->coreFrame();277 WebCore::Frame* coreFrame = toImpl(frameRef)->coreFrame(); 279 278 if (!coreFrame) 280 279 return 0; … … 285 284 void WKBundleFrameFocus(WKBundleFrameRef frameRef) 286 285 { 287 Frame* coreFrame = toImpl(frameRef)->coreFrame();286 WebCore::Frame* coreFrame = toImpl(frameRef)->coreFrame(); 288 287 if (!coreFrame) 289 288 return; -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundleInspector.cpp
r201101 r238546 31 31 #include "WebInspector.h" 32 32 33 using namespace WebCore;34 33 using namespace WebKit; 35 34 -
trunk/Source/WebKit/WebProcess/InjectedBundle/API/c/WKBundlePageOverlay.cpp
r231387 r238546 54 54 } 55 55 56 using namespace WebCore;57 56 using namespace WebKit; 58 57 … … 87 86 } 88 87 89 void drawRect(WebPageOverlay& pageOverlay, GraphicsContext& graphicsContext, constIntRect& dirtyRect) override88 void drawRect(WebPageOverlay& pageOverlay, WebCore::GraphicsContext& graphicsContext, const WebCore::IntRect& dirtyRect) override 90 89 { 91 90 if (!m_client.drawRect) … … 95 94 } 96 95 97 bool mouseEvent(WebPageOverlay& pageOverlay, const PlatformMouseEvent& event) override96 bool mouseEvent(WebPageOverlay& pageOverlay, const WebCore::PlatformMouseEvent& event) override 98 97 { 99 98 switch (event.type()) { 100 case PlatformMouseEvent::Type::MousePressed: {99 case WebCore::PlatformMouseEvent::Type::MousePressed: { 101 100 if (!m_client.mouseDown) 102 101 return false; … … 104 103 return m_client.mouseDown(toAPI(&pageOverlay), toAPI(event.position()), toAPI(event.button()), m_client.base.clientInfo); 105 104 } 106 case PlatformMouseEvent::Type::MouseReleased: {105 case WebCore::PlatformMouseEvent::Type::MouseReleased: { 107 106 if (!m_client.mouseUp) 108 107 return false; … … 110 109 return m_client.mouseUp(toAPI(&pageOverlay), toAPI(event.position()), toAPI(event.button()), m_client.base.clientInfo); 111 110 } 112 case PlatformMouseEvent::Type::MouseMoved: {113 if (event.button() == MouseButton::NoButton) {111 case WebCore::PlatformMouseEvent::Type::MouseMoved: { 112 if (event.button() == WebCore::MouseButton::NoButton) { 114 113 if (!m_client.mouseMoved) 115 114 return false;
Note: See TracChangeset
for help on using the changeset viewer.