haikuwebkit/Source/WebCore/PlatformWin.cmake

221 lines
6.9 KiB
CMake
Raw Permalink Normal View History

Update ANGLE https://bugs.webkit.org/show_bug.cgi?id=164101 Reviewed by Darin Adler. Source/ThirdParty/ANGLE: Updated to f01731530e7f754e5ebaf32d00f3e23b62376424 Differences between upstream ANGLE and WebKit's copy of ANGLE are in changes.diff Source/WebCore: ShCheckVariablesWithinPackingLimits has changed signatures from taking a ShVariableInfo* and length to taking a std::vector<sh::ShaderVariable> which requires more information about the shader variables than we kept in GraphicsContext3D::SymbolInfo. I removed the SymbolInfo class because it was redundant with ANGLE's sh::ShaderVariable and now unused. Covered by existing WebGL tests. * CMakeLists.txt: * PlatformMac.cmake: * PlatformWin.cmake: * platform/graphics/ANGLEWebKitBridge.cpp: (WebCore::appendSymbol): (WebCore::getStructInfo): (WebCore::getSymbolInfo): (WebCore::ANGLEWebKitBridge::compileShaderSource): * platform/graphics/ANGLEWebKitBridge.h: (WebCore::ANGLEShaderSymbol::isSampler): Deleted. * platform/graphics/GraphicsContext3D.h: (WebCore::GraphicsContext3D::SymbolInfo::SymbolInfo): Deleted. (WebCore::GraphicsContext3D::SymbolInfo::operator==): Deleted. * platform/graphics/opengl/Extensions3DOpenGLCommon.cpp: (WebCore::Extensions3DOpenGLCommon::getTranslatedShaderSourceANGLE): * platform/graphics/opengl/GraphicsContext3DOpenGLCommon.cpp: (WebCore::GraphicsContext3D::checkVaryingsPacking): (WebCore::GraphicsContext3D::precisionsMatch): (WebCore::GraphicsContext3D::mappedSymbolName): (WebCore::GraphicsContext3D::originalSymbolName): Canonical link: https://commits.webkit.org/181822@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@208036 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-10-28 06:00:29 +00:00
add_definitions(/bigobj -D__STDC_CONSTANT_MACROS)
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
"${CMAKE_BINARY_DIR}/../include/private"
"${CMAKE_BINARY_DIR}/../include/private/JavaScriptCore"
"${WEBCORE_DIR}/accessibility/win"
"${WEBCORE_DIR}/page/win"
"${WEBCORE_DIR}/platform/graphics/egl"
"${WEBCORE_DIR}/platform/graphics/opengl"
"${WEBCORE_DIR}/platform/graphics/opentype"
"${WEBCORE_DIR}/platform/graphics/win"
[MediaCapabilities] Platform integration https://bugs.webkit.org/show_bug.cgi?id=187850 Reviewed by Eric Carlson. Source/WebCore: Mock platform support for the MediaCapabilities specification. Test: media/mediacapabilities/mock-decodingInfo.html media/mediacapabilities/mock-encodingInfo.html * Modules/mediacapabilities/MediaCapabilities.cpp: (WebCore::MediaCapabilities::decodingInfo): (WebCore::MediaCapabilities::encodingInfo): * Modules/mediacapabilities/MediaCapabilitiesInfo.h: (WebCore::MediaCapabilitiesInfo::create): * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformWPE.cmake: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * platform/mediacapabilities/MediaEngineConfiguration.cpp: Added. (WebCore::MediaEngineVideoConfiguration::MediaEngineVideoConfiguration): (WebCore::MediaEngineAudioConfiguration::MediaEngineAudioConfiguration): (WebCore::MediaEngineConfiguration::MediaEngineConfiguration): * platform/mediacapabilities/MediaEngineConfiguration.h: Added. (WebCore::MediaEngineVideoConfiguration::create): (WebCore::MediaEngineVideoConfiguration::contentType const): (WebCore::MediaEngineVideoConfiguration::size const): (WebCore::MediaEngineVideoConfiguration::bitrate const): (WebCore::MediaEngineVideoConfiguration::framerate const): (WebCore::MediaEngineAudioConfiguration::create): (WebCore::MediaEngineAudioConfiguration::contentType const): (WebCore::MediaEngineAudioConfiguration::channels const): (WebCore::MediaEngineAudioConfiguration::bitrate const): (WebCore::MediaEngineAudioConfiguration::samplerate const): (WebCore::MediaEngineConfiguration::audioConfiguration const): (WebCore::MediaEngineConfiguration::videoConfiguration const): * platform/mediacapabilities/MediaEngineConfigurationFactory.cpp: Added. (WebCore::mockEnabled): (WebCore::MediaEngineConfigurationFactory::createDecodingConfiguration): (WebCore::MediaEngineConfigurationFactory::createEncodingConfiguration): (WebCore::MediaEngineConfigurationFactory::enableMock): (WebCore::MediaEngineConfigurationFactory::disableMock): * platform/mediacapabilities/MediaEngineConfigurationFactory.h: Added. * platform/mediacapabilities/MediaEngineDecodingConfiguration.h: Added. (WebCore::MediaEngineDecodingConfiguration::MediaEngineDecodingConfiguration): (WebCore::MediaEngineDecodingConfiguration::canDecodeMedia): (WebCore::MediaEngineDecodingConfiguration::canSmoothlyDecodeMedia): (WebCore::MediaEngineDecodingConfiguration::canPowerEfficientlyDecodeMedia): (WebCore::MediaEngineDecodingConfiguration::decodingType const): * platform/mediacapabilities/MediaEngineEncodingConfiguration.h: Added. (WebCore::MediaEngineEncodingConfiguration::MediaEngineEncodingConfiguration): (WebCore::MediaEngineEncodingConfiguration::canEncodeMedia): (WebCore::MediaEngineEncodingConfiguration::canSmoothlyEncodeMedia): (WebCore::MediaEngineEncodingConfiguration::canPowerEfficientlyEncodeMedia): (WebCore::MediaEngineEncodingConfiguration::encodingType const): * platform/mock/MediaEngineDecodingConfigurationMock.cpp: Added. (WebCore::MediaEngineDecodingConfigurationMock::canDecodeMedia): (WebCore::MediaEngineDecodingConfigurationMock::canSmoothlyDecodeMedia): (WebCore::MediaEngineDecodingConfigurationMock::canPowerEfficientlyDecodeMedia): * platform/mock/MediaEngineDecodingConfigurationMock.h: Added. * platform/mock/MediaEngineEncodingConfigurationMock.cpp: Added. (WebCore::MediaEngineEncodingConfigurationMock::canEncodeMedia): (WebCore::MediaEngineEncodingConfigurationMock::canSmoothlyEncodeMedia): (WebCore::MediaEngineEncodingConfigurationMock::canPowerEfficientlyEncodeMedia): * platform/mock/MediaEngineEncodingConfigurationMock.h: Added. * testing/Internals.cpp: (WebCore::Internals::resetToConsistentState): (WebCore::Internals::enableMockMediaCapabilities): * testing/Internals.h: * testing/Internals.idl: LayoutTests: Mock tests for the MediaCapabilities specification. * media/mediacapabilities/mock-decodingInfo-expected.txt: Added. * media/mediacapabilities/mock-decodingInfo.html: Added. * media/mediacapabilities/mock-encodingInfo-expected.txt: Added. * media/mediacapabilities/mock-encodingInfo.html: Added. * media/video-test.js: (checkMediaCapabilitiesInfo): Canonical link: https://commits.webkit.org/203431@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@234582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-08-05 09:26:00 +00:00
"${WEBCORE_DIR}/platform/mediacapabilities"
"${WEBCORE_DIR}/platform/network/win"
"${WEBCORE_DIR}/platform/win"
)
list(APPEND WebCore_SOURCES
accessibility/win/AXObjectCacheWin.cpp
accessibility/win/AccessibilityObjectWin.cpp
accessibility/win/AccessibilityObjectWrapperWin.cpp
2014-10-04 08:37:57 +00:00
editing/win/EditorWin.cpp
html/HTMLSelectElementWin.cpp
page/win/DragControllerWin.cpp
page/win/EventHandlerWin.cpp
page/win/FrameWin.cpp
platform/Cursor.cpp
platform/LocalizedStrings.cpp
Support InputEvent.dataTransfer for the InputEvent spec https://bugs.webkit.org/show_bug.cgi?id=163213 <rdar://problem/28700407> Reviewed by Ryosuke Niwa. Source/WebCore: Adds support for the dataTransfer attribute of InputEvent, which contains both HTML and plain text representations of inserted content corresponding to input types "insertFromPaste", "insertFromDrop" and "insertReplacementText". The specification calls for the data transfer's drag data item list to contain this information via two entries with type strings "text/html" and "text/plain". However, WebKit does not yet support the DataTransfer.items -- in lieu of this, we will provide this information for now via getData("text/plain") and getData("text/html"), respectively. To support this attribute, we need a special type of DataTransfer which is readonly and returns canned data given a type string. To implement this, we introduce StaticPasteboard, a type of Pasteboard which is initialized with a map of type string to data. When asked for its data via getData, the StaticPasteboard searches its map for the requested type and returns the result, if any. An editing command may now create a new DataTransfer via DataTransfer::createForInputEvent from HTML and plaintext strings, and then vend this information to its dispatched input events by overriding CompositeEditCommand::inputEventDataTransfer. Some further work will be needed to ensure that all information exposed via this DataTransfer does not contain hidden content. To do this, we should create a new Document, "paste" the contents of our copied HTML string into it, then simulate selecting the content and generating markup from the selection to create a sanitized DocumentFragment corresponding to the original copied HTML. This will be addressed in a future patch. Tests: fast/events/input-events-paste-rich-datatransfer.html fast/events/input-events-spell-checking-datatransfer.html * PlatformEfl.cmake: * PlatformGTK.cmake: * PlatformWin.cmake: Add StaticPasteboard.cpp. * WebCore.xcodeproj/project.pbxproj: * dom/DataTransfer.cpp: (WebCore::DataTransfer::DataTransfer): (WebCore::DataTransfer::createForInputEvent): Initializes a new DataTransfer for the purposes of input events. This takes a HTML and plain text representations of the data being inserted and creates a new readonly DataTransfer backed by a StaticPasteboard that only knows how to map the "text/plain" data type to the given plaintext string and "text/html" to the given HTML text. * dom/DataTransfer.h: * dom/InputEvent.cpp: (WebCore::InputEvent::create): (WebCore::InputEvent::InputEvent): (WebCore::InputEvent::dataTransfer): * dom/InputEvent.h: * dom/InputEvent.idl: Add the InputEvent.dataTransfer attribute. * dom/Node.cpp: * editing/CompositeEditCommand.cpp: (WebCore::CompositeEditCommand::inputEventDataTransfer): Add a new hook for CompositeEditCommands to vend a DataTransfer for the purposes of input events. By default, this is null. * editing/CompositeEditCommand.h: * editing/Editor.cpp: (WebCore::dispatchBeforeInputEvent): (WebCore::dispatchInputEvent): (WebCore::dispatchBeforeInputEvents): (WebCore::dispatchInputEvents): (WebCore::Editor::willApplyEditing): (WebCore::Editor::appliedEditing): * editing/ReplaceRangeWithTextCommand.cpp: (WebCore::ReplaceRangeWithTextCommand::willApplyCommand): (WebCore::ReplaceRangeWithTextCommand::doApply): (WebCore::ReplaceRangeWithTextCommand::inputEventDataTransfer): * editing/ReplaceRangeWithTextCommand.h: * editing/ReplaceSelectionCommand.cpp: (WebCore::ReplaceSelectionCommand::willApplyCommand): Initialize the ReplacementFragment here before applying the command, adjusting the DocumentFragment to be inserted in the process. (WebCore::ReplaceSelectionCommand::doApply): (WebCore::ReplaceSelectionCommand::inputEventDataTransfer): (WebCore::ReplaceSelectionCommand::ensureReplacementFragment): Returns the ReplacementFragment used to apply the command, initializing it if necessary and stripping extraneous nodes off of the document fragment in the process. Since ReplaceSelectionCommand may be used as a top-level editing command or a child of another CompositeEditCommand such as the ReplaceRangeWithTextCommand, the ReplacementFragment may be initialized either in willApplyCommand or in doApply. * editing/ReplaceSelectionCommand.h: * editing/SpellingCorrectionCommand.cpp: (WebCore::SpellingCorrectionCommand::willApplyCommand): (WebCore::SpellingCorrectionCommand::doApply): (WebCore::SpellingCorrectionCommand::inputEventDataTransfer): * editing/SpellingCorrectionCommand.h: Using the replacement text fragment, create and return a DataTransfer for input events. * platform/Pasteboard.h: * platform/StaticPasteboard.cpp: Added. (WebCore::StaticPasteboard::create): (WebCore::StaticPasteboard::StaticPasteboard): (WebCore::StaticPasteboard::hasData): (WebCore::StaticPasteboard::types): (WebCore::StaticPasteboard::readString): * platform/StaticPasteboard.h: Copied from Source/WebCore/dom/InputEvent.cpp. * platform/efl/PasteboardEfl.cpp: (WebCore::Pasteboard::writeMarkup): (WebCore::Pasteboard::write): (WebCore::Pasteboard::read): * platform/gtk/PasteboardGtk.cpp: (WebCore::Pasteboard::writeMarkup): * platform/ios/PasteboardIOS.mm: (WebCore::Pasteboard::writeMarkup): * platform/mac/PasteboardMac.mm: (WebCore::Pasteboard::Pasteboard): (WebCore::Pasteboard::writeMarkup): * platform/win/PasteboardWin.cpp: (WebCore::Pasteboard::write): (WebCore::Pasteboard::read): To account for virtual methods on Pasteboard, add implementations for methods that were previously defined but unimplemented on these platforms. LayoutTests: Adds 2 new layout tests verifying that input events dispatched as a result of pasting or spell checking contain DataTransfers that have rich and plain text representations of the contents being inserted. * fast/events/input-events-fired-when-typing-expected.txt: * fast/events/input-events-fired-when-typing.html: * fast/events/input-events-paste-rich-datatransfer-expected.txt: Added. * fast/events/input-events-paste-rich-datatransfer.html: Added. * fast/events/input-events-spell-checking-datatransfer-expected.txt: Added. * fast/events/input-events-spell-checking-datatransfer.html: Added. * platform/ios-simulator/TestExpectations: Canonical link: https://commits.webkit.org/181698@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@207841 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-10-25 20:23:10 +00:00
platform/StaticPasteboard.cpp
platform/audio/PlatformMediaSessionManager.cpp
platform/graphics/egl/GLContextEGL.cpp
platform/graphics/opengl/TemporaryOpenGLSetting.cpp
platform/graphics/opentype/OpenTypeUtilities.cpp
platform/graphics/win/ColorDirect2D.cpp
[Win] [GTK] [EFL] Compile (but don't use, yet) the platform-independent piece of ComplexTextController https://bugs.webkit.org/show_bug.cgi?id=167927 Reviewed by Brent Fulgham. Source/WebCore: This patch simply moves some functions around to enable the Win, GTK, and EFL ports to compile the platform-independent pieces of ComplexTextController. Those parts of ComplexTextController have some dependencies which were previously only available on the Cocoa ports; however, those dependencies are easily created or moved from elsewhere. The next step is to populate the ComplexTextController::collectComplexTextRunsForCharacters() function for DirectWrite and HarfBuzz. Once that is done, UniscribeController and HarfBuzzShaper can be deleted. Adds ComplexTextController TestWebKitAPI tests to the Win and GTK ports. * CMakeLists.txt: Everyone can compile the platform-independent piece of ComplexTextController. * PlatformEfl.cmake: Add the HarfBuzz-specific piece. * PlatformGTK.cmake: Ditto. * PlatformWin.cmake: Add the DirectWrite-specific piece. * platform/graphics/ComplexTextController.cpp: (WebCore::TextLayoutDeleter::operator()): ComplexTextController shouldn't be enabled yet for Win, GTK, or EFL. (WebCore::FontCascade::createLayout): Ditto. (WebCore::FontCascade::width): Ditto. (WebCore::ComplexTextController::ComplexTextRun::ComplexTextRun): Moved shared code to the shared file. * platform/graphics/Font.cpp: (WebCore::Font::noSynthesizableFeaturesFont): Default implementation for other ports. (WebCore::Font::variantCapsSupportsCharacterForSynthesis): Ditto. * platform/graphics/FontCascade.cpp: (WebCore::FontCascade::fontForCombiningCharacterSequence): Ditto. (WebCore::FontCascade::drawEmphasisMarksForComplexText): Ditto. (WebCore::FontCascade::createLayout): Deleted. Moved to ComplexTextController. (WebCore::TextLayoutDeleter::operator()): Deleted. Ditto. * platform/graphics/FontCascade.h: fontForCombiningCharacterSequence() should exist on all ports. * platform/graphics/cairo/FontCairoHarfbuzzNG.cpp: (WebCore::FontCascade::drawEmphasisMarksForComplexText): Deleted. Shared among all ports. * platform/graphics/cocoa/FontCascadeCocoa.mm: (WebCore::FontCascade::drawEmphasisMarksForComplexText): Deleted. Ditto. * platform/graphics/harfbuzz/ComplexTextControllerHarfBuzz.cpp: Added. (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Empty implementation of HarfBuzz-specific piece of ComplexTextController. * platform/graphics/mac/ComplexTextControllerCoreText.mm: Moved constructors to shared file. * platform/graphics/win/ComplexTextControllerDirectWrite.cpp: Added. (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Empty implementation of Direct Write-specific piece of ComplexTextController. * platform/graphics/win/FontWin.cpp: (WebCore::FontCascade::drawEmphasisMarksForComplexText): Deleted. Shared among all ports. Tools: Enable ComplexTextController API tests on the Win and GTK ports. * TestWebKitAPI/PlatformGTK.cmake: * TestWebKitAPI/PlatformWin.cmake: Canonical link: https://commits.webkit.org/184985@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@211836 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2017-02-07 21:37:44 +00:00
platform/graphics/win/ComplexTextControllerDirectWrite.cpp
[Win] Use ComplexTextController instead of UniscribeController https://bugs.webkit.org/show_bug.cgi?id=204884 Reviewed by Brent Fulgham. Source/WebCore: UniscribeController doesn't support surrogate pairs and has rendering glitches of partially selected a combining character. Remove UniscribeController, and use ComplexTextController by implementing `collectComplexTextRunsForCharacters` with Uniscribe. Covered by existing tests. * PlatformWin.cmake: * platform/graphics/ComplexTextController.cpp: (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): Deleted. * platform/graphics/FontCascade.cpp: (WebCore::FontCascade::widthOfTextRange const): (WebCore::FontCascade::getGlyphsAndAdvancesForComplexText const): (WebCore::FontCascade::drawGlyphBuffer const): (WebCore::FontCascade::floatWidthForComplexText const): (WebCore::FontCascade::adjustSelectionRectForComplexText const): (WebCore::FontCascade::offsetForPositionForComplexText const): * platform/graphics/win/ComplexTextControllerUniscribe.cpp: Added. (WebCore::shapeByUniscribe): (WebCore::ComplexTextController::collectComplexTextRunsForCharacters): * platform/graphics/win/FontCGWin.cpp: * platform/graphics/win/FontCascadeDirect2D.cpp: * platform/graphics/win/FontWin.cpp: (WebCore::FontCascade::adjustSelectionRectForComplexText const): Deleted. (WebCore::FontCascade::getGlyphsAndAdvancesForComplexText const): Deleted. (WebCore::FontCascade::floatWidthForComplexText const): Deleted. (WebCore::FontCascade::offsetForPositionForComplexText const): Deleted. * platform/graphics/win/UniscribeController.cpp: Removed. * platform/graphics/win/UniscribeController.h: Removed. Tools: * TestWebKitAPI/Tests/WebCore/ComplexTextController.cpp: Enabled these tests for PLATFORM(WIN). LayoutTests: * platform/win/TestExpectations: * platform/win/fast/text/justify-ideograph-complex-expected.txt: Rebaselined. * platform/wincairo/TestExpectations: Canonical link: https://commits.webkit.org/219166@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@254323 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-01-10 03:50:58 +00:00
platform/graphics/win/ComplexTextControllerUniscribe.cpp
platform/graphics/win/DIBPixelData.cpp
platform/graphics/win/DisplayRefreshMonitorWin.cpp
[Win][Direct2D] Provide Direct2D-based geometry and transform cast operations https://bugs.webkit.org/show_bug.cgi?id=161818 Reviewed by Dean Jackson. Source/WebCore: Tested by new TestWebKitAPI tests. Add new casting operators to and from various Direct2D data types. * PlatformWin.cmake: * platform/graphics/FloatPoint.h: (WebCore::FloatPoint::FloatPoint): * platform/graphics/FloatRect.h: * platform/graphics/FloatSize.h: (WebCore::FloatSize::FloatSize): * platform/graphics/IntPoint.h: * platform/graphics/IntRect.h: * platform/graphics/IntSize.h: * platform/graphics/transforms/AffineTransform.h: * platform/graphics/transforms/TransformationMatrix.h: * platform/graphics/win/FloatPointDirect2D.cpp: * platform/graphics/win/FloatRectDirect2D.cpp: * platform/graphics/win/FloatSizeDirect2D.cpp: * platform/graphics/win/IntPointWin.cpp: (WebCore::IntPoint::IntPoint): (WebCore::IntPoint::operator D2D1_POINT_2F): (WebCore::IntPoint::operator D2D1_POINT_2U): * platform/graphics/win/IntRectWin.cpp: (WebCore::IntRect::IntRect): (WebCore::IntRect::operator D2D1_RECT_F): (WebCore::IntRect::operator D2D1_RECT_U): * platform/graphics/win/IntSizeWin.cpp: (WebCore::IntSize::IntSize): (WebCore::IntSize::operator D2D1_SIZE_U): (WebCore::IntSize::operator D2D1_SIZE_F): * platform/graphics/win/TransformationMatrixDirect2D.cpp: Added. (WebCore::TransformationMatrix::TransformationMatrix): (WebCore::TransformationMatrix::operator D2D1_MATRIX_3X2_F): (WebCore::AffineTransform::AffineTransform): (WebCore::AffineTransform::operator D2D1_MATRIX_3X2_F): Source/WebKit: * PlatformWin.cmake: Link to Direct2D on Windows. Tools: Add several new test suites for the various geometric primitives in WebCore. * TestWebKitAPI/PlatformWin.cmake: Add new files for test cases. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto. * TestWebKitAPI/Tests/WebCore/AffineTransform.cpp: Added. * TestWebKitAPI/Tests/WebCore/FloatPoint.cpp: Added. * TestWebKitAPI/Tests/WebCore/FloatRect.cpp: Added. * TestWebKitAPI/Tests/WebCore/FloatSize.cpp: Added. * TestWebKitAPI/Tests/WebCore/IntPoint.cpp: Added. * TestWebKitAPI/Tests/WebCore/IntRect.cpp: Added. * TestWebKitAPI/Tests/WebCore/IntSize.cpp: Added. * TestWebKitAPI/Tests/WebCore/TransformationMatrix.cpp: Add some new Windows-focused test cases. Canonical link: https://commits.webkit.org/180070@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-13 19:54:53 +00:00
platform/graphics/win/FloatPointDirect2D.cpp
platform/graphics/win/FloatRectDirect2D.cpp
platform/graphics/win/FloatSizeDirect2D.cpp
platform/graphics/win/FontCacheWin.cpp
[Cocoa] USE(PLATFORM_SYSTEM_FALLBACK_LIST) is true on all Cocoa platforms, so there's no need to consult it in Cocoa-specific files https://bugs.webkit.org/show_bug.cgi?id=215684 Reviewed by Darin Adler. Source/WebCore: Removes dead code. No new tests because there is no behavior change. * Configurations/WebCore.xcconfig: * PlatformFTW.cmake: * PlatformWin.cmake: * page/cocoa/MemoryReleaseCocoa.mm: (WebCore::platformReleaseMemory): * platform/FreeType.cmake: * platform/graphics/FontCascadeDescription.cpp: (WebCore::FontCascadeDescription::effectiveFamilyCount const): Deleted. (WebCore::FontCascadeDescription::effectiveFamilyAt const): Deleted. * platform/graphics/cocoa/FontCacheCoreText.cpp: (WebCore::invalidateFontCache): * platform/graphics/cocoa/FontDescriptionCocoa.cpp: (WebCore::FontCascadeDescription::effectiveFamilyAt const): * platform/graphics/cocoa/FontFamilySpecificationCoreText.cpp: (WebCore::FontFamilySpecificationCoreText::fontRanges const): * platform/graphics/cocoa/SystemFontDatabaseCoreText.cpp: * platform/graphics/harfbuzz/FontDescriptionHarfBuzz.cpp: Added. Moved port-specific implementations into port-specific files. (WebCore::FontCascadeDescription::effectiveFamilyCount const): (WebCore::FontCascadeDescription::effectiveFamilyAt const): * platform/graphics/win/FontDescriptionWin.cpp: Added. Moved port-specific implementations into port-specific files. (WebCore::FontCascadeDescription::effectiveFamilyCount const): (WebCore::FontCascadeDescription::effectiveFamilyAt const): Source/WebCore/PAL: * pal/spi/cocoa/CoreTextSPI.h: Source/WTF: * wtf/PlatformUse.h: Canonical link: https://commits.webkit.org/229041@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@266672 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-09-05 21:34:14 +00:00
platform/graphics/win/FontDescriptionWin.cpp
platform/graphics/win/FontPlatformDataWin.cpp
platform/graphics/win/FontWin.cpp
Build more testing binaries with CMake on Windows https://bugs.webkit.org/show_bug.cgi?id=147799 Reviewed by Brent Fulgham. Source/JavaScriptCore: * shell/PlatformWin.cmake: Added. Build jsc.dll and jsc.exe to find Apple Application Support or WinCairo dlls before using them. Source/WebCore: * CMakeLists.txt: MockCDM.cpp needs to be part of WebCoreTestSupport, not WebCore. * PlatformWin.cmake: Added files needed for AppleWin port. Source/WebKit/win: * WebKitDLL.cpp: (loadResourceIntoBuffer): AppleWin doesn't like exporting a function without a separate declaration. Tools: * DumpRenderTree/CMakeLists.txt: Build TestNetscapePlugin. * DumpRenderTree/PlatformWin.cmake: Build ImageDiff and add files necessary for TestNetscapePlugin on Windows. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders: Added. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit: Added. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: Copied from DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npapi.h. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: Copied from DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npfunctions.h. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: Copied from DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npruntime.h. * DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npapi.h: Removed. * DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npfunctions.h: Removed. * DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npruntime.h: Removed. Canonical link: https://commits.webkit.org/165913@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-08-07 23:42:07 +00:00
platform/graphics/win/FullScreenController.cpp
platform/graphics/win/GraphicsContextWin.cpp
platform/graphics/win/IconWin.cpp
platform/graphics/win/ImageWin.cpp
platform/graphics/win/IntPointWin.cpp
platform/graphics/win/IntRectWin.cpp
platform/graphics/win/IntSizeWin.cpp
platform/graphics/win/MediaPlayerPrivateFullscreenWindow.cpp
platform/graphics/win/SimpleFontDataWin.cpp
[Win][Direct2D] Provide Direct2D-based geometry and transform cast operations https://bugs.webkit.org/show_bug.cgi?id=161818 Reviewed by Dean Jackson. Source/WebCore: Tested by new TestWebKitAPI tests. Add new casting operators to and from various Direct2D data types. * PlatformWin.cmake: * platform/graphics/FloatPoint.h: (WebCore::FloatPoint::FloatPoint): * platform/graphics/FloatRect.h: * platform/graphics/FloatSize.h: (WebCore::FloatSize::FloatSize): * platform/graphics/IntPoint.h: * platform/graphics/IntRect.h: * platform/graphics/IntSize.h: * platform/graphics/transforms/AffineTransform.h: * platform/graphics/transforms/TransformationMatrix.h: * platform/graphics/win/FloatPointDirect2D.cpp: * platform/graphics/win/FloatRectDirect2D.cpp: * platform/graphics/win/FloatSizeDirect2D.cpp: * platform/graphics/win/IntPointWin.cpp: (WebCore::IntPoint::IntPoint): (WebCore::IntPoint::operator D2D1_POINT_2F): (WebCore::IntPoint::operator D2D1_POINT_2U): * platform/graphics/win/IntRectWin.cpp: (WebCore::IntRect::IntRect): (WebCore::IntRect::operator D2D1_RECT_F): (WebCore::IntRect::operator D2D1_RECT_U): * platform/graphics/win/IntSizeWin.cpp: (WebCore::IntSize::IntSize): (WebCore::IntSize::operator D2D1_SIZE_U): (WebCore::IntSize::operator D2D1_SIZE_F): * platform/graphics/win/TransformationMatrixDirect2D.cpp: Added. (WebCore::TransformationMatrix::TransformationMatrix): (WebCore::TransformationMatrix::operator D2D1_MATRIX_3X2_F): (WebCore::AffineTransform::AffineTransform): (WebCore::AffineTransform::operator D2D1_MATRIX_3X2_F): Source/WebKit: * PlatformWin.cmake: Link to Direct2D on Windows. Tools: Add several new test suites for the various geometric primitives in WebCore. * TestWebKitAPI/PlatformWin.cmake: Add new files for test cases. * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj: Ditto. * TestWebKitAPI/Tests/WebCore/AffineTransform.cpp: Added. * TestWebKitAPI/Tests/WebCore/FloatPoint.cpp: Added. * TestWebKitAPI/Tests/WebCore/FloatRect.cpp: Added. * TestWebKitAPI/Tests/WebCore/FloatSize.cpp: Added. * TestWebKitAPI/Tests/WebCore/IntPoint.cpp: Added. * TestWebKitAPI/Tests/WebCore/IntRect.cpp: Added. * TestWebKitAPI/Tests/WebCore/IntSize.cpp: Added. * TestWebKitAPI/Tests/WebCore/TransformationMatrix.cpp: Add some new Windows-focused test cases. Canonical link: https://commits.webkit.org/180070@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@205871 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2016-09-13 19:54:53 +00:00
platform/graphics/win/TransformationMatrixDirect2D.cpp
platform/graphics/win/TransformationMatrixWin.cpp
platform/network/win/DownloadBundleWin.cpp
platform/network/win/NetworkStateNotifierWin.cpp
platform/win/BString.cpp
platform/win/BitmapInfo.cpp
platform/win/ClipboardUtilitiesWin.cpp
platform/win/CursorWin.cpp
platform/win/DefWndProcWindowClass.cpp
platform/win/DragDataWin.cpp
platform/win/DragImageWin.cpp
Build more testing binaries with CMake on Windows https://bugs.webkit.org/show_bug.cgi?id=147799 Reviewed by Brent Fulgham. Source/JavaScriptCore: * shell/PlatformWin.cmake: Added. Build jsc.dll and jsc.exe to find Apple Application Support or WinCairo dlls before using them. Source/WebCore: * CMakeLists.txt: MockCDM.cpp needs to be part of WebCoreTestSupport, not WebCore. * PlatformWin.cmake: Added files needed for AppleWin port. Source/WebKit/win: * WebKitDLL.cpp: (loadResourceIntoBuffer): AppleWin doesn't like exporting a function without a separate declaration. Tools: * DumpRenderTree/CMakeLists.txt: Build TestNetscapePlugin. * DumpRenderTree/PlatformWin.cmake: Build ImageDiff and add files necessary for TestNetscapePlugin on Windows. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders: Added. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit: Added. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: Copied from DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npapi.h. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: Copied from DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npfunctions.h. * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: Copied from DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npruntime.h. * DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npapi.h: Removed. * DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npfunctions.h: Removed. * DumpRenderTree/TestNetscapePlugIn/unix/ForwardingHeaders/WebKit/npruntime.h: Removed. Canonical link: https://commits.webkit.org/165913@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@188176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-08-07 23:42:07 +00:00
platform/win/GDIObjectCounter.cpp
platform/win/GDIUtilities.cpp
platform/win/KeyEventWin.cpp
platform/win/LocalizedStringsWin.cpp
platform/win/LoggingWin.cpp
platform/win/MIMETypeRegistryWin.cpp
Make every port implement MainThreadSharedTimer instead of using global functions https://bugs.webkit.org/show_bug.cgi?id=150498 Reviewed by Darin Adler. Move MainThreadSharedTimer to its own files and add the common implementation there. * CMakeLists.txt: Add MainThreadSharedTimer.cpp. * PlatformEfl.cmake: Update filenames. * PlatformGTK.cmake: Ditto. * PlatformMac.cmake: Ditto. * PlatformWin.cmake: Ditto. * platform/MainThreadSharedTimer.cpp: Copied from Source/WebCore/platform/efl/SharedTimerEfl.cpp. (WebCore::MainThreadSharedTimer::singleton): (WebCore::MainThreadSharedTimer::MainThreadSharedTimer): (WebCore::MainThreadSharedTimer::setFiredFunction): (WebCore::MainThreadSharedTimer::fired): * platform/MainThreadSharedTimer.h: Copied from Source/WebCore/platform/gtk/SharedTimerGtk.cpp. * platform/SharedTimer.h: Remove MainThreadSharedTimer implementation and reindent the code. (WebCore::SharedTimer::SharedTimer): (WebCore::SharedTimer::~SharedTimer): (WebCore::SharedTimer::invalidate): * platform/ThreadTimers.cpp: (WebCore::ThreadTimers::ThreadTimers): Use MainThreadSharedTimer::singleton(). (WebCore::ThreadTimers::setSharedTimer): Use a lambda function instead of a pointer to a static method. (WebCore::ThreadTimers::sharedTimerFired): Deleted. * platform/ThreadTimers.h: Removed unsused static method sharedTimerFired. * platform/cf/MainThreadSharedTimerCF.cpp: Renamed from Source/WebCore/platform/cf/SharedTimerCF.cpp. (WebCore::applicationDidBecomeActive): (WebCore::setupPowerObserver): (WebCore::timerFired): (WebCore::restartSharedTimer): (WebCore::MainThreadSharedTimer::invalidate): (WebCore::MainThreadSharedTimer::setFireInterval): (WebCore::MainThreadSharedTimer::stop): * platform/efl/MainThreadSharedTimerEfl.cpp: Renamed from Source/WebCore/platform/efl/SharedTimerEfl.cpp. (WebCore::timerEvent): (WebCore::MainThreadSharedTimer::stop): (WebCore::MainThreadSharedTimer::setFireInterval): (WebCore::MainThreadSharedTimer::invalidate): * platform/gtk/MainThreadSharedTimerGtk.cpp: Renamed from Source/WebCore/platform/gtk/SharedTimerGtk.cpp. (WebCore::MainThreadSharedTimer::setFireInterval): (WebCore::MainThreadSharedTimer::stop): (WebCore::MainThreadSharedTimer::invalidate): * platform/win/MainThreadSharedTimerWin.cpp: Renamed from Source/WebCore/platform/win/SharedTimerWin.cpp. (WebCore::TimerWindowWndProc): (WebCore::initializeOffScreenTimerWindow): (WebCore::queueTimerProc): (WebCore::MainThreadSharedTimer::setFireInterval): (WebCore::MainThreadSharedTimer::stop): (WebCore::MainThreadSharedTimer::invalidate): * workers/WorkerRunLoop.cpp: Update WorkerSharedTimer implementation to use std::function instead of a pointer. Also mark the class as final and the virtual implementations as override. Canonical link: https://commits.webkit.org/168889@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@191789 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2015-10-30 13:25:26 +00:00
platform/win/MainThreadSharedTimerWin.cpp
platform/win/PasteboardWin.cpp
platform/win/PlatformMouseEventWin.cpp
platform/win/PlatformScreenWin.cpp
platform/win/PopupMenuWin.cpp
platform/win/SSLKeyGeneratorWin.cpp
platform/win/ScrollbarThemeWin.cpp
[WinCairo] Search terms are not saved for <input type="search"> https://bugs.webkit.org/show_bug.cgi?id=188174 Reviewed by Fujii Hironori. Source/WebCore: No new tests, should be covered by existing tests of search inputs. Add support for saving the search terms for <input type="search"> to a SQLite database, replacing the CF-based implementation for Windows and adding support for non-legacy WebKit. * PlatformWin.cmake: * platform/win/SearchPopupMenuDB.cpp: Added. (WebCore::SearchPopupMenuDB::singleton): (WebCore::SearchPopupMenuDB::SearchPopupMenuDB): (WebCore::SearchPopupMenuDB::~SearchPopupMenuDB): (WebCore::SearchPopupMenuDB::saveRecentSearches): (WebCore::SearchPopupMenuDB::loadRecentSearches): (WebCore::SearchPopupMenuDB::checkDatabaseValidity): Use quick_check pragma to test database status. (WebCore::SearchPopupMenuDB::deleteAllDatabaseFiles): (WebCore::SearchPopupMenuDB::openDatabase): (WebCore::SearchPopupMenuDB::closeDatabase): (WebCore::SearchPopupMenuDB::verifySchemaVersion): Check schema version and update for schema changes. (WebCore::SearchPopupMenuDB::checkSQLiteReturnCode): Check for error codes that indicate database errors and remove and recreate the database. (WebCore::SearchPopupMenuDB::executeSimpleSql): (WebCore::SearchPopupMenuDB::createPreparedStatement): * platform/win/SearchPopupMenuDB.h: Added. * platform/win/SearchPopupMenuWin.cpp: (WebCore::SearchPopupMenuWin::enabled): Always enable support for search term popup (WebCore::SearchPopupMenuWin::saveRecentSearches): Switch from CF implementation to SQLite database implementation (WebCore::SearchPopupMenuWin::loadRecentSearches): Switch from CF implementation to SQLite database implementation (WebCore::autosaveKey): Deleted. Source/WebKit: Add support for saving the search terms for <input type="search"> to a SQLite database, replacing the CF-based implementation for Windows and adding support for non-legacy WebKit. * UIProcess/win/WebPageProxyWin.cpp: (WebKit::WebPageProxy::saveRecentSearches): Use SQLite database implementation in WebCore::SearchPopupMenuDB to save search terms (WebKit::WebPageProxy::loadRecentSearches): Use SQLite database implementation in WebCore::SearchPopupMenuDB to load search terms Canonical link: https://commits.webkit.org/205673@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237308 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-10-20 00:03:21 +00:00
platform/win/SearchPopupMenuDB.cpp
platform/win/SearchPopupMenuWin.cpp
platform/win/SharedBufferWin.cpp
platform/win/SystemInfo.cpp
platform/win/UserAgentWin.cpp
platform/win/WCDataObject.cpp
platform/win/WebCoreBundleWin.cpp
platform/win/WebCoreInstanceHandle.cpp
platform/win/WebCoreTextRenderer.cpp
platform/win/WheelEventWin.cpp
platform/win/WidgetWin.cpp
platform/win/WindowMessageBroadcaster.cpp
[Win] Update KeyboardEvent as per the latest specification https://bugs.webkit.org/show_bug.cgi?id=202183 Reviewed by Ross Kirsling. Source/WebCore: Add 'key' and 'code' properties of KeyboardEvent for Windows. The implementation is copied from Chromium for Windows. For implementing 'key' properties, ToUnicodeEx API is used to convert a virtual key code to a character information. Unfortunately, ToUnicodeEx alters the stored previous typed dead key in the driver, it can't be used for each key event. So, ToUnicodeEx is used to convert all virtual keys with all modifier combinations beforehand. This change turns on ENABLE_KEYBOARD_KEY_ATTRIBUTE and ENABLE_KEYBOARD_CODE_ATTRIBUTE macros for all ports. A follow-up patch will remove the macros. Existing tests covers. * PlatformWin.cmake: * platform/win/KeyEventWin.cpp: (WebCore::windowsKeyNames): (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): * platform/win/WindowsKeyNames.cpp: Added. (hasControlAndAlt): (getModifierFlags): (nonPrintableVirtualKeyToDomKey): (WindowsKeyNames::WindowsKeyNames): (WindowsKeyNames::domKeyFromLParam): (singleCharacterString): (WindowsKeyNames::domKeyFromChar): (WindowsKeyNames::domCodeFromLParam): (WindowsKeyNames::updateLayout): * platform/win/WindowsKeyNames.h: Added. Source/WebKit: * Shared/WebEvent.h: * Shared/WebKeyboardEvent.cpp: (WebKit::WebKeyboardEvent::WebKeyboardEvent): * Shared/win/WebEventFactory.cpp: (WebKit::windowsKeyNames): (WebKit::WebEventFactory::createWebKeyboardEvent): Source/WTF: * wtf/FeatureDefines.h: LayoutTests: * platform/win/TestExpectations: * platform/wincairo/TestExpectations: Unskipped fast/events/arrow-keys-on-body.html, fast/events/keyboardevent-key.html, and fast/events/key-events-in-input-text.html. Canonical link: https://commits.webkit.org/217848@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-11-26 05:18:54 +00:00
platform/win/WindowsKeyNames.cpp
rendering/RenderThemeWin.cpp
)
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
accessibility/win/AccessibilityObjectWrapperWin.h
page/win/FrameWin.h
[WinCairo] Custom fonts don't work in GPU process mode https://bugs.webkit.org/show_bug.cgi?id=223861 Reviewed by Don Olmstead. Source/WebCore: Custom fonts didn't work in GPU process mode of WinCairo port because FontCustomPlatformData was destructed soon. In non-GPU process mode, FontCustomPlatformData is retained by CachedFont. In GPU process mode, there is no CachedFont. So, the font resource handle should be ref-counted and retained by FontPlatformData. Added a new class FontMemoryResource to ref-count the font resource handle. Added a new member of Ref<FontMemoryResource> to FontPlatformData::CreationData struct. Converted by existing canvas custom font tests. * PlatformWin.cmake: * platform/graphics/FontPlatformData.h: * platform/graphics/opentype/FontMemoryResource.h: (WebCore::FontMemoryResource::create): (WebCore::FontMemoryResource::~FontMemoryResource): (WebCore::FontMemoryResource::FontMemoryResource): * platform/graphics/opentype/OpenTypeUtilities.cpp: (WebCore::renameAndActivateFont): * platform/graphics/opentype/OpenTypeUtilities.h: * platform/graphics/win/FontCustomPlatformData.cpp: (WebCore::FontCustomPlatformData::FontCustomPlatformData): (WebCore::FontCustomPlatformData::fontPlatformData): (WebCore::createFontCustomPlatformData): (WebCore::FontCustomPlatformData::~FontCustomPlatformData): Deleted. * platform/graphics/win/FontCustomPlatformData.h: (WebCore::FontCustomPlatformData::FontCustomPlatformData): Deleted. * platform/graphics/win/FontCustomPlatformDataCairo.cpp: (WebCore::FontCustomPlatformData::FontCustomPlatformData): (WebCore::createFontCustomPlatformData): (WebCore::FontCustomPlatformData::~FontCustomPlatformData): Deleted. * platform/graphics/win/FontPlatformDataWin.cpp: (WebCore::FontPlatformData::FontPlatformData): Source/WebKit: * Shared/win/WebCoreArgumentCodersWin.cpp: (IPC::ArgumentCoder<Ref<Font>>::decodePlatformData): Canonical link: https://commits.webkit.org/235877@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@275174 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-03-29 20:46:57 +00:00
platform/graphics/opentype/FontMemoryResource.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/win/DIBPixelData.h
[WinCairo] ASSERTION FAILED: isMainThread() in GPU process for some canvas/philip/tests tests https://bugs.webkit.org/show_bug.cgi?id=223500 Reviewed by Alex Christensen. Source/WebCore: Added a new member of FontPlatformData::CreationData to FontCustomPlatformData struct to transfer custom fonts to GPU process for WinCairo port. * PlatformWin.cmake: * platform/graphics/FontPlatformData.h: * platform/graphics/win/FontCustomPlatformData.cpp: (WebCore::createFontCustomPlatformData): * platform/graphics/win/FontCustomPlatformData.h: (WebCore::FontCustomPlatformData::FontCustomPlatformData): * platform/graphics/win/FontCustomPlatformDataCairo.cpp: (WebCore::FontCustomPlatformData::fontPlatformData): (WebCore::createFontCustomPlatformData): * platform/graphics/win/FontPlatformDataCairoWin.cpp: (WebCore::FontPlatformData::FontPlatformData): Source/WebKit: In WinCairo GPU process mode, WebCore::Font IPC decoder was using FontCache::fontForFamily that should be called only in the main thread. However, It is was called in IPC thread. Reimplemented the decoder without using FontCache::fontForFamily. Encode LOGFONT for WebCore::Font, and decode it and create a font directly from it. This change also encodes and decodes the FontPlatformData::CreationData of custom fonts. However, custom fonts still don't work in GPU process mode because FontCustomPlatformData is destructed soon. In non-GPU process mode, FontCustomPlatformData is retained by CachedFont. In GPU process mode, fontReference of FontCustomPlatformData should be refcounted and retained by WebCore::Font. * Shared/win/WebCoreArgumentCodersWin.cpp: (IPC::ArgumentCoder<LOGFONT>::encode): (IPC::ArgumentCoder<LOGFONT>::decode): (IPC::ArgumentCoder<Ref<Font>>::encodePlatformData): (IPC::ArgumentCoder<Ref<Font>>::decodePlatformData): Canonical link: https://commits.webkit.org/235595@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@274791 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-03-22 20:38:19 +00:00
platform/graphics/win/FontCustomPlatformData.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/win/FullScreenController.h
platform/graphics/win/FullScreenControllerClient.h
Virtualize GraphicsContext https://bugs.webkit.org/show_bug.cgi?id=226170 Reviewed by Simon Fraser. Source/WebCore: No new tests, just a refactoring. In preparation for future patches which introduce new kinds of GraphicsContexts, virtualize GraphicsContext, moving platform implementations into subclasses GraphicsContext{CG,Cairo,Direct2D}, NullGraphicsContext, DisplayList::Recorder, and Nicosia::CairoOperationRecorder. GraphicsContextImpl dissolves away; platform contexts that were unnecessarily implemented both as `GraphicsContext` and as a subclass of GraphicsContextImpl (GraphicsContextImplCairo and GraphicsContextImplDirect2D) are folded into their GraphicsContext subclass. `paintingDisabled()` is no longer relevant in GraphicsContext implementations, so we no longer have to check it everywhere; NullGraphicsContext overrides everything with an empty implementation. We keep `paintingDisabled()` for use in code outside of GraphicsContext, where it just distinguishes between NullGraphicsContext and the others. Also, a few bits of cleanup to make this easier: - Legacy shadow radius behavior becomes a parameter to setShadow instead of a separate method. - canvasClip(), which hasn't done anything different than clip() since Skia, is removed. - GraphicsContext gains renderingMode() in place of isAcceleratedContext(). - Subclasses override updateState() to respond to GraphicsContext state changes, as was already done for GraphicsContextImpl, to keep subclassing simple. - builderState(), which was unused, is removed. - drawPath() is introduced on all platforms, with a default implementation that just fills and strokes. * Headers.cmake: * PlatformFTW.cmake: * PlatformWin.cmake: * Sources.txt: * WebCore.xcodeproj/project.pbxproj: * display/css/DisplayBoxDecorationPainter.cpp: (WebCore::Display::BoxDecorationPainter::paintBoxShadow const): * html/canvas/CanvasRenderingContext2DBase.cpp: (WebCore::CanvasRenderingContext2DBase::isAccelerated const): (WebCore::CanvasRenderingContext2DBase::clipInternal): (WebCore::CanvasRenderingContext2DBase::clearRect): (WebCore::CanvasRenderingContext2DBase::applyShadow): (WebCore::CanvasRenderingContext2DBase::createPattern): (WebCore::CanvasRenderingContext2DBase::drawTextUnchecked): * page/FrameView.cpp: (WebCore::FrameView::traverseForPaintInvalidation): (WebCore::FrameView::adjustPageHeightDeprecated): * page/FrameView.h: * page/win/FrameCGWin.cpp: (WebCore::imageFromRect): * page/win/FrameGdiWin.cpp: (WebCore::imageFromRect): * platform/Cairo.cmake: * platform/SourcesCairo.txt: * platform/cocoa/DragImageCocoa.mm: (WebCore::createDragImageForLink): * platform/graphics/FontCascade.cpp: (WebCore::FontCascade::displayListForTextRun const): * platform/graphics/GraphicsContext.cpp: (WebCore::GraphicsContextState::GraphicsContextState): (WebCore::GraphicsContextStateChange::accumulate): (WebCore::GraphicsContextStateChange::apply const): (WebCore::GraphicsContextStateChange::dump const): (WebCore::GraphicsContext::~GraphicsContext): (WebCore::GraphicsContext::save): (WebCore::GraphicsContext::restore): (WebCore::GraphicsContext::drawRaisedEllipse): (WebCore::GraphicsContext::setStrokeColor): (WebCore::GraphicsContext::setShadow): (WebCore::GraphicsContext::clearShadow): (WebCore::GraphicsContext::setFillColor): (WebCore::GraphicsContext::setStrokePattern): (WebCore::GraphicsContext::setFillPattern): (WebCore::GraphicsContext::setStrokeGradient): (WebCore::GraphicsContext::setFillGradient): (WebCore::GraphicsContext::beginTransparencyLayer): (WebCore::GraphicsContext::endTransparencyLayer): (WebCore::GraphicsContext::drawText): (WebCore::GraphicsContext::drawGlyphs): (WebCore::GraphicsContext::drawEmphasisMarks): (WebCore::GraphicsContext::drawBidiText): (WebCore::GraphicsContext::drawImage): (WebCore::GraphicsContext::drawTiledImage): (WebCore::GraphicsContext::drawImageBuffer): (WebCore::GraphicsContext::drawConsumingImageBuffer): (WebCore::GraphicsContext::clipRoundedRect): (WebCore::GraphicsContext::clipOutRoundedRect): (WebCore::GraphicsContext::clipToDrawingCommands): (WebCore::GraphicsContext::clipToImageBuffer): (WebCore::GraphicsContext::clipBounds const): (WebCore::GraphicsContext::fillRect): (WebCore::GraphicsContext::fillRoundedRect): (WebCore::GraphicsContext::fillRectWithRoundedHole): (WebCore::GraphicsContext::setCompositeOperation): (WebCore::GraphicsContext::drawPath): (WebCore::GraphicsContext::drawLineForText): (WebCore::GraphicsContext::paintFrameForMedia): (WebCore::NullGraphicsContext::drawConsumingImageBuffer): (WebCore::GraphicsContext::GraphicsContext): Deleted. (WebCore::GraphicsContext::hasPlatformContext const): Deleted. (WebCore::GraphicsContext::setStrokeThickness): Deleted. (WebCore::GraphicsContext::setStrokeStyle): Deleted. (WebCore::GraphicsContext::setLegacyShadow): Deleted. (WebCore::GraphicsContext::setShadowsIgnoreTransforms): Deleted. (WebCore::GraphicsContext::setShouldAntialias): Deleted. (WebCore::GraphicsContext::setShouldSmoothFonts): Deleted. (WebCore::GraphicsContext::setShouldSubpixelQuantizeFonts): Deleted. (WebCore::GraphicsContext::setImageInterpolationQuality): Deleted. (WebCore::GraphicsContext::setFillRule): Deleted. (WebCore::GraphicsContext::drawNativeImage): Deleted. (WebCore::GraphicsContext::drawPattern): Deleted. (WebCore::GraphicsContext::setTextDrawingMode): Deleted. (WebCore::GraphicsContext::setAlpha): Deleted. (WebCore::GraphicsContext::setDrawLuminanceMask): Deleted. (WebCore::GraphicsContext::setUseDarkAppearance): Deleted. (WebCore::GraphicsContext::setPlatformTextDrawingMode): Deleted. (WebCore::GraphicsContext::setPlatformStrokeStyle): Deleted. (WebCore::GraphicsContext::setPlatformShouldSmoothFonts): Deleted. (WebCore::GraphicsContext::isAcceleratedContext const): Deleted. (WebCore::GraphicsContext::platformApplyDeviceScaleFactor): Deleted. (WebCore::GraphicsContext::applyDeviceScaleFactor): Deleted. (WebCore::GraphicsContext::fillEllipse): Deleted. (WebCore::GraphicsContext::strokeEllipse): Deleted. (WebCore::GraphicsContext::platformFillEllipse): Deleted. (WebCore::GraphicsContext::platformStrokeEllipse): Deleted. (WebCore::GraphicsContext::builderState): Deleted. (WebCore::GraphicsContext::supportsInternalLinks const): Deleted. (WebCore::GraphicsContext::setDestinationForRect): Deleted. (WebCore::GraphicsContext::addDestinationAtPoint): Deleted. * platform/graphics/GraphicsContext.h: (WebCore::GraphicsContext::hasPlatformContext const): (WebCore::GraphicsContext::platformContext const): (WebCore::GraphicsContext::paintingDisabled const): (WebCore::GraphicsContext::performingPaintInvalidation const): (WebCore::GraphicsContext::invalidatingControlTints const): (WebCore::GraphicsContext::invalidatingImagesWithAsyncDecodes const): (WebCore::GraphicsContext::detectingContentfulPaint const): (WebCore::GraphicsContext::setStrokeThickness): (WebCore::GraphicsContext::setStrokeStyle): (WebCore::GraphicsContext::setStrokeGradient): (WebCore::GraphicsContext::setFillRule): (WebCore::GraphicsContext::setShadowsIgnoreTransforms): (WebCore::GraphicsContext::setShouldAntialias): (WebCore::GraphicsContext::setShouldSmoothFonts): (WebCore::GraphicsContext::setShouldSubpixelQuantizeFonts): (WebCore::GraphicsContext::setImageInterpolationQuality): (WebCore::GraphicsContext::imageInterpolationQuality const): (WebCore::GraphicsContext::setAlpha): (WebCore::GraphicsContext::alpha const): (WebCore::GraphicsContext::compositeOperation const): (WebCore::GraphicsContext::blendModeOperation const): (WebCore::GraphicsContext::setDrawLuminanceMask): (WebCore::GraphicsContext::drawLuminanceMask const): (WebCore::GraphicsContext::setTextDrawingMode): (WebCore::GraphicsContext::textDrawingMode const): (WebCore::GraphicsContext::hasVisibleShadow const): (WebCore::GraphicsContext::hasShadow const): (WebCore::GraphicsContext::hasBlurredShadow const): (WebCore::GraphicsContext::setUseDarkAppearance): (WebCore::GraphicsContext::useDarkAppearance const): (WebCore::GraphicsContext::state const): (WebCore::GraphicsContext::renderingMode const): (WebCore::GraphicsContext::fillEllipse): (WebCore::GraphicsContext::strokeEllipse): (WebCore::GraphicsContext::drawNativeImage): (WebCore::GraphicsContext::drawImage): (WebCore::GraphicsContext::drawTiledImage): (WebCore::GraphicsContext::drawImageBuffer): (WebCore::GraphicsContext::drawConsumingImageBuffer): (WebCore::GraphicsContext::drawPattern): (WebCore::GraphicsContext::isInTransparencyLayer const): (WebCore::GraphicsContext::scale): (WebCore::GraphicsContext::applyDeviceScaleFactor): (WebCore::GraphicsContext::setURLForRect): (WebCore::GraphicsContext::setDestinationForRect): (WebCore::GraphicsContext::addDestinationAtPoint): (WebCore::GraphicsContext::supportsInternalLinks const): (WebCore::GraphicsContext::setContentfulPaintDetected): (WebCore::GraphicsContext::contenfulPaintDetected const): (WebCore::GraphicsContext::deprecatedPrivateContext const): (WebCore::GraphicsContext::supportsTransparencyLayers const): (WebCore::GraphicsContext::impl): Deleted. * platform/graphics/GraphicsContextImpl.cpp: Removed. * platform/graphics/GraphicsContextImpl.h: Removed. * platform/graphics/Image.cpp: (WebCore::Image::drawTiled): * platform/graphics/Image.h: * platform/graphics/ShadowBlur.cpp: (WebCore::ShadowBlur::ShadowBlur): * platform/graphics/ca/GraphicsLayerCA.cpp: (WebCore::GraphicsLayerCA::recursiveCommitChanges): * platform/graphics/ca/win/PlatformCALayerWin.cpp: (PlatformCALayerWin::drawTextAtPoint const): * platform/graphics/ca/win/PlatformCALayerWinInternal.cpp: (PlatformCALayerWinInternal::displayCallback): (PlatformCALayerWinInternal::drawRepaintCounters): * platform/graphics/ca/win/WebTiledBackingLayerWin.cpp: (WebTiledBackingLayerWin::displayCallback): * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContextCairo::GraphicsContextCairo): (WebCore::GraphicsContextCairo::~GraphicsContextCairo): (WebCore::GraphicsContextCairo::hasPlatformContext const): (WebCore::GraphicsContextCairo::getCTM const): (WebCore::GraphicsContextCairo::platformContext const): (WebCore::GraphicsContextCairo::save): (WebCore::GraphicsContextCairo::restore): (WebCore::GraphicsContextCairo::drawRect): (WebCore::GraphicsContextCairo::drawNativeImage): (WebCore::GraphicsContextCairo::drawLine): (WebCore::GraphicsContextCairo::drawEllipse): (WebCore::GraphicsContextCairo::fillPath): (WebCore::GraphicsContextCairo::strokePath): (WebCore::GraphicsContextCairo::fillRect): (WebCore::GraphicsContextCairo::clip): (WebCore::GraphicsContextCairo::clipPath): (WebCore::GraphicsContextCairo::clipBounds const): (WebCore::GraphicsContextCairo::clipToImageBuffer): (WebCore::GraphicsContextCairo::drawFocusRing): (WebCore::GraphicsContextCairo::drawLinesForText): (WebCore::GraphicsContextCairo::drawDotsForDocumentMarker): (WebCore::GraphicsContextCairo::roundToDevicePixels): (WebCore::GraphicsContextCairo::translate): (WebCore::GraphicsContextCairo::updateState): (WebCore::GraphicsContextCairo::concatCTM): (WebCore::GraphicsContextCairo::setCTM): (WebCore::GraphicsContextCairo::beginTransparencyLayer): (WebCore::GraphicsContextCairo::endTransparencyLayer): (WebCore::GraphicsContextCairo::clearRect): (WebCore::GraphicsContextCairo::strokeRect): (WebCore::GraphicsContextCairo::setLineCap): (WebCore::GraphicsContextCairo::setLineDash): (WebCore::GraphicsContextCairo::setLineJoin): (WebCore::GraphicsContextCairo::setMiterLimit): (WebCore::GraphicsContextCairo::clipOut): (WebCore::GraphicsContextCairo::rotate): (WebCore::GraphicsContextCairo::scale): (WebCore::GraphicsContextCairo::fillRoundedRectImpl): (WebCore::GraphicsContextCairo::fillRectWithRoundedHole): (WebCore::GraphicsContextCairo::drawPattern): (WebCore::GraphicsContextCairo::renderingMode const): (WebCore::GraphicsContextCairo::drawGlyphs): (WebCore::GraphicsContext::platformInit): Deleted. (WebCore::GraphicsContext::platformDestroy): Deleted. (WebCore::GraphicsContext::getCTM const): Deleted. (WebCore::GraphicsContext::platformContext const): Deleted. (WebCore::GraphicsContext::savePlatformState): Deleted. (WebCore::GraphicsContext::restorePlatformState): Deleted. (WebCore::GraphicsContext::drawRect): Deleted. (WebCore::GraphicsContext::drawPlatformImage): Deleted. (WebCore::GraphicsContext::drawLine): Deleted. (WebCore::GraphicsContext::drawEllipse): Deleted. (WebCore::GraphicsContext::fillPath): Deleted. (WebCore::GraphicsContext::strokePath): Deleted. (WebCore::GraphicsContext::fillRect): Deleted. (WebCore::GraphicsContext::clip): Deleted. (WebCore::GraphicsContext::clipPath): Deleted. (WebCore::GraphicsContext::clipBounds const): Deleted. (WebCore::GraphicsContext::drawFocusRing): Deleted. (WebCore::GraphicsContext::drawLineForText): Deleted. (WebCore::GraphicsContext::drawLinesForText): Deleted. (WebCore::GraphicsContext::drawDotsForDocumentMarker): Deleted. (WebCore::GraphicsContext::roundToDevicePixels): Deleted. (WebCore::GraphicsContext::translate): Deleted. (WebCore::GraphicsContext::setPlatformFillColor): Deleted. (WebCore::GraphicsContext::setPlatformStrokeColor): Deleted. (WebCore::GraphicsContext::setPlatformStrokeThickness): Deleted. (WebCore::GraphicsContext::setPlatformStrokeStyle): Deleted. (WebCore::GraphicsContext::setURLForRect): Deleted. (WebCore::GraphicsContext::concatCTM): Deleted. (WebCore::GraphicsContext::setCTM): Deleted. (WebCore::GraphicsContext::setPlatformShadow): Deleted. (WebCore::GraphicsContext::clearPlatformShadow): Deleted. (WebCore::GraphicsContext::beginPlatformTransparencyLayer): Deleted. (WebCore::GraphicsContext::endPlatformTransparencyLayer): Deleted. (WebCore::GraphicsContext::supportsTransparencyLayers): Deleted. (WebCore::GraphicsContext::clearRect): Deleted. (WebCore::GraphicsContext::strokeRect): Deleted. (WebCore::GraphicsContext::setLineCap): Deleted. (WebCore::GraphicsContext::setLineDash): Deleted. (WebCore::GraphicsContext::setLineJoin): Deleted. (WebCore::GraphicsContext::setMiterLimit): Deleted. (WebCore::GraphicsContext::setPlatformAlpha): Deleted. (WebCore::GraphicsContext::setPlatformCompositeOperation): Deleted. (WebCore::GraphicsContext::canvasClip): Deleted. (WebCore::GraphicsContext::clipOut): Deleted. (WebCore::GraphicsContext::rotate): Deleted. (WebCore::GraphicsContext::scale): Deleted. (WebCore::GraphicsContext::platformFillRoundedRect): Deleted. (WebCore::GraphicsContext::fillRectWithRoundedHole): Deleted. (WebCore::GraphicsContext::drawPlatformPattern): Deleted. (WebCore::GraphicsContext::setPlatformShouldAntialias): Deleted. (WebCore::GraphicsContext::setPlatformImageInterpolationQuality): Deleted. (WebCore::GraphicsContext::isAcceleratedContext const): Deleted. * platform/graphics/cairo/GraphicsContextImplCairo.cpp: Removed. * platform/graphics/cairo/GraphicsContextImplCairo.h: Removed. * platform/graphics/cairo/ImageBufferCairoBackend.cpp: * platform/graphics/cairo/ImageBufferCairoSurfaceBackend.cpp: (WebCore::ImageBufferCairoSurfaceBackend::ImageBufferCairoSurfaceBackend): * platform/graphics/cairo/PathCairo.cpp: (WebCore::Path::strokeBoundingRect const): (WebCore::Path::strokeContains const): * platform/graphics/cg/GraphicsContextCG.cpp: (WebCore::coreInterpolationQuality): (WebCore::cgInterpolationQuality): (WebCore::cgTextDrawingMode): (WebCore::GraphicsContextCG::GraphicsContextCG): (WebCore::GraphicsContextCG::~GraphicsContextCG): (WebCore::GraphicsContextCG::hasPlatformContext const): (WebCore::GraphicsContextCG::platformContext const): (WebCore::GraphicsContextCG::save): (WebCore::GraphicsContextCG::restore): (WebCore::GraphicsContextCG::drawNativeImage): (WebCore::drawPatternCallback): (WebCore::GraphicsContextCG::drawPattern): (WebCore::GraphicsContextCG::drawRect): (WebCore::GraphicsContextCG::drawLine): (WebCore::GraphicsContextCG::drawEllipse): (WebCore::GraphicsContextCG::applyStrokePattern): (WebCore::GraphicsContextCG::applyFillPattern): (WebCore::GraphicsContextCG::drawPath): (WebCore::GraphicsContextCG::fillPath): (WebCore::GraphicsContextCG::strokePath): (WebCore::GraphicsContextCG::fillRect): (WebCore::GraphicsContextCG::fillRoundedRectImpl): (WebCore::GraphicsContextCG::fillRectWithRoundedHole): (WebCore::GraphicsContextCG::clip): (WebCore::GraphicsContextCG::clipOut): (WebCore::GraphicsContextCG::clipPath): (WebCore::GraphicsContextCG::clipBounds const): (WebCore::GraphicsContextCG::beginTransparencyLayer): (WebCore::GraphicsContextCG::endTransparencyLayer): (WebCore::applyShadowOffsetWorkaroundIfNeeded): (WebCore::setCGShadow): (WebCore::GraphicsContextCG::updateState): (WebCore::GraphicsContextCG::setMiterLimit): (WebCore::GraphicsContextCG::clearRect): (WebCore::GraphicsContextCG::strokeRect): (WebCore::GraphicsContextCG::setLineCap): (WebCore::GraphicsContextCG::setLineDash): (WebCore::GraphicsContextCG::setLineJoin): (WebCore::GraphicsContextCG::scale): (WebCore::GraphicsContextCG::rotate): (WebCore::GraphicsContextCG::translate): (WebCore::GraphicsContextCG::concatCTM): (WebCore::GraphicsContextCG::setCTM): (WebCore::GraphicsContextCG::getCTM const): (WebCore::GraphicsContextCG::roundToDevicePixels): (WebCore::GraphicsContextCG::drawLinesForText): (WebCore::GraphicsContextCG::setURLForRect): (WebCore::GraphicsContextCG::setIsCALayerContext): (WebCore::GraphicsContextCG::isCALayerContext const): (WebCore::GraphicsContextCG::setIsAcceleratedContext): (WebCore::GraphicsContextCG::renderingMode const): (WebCore::GraphicsContextCG::applyDeviceScaleFactor): (WebCore::GraphicsContextCG::fillEllipse): (WebCore::GraphicsContextCG::strokeEllipse): (WebCore::GraphicsContextCG::supportsInternalLinks const): (WebCore::GraphicsContextCG::setDestinationForRect): (WebCore::GraphicsContextCG::addDestinationAtPoint): (WebCore::setCGStrokeColor): Deleted. (WebCore::convertInterpolationQuality): Deleted. (WebCore::GraphicsContext::platformInit): Deleted. (WebCore::GraphicsContext::platformDestroy): Deleted. (WebCore::GraphicsContext::platformContext const): Deleted. (WebCore::GraphicsContext::savePlatformState): Deleted. (WebCore::GraphicsContext::restorePlatformState): Deleted. (WebCore::GraphicsContext::drawPlatformImage): Deleted. (WebCore::GraphicsContext::drawPlatformPattern): Deleted. (WebCore::GraphicsContext::drawRect): Deleted. (WebCore::GraphicsContext::drawLine): Deleted. (WebCore::GraphicsContext::drawEllipse): Deleted. (WebCore::GraphicsContext::applyStrokePattern): Deleted. (WebCore::GraphicsContext::applyFillPattern): Deleted. (WebCore::GraphicsContext::drawPath): Deleted. (WebCore::GraphicsContext::fillPath): Deleted. (WebCore::GraphicsContext::strokePath): Deleted. (WebCore::GraphicsContext::fillRect): Deleted. (WebCore::GraphicsContext::platformFillRoundedRect): Deleted. (WebCore::GraphicsContext::fillRectWithRoundedHole): Deleted. (WebCore::GraphicsContext::clip): Deleted. (WebCore::GraphicsContext::clipOut): Deleted. (WebCore::GraphicsContext::clipPath): Deleted. (WebCore::GraphicsContext::clipBounds const): Deleted. (WebCore::GraphicsContext::beginPlatformTransparencyLayer): Deleted. (WebCore::GraphicsContext::endPlatformTransparencyLayer): Deleted. (WebCore::GraphicsContext::supportsTransparencyLayers): Deleted. (WebCore::GraphicsContext::setPlatformShadow): Deleted. (WebCore::GraphicsContext::clearPlatformShadow): Deleted. (WebCore::GraphicsContext::setMiterLimit): Deleted. (WebCore::GraphicsContext::clearRect): Deleted. (WebCore::GraphicsContext::strokeRect): Deleted. (WebCore::GraphicsContext::setLineCap): Deleted. (WebCore::GraphicsContext::setLineDash): Deleted. (WebCore::GraphicsContext::setLineJoin): Deleted. (WebCore::GraphicsContext::canvasClip): Deleted. (WebCore::GraphicsContext::scale): Deleted. (WebCore::GraphicsContext::rotate): Deleted. (WebCore::GraphicsContext::translate): Deleted. (WebCore::GraphicsContext::concatCTM): Deleted. (WebCore::GraphicsContext::setCTM): Deleted. (WebCore::GraphicsContext::getCTM const): Deleted. (WebCore::GraphicsContext::roundToDevicePixels): Deleted. (WebCore::GraphicsContext::drawLineForText): Deleted. (WebCore::GraphicsContext::drawLinesForText): Deleted. (WebCore::GraphicsContext::setURLForRect): Deleted. (WebCore::GraphicsContext::setPlatformImageInterpolationQuality): Deleted. (WebCore::GraphicsContext::setIsCALayerContext): Deleted. (WebCore::GraphicsContext::isCALayerContext const): Deleted. (WebCore::GraphicsContext::setIsAcceleratedContext): Deleted. (WebCore::GraphicsContext::isAcceleratedContext const): Deleted. (WebCore::GraphicsContext::setPlatformTextDrawingMode): Deleted. (WebCore::GraphicsContext::setPlatformStrokeColor): Deleted. (WebCore::GraphicsContext::setPlatformStrokeThickness): Deleted. (WebCore::GraphicsContext::setPlatformFillColor): Deleted. (WebCore::GraphicsContext::setPlatformShouldAntialias): Deleted. (WebCore::GraphicsContext::setPlatformShouldSmoothFonts): Deleted. (WebCore::GraphicsContext::setPlatformAlpha): Deleted. (WebCore::GraphicsContext::setPlatformCompositeOperation): Deleted. (WebCore::GraphicsContext::platformApplyDeviceScaleFactor): Deleted. (WebCore::GraphicsContext::platformFillEllipse): Deleted. (WebCore::GraphicsContext::platformStrokeEllipse): Deleted. (WebCore::GraphicsContext::supportsInternalLinks const): Deleted. (WebCore::GraphicsContext::setDestinationForRect): Deleted. (WebCore::GraphicsContext::addDestinationAtPoint): Deleted. * platform/graphics/cg/GraphicsContextCG.h: * platform/graphics/cg/ImageBufferCGBitmapBackend.cpp: (WebCore::ImageBufferCGBitmapBackend::create): * platform/graphics/cg/PathCG.cpp: (WebCore::Path::strokeContains const): (WebCore::Path::strokeBoundingRect const): * platform/graphics/cg/PatternCG.cpp: (WebCore::patternCallback): * platform/graphics/cocoa/FontCascadeCocoa.mm: * platform/graphics/cocoa/GraphicsContextCocoa.mm: (WebCore::GraphicsContextCG::drawFocusRing): (WebCore::drawFocusRingToContextAtTime): (WebCore::GraphicsContextCG::drawDotsForDocumentMarker): (WebCore::GraphicsContext::drawFocusRing): Deleted. (WebCore::GraphicsContext::drawDotsForDocumentMarker): Deleted. * platform/graphics/cocoa/IOSurface.mm: (WebCore::IOSurface::ensureGraphicsContext): * platform/graphics/displaylists/DisplayListDrawGlyphsRecorder.h: * platform/graphics/displaylists/DisplayListDrawGlyphsRecorderCoreText.cpp: (WebCore::DisplayList::DrawGlyphsRecorder::createInternalContext): (WebCore::DisplayList::DrawGlyphsRecorder::populateInternalContext): (WebCore::DisplayList::DrawGlyphsRecorder::recordDrawGlyphs): * platform/graphics/displaylists/DisplayListDrawingContext.cpp: (WebCore::DisplayList::DrawingContext::DrawingContext): (WebCore::DisplayList::DrawingContext::recorder): Deleted. * platform/graphics/displaylists/DisplayListDrawingContext.h: (WebCore::DisplayList::DrawingContext::recorder): * platform/graphics/displaylists/DisplayListItems.cpp: (WebCore::DisplayList::DrawPath::apply const): * platform/graphics/displaylists/DisplayListItems.h: (WebCore::DisplayList::SetState::encode const): (WebCore::DisplayList::SetState::decode): * platform/graphics/displaylists/DisplayListRecorder.cpp: (WebCore::DisplayList::Recorder::Recorder): (WebCore::DisplayList::Recorder::drawImageBuffer): (WebCore::DisplayList::Recorder::getCTM const): (WebCore::DisplayList::Recorder::drawLinesForText): (WebCore::DisplayList::Recorder::drawFocusRing): (WebCore::DisplayList::Recorder::clipBounds const): (WebCore::DisplayList::Recorder::clipToDrawingCommands): (WebCore::DisplayList::Recorder::paintFrameForMedia): (WebCore::DisplayList::Recorder::extentFromLocalBounds const): (WebCore::DisplayList::Recorder::clearShadow): Deleted. (WebCore::DisplayList::Recorder::getCTM): Deleted. (WebCore::DisplayList::Recorder::clipBounds): Deleted. (WebCore::DisplayList::Recorder::canPaintFrameForMedia const): Deleted. * platform/graphics/displaylists/DisplayListRecorder.h: (WebCore::DisplayList::Recorder::append): * platform/graphics/mac/ColorMac.mm: (WebCore::makeSimpleColorFromNSColor): * platform/graphics/mac/WebLayer.mm: (-[WebLayer drawInContext:]): (-[WebSimpleLayer drawInContext:]): * platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.cpp: (Nicosia::CairoOperationRecorder::CairoOperationRecorder): (Nicosia::CairoOperationRecorder::fillRect): (Nicosia::CairoOperationRecorder::fillRoundedRect): (Nicosia::CairoOperationRecorder::fillRectWithRoundedHole): (Nicosia::CairoOperationRecorder::fillPath): (Nicosia::CairoOperationRecorder::fillEllipse): (Nicosia::CairoOperationRecorder::strokeRect): (Nicosia::CairoOperationRecorder::strokePath): (Nicosia::CairoOperationRecorder::strokeEllipse): (Nicosia::CairoOperationRecorder::drawGlyphs): (Nicosia::CairoOperationRecorder::drawNativeImage): (Nicosia::CairoOperationRecorder::drawRect): (Nicosia::CairoOperationRecorder::drawLine): (Nicosia::CairoOperationRecorder::drawLinesForText): (Nicosia::CairoOperationRecorder::drawEllipse): (Nicosia::CairoOperationRecorder::getCTM const): (Nicosia::CairoOperationRecorder::clipBounds const): (Nicosia::CairoOperationRecorder::clipToDrawingCommands): (Nicosia::CairoOperationRecorder::paintFrameForMedia): (Nicosia::CairoOperationRecorder::clearShadow): Deleted. (Nicosia::CairoOperationRecorder::drawPath): Deleted. (Nicosia::CairoOperationRecorder::getCTM): Deleted. (Nicosia::CairoOperationRecorder::clipBounds): Deleted. * platform/graphics/nicosia/cairo/NicosiaCairoOperationRecorder.h: * platform/graphics/nicosia/cairo/NicosiaPaintingContextCairo.cpp: (Nicosia::PaintingContextCairo::ForPainting::ForPainting): (Nicosia::PaintingContextCairo::ForRecording::ForRecording): * platform/graphics/win/GraphicsContextCGWin.cpp: (WebCore::GraphicsContextCG::GraphicsContextCG): (WebCore::GraphicsContext::releaseWindowsContext): (WebCore::GraphicsContext::drawWindowsBitmap): (WebCore::GraphicsContextCG::drawFocusRing): (WebCore::GraphicsContextCG::drawDotsForDocumentMarker): (WebCore::GraphicsContextCG::deprecatedPrivateContext const): (WebCore::GraphicsContext::GraphicsContext): Deleted. (WebCore::GraphicsContext::platformInit): Deleted. (WebCore::GraphicsContext::drawFocusRing): Deleted. (WebCore::GraphicsContext::drawDotsForDocumentMarker): Deleted. * platform/graphics/win/GraphicsContextCairoWin.cpp: (WebCore::GraphicsContextCairo::GraphicsContextCairo): (WebCore::GraphicsContext::releaseWindowsContext): (WebCore::GraphicsContextCairo::deprecatedPrivateContext const): (WebCore::GraphicsContext::GraphicsContext): Deleted. (WebCore::GraphicsContext::platformInit): Deleted. * platform/graphics/win/GraphicsContextDirect2D.cpp: (WebCore::GraphicsContextDirect2D::GraphicsContextDirect2D): (WebCore::GraphicsContextDirect2D::systemFactory): (WebCore::GraphicsContextDirect2D::defaultRenderTarget): (WebCore::GraphicsContextDirect2D::platformInit): (WebCore::GraphicsContextDirect2D::~GraphicsContextDirect2D): (WebCore::GraphicsContextDirect2D::platformContext const): (WebCore::GraphicsContextDirect2D::save): (WebCore::GraphicsContextDirect2D::restore): (WebCore::GraphicsContextDirect2D::drawNativeImage): (WebCore::GraphicsContextDirect2D::releaseWindowsContext): (WebCore::GraphicsContextDirect2D::drawWindowsBitmap): (WebCore::GraphicsContextDirect2D::drawFocusRing): (WebCore::GraphicsContextDirect2D::drawDotsForDocumentMarker): (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate): (WebCore::GraphicsContextDirect2D::brushWithColor): (WebCore::GraphicsContextDirect2D::colorWithGlobalAlpha const): (WebCore::GraphicsContextDirect2D::solidStrokeBrush const): (WebCore::GraphicsContextDirect2D::solidFillBrush const): (WebCore::GraphicsContextDirect2D::patternStrokeBrush const): (WebCore::GraphicsContextDirect2D::patternFillBrush const): (WebCore::GraphicsContextDirect2D::beginDraw): (WebCore::GraphicsContextDirect2D::endDraw): (WebCore::GraphicsContextDirect2D::flush): (WebCore::GraphicsContextDirect2D::drawPattern): (WebCore::GraphicsContextDirect2D::drawRect): (WebCore::GraphicsContextDirect2D::strokeStyle const): (WebCore::GraphicsContextDirect2D::drawLine): (WebCore::GraphicsContextDirect2D::drawEllipse): (WebCore::GraphicsContextDirect2D::applyStrokePattern): (WebCore::GraphicsContextDirect2D::applyFillPattern): (WebCore::GraphicsContextDirect2D::drawPath): (WebCore::GraphicsContextDirect2D::fillPath): (WebCore::GraphicsContextDirect2D::strokePath): (WebCore::GraphicsContextDirect2D::fillRect): (WebCore::GraphicsContextDirect2D::fillRoundedRectImpl): (WebCore::GraphicsContextDirect2D::fillRectWithRoundedHole): (WebCore::GraphicsContextDirect2D::clip): (WebCore::GraphicsContextDirect2D::clipOut): (WebCore::GraphicsContextDirect2D::clipPath): (WebCore::GraphicsContextDirect2D::clipBounds const): (WebCore::GraphicsContextDirect2D::beginTransparencyLayer): (WebCore::GraphicsContextDirect2D::endTransparencyLayer): (WebCore::GraphicsContextDirect2D::supportsTransparencyLayers): (WebCore::GraphicsContextDirect2D::updateState): (WebCore::GraphicsContextDirect2D::setMiterLimit): (WebCore::GraphicsContextDirect2D::clearRect): (WebCore::GraphicsContextDirect2D::strokeRect): (WebCore::GraphicsContextDirect2D::setLineCap): (WebCore::GraphicsContextDirect2D::setLineDash): (WebCore::GraphicsContextDirect2D::setLineJoin): (WebCore::GraphicsContextDirect2D::scale): (WebCore::GraphicsContextDirect2D::rotate): (WebCore::GraphicsContextDirect2D::translate): (WebCore::GraphicsContextDirect2D::concatCTM): (WebCore::GraphicsContextDirect2D::setCTM): (WebCore::GraphicsContextDirect2D::getCTM const): (WebCore::GraphicsContextDirect2D::roundToDevicePixels): (WebCore::GraphicsContextDirect2D::drawLinesForText): (WebCore::GraphicsContextDirect2D::setURLForRect): (WebCore::GraphicsContextDirect2D::setIsCALayerContext): (WebCore::GraphicsContextDirect2D::isCALayerContext const): (WebCore::GraphicsContextDirect2D::setIsAcceleratedContext): (WebCore::GraphicsContextDirect2D::isAcceleratedContext const): (WebCore::GraphicsContextDirect2D::applyDeviceScaleFactor): (WebCore::GraphicsContextDirect2D::fillEllipse): (WebCore::GraphicsContextDirect2D::strokeEllipse): (WebCore::GraphicsContextDirect2D::drawGlyphs): (WebCore::GraphicsContextDirect2D::clipToDrawingCommands): (WebCore::GraphicsContextDirect2D::clipToImageBuffer): (WebCore::GraphicsContextDirect2D::paintFrameForMedia): (WebCore::GraphicsContext::GraphicsContext): Deleted. (WebCore::GraphicsContext::systemFactory): Deleted. (WebCore::GraphicsContext::defaultRenderTarget): Deleted. (WebCore::GraphicsContext::platformInit): Deleted. (WebCore::GraphicsContext::platformDestroy): Deleted. (WebCore::GraphicsContext::platformContext const): Deleted. (WebCore::GraphicsContext::savePlatformState): Deleted. (WebCore::GraphicsContext::restorePlatformState): Deleted. (WebCore::GraphicsContext::drawPlatformImage): Deleted. (WebCore::GraphicsContext::releaseWindowsContext): Deleted. (WebCore::GraphicsContext::drawWindowsBitmap): Deleted. (WebCore::GraphicsContext::drawFocusRing): Deleted. (WebCore::GraphicsContext::drawDotsForDocumentMarker): Deleted. (WebCore::GraphicsContext::brushWithColor): Deleted. (WebCore::GraphicsContext::colorWithGlobalAlpha const): Deleted. (WebCore::GraphicsContext::solidStrokeBrush const): Deleted. (WebCore::GraphicsContext::solidFillBrush const): Deleted. (WebCore::GraphicsContext::patternStrokeBrush const): Deleted. (WebCore::GraphicsContext::patternFillBrush const): Deleted. (WebCore::GraphicsContext::beginDraw): Deleted. (WebCore::GraphicsContext::endDraw): Deleted. (WebCore::GraphicsContext::flush): Deleted. (WebCore::GraphicsContext::drawPlatformPattern): Deleted. (WebCore::GraphicsContext::drawRect): Deleted. (WebCore::GraphicsContext::platformStrokeStyle const): Deleted. (WebCore::GraphicsContext::drawLine): Deleted. (WebCore::GraphicsContext::drawEllipse): Deleted. (WebCore::GraphicsContext::applyStrokePattern): Deleted. (WebCore::GraphicsContext::applyFillPattern): Deleted. (WebCore::GraphicsContext::drawPath): Deleted. (WebCore::GraphicsContext::fillPath): Deleted. (WebCore::GraphicsContext::strokePath): Deleted. (WebCore::GraphicsContext::fillRect): Deleted. (WebCore::GraphicsContext::platformFillRoundedRect): Deleted. (WebCore::GraphicsContext::fillRectWithRoundedHole): Deleted. (WebCore::GraphicsContext::clip): Deleted. (WebCore::GraphicsContext::clipOut): Deleted. (WebCore::GraphicsContext::clipPath): Deleted. (WebCore::GraphicsContext::clipBounds const): Deleted. (WebCore::GraphicsContext::beginPlatformTransparencyLayer): Deleted. (WebCore::GraphicsContext::endPlatformTransparencyLayer): Deleted. (WebCore::GraphicsContext::supportsTransparencyLayers): Deleted. (WebCore::GraphicsContext::setPlatformShadow): Deleted. (WebCore::GraphicsContext::clearPlatformShadow): Deleted. (WebCore::GraphicsContext::setPlatformStrokeStyle): Deleted. (WebCore::GraphicsContext::setMiterLimit): Deleted. (WebCore::GraphicsContext::clearRect): Deleted. (WebCore::GraphicsContext::strokeRect): Deleted. (WebCore::GraphicsContext::setLineCap): Deleted. (WebCore::GraphicsContext::setLineDash): Deleted. (WebCore::GraphicsContext::setLineJoin): Deleted. (WebCore::GraphicsContext::canvasClip): Deleted. (WebCore::GraphicsContext::scale): Deleted. (WebCore::GraphicsContext::rotate): Deleted. (WebCore::GraphicsContext::translate): Deleted. (WebCore::GraphicsContext::concatCTM): Deleted. (WebCore::GraphicsContext::setCTM): Deleted. (WebCore::GraphicsContext::getCTM const): Deleted. (WebCore::GraphicsContext::roundToDevicePixels): Deleted. (WebCore::GraphicsContext::drawLineForText): Deleted. (WebCore::GraphicsContext::drawLinesForText): Deleted. (WebCore::GraphicsContext::setURLForRect): Deleted. (WebCore::GraphicsContext::setPlatformImageInterpolationQuality): Deleted. (WebCore::GraphicsContext::setIsCALayerContext): Deleted. (WebCore::GraphicsContext::isCALayerContext const): Deleted. (WebCore::GraphicsContext::setIsAcceleratedContext): Deleted. (WebCore::GraphicsContext::isAcceleratedContext const): Deleted. (WebCore::GraphicsContext::setPlatformTextDrawingMode): Deleted. (WebCore::GraphicsContext::setPlatformStrokeColor): Deleted. (WebCore::GraphicsContext::setPlatformStrokeThickness): Deleted. (WebCore::GraphicsContext::setPlatformFillColor): Deleted. (WebCore::GraphicsContext::setPlatformShouldAntialias): Deleted. (WebCore::GraphicsContext::setPlatformShouldSmoothFonts): Deleted. (WebCore::GraphicsContext::setPlatformAlpha): Deleted. (WebCore::GraphicsContext::setPlatformCompositeOperation): Deleted. (WebCore::GraphicsContext::platformApplyDeviceScaleFactor): Deleted. (WebCore::GraphicsContext::platformFillEllipse): Deleted. (WebCore::GraphicsContext::platformStrokeEllipse): Deleted. * platform/graphics/win/GraphicsContextImplDirect2D.cpp: Removed. * platform/graphics/win/GraphicsContextImplDirect2D.h: Removed. * platform/graphics/win/GraphicsContextWin.cpp: (WebCore::GraphicsContext::setShouldIncludeChildWindows): (WebCore::GraphicsContext::shouldIncludeChildWindows const): (WebCore::GraphicsContext::createWindowsBitmap): (WebCore::GraphicsContext::getWindowsContext): (WebCore::GraphicsContext::hdc const): * platform/graphics/win/ImageBufferDirect2DBackend.cpp: (WebCore::ImageBufferDirect2DBackend::create): * platform/graphics/win/ImageCGWin.cpp: (WebCore::BitmapImage::getHBITMAPOfSize): * platform/graphics/win/ImageCairoWin.cpp: (WebCore::BitmapImage::getHBITMAPOfSize): * platform/graphics/win/PathDirect2D.cpp: (WebCore::Path::strokeContains const): (WebCore::Path::strokeBoundingRect const): * platform/ios/DragImageIOS.mm: (WebCore::createDragImageFromImage): (WebCore::createDragImageForLink): (WebCore::createDragImageForSelection): (WebCore::createDragImageForRange): (WebCore::createDragImageForColor): * platform/mediastream/cocoa/AudioMediaStreamTrackRendererCocoa.cpp: * platform/win/DragImageWin.cpp: (WebCore::createDragImageForLink): * platform/win/PopupMenuWin.cpp: (WebCore::PopupMenuWin::paint): * rendering/ContentfulPaintChecker.cpp: (WebCore::ContentfulPaintChecker::qualifiesForContentfulPaint): * rendering/RenderBoxModelObject.cpp: (WebCore::applyBoxShadowForBackground): (WebCore::RenderBoxModelObject::paintBoxShadow): * rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::updateEventRegion): Source/WebKit: * Shared/cairo/ShareableBitmapCairo.cpp: (WebKit::ShareableBitmap::createGraphicsContext): * Shared/cg/ShareableBitmapCG.cpp: (WebKit::ShareableBitmap::createGraphicsContext): * Shared/win/ShareableBitmapDirect2D.cpp: (WebKit::ShareableBitmap::createGraphicsContext): * UIProcess/cairo/BackingStoreCairo.cpp: (WebKit::BackingStore::incorporateUpdate): * UIProcess/mac/WKPrintingView.mm: (-[WKPrintingView _drawPreview:]): * UIProcess/win/BackingStoreDirect2D.cpp: * UIProcess/win/WebPopupMenuProxyWin.cpp: (WebKit::WebPopupMenuProxyWin::paint): * WebProcess/Plugins/PDF/PDFPlugin.mm: (WebKit::PDFPlugin::paintControlForLayerInContext): * WebProcess/WebPage/Cocoa/WebPageCocoa.mm: (WebKit::WebPage::pdfSnapshotAtSize): * WebProcess/WebPage/CoordinatedGraphics/DrawingAreaCoordinatedGraphics.cpp: * WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::drawPagesToPDFImpl): * WebProcess/WebPage/gtk/WebPrintOperationGtk.cpp: (WebKit::WebPrintOperationGtk::renderPage): Source/WebKitLegacy/mac: * Misc/WebCoreStatistics.mm: (-[WebFrame printToCGContext:pageWidth:pageHeight:]): * Misc/WebKitNSStringExtras.mm: (-[NSString _web_drawAtPoint:font:textColor:]): * WebInspector/WebNodeHighlightView.mm: (-[WebNodeHighlightView drawRect:]): * WebView/WebFrame.mm: (-[WebFrame _drawRect:contentsOnly:]): Source/WebKitLegacy/win: * FullscreenVideoController.cpp: (FullscreenVideoController::draw): * WebFrame.cpp: (WebFrame::paintDocumentRectToContext): (WebFrame::paintScrollViewRectToContextAtPoint): (WebFrame::spoolPages): * WebNodeHighlight.cpp: (WebNodeHighlight::update): * WebView.cpp: (WebView::paintWithDirect2D): (WebView::paintIntoBackingStore): Tools: * TestWebKitAPI/Tests/WebCore/cg/DisplayListTestsCG.cpp: (TestWebKitAPI::TEST): Canonical link: https://commits.webkit.org/238144@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@278062 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2021-05-26 00:01:28 +00:00
platform/graphics/win/GraphicsContextWin.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/graphics/win/LocalWindowsContext.h
platform/graphics/win/MediaPlayerPrivateFullscreenWindow.h
platform/graphics/win/SharedGDIObject.h
platform/win/BString.h
platform/win/BitmapInfo.h
platform/win/COMPtr.h
platform/win/DefWndProcWindowClass.h
platform/win/GDIObjectCounter.h
platform/win/GDIUtilities.h
platform/win/HWndDC.h
platform/win/PopupMenuWin.h
platform/win/ScrollbarThemeWin.h
platform/win/SearchPopupMenuDB.h
platform/win/SearchPopupMenuWin.h
platform/win/SystemInfo.h
platform/win/WCDataObject.h
platform/win/WebCoreBundleWin.h
platform/win/WebCoreInstanceHandle.h
platform/win/WebCoreTextRenderer.h
platform/win/WindowMessageBroadcaster.h
platform/win/WindowMessageListener.h
[Win] Update KeyboardEvent as per the latest specification https://bugs.webkit.org/show_bug.cgi?id=202183 Reviewed by Ross Kirsling. Source/WebCore: Add 'key' and 'code' properties of KeyboardEvent for Windows. The implementation is copied from Chromium for Windows. For implementing 'key' properties, ToUnicodeEx API is used to convert a virtual key code to a character information. Unfortunately, ToUnicodeEx alters the stored previous typed dead key in the driver, it can't be used for each key event. So, ToUnicodeEx is used to convert all virtual keys with all modifier combinations beforehand. This change turns on ENABLE_KEYBOARD_KEY_ATTRIBUTE and ENABLE_KEYBOARD_CODE_ATTRIBUTE macros for all ports. A follow-up patch will remove the macros. Existing tests covers. * PlatformWin.cmake: * platform/win/KeyEventWin.cpp: (WebCore::windowsKeyNames): (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): * platform/win/WindowsKeyNames.cpp: Added. (hasControlAndAlt): (getModifierFlags): (nonPrintableVirtualKeyToDomKey): (WindowsKeyNames::WindowsKeyNames): (WindowsKeyNames::domKeyFromLParam): (singleCharacterString): (WindowsKeyNames::domKeyFromChar): (WindowsKeyNames::domCodeFromLParam): (WindowsKeyNames::updateLayout): * platform/win/WindowsKeyNames.h: Added. Source/WebKit: * Shared/WebEvent.h: * Shared/WebKeyboardEvent.cpp: (WebKit::WebKeyboardEvent::WebKeyboardEvent): * Shared/win/WebEventFactory.cpp: (WebKit::windowsKeyNames): (WebKit::WebEventFactory::createWebKeyboardEvent): Source/WTF: * wtf/FeatureDefines.h: LayoutTests: * platform/win/TestExpectations: * platform/wincairo/TestExpectations: Unskipped fast/events/arrow-keys-on-body.html, fast/events/keyboardevent-key.html, and fast/events/key-events-in-input-text.html. Canonical link: https://commits.webkit.org/217848@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@252873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-11-26 05:18:54 +00:00
platform/win/WindowsKeyNames.h
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
platform/win/WindowsTouch.h
)
list(APPEND WebCore_USER_AGENT_STYLE_SHEETS
${WEBCORE_DIR}/css/themeWin.css
${WEBCORE_DIR}/css/themeWinQuirks.css
)
if (USE_CF)
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
"${WEBCORE_DIR}/platform/cf"
)
list(APPEND WebCore_SOURCES
editing/SmartReplaceCF.cpp
loader/archive/cf/LegacyWebArchive.cpp
platform/cf/SharedBufferCF.cpp
platform/text/cf/HyphenationCF.cpp
)
[CMake] Make WebCore headers copies https://bugs.webkit.org/show_bug.cgi?id=182512 <rdar://problem/37510435> Reviewed by Alex Christensen. Source/WebCore: The header copying is moved to a target WebCorePrivateFrameworkHeaders. This target was originally Windows only but now this is enabled for all CMake based ports. Enumerated all headers within WebCore that are used for WebKit(Legacy), tools and tests. Shared headers are within Headers.cmake while port and platform specific headers are in their respective CMake files. Listing out all headers is preferred because globbing will break the build whenever a file is added. All include directories within the WebCore source tree are now PRIVATE. They were modified to use WebCore_PRIVATE_INCLUDE_DIRECTORIES. They will not propagate to other targets which will prevent erroneous includes in targets dependent on WebCore. * CMakeLists.txt: * Headers.cmake: Added. * PlatformAppleWin.cmake: * PlatformGTK.cmake: * PlatformMac.cmake: * PlatformPlayStation.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * PlatformWinCairo.cmake: * platform/Cairo.cmake: * platform/Curl.cmake: * platform/FreeType.cmake: * platform/GStreamer.cmake: * platform/HolePunch.cmake: * platform/ImageDecoders.cmake: * platform/Soup.cmake: Added. * platform/TextureMapper.cmake: Source/WebKit: WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> Removed generation of forwarding headers for WebCore using the perl script. * CMakeLists.txt: * NetworkProcess/curl/NetworkDataTaskCurl.h: * PlatformWPE.cmake: * PlatformWin.cmake: * Scripts/generate-forwarding-headers.pl: * UIProcess/API/glib/WebKitUserContentFilterStore.cpp: * UIProcess/API/wpe/WebKitColorPrivate.h: * UIProcess/WebsiteData/win/WebsiteDataStoreWin.cpp: * UIProcess/win/PageClientImpl.cpp: Source/WebKitLegacy: Added WebCorePrivateFrameworkHeaders as a dependency of WebKitLegacy for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. This revealed problems with WebKit's usage of WebCore headers. All include directories directly referencing the WebCore source tree we're removed from the CMake files. * CMakeLists.txt: * PlatformWin.cmake: Tools: Added WebCorePrivateFrameworkHeaders as a dependency of TestWebKitAPI for all ports. WebCore now uses WebCore_PRIVATE_INCLUDE_DIRECTORIES for all ports. Any includes of WebCore headers using "*.h" were modified to <WebCore/*.h> * DumpRenderTree/TestNetscapePlugIn/CMakeLists.txt: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npapi.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npfunctions.h: * DumpRenderTree/TestNetscapePlugIn/ForwardingHeaders/WebKit/npruntime.h: * TestWebKitAPI/CMakeLists.txt: * TestWebKitAPI/PlatformWin.cmake: * TestWebKitAPI/Tests/WebCore/AbortableTaskQueue.cpp: * TestWebKitAPI/Tests/WebCore/gstreamer/GstMappedBuffer.cpp: * WebKitTestRunner/win/PlatformWebViewWin.cpp: Canonical link: https://commits.webkit.org/211325@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@244443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-04-18 23:20:26 +00:00
list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
loader/archive/cf/LegacyWebArchive.h
)
list(APPEND WebCore_LIBRARIES ${COREFOUNDATION_LIBRARY})
list(APPEND WebCoreTestSupport_LIBRARIES ${COREFOUNDATION_LIBRARY})
else ()
list(APPEND WebCore_SOURCES
platform/text/Hyphenation.cpp
)
endif ()
if (USE_CFURLCONNECTION)
list(APPEND WebCore_PRIVATE_INCLUDE_DIRECTORIES
${WEBCORE_DIR}/platform/cf/win
)
list(APPEND WebCore_SOURCES
platform/cf/win/CertificateCFWin.cpp
)
list(APPEND WebCore_PRIVATE_FRAMEWORK_HEADERS
platform/cf/win/CertificateCFWin.h
)
endif ()
if (USE_CF AND NOT WTF_PLATFORM_WIN_CAIRO)
list(APPEND WebCore_SOURCES
platform/cf/KeyedDecoderCF.cpp
platform/cf/KeyedEncoderCF.cpp
)
else ()
list(APPEND WebCore_SOURCES
platform/generic/KeyedDecoderGeneric.cpp
platform/generic/KeyedEncoderGeneric.cpp
)
endif ()
if (${WTF_PLATFORM_WIN_CAIRO})
include(PlatformWinCairo.cmake)
else ()
include(PlatformAppleWin.cmake)
endif ()
make_directory(${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj)
file(COPY
Modernize WebKit nibs and lprojs for localization's sake https://bugs.webkit.org/show_bug.cgi?id=190911 <rdar://problem/45349466> Reviewed by Dan Bernstein. Source/JavaScriptCore: * JavaScriptCore.xcodeproj/project.pbxproj: English->en Source/WebCore: * PlatformGTK.cmake: * PlatformWPE.cmake: * PlatformWin.cmake: * WebCore.xcodeproj/project.pbxproj: * en.lproj/Localizable.strings: Renamed from Source/WebCore/English.lproj/Localizable.strings. * en.lproj/Localizable.stringsdict: Renamed from Source/WebCore/English.lproj/Localizable.stringsdict. * en.lproj/mediaControlsLocalizedStrings.js: Renamed from Source/WebCore/English.lproj/mediaControlsLocalizedStrings.js. * en.lproj/modern-media-controls-localized-strings.js: Renamed from Source/WebCore/English.lproj/modern-media-controls-localized-strings.js. English->en Source/WebCore/PAL: * PAL.xcodeproj/project.pbxproj: English->en Source/WebInspectorUI: * WebInspectorUI.xcodeproj/project.pbxproj: English->en Source/WebKit: * Resources/WebContentProcess.xib: * WebKit.xcodeproj/project.pbxproj: * en.lproj/InfoPlist.strings: Renamed from Source/WebKit/English.lproj/InfoPlist.strings. English->en Source/WebKitLegacy: * English.lproj/WebJavaScriptTextInputPanel.nib/designable.nib: Removed. * English.lproj/WebJavaScriptTextInputPanel.nib/keyedobjects.nib: Removed. * WebKitLegacy.xcodeproj/project.pbxproj: * en.lproj/WebJavaScriptTextInputPanel.xib: Added. NIB->XIB, English->en Source/WebKitLegacy/mac: * Misc/WebNSControlExtras.m: (-[NSControl sizeToFitAndAdjustWindowHeight]): NSWindow and its contents are both in the same scale space these days; avoid double-applying the scale factor, or you can't see the prompt. * Panels/English.lproj/WebAuthenticationPanel.nib/designable.nib: Removed. * Panels/English.lproj/WebAuthenticationPanel.nib/keyedobjects.nib: Removed. * Panels/en.lproj/WebAuthenticationPanel.xib: Added. NIB->XIB Source/WTF: * WTF.xcodeproj/project.pbxproj: English->en Tools: * Scripts/check-inspector-strings: * Scripts/update-webkit-localizable-strings: * gtk/manifest.txt.in: * wpe/manifest.txt.in: English->en LayoutTests: * media/modern-media-controls/localized-strings/replaced-string.html: English->en Canonical link: https://commits.webkit.org/205857@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@237566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-10-29 21:22:44 +00:00
"${WEBCORE_DIR}/en.lproj/Localizable.strings"
"${WEBCORE_DIR}/en.lproj/mediaControlsLocalizedStrings.js"
DESTINATION
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources/en.lproj
)
file(COPY
"${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.css"
"${WEBCORE_DIR}/Modules/mediacontrols/mediaControlsApple.js"
DESTINATION
${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/WebKit.resources
)
set(WebCore_OUTPUT_NAME WebCore${DEBUG_SUFFIX})