Changeset 158759 in webkit
- Timestamp:
- Nov 6, 2013 10:51:58 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r158756 r158759 1 2013-11-06 Anders Carlsson <andersca@apple.com> 2 3 Remove dead code 4 https://bugs.webkit.org/show_bug.cgi?id=123902 5 6 Reviewed by Tim Horton. 7 8 Remove the PageClient::containingWindowGraphicsContext() as well as the 9 WKPageSetDebugPaintFlags and WKPageGetDebugPaintFlags API functions. 10 11 * UIProcess/API/C/WKPage.cpp: 12 * UIProcess/API/mac/PageClientImpl.h: 13 * UIProcess/API/mac/PageClientImpl.mm: 14 * UIProcess/PageClient.h: 15 * UIProcess/WebPageProxy.cpp: 16 * UIProcess/WebPageProxy.h: 17 * UIProcess/mac/WebPageProxyMac.mm: 18 (WebKit::WebPageProxy::searchTheWeb): 19 1 20 2013-11-06 Dan Bernstein <mitz@apple.com> 2 21 -
trunk/Source/WebKit2/UIProcess/API/C/WKPage.cpp
r156924 r158759 786 786 } 787 787 788 void WKPageSetDebugPaintFlags(WKPageDebugPaintFlags flags)789 {790 WebPageProxy::setDebugPaintFlags(flags);791 }792 793 WKPageDebugPaintFlags WKPageGetDebugPaintFlags()794 {795 return WebPageProxy::debugPaintFlags();796 }797 798 788 WKStringRef WKPageCopyStandardUserAgentWithApplicationName(WKStringRef applicationName) 799 789 { -
trunk/Source/WebKit2/UIProcess/API/mac/PageClientImpl.h
r157972 r158759 114 114 virtual void makeFirstResponder(); 115 115 116 virtual CGContextRef containingWindowGraphicsContext();117 118 virtual void flashBackingStoreUpdates(const Vector<WebCore::IntRect>& updateRects);119 120 116 virtual void didPerformDictionaryLookup(const AttributedString&, const DictionaryPopupInfo&); 121 117 virtual void dismissDictionaryLookupPanel(); -
trunk/Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm
r157972 r158759 448 448 } 449 449 450 CGContextRef PageClientImpl::containingWindowGraphicsContext()451 {452 NSWindow *window = [m_wkView window];453 454 // Don't try to get the graphics context if the NSWindow doesn't have a window device.455 if ([window windowNumber] <= 0)456 return 0;457 458 return static_cast<CGContextRef>([[window graphicsContext] graphicsPort]);459 }460 461 void PageClientImpl::flashBackingStoreUpdates(const Vector<IntRect>&)462 {463 notImplemented();464 }465 466 450 void PageClientImpl::didPerformDictionaryLookup(const AttributedString& text, const DictionaryPopupInfo& dictionaryPopupInfo) 467 451 { -
trunk/Source/WebKit2/UIProcess/PageClient.h
r157972 r158759 193 193 virtual void pluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus) = 0; 194 194 virtual void setPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, PluginComplexTextInputState) = 0; 195 virtual CGContextRef containingWindowGraphicsContext() = 0;196 195 virtual void didPerformDictionaryLookup(const AttributedString&, const DictionaryPopupInfo&) = 0; 197 196 virtual void dismissDictionaryLookupPanel() = 0; … … 216 215 #endif // USE(APPKIT) 217 216 #endif // PLATFORM(MAC) 218 219 virtual void flashBackingStoreUpdates(const Vector<WebCore::IntRect>& updateRects) = 0;220 217 }; 221 218 -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r158451 r158759 127 127 namespace WebKit { 128 128 129 WKPageDebugPaintFlags WebPageProxy::s_debugPaintFlags = 0;130 131 129 DEFINE_DEBUG_ONLY_GLOBAL(WTF::RefCountedLeakCounter, webPageProxyCounter, ("WebPageProxy")); 132 130 … … 4178 4176 #endif 4179 4177 4180 void WebPageProxy::flashBackingStoreUpdates(const Vector<IntRect>& updateRects)4181 {4182 m_pageClient->flashBackingStoreUpdates(updateRects);4183 }4184 4185 4178 void WebPageProxy::updateBackingStoreDiscardableState() 4186 4179 { … … 4197 4190 } 4198 4191 4199 Color WebPageProxy::viewUpdatesFlashColor()4200 {4201 return Color(0, 200, 255);4202 }4203 4204 Color WebPageProxy::backingStoreUpdatesFlashColor()4205 {4206 return Color(200, 0, 255);4207 }4208 4209 4192 void WebPageProxy::saveDataToFileInDownloadsFolder(const String& suggestedFilename, const String& mimeType, const String& originatingURLString, WebData* data) 4210 4193 { -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r158451 r158759 380 380 381 381 void sendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, const String& textInput); 382 CGContextRef containingWindowGraphicsContext();383 382 bool shouldDelayWindowOrderingForEvent(const WebMouseEvent&); 384 383 bool acceptsFirstMouse(int eventNumber, const WebMouseEvent&); … … 674 673 const String& pendingAPIRequestURL() const { return m_pendingAPIRequestURL; } 675 674 676 void flashBackingStoreUpdates(const Vector<WebCore::IntRect>& updateRects);677 678 675 #if PLATFORM(MAC) 679 676 void handleAlternativeTextUIResult(const String& result); 680 677 #endif 681 682 static void setDebugPaintFlags(WKPageDebugPaintFlags flags) { s_debugPaintFlags = flags; }683 static WKPageDebugPaintFlags debugPaintFlags() { return s_debugPaintFlags; }684 685 // Color to be used with kWKDebugFlashViewUpdates.686 static WebCore::Color viewUpdatesFlashColor();687 688 // Color to be used with kWKDebugFlashBackingStoreUpdates.689 static WebCore::Color backingStoreUpdatesFlashColor();690 678 691 679 void saveDataToFileInDownloadsFolder(const String& suggestedFilename, const String& mimeType, const String& originatingURLString, WebData*); … … 1219 1207 uint64_t m_renderTreeSize; 1220 1208 1221 static WKPageDebugPaintFlags s_debugPaintFlags;1222 1223 1209 bool m_shouldSendEventsSynchronously; 1224 1210 -
trunk/Source/WebKit2/UIProcess/mac/WebPageProxyMac.mm
r157972 r158759 138 138 NSPerformService(@"Search With %WebSearchProvider@", pasteboard); 139 139 } 140 141 CGContextRef WebPageProxy::containingWindowGraphicsContext()142 {143 return m_pageClient->containingWindowGraphicsContext();144 }145 140 146 141 void WebPageProxy::windowAndViewFramesChanged(const FloatRect& viewFrameInWindowCoordinates, const FloatPoint& accessibilityViewCoordinates)
Note: See TracChangeset
for help on using the changeset viewer.