Changeset 164358 in webkit
- Timestamp:
- Feb 19, 2014 12:12:24 AM (10 years ago)
- Location:
- trunk/Source
- Files:
-
- 77 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/API/JSValueRef.cpp
r163844 r164358 45 45 #include <algorithm> // for std::min 46 46 47 #if PLATFORM(MAC) && !PLATFORM(IOS)47 #if PLATFORM(MAC) 48 48 #include <mach-o/dyld.h> 49 49 #endif … … 51 51 using namespace JSC; 52 52 53 #if PLATFORM(MAC) && !PLATFORM(IOS)53 #if PLATFORM(MAC) 54 54 static bool evernoteHackNeeded() 55 55 { … … 444 444 void JSValueUnprotect(JSContextRef ctx, JSValueRef value) 445 445 { 446 #if PLATFORM(MAC) && !PLATFORM(IOS)446 #if PLATFORM(MAC) 447 447 if ((!value || !ctx) && evernoteHackNeeded()) 448 448 return; -
trunk/Source/JavaScriptCore/ChangeLog
r164354 r164358 1 2014-02-19 Dan Bernstein <mitz@apple.com> 2 3 Simplify PLATFORM(MAC) && !PLATFORM(IOS) and similar expressions 4 https://bugs.webkit.org/show_bug.cgi?id=129029 5 6 Reviewed by Mark Rowe. 7 8 * API/JSValueRef.cpp: 9 (JSValueUnprotect): 10 * jit/ExecutableAllocatorFixedVMPool.cpp: 11 1 12 2014-02-18 Filip Pizlo <fpizlo@apple.com> 2 13 -
trunk/Source/JavaScriptCore/jit/ExecutableAllocatorFixedVMPool.cpp
r163844 r164358 46 46 #endif 47 47 48 #if !PLATFORM(IOS) &&PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 109048 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED < 1090 49 49 // MADV_FREE_REUSABLE does not work for JIT memory on older OSes so use MADV_FREE in that case. 50 50 #define WTF_USE_MADV_FREE_FOR_JIT_MEMORY 1 -
trunk/Source/WTF/ChangeLog
r164357 r164358 1 2014-02-19 Dan Bernstein <mitz@apple.com> 2 3 Simplify PLATFORM(MAC) && !PLATFORM(IOS) and similar expressions 4 https://bugs.webkit.org/show_bug.cgi?id=129029 5 6 Reviewed by Mark Rowe. 7 8 * wtf/FeatureDefines.h: 9 * wtf/Platform.h: 10 * wtf/Threading.cpp: 11 * wtf/text/cf/StringImplCF.cpp: 12 (garbageCollectionEnabled): 13 1 14 2014-02-18 Dan Bernstein <mitz@apple.com> 2 15 -
trunk/Source/WTF/wtf/FeatureDefines.h
r164131 r164358 160 160 161 161 /* --------- Apple MAC port (not IOS) --------- */ 162 #if PLATFORM(MAC) && !PLATFORM(IOS)162 #if PLATFORM(MAC) 163 163 164 164 #if !defined(ENABLE_CSS_IMAGE_SET) … … 237 237 #endif 238 238 239 #endif /* PLATFORM(MAC) && !PLATFORM(IOS)*/239 #endif /* PLATFORM(MAC) */ 240 240 241 241 /* --------- Apple Windows port --------- */ -
trunk/Source/WTF/wtf/Platform.h
r164357 r164358 467 467 #endif 468 468 469 #if PLATFORM(MAC) && !PLATFORM(IOS)469 #if PLATFORM(MAC) 470 470 471 471 #define WTF_USE_APPKIT 1 … … 484 484 #define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0 485 485 486 #endif /* PLATFORM(MAC) && !PLATFORM(IOS)*/486 #endif /* PLATFORM(MAC) */ 487 487 488 488 #if OS(DARWIN) && !PLATFORM(GTK) … … 940 940 #endif 941 941 942 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000) || ( (PLATFORM(MAC) && !PLATFORM(IOS)) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080)942 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080) 943 943 #define WTF_USE_COREMEDIA 1 944 944 #define HAVE_AVFOUNDATION_VIDEO_OUTPUT 1 945 945 #endif 946 946 947 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 50000) || ( (PLATFORM(MAC) && !PLATFORM(IOS)) || (OS(WINDOWS) && USE(CG)) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080)947 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 50000) || (PLATFORM(MAC) || (OS(WINDOWS) && USE(CG)) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080) 948 948 #define HAVE_AVFOUNDATION_MEDIA_SELECTION_GROUP 1 949 949 #endif 950 950 951 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000) || (( (PLATFORM(MAC) && !PLATFORM(IOS)) || (OS(WINDOWS) && USE(CG))) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)951 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 70000) || ((PLATFORM(MAC) || (OS(WINDOWS) && USE(CG))) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090) 952 952 #define HAVE_AVFOUNDATION_LEGIBLE_OUTPUT_SUPPORT 1 953 953 #define HAVE_MEDIA_ACCESSIBILITY_FRAMEWORK 1 954 954 #endif 955 955 956 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000) || ( (PLATFORM(MAC) && !PLATFORM(IOS)) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090)956 #if (PLATFORM(IOS) && __IPHONE_OS_VERSION_MIN_REQUIRED >= 60000) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090) 957 957 #define HAVE_AVFOUNDATION_LOADER_DELEGATE 1 958 958 #endif 959 959 960 #if (PLATFORM(MAC) && !PLATFORM(IOS)) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080960 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 961 961 #define WTF_USE_VIDEOTOOLBOX 1 962 962 #endif … … 970 970 #endif 971 971 972 #if PLATFORM(MAC) && !PLATFORM(IOS)972 #if PLATFORM(MAC) 973 973 #define WTF_USE_COREAUDIO 1 974 974 #endif … … 988 988 #define WTF_USE_UNIFIED_TEXT_CHECKING 1 989 989 #endif 990 #if !PLATFORM(IOS) &&PLATFORM(MAC)990 #if PLATFORM(MAC) 991 991 #define WTF_USE_AUTOMATIC_TEXT_REPLACEMENT 1 992 992 #endif 993 993 994 #if PLATFORM(MAC) && !PLATFORM(IOS)994 #if PLATFORM(MAC) 995 995 /* Some platforms provide UI for suggesting autocorrection. */ 996 996 #define WTF_USE_AUTOCORRECTION_PANEL 1 … … 1030 1030 #endif 1031 1031 1032 #if PLATFORM(MAC) && !PLATFORM(IOS) &&__MAC_OS_X_VERSION_MIN_REQUIRED >= 10901032 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 1033 1033 #define HAVE_NS_ACTIVITY 1 1034 1034 #endif -
trunk/Source/WTF/wtf/Threading.cpp
r163288 r164358 87 87 } 88 88 89 #if PLATFORM(MAC) && !PLATFORM(IOS)|| PLATFORM(WIN)89 #if PLATFORM(MAC) || PLATFORM(WIN) 90 90 91 91 // For ABI compatibility with Safari on Mac / Windows: Safari uses the private -
trunk/Source/WTF/wtf/text/cf/StringImplCF.cpp
r158479 r164358 30 30 #include <wtf/Threading.h> 31 31 32 #if PLATFORM(MAC) && !PLATFORM(IOS)32 #if PLATFORM(MAC) 33 33 #include <objc/objc-auto.h> 34 34 #endif … … 36 36 static inline bool garbageCollectionEnabled() 37 37 { 38 #if PLATFORM(MAC) && !PLATFORM(IOS)38 #if PLATFORM(MAC) 39 39 return objc_collectingEnabled(); 40 40 #else -
trunk/Source/WebCore/ChangeLog
r164357 r164358 1 2014-02-19 Dan Bernstein <mitz@apple.com> 2 3 Simplify PLATFORM(MAC) && !PLATFORM(IOS) and similar expressions 4 https://bugs.webkit.org/show_bug.cgi?id=129029 5 6 Reviewed by Mark Rowe. 7 8 * accessibility/AccessibilityRenderObject.cpp: 9 (WebCore::AccessibilityRenderObject::boundsForVisiblePositionRange): 10 (WebCore::AccessibilityRenderObject::visiblePositionForPoint): 11 * config.h: 12 * editing/Editor.cpp: 13 (WebCore::Editor::copyURL): 14 * editing/EditorCommand.cpp: 15 (WebCore::createCommandMap): 16 * editing/TypingCommand.cpp: 17 (WebCore::TypingCommand::markMisspellingsAfterTyping): 18 * loader/FrameLoader.cpp: 19 (WebCore::FrameLoader::loadArchive): 20 * page/AlternativeTextClient.h: 21 * page/EventHandler.cpp: 22 * page/PageGroup.cpp: 23 (WebCore::PageGroup::captionPreferences): 24 * page/scrolling/ScrollingStateScrollingNode.cpp: 25 (WebCore::ScrollingStateScrollingNode::ScrollingStateScrollingNode): 26 * page/scrolling/ScrollingStateScrollingNode.h: 27 * page/scrolling/ScrollingTree.h: 28 * page/scrolling/ThreadedScrollingTree.cpp: 29 * page/scrolling/ThreadedScrollingTree.h: 30 * platform/DragData.h: 31 * platform/FileSystem.cpp: 32 * platform/MemoryPressureHandler.cpp: 33 * platform/Pasteboard.h: 34 * platform/PlatformMouseEvent.h: 35 (WebCore::PlatformMouseEvent::PlatformMouseEvent): 36 * platform/PlatformPasteboard.h: 37 * platform/PlatformScreen.h: 38 * platform/Scrollbar.cpp: 39 (WebCore::Scrollbar::supportsUpdateOnSecondaryThread): 40 * platform/SuddenTermination.h: 41 * platform/ThreadGlobalData.cpp: 42 (WebCore::ThreadGlobalData::ThreadGlobalData): 43 (WebCore::ThreadGlobalData::destroy): 44 * platform/ThreadGlobalData.h: 45 * platform/audio/mac/AudioDestinationMac.cpp: 46 * platform/audio/mac/AudioFileReaderMac.cpp: 47 * platform/audio/mac/AudioSessionMac.cpp: 48 * platform/graphics/DisplayRefreshMonitor.h: 49 * platform/graphics/FloatPoint.h: 50 * platform/graphics/FloatRect.h: 51 * platform/graphics/FloatSize.h: 52 * platform/graphics/IntRect.h: 53 * platform/graphics/IntSize.h: 54 * platform/graphics/MediaPlayer.cpp: 55 (WebCore::installedMediaEngines): 56 * platform/graphics/cg/ImageBufferCG.cpp: 57 (WebCore::utiFromMIMEType): 58 * platform/graphics/cg/PDFDocumentImage.h: 59 * platform/graphics/cocoa/FontPlatformDataCocoa.mm: 60 * platform/graphics/mac/GraphicsContextMac.mm: 61 (WebCore::GraphicsContext::drawLineForDocumentMarker): 62 * platform/graphics/opengl/Extensions3DOpenGL.cpp: 63 (WebCore::Extensions3DOpenGL::supportsExtension): 64 (WebCore::Extensions3DOpenGL::drawBuffersEXT): 65 * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp: 66 (WebCore::Extensions3DOpenGLCommon::Extensions3DOpenGLCommon): 67 * platform/mac/KeyEventMac.mm: 68 * platform/network/NetworkStateNotifier.h: 69 * platform/network/cf/CookieJarCFNet.cpp: 70 * platform/network/cf/ResourceRequest.h: 71 * platform/network/cf/ResourceRequestCFNet.cpp: 72 * platform/network/cf/SocketStreamHandleCFNet.cpp: 73 (WebCore::SocketStreamHandle::reportErrorToClient): 74 * platform/text/TextEncodingRegistry.cpp: 75 (WebCore::extendTextCodecMaps): 76 * rendering/RenderLayerCompositor.cpp: 77 (WebCore::RenderLayerCompositor::allowsIndependentlyCompositedFrames): 78 (WebCore::RenderLayerCompositor::requiresCompositingForAnimation): 79 1 80 2014-02-18 Dan Bernstein <mitz@apple.com> 2 81 -
trunk/Source/WebCore/accessibility/AccessibilityRenderObject.cpp
r163725 r164358 1964 1964 } 1965 1965 1966 #if PLATFORM(MAC) && !PLATFORM(IOS)1966 #if PLATFORM(MAC) 1967 1967 return m_renderer->view().frameView().contentsToScreen(pixelSnappedIntRect(ourrect)); 1968 1968 #else … … 2005 2005 while (1) { 2006 2006 LayoutPoint ourpoint; 2007 #if PLATFORM(MAC) && !PLATFORM(IOS)2007 #if PLATFORM(MAC) 2008 2008 ourpoint = frameView->screenToContents(point); 2009 2009 #else -
trunk/Source/WebCore/config.h
r162621 r164358 101 101 #endif 102 102 103 #if PLATFORM(MAC) && !PLATFORM(IOS)103 #if PLATFORM(MAC) 104 104 #define WTF_USE_NEW_THEME 1 105 105 #endif -
trunk/Source/WebCore/editing/Editor.cpp
r164357 r164358 554 554 } 555 555 556 #if ! (PLATFORM(MAC) && !PLATFORM(IOS))556 #if !PLATFORM(MAC) 557 557 558 558 String Editor::plainTextFromPasteboard(const PasteboardPlainText& text) … … 1403 1403 pasteboardURL.title = title; 1404 1404 1405 #if PLATFORM(MAC) && !PLATFORM(IOS)1405 #if PLATFORM(MAC) 1406 1406 fillInUserVisibleForm(pasteboardURL); 1407 1407 #endif -
trunk/Source/WebCore/editing/EditorCommand.cpp
r163232 r164358 1102 1102 } 1103 1103 1104 #if PLATFORM(MAC) && !PLATFORM(IOS)1104 #if PLATFORM(MAC) 1105 1105 static bool executeTakeFindStringFromSelection(Frame& frame, Event*, EditorCommandSource, const String&) 1106 1106 { … … 1322 1322 } 1323 1323 1324 #if PLATFORM(MAC) && !PLATFORM(IOS)1324 #if PLATFORM(MAC) 1325 1325 static bool enabledTakeFindStringFromSelection(Frame& frame, Event*, EditorCommandSource) 1326 1326 { … … 1629 1629 #endif 1630 1630 1631 #if PLATFORM(MAC) && !PLATFORM(IOS)1631 #if PLATFORM(MAC) 1632 1632 { "TakeFindStringFromSelection", { executeTakeFindStringFromSelection, supportedFromMenuOrKeyBinding, enabledTakeFindStringFromSelection, stateNone, valueNull, notTextInsertion, doNotAllowExecutionWhenDisabled } }, 1633 1633 #endif -
trunk/Source/WebCore/editing/TypingCommand.cpp
r163725 r164358 292 292 Frame& frame = this->frame(); 293 293 294 #if PLATFORM(MAC) && !PLATFORM(IOS)294 #if PLATFORM(MAC) 295 295 if (!frame.editor().isContinuousSpellCheckingEnabled() 296 296 && !frame.editor().isAutomaticQuoteSubstitutionEnabled() -
trunk/Source/WebCore/loader/FrameLoader.cpp
r164254 r164358 924 924 925 925 ResourceRequest request(mainResource->url()); 926 #if PLATFORM(MAC) && !PLATFORM(IOS)926 #if PLATFORM(MAC) 927 927 request.applyWebArchiveHackForMail(); 928 928 #endif -
trunk/Source/WebCore/page/AlternativeTextClient.h
r161106 r164358 32 32 #include <wtf/text/WTFString.h> 33 33 34 #if !PLATFORM(IOS) &&PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 108034 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 35 35 // Some platforms provide UI for suggesting alternative dictation text. 36 36 #define WTF_USE_DICTATION_ALTERNATIVES 1 37 #endif // !PLATFORM(IOS) &&PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 108037 #endif // PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1080 38 38 39 39 namespace WebCore { -
trunk/Source/WebCore/page/EventHandler.cpp
r164184 r164358 2448 2448 #endif 2449 2449 2450 #if !PLATFORM(MAC) || PLATFORM(IOS)2450 #if !PLATFORM(MAC) 2451 2451 void EventHandler::platformPrepareForWheelEvents(const PlatformWheelEvent&, const HitTestResult&, Element*&, ContainerNode*&, ScrollableArea*&, bool&) 2452 2452 { … … 2785 2785 } 2786 2786 2787 #if !PLATFORM(MAC) || PLATFORM(IOS)2787 #if !PLATFORM(MAC) 2788 2788 bool EventHandler::needsKeyboardEventDisambiguationQuirks() const 2789 2789 { -
trunk/Source/WebCore/page/PageGroup.cpp
r163073 r164358 44 44 45 45 #if ENABLE(VIDEO_TRACK) 46 #if (PLATFORM(MAC) && !PLATFORM(IOS)) || HAVE(MEDIA_ACCESSIBILITY_FRAMEWORK)46 #if PLATFORM(MAC) || HAVE(MEDIA_ACCESSIBILITY_FRAMEWORK) 47 47 #include "CaptionUserPreferencesMediaAF.h" 48 48 #else … … 322 322 { 323 323 if (!m_captionPreferences) { 324 #if (PLATFORM(MAC) && !PLATFORM(IOS)) || HAVE(MEDIA_ACCESSIBILITY_FRAMEWORK)324 #if PLATFORM(MAC) || HAVE(MEDIA_ACCESSIBILITY_FRAMEWORK) 325 325 m_captionPreferences = std::make_unique<CaptionUserPreferencesMediaAF>(*this); 326 326 #else -
trunk/Source/WebCore/page/scrolling/ScrollingStateScrollingNode.cpp
r164110 r164358 42 42 ScrollingStateScrollingNode::ScrollingStateScrollingNode(ScrollingStateTree& stateTree, ScrollingNodeID nodeID) 43 43 : ScrollingStateNode(ScrollingNode, stateTree, nodeID) 44 #if PLATFORM(MAC) && !PLATFORM(IOS)44 #if PLATFORM(MAC) 45 45 , m_verticalScrollbarPainter(0) 46 46 , m_horizontalScrollbarPainter(0) … … 58 58 ScrollingStateScrollingNode::ScrollingStateScrollingNode(const ScrollingStateScrollingNode& stateNode, ScrollingStateTree& adoptiveTree) 59 59 : ScrollingStateNode(stateNode, adoptiveTree) 60 #if PLATFORM(MAC) && !PLATFORM(IOS)60 #if PLATFORM(MAC) 61 61 , m_verticalScrollbarPainter(stateNode.verticalScrollbarPainter()) 62 62 , m_horizontalScrollbarPainter(stateNode.horizontalScrollbarPainter()) … … 252 252 } 253 253 254 #if ! (PLATFORM(MAC) && !PLATFORM(IOS))254 #if !PLATFORM(MAC) 255 255 void ScrollingStateScrollingNode::setScrollbarPaintersFromScrollbars(Scrollbar*, Scrollbar*) 256 256 { -
trunk/Source/WebCore/page/scrolling/ScrollingStateScrollingNode.h
r164110 r164358 127 127 void setFooterLayer(const LayerRepresentation&); 128 128 129 #if PLATFORM(MAC) && !PLATFORM(IOS)129 #if PLATFORM(MAC) 130 130 ScrollbarPainter verticalScrollbarPainter() const { return m_verticalScrollbarPainter.get(); } 131 131 ScrollbarPainter horizontalScrollbarPainter() const { return m_horizontalScrollbarPainter.get(); } … … 144 144 LayerRepresentation m_footerLayer; 145 145 146 #if PLATFORM(MAC) && !PLATFORM(IOS)146 #if PLATFORM(MAC) 147 147 RetainPtr<ScrollbarPainter> m_verticalScrollbarPainter; 148 148 RetainPtr<ScrollbarPainter> m_horizontalScrollbarPainter; -
trunk/Source/WebCore/page/scrolling/ScrollingTree.h
r163516 r164358 79 79 bool isPointInNonFastScrollableRegion(IntPoint); 80 80 81 #if PLATFORM(MAC) && !PLATFORM(IOS)81 #if PLATFORM(MAC) 82 82 virtual void handleWheelEventPhase(PlatformWheelEventPhase) = 0; 83 83 #endif -
trunk/Source/WebCore/page/scrolling/ThreadedScrollingTree.cpp
r163231 r164358 112 112 } 113 113 114 #if PLATFORM(MAC) && !PLATFORM(IOS)114 #if PLATFORM(MAC) 115 115 void ThreadedScrollingTree::handleWheelEventPhase(PlatformWheelEventPhase phase) 116 116 { -
trunk/Source/WebCore/page/scrolling/ThreadedScrollingTree.h
r163231 r164358 66 66 67 67 virtual void scrollingTreeNodeDidScroll(ScrollingNodeID, const FloatPoint& scrollPosition, SetOrSyncScrollingLayerPosition = SyncScrollingLayerPosition) override; 68 #if PLATFORM(MAC) && !PLATFORM(IOS)68 #if PLATFORM(MAC) 69 69 virtual void handleWheelEventPhase(PlatformWheelEventPhase) override; 70 70 #endif -
trunk/Source/WebCore/platform/DragData.h
r162774 r164358 35 35 #include <wtf/Vector.h> 36 36 37 #if PLATFORM(MAC) && !PLATFORM(IOS)37 #if PLATFORM(MAC) 38 38 #include <wtf/RetainPtr.h> 39 39 #include <wtf/text/WTFString.h> … … 109 109 unsigned numberOfFiles() const; 110 110 int modifierKeyState() const; 111 #if PLATFORM(MAC) && !PLATFORM(IOS)111 #if PLATFORM(MAC) 112 112 const String& pasteboardName() const { return m_pasteboardName; } 113 113 #endif … … 135 135 DragOperation m_draggingSourceOperationMask; 136 136 DragApplicationFlags m_applicationFlags; 137 #if PLATFORM(MAC) && !PLATFORM(IOS)137 #if PLATFORM(MAC) 138 138 String m_pasteboardName; 139 139 #endif -
trunk/Source/WebCore/platform/FileSystem.cpp
r161589 r164358 96 96 } 97 97 98 #if !PLATFORM(MAC) || PLATFORM(IOS)98 #if !PLATFORM(MAC) 99 99 100 100 void setMetadataURL(String&, const String&, const String&) -
trunk/Source/WebCore/platform/MemoryPressureHandler.cpp
r161589 r164358 52 52 } 53 53 54 #if !PLATFORM(MAC) || PLATFORM(IOS)54 #if !PLATFORM(MAC) 55 55 56 56 void MemoryPressureHandler::install() { } -
trunk/Source/WebCore/platform/Pasteboard.h
r157375 r164358 84 84 URL url; 85 85 String title; 86 #if PLATFORM(MAC) && !PLATFORM(IOS)86 #if PLATFORM(MAC) 87 87 String userVisibleForm; 88 88 #endif … … 120 120 struct PasteboardPlainText { 121 121 String text; 122 #if PLATFORM(MAC) && !PLATFORM(IOS)122 #if PLATFORM(MAC) 123 123 bool isURL; 124 124 #endif … … 181 181 #endif 182 182 183 #if PLATFORM(MAC) && !PLATFORM(IOS)183 #if PLATFORM(MAC) 184 184 explicit Pasteboard(const String& pasteboardName); 185 185 static PassOwnPtr<Pasteboard> create(const String& pasteboardName); … … 224 224 #endif 225 225 226 #if PLATFORM(MAC) && !PLATFORM(IOS)226 #if PLATFORM(MAC) 227 227 String m_pasteboardName; 228 228 long m_changeCount; … … 241 241 #endif 242 242 243 #if PLATFORM(MAC) && !PLATFORM(IOS)243 #if PLATFORM(MAC) 244 244 extern const char* const WebArchivePboardType; 245 245 extern const char* const WebURLNamePboardType; -
trunk/Source/WebCore/platform/PlatformMouseEvent.h
r161680 r164358 54 54 , m_clickCount(0) 55 55 , m_modifierFlags(0) 56 #if PLATFORM(MAC) && !PLATFORM(IOS)56 #if PLATFORM(MAC) 57 57 , m_eventNumber(0) 58 58 #elif PLATFORM(WIN) … … 70 70 , m_clickCount(clickCount) 71 71 , m_modifierFlags(0) 72 #if PLATFORM(MAC) && !PLATFORM(IOS)72 #if PLATFORM(MAC) 73 73 , m_eventNumber(0) 74 74 #elif PLATFORM(WIN) … … 102 102 #endif 103 103 104 #if PLATFORM(MAC) && !PLATFORM(IOS)104 #if PLATFORM(MAC) 105 105 int eventNumber() const { return m_eventNumber; } 106 106 #endif … … 122 122 unsigned m_modifierFlags; 123 123 124 #if PLATFORM(MAC) && !PLATFORM(IOS)124 #if PLATFORM(MAC) 125 125 int m_eventNumber; 126 126 #elif PLATFORM(WIN) -
trunk/Source/WebCore/platform/PlatformPasteboard.h
r156588 r164358 32 32 #include <wtf/Vector.h> 33 33 34 #if PLATFORM(MAC) && !PLATFORM(IOS)34 #if PLATFORM(MAC) 35 35 OBJC_CLASS NSPasteboard; 36 36 #endif … … 83 83 84 84 private: 85 #if PLATFORM(MAC) && !PLATFORM(IOS)85 #if PLATFORM(MAC) 86 86 RetainPtr<NSPasteboard> m_pasteboard; 87 87 #endif -
trunk/Source/WebCore/platform/PlatformScreen.h
r161589 r164358 29 29 #include <wtf/Vector.h> 30 30 31 #if PLATFORM(MAC) && !PLATFORM(IOS)31 #if PLATFORM(MAC) 32 32 OBJC_CLASS NSScreen; 33 33 OBJC_CLASS NSWindow; … … 58 58 void screenColorProfile(ColorProfile&); 59 59 60 #if PLATFORM(MAC) && !PLATFORM(IOS)60 #if PLATFORM(MAC) 61 61 NSScreen *screenForWindow(NSWindow *); 62 62 -
trunk/Source/WebCore/platform/Scrollbar.cpp
r161768 r164358 550 550 // It's unfortunate that this needs to be done with an ifdef. Ideally there would be a way to feature-detect 551 551 // the necessary support within AppKit. 552 #if ENABLE(ASYNC_SCROLLING) && !PLATFORM(IOS) &&PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000552 #if ENABLE(ASYNC_SCROLLING) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000 553 553 return m_scrollableArea ? !m_scrollableArea->updatesScrollLayerPositionOnMainThread() : false; 554 554 #else -
trunk/Source/WebCore/platform/SuddenTermination.h
r161995 r164358 37 37 void enableSuddenTermination(); 38 38 39 #if PLATFORM(IOS) ||!PLATFORM(MAC)39 #if !PLATFORM(MAC) 40 40 inline void disableSuddenTermination() { } 41 41 inline void enableSuddenTermination() { } -
trunk/Source/WebCore/platform/ThreadGlobalData.cpp
r164144 r164358 39 39 #include <wtf/text/StringImpl.h> 40 40 41 #if PLATFORM(MAC) && !PLATFORM(IOS)41 #if PLATFORM(MAC) 42 42 #include "TextCodeCMac.h" 43 43 #endif … … 65 65 #endif 66 66 , m_cachedConverterICU(adoptPtr(new ICUConverterWrapper)) 67 #if PLATFORM(MAC) && !PLATFORM(IOS)67 #if PLATFORM(MAC) 68 68 , m_cachedConverterTEC(adoptPtr(new TECConverterWrapper)) 69 69 #endif … … 86 86 void ThreadGlobalData::destroy() 87 87 { 88 #if PLATFORM(MAC) && !PLATFORM(IOS)88 #if PLATFORM(MAC) 89 89 m_cachedConverterTEC.clear(); 90 90 #endif -
trunk/Source/WebCore/platform/ThreadGlobalData.h
r164144 r164358 65 65 ICUConverterWrapper& cachedConverterICU() { return *m_cachedConverterICU; } 66 66 67 #if PLATFORM(MAC) && !PLATFORM(IOS)67 #if PLATFORM(MAC) 68 68 TECConverterWrapper& cachedConverterTEC() { return *m_cachedConverterTEC; } 69 69 #endif … … 92 92 OwnPtr<ICUConverterWrapper> m_cachedConverterICU; 93 93 94 #if PLATFORM(MAC) && !PLATFORM(IOS)94 #if PLATFORM(MAC) 95 95 OwnPtr<TECConverterWrapper> m_cachedConverterTEC; 96 96 #endif -
trunk/Source/WebCore/platform/audio/mac/AudioDestinationMac.cpp
r162944 r164358 31 31 #if ENABLE(WEB_AUDIO) 32 32 33 #if PLATFORM(MAC) && !PLATFORM(IOS)33 #if PLATFORM(MAC) 34 34 35 35 #include "AudioDestinationMac.h" … … 184 184 } // namespace WebCore 185 185 186 #endif // PLATFORM(MAC) && !PLATFORM(IOS)186 #endif // PLATFORM(MAC) 187 187 188 188 #endif // ENABLE(WEB_AUDIO) -
trunk/Source/WebCore/platform/audio/mac/AudioFileReaderMac.cpp
r162944 r164358 31 31 #if ENABLE(WEB_AUDIO) 32 32 33 #if PLATFORM(MAC) && !PLATFORM(IOS)33 #if PLATFORM(MAC) 34 34 35 35 #include "AudioFileReaderMac.h" … … 250 250 } // namespace WebCore 251 251 252 #endif // PLATFORM(MAC) && !PLATFORM(IOS)252 #endif // PLATFORM(MAC) 253 253 254 254 #endif // ENABLE(WEB_AUDIO) -
trunk/Source/WebCore/platform/audio/mac/AudioSessionMac.cpp
r163657 r164358 27 27 #include "AudioSession.h" 28 28 29 #if USE(AUDIO_SESSION) && PLATFORM(MAC) && !PLATFORM(IOS)29 #if USE(AUDIO_SESSION) && PLATFORM(MAC) 30 30 31 31 #include "FloatConversion.h" … … 165 165 } 166 166 167 #endif // USE(AUDIO_SESSION) && PLATFORM(MAC) && !PLATFORM(IOS)167 #endif // USE(AUDIO_SESSION) && PLATFORM(MAC) -
trunk/Source/WebCore/platform/graphics/DisplayRefreshMonitor.h
r163657 r164358 120 120 HashSet<DisplayRefreshMonitorClient*>* m_clientsToBeNotified; 121 121 122 #if PLATFORM(MAC) && !PLATFORM(IOS)122 #if PLATFORM(MAC) 123 123 public: 124 124 void displayLinkFired(double nowSeconds, double outputTimeSeconds); -
trunk/Source/WebCore/platform/graphics/FloatPoint.h
r163657 r164358 36 36 #endif 37 37 38 #if PLATFORM(MAC) && !PLATFORM(IOS)38 #if PLATFORM(MAC) 39 39 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 40 40 typedef struct CGPoint NSPoint; … … 42 42 typedef struct _NSPoint NSPoint; 43 43 #endif 44 #endif // PLATFORM(MAC) && !PLATFORM(IOS)44 #endif // PLATFORM(MAC) 45 45 46 46 namespace WebCore { … … 137 137 #endif 138 138 139 #if PLATFORM(MAC) && ! PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)139 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 140 140 FloatPoint(const NSPoint&); 141 141 operator NSPoint() const; -
trunk/Source/WebCore/platform/graphics/FloatRect.h
r163657 r164358 39 39 #endif 40 40 41 #if PLATFORM(MAC) && !PLATFORM(IOS)41 #if PLATFORM(MAC) 42 42 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 43 43 typedef struct CGRect NSRect; … … 45 45 typedef struct _NSRect NSRect; 46 46 #endif 47 #endif // PLATFORM(MAC) && !PLATFORM(IOS)47 #endif // PLATFORM(MAC) 48 48 49 49 #if USE(CAIRO) … … 172 172 #endif 173 173 174 #if PLATFORM(MAC) && ! PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)174 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 175 175 FloatRect(const NSRect&); 176 176 operator NSRect() const; -
trunk/Source/WebCore/platform/graphics/FloatSize.h
r163657 r164358 40 40 #endif 41 41 42 #if PLATFORM(MAC) && !PLATFORM(IOS)42 #if PLATFORM(MAC) 43 43 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 44 44 typedef struct CGSize NSSize; … … 46 46 typedef struct _NSSize NSSize; 47 47 #endif 48 #endif // PLATFORM(MAC) && !PLATFORM(IOS)48 #endif // PLATFORM(MAC) 49 49 50 50 namespace WebCore { … … 114 114 #endif 115 115 116 #if PLATFORM(MAC) && ! PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)116 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 117 117 explicit FloatSize(const NSSize &); // don't do this implicitly since it's lossy 118 118 operator NSSize() const; -
trunk/Source/WebCore/platform/graphics/IntRect.h
r163657 r164358 35 35 #endif 36 36 37 #if PLATFORM(MAC) && !PLATFORM(IOS)37 #if PLATFORM(MAC) 38 38 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 39 39 typedef struct CGRect NSRect; … … 194 194 #endif 195 195 196 #if PLATFORM(MAC) && ! PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)196 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 197 197 operator NSRect() const; 198 198 #endif … … 249 249 #endif 250 250 251 #if PLATFORM(MAC) && ! PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)251 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 252 252 IntRect enclosingIntRect(const NSRect&); 253 253 #endif -
trunk/Source/WebCore/platform/graphics/IntSize.h
r163657 r164358 34 34 #endif 35 35 36 #if PLATFORM(MAC) && !PLATFORM(IOS)36 #if PLATFORM(MAC) 37 37 #ifdef NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES 38 38 typedef struct CGSize NSSize; … … 130 130 #endif 131 131 132 #if PLATFORM(MAC) && ! PLATFORM(IOS) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES)132 #if PLATFORM(MAC) && !defined(NSGEOMETRY_TYPES_SAME_AS_CGGEOMETRY_TYPES) 133 133 explicit IntSize(const NSSize &); // don't do this implicitly since it's lossy 134 134 operator NSSize() const; -
trunk/Source/WebCore/platform/graphics/MediaPlayer.cpp
r163907 r164358 225 225 #endif 226 226 227 #if PLATFORM(MAC) && !PLATFORM(IOS)227 #if PLATFORM(MAC) 228 228 if (Settings::isQTKitEnabled()) 229 229 MediaPlayerPrivateQTKit::registerMediaEngine(addMediaEngine); -
trunk/Source/WebCore/platform/graphics/cg/ImageBufferCG.cpp
r163657 r164358 406 406 static RetainPtr<CFStringRef> utiFromMIMEType(const String& mimeType) 407 407 { 408 #if PLATFORM(MAC) && !PLATFORM(IOS)408 #if PLATFORM(MAC) 409 409 return adoptCF(UTTypeCreatePreferredIdentifierForTag(kUTTagClassMIMEType, mimeType.createCFString().get(), 0)); 410 410 #else -
trunk/Source/WebCore/platform/graphics/cg/PDFDocumentImage.h
r162158 r164358 34 34 #if USE(CG) 35 35 36 #if PLATFORM(MAC) && !PLATFORM(IOS)36 #if PLATFORM(MAC) 37 37 #define WTF_USE_PDFKIT_FOR_PDFDOCUMENTIMAGE 1 38 38 #endif -
trunk/Source/WebCore/platform/graphics/cocoa/FontPlatformDataCocoa.mm
r164075 r164358 40 40 enum TextSpacingCTFeatureSelector { TextSpacingProportional, TextSpacingFullWidth, TextSpacingHalfWidth, TextSpacingThirdWidth, TextSpacingQuarterWidth }; 41 41 42 #if PLATFORM(MAC) && !PLATFORM(IOS)42 #if PLATFORM(MAC) 43 43 void FontPlatformData::loadFont(NSFont* nsFont, float, NSFont*& outNSFont, CGFontRef& cgFont) 44 44 { … … 46 46 cgFont = CTFontCopyGraphicsFont(toCTFontRef(nsFont), 0); 47 47 } 48 #endif // PLATFORM(MAC) && !PLATFORM(IOS)48 #endif // PLATFORM(MAC) 49 49 50 50 #if !PLATFORM(IOS) -
trunk/Source/WebCore/platform/graphics/mac/GraphicsContextMac.mm
r161589 r164358 187 187 #endif 188 188 } 189 #if !PLATFORM(IOS) &&PLATFORM(MAC)189 #if PLATFORM(MAC) 190 190 // To support correction panel. 191 191 case DocumentMarkerAutocorrectionReplacementLineStyle: -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGL.cpp
r164293 r164358 210 210 211 211 if (name == "GL_EXT_draw_buffers") { 212 #if PLATFORM(MAC) && !PLATFORM(IOS)212 #if PLATFORM(MAC) 213 213 return m_availableExtensions.contains("GL_ARB_draw_buffers"); 214 214 #else … … 229 229 { 230 230 // FIXME: implement support for other platforms. 231 #if PLATFORM(MAC) && !PLATFORM(IOS)231 #if PLATFORM(MAC) 232 232 ::glDrawBuffersARB(n, bufs); 233 233 #else -
trunk/Source/WebCore/platform/graphics/opengl/Extensions3DOpenGLCommon.cpp
r162451 r164358 72 72 m_isIntel = true; 73 73 74 #if PLATFORM(MAC) && !PLATFORM(IOS)74 #if PLATFORM(MAC) 75 75 if (m_isAMD || m_isIntel) 76 76 m_requiresBuiltInFunctionEmulation = true; -
trunk/Source/WebCore/platform/mac/KeyEventMac.mm
r163657 r164358 27 27 #import "PlatformKeyboardEvent.h" 28 28 29 #if PLATFORM(MAC) && !PLATFORM(IOS)29 #if PLATFORM(MAC) 30 30 31 31 #import "KeyEventCocoa.h" … … 79 79 } // namespace WebCore 80 80 81 #endif // PLATFORM(MAC) && !PLATFORM(IOS)81 #endif // PLATFORM(MAC) -
trunk/Source/WebCore/platform/network/NetworkStateNotifier.h
r163657 r164358 32 32 #include <wtf/Vector.h> 33 33 34 #if PLATFORM(MAC) && !PLATFORM(IOS)34 #if PLATFORM(MAC) 35 35 36 36 #include <wtf/RetainPtr.h> … … 75 75 void updateState(); 76 76 77 #if PLATFORM(MAC) && !PLATFORM(IOS)77 #if PLATFORM(MAC) 78 78 void networkStateChangeTimerFired(Timer<NetworkStateNotifier>&); 79 79 -
trunk/Source/WebCore/platform/network/cf/CookieJarCFNet.cpp
r164272 r164358 42 42 #endif 43 43 44 #if PLATFORM(WIN) || ( !PLATFORM(IOS) &&PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 1090)44 #if PLATFORM(WIN) || (PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED <= 1090) 45 45 enum { 46 46 CFHTTPCookieStorageAcceptPolicyExclusivelyFromMainDocumentDomain = 3 -
trunk/Source/WebCore/platform/network/cf/ResourceRequest.h
r163725 r164358 105 105 void updateFromDelegatePreservingOldHTTPBody(const ResourceRequest&); 106 106 107 #if PLATFORM(MAC) && !PLATFORM(IOS)107 #if PLATFORM(MAC) 108 108 void applyWebArchiveHackForMail(); 109 109 #endif -
trunk/Source/WebCore/platform/network/cf/ResourceRequestCFNet.cpp
r163725 r164358 338 338 } 339 339 340 #if PLATFORM(MAC) && !PLATFORM(IOS)340 #if PLATFORM(MAC) 341 341 void ResourceRequest::applyWebArchiveHackForMail() 342 342 { -
trunk/Source/WebCore/platform/network/cf/SocketStreamHandleCFNet.cpp
r162235 r164358 579 579 String description; 580 580 581 #if PLATFORM(MAC) && !PLATFORM(IOS)581 #if PLATFORM(MAC) 582 582 583 583 #if COMPILER(CLANG) -
trunk/Source/WebCore/platform/text/TextEncodingRegistry.cpp
r162784 r164358 43 43 #include <wtf/StringExtras.h> 44 44 45 #if PLATFORM(MAC) && !PLATFORM(IOS)45 #if PLATFORM(MAC) 46 46 #include "TextCodecMac.h" 47 47 #endif … … 280 280 TextCodecICU::registerCodecs(addToTextCodecMap); 281 281 282 #if PLATFORM(MAC) && !PLATFORM(IOS)282 #if PLATFORM(MAC) 283 283 TextCodecMac::registerEncodingNames(addToTextEncodingNameMap); 284 284 TextCodecMac::registerCodecs(addToTextCodecMap); -
trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp
r164192 r164358 1913 1913 bool RenderLayerCompositor::allowsIndependentlyCompositedFrames(const FrameView* view) 1914 1914 { 1915 #if PLATFORM(MAC) && !PLATFORM(IOS)1915 #if PLATFORM(MAC) 1916 1916 // frames are only independently composited in Mac pre-WebKit2. 1917 1917 return view->platformWidget(); … … 2384 2384 && (inCompositingMode() || (m_compositingTriggers & ChromeClient::AnimatedOpacityTrigger))) 2385 2385 #if ENABLE(CSS_FILTERS) 2386 #if PLATFORM(IOS) || !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 10802387 // <rdar://problem/10907251> - WebKit2 doesn't support CA animations of CI filters on Lion and below2388 2386 || animController.isRunningAnimationOnRenderer(&renderer, CSSPropertyWebkitFilter) 2389 #endif // PLATFORM(IOS) || !PLATFORM(MAC) || __MAC_OS_X_VERSION_MIN_REQUIRED >= 10802390 2387 #endif // CSS_FILTERS 2391 2388 || animController.isRunningAnimationOnRenderer(&renderer, CSSPropertyWebkitTransform); -
trunk/Source/WebKit2/ChangeLog
r164357 r164358 1 2014-02-19 Dan Bernstein <mitz@apple.com> 2 3 Simplify PLATFORM(MAC) && !PLATFORM(IOS) and similar expressions 4 https://bugs.webkit.org/show_bug.cgi?id=129029 5 6 Reviewed by Mark Rowe. 7 8 * PluginProcess/PluginProcess.cpp: 9 (WebKit::PluginProcess::netscapePluginModule): 10 * Shared/API/c/WKDeprecatedFunctions.cpp: 11 * Shared/WebPreferencesStore.h: 12 * UIProcess/API/Cocoa/WKWebView.mm: 13 (-[WKWebView initWithFrame:configuration:]): 14 * UIProcess/PageClient.h: 15 * UIProcess/Scrolling/RemoteScrollingTree.cpp: 16 * UIProcess/Scrolling/RemoteScrollingTree.h: 17 * UIProcess/WebContext.h: 18 * UIProcess/WebInspectorProxy.h: 19 * UIProcess/WebPageProxy.cpp: 20 (WebKit::WebPageProxy::didChangeBackForwardList): 21 (WebKit::WebPageProxy::pageDidScroll): 22 (WebKit::WebPageProxy::resetStateAfterProcessExited): 23 (WebKit::WebPageProxy::creationParameters): 24 * UIProcess/WebPageProxy.h: 25 * UIProcess/WebPageProxy.messages.in: 26 * UIProcess/mac/WebContextMac.mm: 27 (WebKit::WebContext::platformInitializeWebProcess): 28 * WebProcess/InjectedBundle/API/c/WKBundlePage.cpp: 29 (WKBundlePageSetTopOverhangImage): 30 (WKBundlePageSetBottomOverhangImage): 31 * WebProcess/WebPage/PageBanner.h: 32 * WebProcess/WebPage/WebPage.cpp: 33 (WebKit::WebPage::setDeviceScaleFactor): 34 (WebKit::WebPage::mainFrameDidLayout): 35 (WebKit::WebPage::beginPrinting): 36 (WebKit::WebPage::drawRectToImage): 37 (WebKit::WebPage::drawPagesToPDF): 38 * WebProcess/WebPage/WebPage.messages.in: 39 * config.h: 40 1 41 2014-02-18 Dan Bernstein <mitz@apple.com> 2 42 -
trunk/Source/WebKit2/PluginProcess/PluginProcess.cpp
r164112 r164358 41 41 #include <wtf/RunLoop.h> 42 42 43 #if PLATFORM(MAC) && !PLATFORM(IOS)43 #if PLATFORM(MAC) 44 44 #include <crt_externs.h> 45 45 #endif … … 107 107 m_pluginModule = NetscapePluginModule::getOrCreate(m_pluginPath); 108 108 109 #if PLATFORM(MAC) && !PLATFORM(IOS)109 #if PLATFORM(MAC) 110 110 if (m_pluginModule) { 111 111 if (m_pluginModule->pluginQuirks().contains(PluginQuirks::PrognameShouldBeWebKitPluginHost)) -
trunk/Source/WebKit2/Shared/API/c/WKDeprecatedFunctions.cpp
r163886 r164358 31 31 #include "WKSharedAPICast.h" 32 32 33 #if PLATFORM(MAC) && !PLATFORM(IOS)33 #if PLATFORM(MAC) 34 34 #include "WKContextPrivateMac.h" 35 35 #endif … … 48 48 WK_EXPORT void WKDictionaryRemoveItem(WKMutableDictionaryRef dictionary, WKStringRef key); 49 49 50 #if PLATFORM(MAC) && !PLATFORM(IOS)50 #if PLATFORM(MAC) 51 51 WK_EXPORT CGContextRef WKGraphicsContextGetCGContext(WKGraphicsContextRef graphicsContext); 52 52 #endif … … 77 77 } 78 78 79 #if PLATFORM(MAC) && !PLATFORM(IOS)79 #if PLATFORM(MAC) 80 80 CGContextRef WKGraphicsContextGetCGContext(WKGraphicsContextRef graphicsContext) 81 81 { -
trunk/Source/WebKit2/Shared/WebPreferencesStore.h
r164304 r164358 49 49 #endif 50 50 51 #if !PLATFORM(IOS) &&PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 109051 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 52 52 #define DEFAULT_SCREEN_FONT_SUBSTITUTION_ENABLED false 53 53 #else -
trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r164335 r164358 62 62 #endif 63 63 64 #if PLATFORM(MAC) && !PLATFORM(IOS)64 #if PLATFORM(MAC) 65 65 #import "WKViewInternal.h" 66 66 #endif … … 85 85 CGFloat _lastAdjustmentForScroller; 86 86 #endif 87 #if PLATFORM(MAC) && !PLATFORM(IOS)87 #if PLATFORM(MAC) 88 88 RetainPtr<WKView> _wkView; 89 89 #endif … … 149 149 #endif 150 150 151 #if PLATFORM(MAC) && !PLATFORM(IOS)151 #if PLATFORM(MAC) 152 152 _wkView = [[WKView alloc] initWithFrame:bounds context:context configuration:std::move(webPageConfiguration)]; 153 153 [self addSubview:_wkView.get()]; … … 432 432 #pragma mark OS X-specific methods 433 433 434 #if PLATFORM(MAC) && !PLATFORM(IOS)434 #if PLATFORM(MAC) 435 435 436 436 - (void)resizeSubviewsWithOldSize:(NSSize)oldSize -
trunk/Source/WebKit2/UIProcess/PageClient.h
r164172 r164358 214 214 virtual void updateAcceleratedCompositingMode(const LayerTreeContext&) = 0; 215 215 216 #if !PLATFORM(IOS) &&PLATFORM(MAC)216 #if PLATFORM(MAC) 217 217 virtual void pluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus) = 0; 218 218 virtual void setPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, PluginComplexTextInputState) = 0; … … 237 237 #endif // USE(DICTATION_ALTERNATIVES) 238 238 #endif // USE(APPKIT) 239 #endif // !PLATFORM(IOS) &&PLATFORM(MAC)239 #endif // PLATFORM(MAC) 240 240 241 241 #if PLATFORM(IOS) -
trunk/Source/WebKit2/UIProcess/Scrolling/RemoteScrollingTree.cpp
r163231 r164358 70 70 } 71 71 72 #if PLATFORM(MAC) && !PLATFORM(IOS)72 #if PLATFORM(MAC) 73 73 void RemoteScrollingTree::handleWheelEventPhase(PlatformWheelEventPhase phase) 74 74 { -
trunk/Source/WebKit2/UIProcess/Scrolling/RemoteScrollingTree.h
r163231 r164358 50 50 explicit RemoteScrollingTree(RemoteScrollingCoordinatorProxy&); 51 51 52 #if PLATFORM(MAC) && !PLATFORM(IOS)52 #if PLATFORM(MAC) 53 53 virtual void handleWheelEventPhase(WebCore::PlatformWheelEventPhase) override; 54 54 #endif -
trunk/Source/WebKit2/UIProcess/WebContext.h
r164230 r164358 489 489 #endif 490 490 491 #if PLATFORM(MAC) && !PLATFORM(IOS)491 #if PLATFORM(MAC) 492 492 RetainPtr<NSObject> m_enhancedAccessibilityObserver; 493 493 RetainPtr<NSObject> m_automaticTextReplacementNotificationObserver; -
trunk/Source/WebKit2/UIProcess/WebInspectorProxy.h
r164172 r164358 37 37 #include <wtf/text/WTFString.h> 38 38 39 #if PLATFORM(MAC) && !PLATFORM(IOS)39 #if PLATFORM(MAC) 40 40 #include "WKGeometry.h" 41 41 #include <wtf/HashMap.h> … … 94 94 void close(); 95 95 96 #if PLATFORM(MAC) && !PLATFORM(IOS)96 #if PLATFORM(MAC) 97 97 void createInspectorWindow(); 98 98 void updateInspectorWindowTitle() const; … … 225 225 AttachmentSide m_attachmentSide; 226 226 227 #if PLATFORM(MAC) && !PLATFORM(IOS)227 #if PLATFORM(MAC) 228 228 RetainPtr<WKWebInspectorWKView> m_inspectorView; 229 229 RetainPtr<NSWindow> m_inspectorWindow; -
trunk/Source/WebKit2/UIProcess/WebPageProxy.cpp
r164337 r164358 858 858 m_loaderClient->didChangeBackForwardList(this, added, std::move(removed)); 859 859 860 #if PLATFORM(MAC) && !PLATFORM(IOS)860 #if PLATFORM(MAC) 861 861 m_pageClient.clearCustomSwipeViews(); 862 862 #endif … … 2837 2837 { 2838 2838 m_uiClient->pageDidScroll(this); 2839 #if !PLATFORM(IOS) &&PLATFORM(MAC)2839 #if PLATFORM(MAC) 2840 2840 dismissCorrectionPanel(ReasonForDismissingAlternativeTextIgnored); 2841 2841 #endif … … 3926 3926 m_temporarilyClosedComposition = false; 3927 3927 3928 #if !PLATFORM(IOS) &&PLATFORM(MAC)3928 #if PLATFORM(MAC) 3929 3929 dismissCorrectionPanel(ReasonForDismissingAlternativeTextIgnored); 3930 3930 m_pageClient.dismissDictionaryLookupPanel(); … … 3966 3966 parameters.layerHostingMode = m_layerHostingMode; 3967 3967 3968 #if PLATFORM(MAC) && !PLATFORM(IOS)3968 #if PLATFORM(MAC) 3969 3969 parameters.colorSpace = m_pageClient.colorSpace(); 3970 3970 #endif … … 4359 4359 } 4360 4360 4361 #if !PLATFORM(IOS) &&PLATFORM(MAC)4361 #if PLATFORM(MAC) 4362 4362 4363 4363 void WebPageProxy::substitutionsPanelIsShowing(bool& isShowing) … … 4409 4409 #endif 4410 4410 4411 #endif // !PLATFORM(IOS) &&PLATFORM(MAC)4411 #endif // PLATFORM(MAC) 4412 4412 4413 4413 #if PLATFORM(COCOA) -
trunk/Source/WebKit2/UIProcess/WebPageProxy.h
r164337 r164358 1140 1140 bool maybeInitializeSandboxExtensionHandle(const WebCore::URL&, SandboxExtension::Handle&); 1141 1141 1142 #if PLATFORM(MAC) && !PLATFORM(IOS)1142 #if PLATFORM(MAC) 1143 1143 void substitutionsPanelIsShowing(bool&); 1144 1144 void showCorrectionPanel(int32_t panelType, const WebCore::FloatRect& boundingBoxOfReplacedString, const String& replacedString, const String& replacementString, const Vector<String>& alternativeReplacementStrings); … … 1152 1152 void dictationAlternatives(uint64_t dictationContext, Vector<String>& result); 1153 1153 #endif 1154 #endif // PLATFORM(MAC) && !PLATFORM(IOS)1154 #endif // PLATFORM(MAC) 1155 1155 1156 1156 #if PLATFORM(IOS) -
trunk/Source/WebKit2/UIProcess/WebPageProxy.messages.in
r164172 r164358 282 282 SubstitutionsPanelIsShowing() -> (bool isShowing) 283 283 #endif 284 #if !PLATFORM(IOS) &&PLATFORM(MAC)284 #if PLATFORM(MAC) 285 285 # Autocorrection messages 286 286 ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings) -
trunk/Source/WebKit2/UIProcess/mac/WebContextMac.mm
r163950 r164358 145 145 parameters.presenterApplicationPid = getpid(); 146 146 147 #if PLATFORM(MAC) && !PLATFORM(IOS)147 #if PLATFORM(MAC) 148 148 parameters.accessibilityEnhancedUserInterfaceEnabled = [[NSApp accessibilityAttributeValue:@"AXEnhancedUserInterface"] boolValue]; 149 149 #else -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundlePage.cpp
r163800 r164358 357 357 void WKBundlePageSetTopOverhangImage(WKBundlePageRef pageRef, WKImageRef imageRef) 358 358 { 359 #if PLATFORM(MAC) && !PLATFORM(IOS)359 #if PLATFORM(MAC) 360 360 toImpl(pageRef)->setTopOverhangImage(toImpl(imageRef)); 361 361 #else … … 367 367 void WKBundlePageSetBottomOverhangImage(WKBundlePageRef pageRef, WKImageRef imageRef) 368 368 { 369 #if PLATFORM(MAC) && !PLATFORM(IOS)369 #if PLATFORM(MAC) 370 370 toImpl(pageRef)->setBottomOverhangImage(toImpl(imageRef)); 371 371 #else -
trunk/Source/WebKit2/WebProcess/WebPage/PageBanner.h
r164225 r164358 31 31 #include <wtf/PassRefPtr.h> 32 32 33 #if PLATFORM(MAC) && !PLATFORM(IOS)33 #if PLATFORM(MAC) 34 34 OBJC_CLASS CALayer; 35 35 #include <wtf/RetainPtr.h> … … 61 61 }; 62 62 63 #if PLATFORM(MAC) && !PLATFORM(IOS)63 #if PLATFORM(MAC) 64 64 static PassRefPtr<PageBanner> create(CALayer *, int height, Client*); 65 65 CALayer *layer(); … … 80 80 81 81 private: 82 #if PLATFORM(MAC) && !PLATFORM(IOS)82 #if PLATFORM(MAC) 83 83 explicit PageBanner(CALayer *, int height, Client*); 84 84 #endif … … 91 91 bool m_isHidden; 92 92 93 #if PLATFORM(MAC) && !PLATFORM(IOS)93 #if PLATFORM(MAC) 94 94 RetainPtr<CALayer> m_layer; 95 95 int m_height; -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp
r164337 r164358 1280 1280 1281 1281 // Tell all our plug-in views that the device scale factor changed. 1282 #if PLATFORM(MAC) && !PLATFORM(IOS)1282 #if PLATFORM(MAC) 1283 1283 for (auto* pluginView : m_pluginViews) 1284 1284 pluginView->setDeviceScaleFactor(scaleFactor); … … 2029 2029 } 2030 2030 2031 #if !PLATFORM(MAC) || PLATFORM(IOS)2031 #if !PLATFORM(MAC) 2032 2032 void WebPage::didUpdateViewStateTimerFired() 2033 2033 { … … 3075 3075 #endif 3076 3076 3077 #if PLATFORM(MAC) && !PLATFORM(IOS)3077 #if PLATFORM(MAC) 3078 3078 m_viewGestureGeometryCollector.mainFrameDidLayout(); 3079 3079 #endif … … 3361 3361 #endif 3362 3362 3363 #if PLATFORM(MAC) && !PLATFORM(IOS)3363 #if PLATFORM(MAC) 3364 3364 RetainPtr<PDFDocument> WebPage::pdfDocumentForPrintingFrame(Frame* coreFrame) 3365 3365 { … … 3377 3377 return pluginView->pdfDocumentForPrinting(); 3378 3378 } 3379 #endif // PLATFORM(MAC) && !PLATFORM(IOS)3379 #endif // PLATFORM(MAC) 3380 3380 3381 3381 void WebPage::beginPrinting(uint64_t frameID, const PrintInfo& printInfo) … … 3389 3389 return; 3390 3390 3391 #if PLATFORM(MAC) && !PLATFORM(IOS)3391 #if PLATFORM(MAC) 3392 3392 if (pdfDocumentForPrintingFrame(coreFrame)) 3393 3393 return; 3394 #endif // PLATFORM(MAC) && !PLATFORM(IOS)3394 #endif // PLATFORM(MAC) 3395 3395 3396 3396 if (!m_printContext) … … 3451 3451 #if USE(CG) 3452 3452 if (coreFrame) { 3453 #if PLATFORM(MAC) && !PLATFORM(IOS)3453 #if PLATFORM(MAC) 3454 3454 ASSERT(coreFrame->document()->printing() || pdfDocumentForPrintingFrame(coreFrame)); 3455 3455 #else … … 3463 3463 graphicsContext->scale(FloatSize(printingScale, printingScale)); 3464 3464 3465 #if PLATFORM(MAC) && !PLATFORM(IOS)3465 #if PLATFORM(MAC) 3466 3466 if (RetainPtr<PDFDocument> pdfDocument = pdfDocumentForPrintingFrame(coreFrame)) { 3467 3467 ASSERT(!m_printContext); … … 3497 3497 if (coreFrame) { 3498 3498 3499 #if PLATFORM(MAC) && !PLATFORM(IOS)3499 #if PLATFORM(MAC) 3500 3500 ASSERT(coreFrame->document()->printing() || pdfDocumentForPrintingFrame(coreFrame)); 3501 3501 #else … … 3509 3509 RetainPtr<CGContextRef> context = adoptCF(CGPDFContextCreate(pdfDataConsumer.get(), &mediaBox, 0)); 3510 3510 3511 #if PLATFORM(MAC) && !PLATFORM(IOS)3511 #if PLATFORM(MAC) 3512 3512 if (RetainPtr<PDFDocument> pdfDocument = pdfDocumentForPrintingFrame(coreFrame)) { 3513 3513 ASSERT(!m_printContext); -
trunk/Source/WebKit2/WebProcess/WebPage/WebPage.messages.in
r164337 r164358 292 292 InsertDictatedText(String text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd, Vector<WebCore::DictationAlternative> dictationAlternatives) -> (bool handled, WebKit::EditorState newState) 293 293 #endif 294 #if PLATFORM(MAC) && !PLATFORM(IOS)294 #if PLATFORM(MAC) 295 295 InsertText(String text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd) -> (bool handled, WebKit::EditorState newState) 296 296 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd) -> (WebKit::EditorState newState) -
trunk/Source/WebKit2/config.h
r161246 r164358 77 77 78 78 #ifndef ENABLE_SEC_ITEM_SHIM 79 #if PLATFORM(MAC) && !PLATFORM(IOS)79 #if PLATFORM(MAC) 80 80 #define ENABLE_SEC_ITEM_SHIM 1 81 81 #endif … … 83 83 84 84 #ifndef HAVE_WINDOW_SERVER_OCCLUSION_NOTIFICATIONS 85 #if PLATFORM(MAC) && !PLATFORM(IOS) &&__MAC_OS_X_VERSION_MIN_REQUIRED >= 109085 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 86 86 #define HAVE_WINDOW_SERVER_OCCLUSION_NOTIFICATIONS 1 87 87 #endif
Note: See TracChangeset
for help on using the changeset viewer.