haikuwebkit/Source/WebCore/SourcesWPE.txt

94 lines
3.7 KiB
Plaintext
Raw Permalink Normal View History

// Copyright (C) 2017 Igalia S.L.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
// 1. Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// 2. Redistributions in binary form must reproduce the above copyright
// notice, this list of conditions and the following disclaimer in the
// documentation and/or other materials provided with the distribution.
//
// THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
// AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
// PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
// BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
// CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
// SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
// INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
// CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
// ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
// THE POSSIBILITY OF SUCH DAMAGE.
[WPE] Add initial accessibility support using ATK https://bugs.webkit.org/show_bug.cgi?id=197413 Reviewed by Michael Catanzaro. .: Add ENABLE_ACCESSIBILITY public option to WPE. * Source/cmake/OptionsGTK.cmake: * Source/cmake/OptionsWPE.cmake: Source/WebCore: Use USE(ATK) instead of PLATFORM(GTK) for ATK related code and use ATK when available for WPE port too. * PlatformWPE.cmake: * SourcesWPE.txt: * accessibility/AXObjectCache.h: * accessibility/AccessibilityList.cpp: (WebCore::AccessibilityList::childHasPseudoVisibleListItemMarkers): * accessibility/AccessibilityNodeObject.cpp: (WebCore::AccessibilityNodeObject::canSetValueAttribute const): * accessibility/AccessibilityObject.cpp: (WebCore::AccessibilityObject::textIteratorBehaviorForTextRange const): * accessibility/AccessibilityObject.h: * accessibility/AccessibilityObjectInterface.h: * accessibility/AccessibilityRenderObject.cpp: (WebCore::AccessibilityRenderObject::indexForVisiblePosition const): (WebCore::AccessibilityRenderObject::shouldNotifyActiveDescendant const): * accessibility/AccessibilityTableColumn.cpp: (WebCore::AccessibilityTableColumn::computeAccessibilityIsIgnored const): * accessibility/AccessibilityTableHeaderContainer.cpp: (WebCore::AccessibilityTableHeaderContainer::computeAccessibilityIsIgnored const): * accessibility/atk/WebKitAccessible.cpp: (webkitAccessibleGetAttributes): * accessibility/wpe/AXObjectCacheWPE.cpp: Removed. * accessibility/wpe/AccessibilityObjectWPE.cpp: Removed. * editing/FrameSelection.h: Source/WebKit: Rename WebKitWebViewBaseAccessible as WebKitWebViewAccessible and move it to glib removing its dependency on GTK. WPEView now implements get_accessible to return its associated WebKitWebViewAccessible. * PlatformWPE.cmake: * SourcesGTK.txt: * SourcesWPE.txt: * UIProcess/API/glib/WebKitWebViewAccessible.cpp: Added. (webkitWebViewAccessibleInitialize): (webkitWebViewAccessibleRefStateSet): (webkitWebViewAccessibleGetIndexInParent): (webkit_web_view_accessible_class_init): (webkitWebViewAccessibleNew): (webkitWebViewAccessibleSetWebView): * UIProcess/API/glib/WebKitWebViewAccessible.h: Added. * UIProcess/API/gtk/WebKitWebViewBase.cpp: (webkitWebViewBaseDispose): (webkitWebViewBaseGetAccessible): * UIProcess/API/gtk/WebKitWebViewBaseAccessible.cpp: Removed. * UIProcess/API/gtk/WebKitWebViewBaseAccessible.h: Removed. * UIProcess/API/wpe/PageClientImpl.cpp: (WebKit::PageClientImpl::accessible): * UIProcess/API/wpe/PageClientImpl.h: * UIProcess/API/wpe/WPEView.cpp: (WKWPE::m_backend): (WKWPE::View::~View): (WKWPE::View::accessible): * UIProcess/API/wpe/WPEView.h: * UIProcess/WebPageProxy.h: * UIProcess/WebPageProxy.messages.in: * UIProcess/wpe/WebPageProxyWPE.cpp: (WebKit::WebPageProxy::bindAccessibilityTree): Call atk_socket_embed() with the given plug ID. * WebProcess/WebPage/WebPage.h: * WebProcess/WebPage/wpe/WebPageWPE.cpp: (WebKit::WebPage::platformInitialize): Create the WebKitWebPageAccessibilityObject and send BindAccessibilityTree message to the UI process. * WebProcess/wpe/WebProcessMainWPE.cpp: (WebKit::initializeAccessibility): Implement AtkUtil interface and initialize the atk bridge. Tools: Add accessibility support in MiniBrowser and backends used by MiniBrowser and tests. * MiniBrowser/wpe/CMakeLists.txt: * MiniBrowser/wpe/main.cpp: (main): * TestWebKitAPI/PlatformWPE.cmake: * WebKitTestRunner/InjectedBundle/AccessibilityController.cpp: * WebKitTestRunner/InjectedBundle/AccessibilityController.h: * WebKitTestRunner/InjectedBundle/AccessibilityUIElement.h: * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp: (WTR::AccessibilityNotificationHandler::setNotificationFunctionCallback): (WTR::AccessibilityNotificationHandler::removeAccessibilityNotificationHandler): * WebKitTestRunner/InjectedBundle/wpe/AccessibilityControllerWPE.cpp: Removed. * WebKitTestRunner/InjectedBundle/wpe/AccessibilityUIElementWPE.cpp: Removed. * WebKitTestRunner/PlatformWPE.cmake: * wpe/backends/CMakeLists.txt: * wpe/backends/HeadlessViewBackend.cpp: (WPEToolingBackends::HeadlessViewBackend::HeadlessViewBackend): * wpe/backends/ViewBackend.cpp: (WPEToolingBackends::addKeyEventListener): (WPEToolingBackends::removeKeyEventListener): (WPEToolingBackends::notifyAccessibilityKeyEventListeners): (WPEToolingBackends::ViewBackend::initialize): (WPEToolingBackends::ViewBackend::initializeAccessibility): (WPEToolingBackends::ViewBackend::updateAccessibilityState): (WPEToolingBackends::ViewBackend::setAccessibleChild): (WPEToolingBackends::ViewBackend::addActivityState): (WPEToolingBackends::ViewBackend::removeActivityState): (WPEToolingBackends::ViewBackend::dispatchInputKeyboardEvent): * wpe/backends/ViewBackend.h: * wpe/backends/WebKitAccessibleApplication.cpp: Added. (webkitAccessibleApplicationWindowInterfaceInit): (webkitAccessibleApplicationFinalize): (webkitAccessibleApplicationInitialize): (webkitAccessibleApplicationGetNChildren): (webkitAccessibleApplicationRefChild): (webkitAccessibleApplicationGetName): (webkit_accessible_application_class_init): (webkit_accessible_application_init): (webkitAccessibleApplicationNew): (webkitAccessibleApplicationSetChild): * wpe/backends/WebKitAccessibleApplication.h: Added. * wpe/backends/WindowViewBackend.cpp: (WPEToolingBackends::WindowViewBackend::WindowViewBackend): * wpe/jhbuild.modules: LayoutTests: Unskip accessibility tests that are passing now and add platform specific results. * platform/wpe/TestExpectations: * platform/wpe/accessibility/add-children-pseudo-element-expected.txt: Added. * platform/wpe/accessibility/aria-fallback-roles-expected.txt: Added. * platform/wpe/accessibility/aria-hidden-negates-no-visibility-expected.txt: Added. * platform/wpe/accessibility/aria-label-on-label-element-expected.txt: Added. * platform/wpe/accessibility/aria-labelledby-overrides-aria-label-expected.txt: Added. * platform/wpe/accessibility/aria-labelledby-overrides-label-expected.txt: Added. * platform/wpe/accessibility/aria-option-role-expected.txt: Added. * platform/wpe/accessibility/aria-roledescription-expected.txt: Added. * platform/wpe/accessibility/aria-switch-sends-notification-expected.txt: Added. * platform/wpe/accessibility/aria-tab-roles-expected.txt: Added. * platform/wpe/accessibility/aria-table-attributes-expected.txt: Added. * platform/wpe/accessibility/aria-table-content-expected.txt: Added. * platform/wpe/accessibility/aria-toggle-button-with-title-expected.txt: Added. * platform/wpe/accessibility/auto-fill-crash-expected.txt: Added. * platform/wpe/accessibility/button-with-aria-haspopup-role-expected.txt: Added. * platform/wpe/accessibility/color-well-expected.txt: Added. * platform/wpe/accessibility/deleting-iframe-destroys-axcache-expected.txt: Added. * platform/wpe/accessibility/dimensions-include-descendants-expected.txt: Added. * platform/wpe/accessibility/double-nested-inline-element-missing-from-tree-expected.txt: Added. * platform/wpe/accessibility/empty-image-with-title-expected.txt: Added. * platform/wpe/accessibility/file-upload-button-stringvalue-expected.txt: Added. * platform/wpe/accessibility/help-text-expected.txt: Added. * platform/wpe/accessibility/image-link-expected.txt: Added. * platform/wpe/accessibility/image-map1-expected.txt: Added. * platform/wpe/accessibility/image-map2-expected.txt: Added. * platform/wpe/accessibility/inline-continuations-expected.txt: Added. * platform/wpe/accessibility/label-with-pseudo-elements-expected.txt: Added. * platform/wpe/accessibility/list-detection-expected.txt: Added. * platform/wpe/accessibility/lists-expected.txt: Added. * platform/wpe/accessibility/math-multiscript-attributes-expected.txt: Added. * platform/wpe/accessibility/media-emits-object-replacement-expected.txt: Added. * platform/wpe/accessibility/menu-list-crash2-expected.txt: Added. * platform/wpe/accessibility/minimal-table-with-aria-is-data-table-expected.txt: Added. * platform/wpe/accessibility/press-targets-center-point-expected.txt: Added. * platform/wpe/accessibility/radio-button-title-label-expected.txt: Added. * platform/wpe/accessibility/render-counter-text-expected.txt: Added. * platform/wpe/accessibility/roles-computedRoleString-expected.txt: Added. * platform/wpe/accessibility/roles-exposed-expected.txt: Added. * platform/wpe/accessibility/set-selected-text-range-contenteditable-expected.txt: Added. * platform/wpe/accessibility/svg-remote-element-expected.txt: Added. * platform/wpe/accessibility/tabindex-elements-are-accessible-expected.txt: Added. * platform/wpe/accessibility/table-attributes-expected.txt: Added. * platform/wpe/accessibility/table-cell-spans-expected.txt: Added. * platform/wpe/accessibility/table-cells-expected.txt: Added. * platform/wpe/accessibility/table-cells-roles-expected.txt: Added. * platform/wpe/accessibility/table-column-headers-with-captions-expected.txt: Added. * platform/wpe/accessibility/table-one-cell-expected.txt: Added. * platform/wpe/accessibility/table-roles-hierarchy-expected.txt: Added. * platform/wpe/accessibility/table-sections-expected.txt: Added. * platform/wpe/accessibility/table-with-rules-expected.txt: Added. * platform/wpe/accessibility/text-alternative-calculation-hidden-nodes-expected.txt: Added. * platform/wpe/accessibility/transformed-element-expected.txt: Added. Canonical link: https://commits.webkit.org/212158@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@245565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-05-21 12:45:08 +00:00
accessibility/atk/AXObjectCacheAtk.cpp
accessibility/atk/AccessibilityObjectAtk.cpp
accessibility/atk/WebKitAccessible.cpp
accessibility/atk/WebKitAccessibleHyperlink.cpp
accessibility/atk/WebKitAccessibleInterfaceAction.cpp @no-unify
accessibility/atk/WebKitAccessibleInterfaceComponent.cpp
accessibility/atk/WebKitAccessibleInterfaceDocument.cpp
accessibility/atk/WebKitAccessibleInterfaceEditableText.cpp
accessibility/atk/WebKitAccessibleInterfaceHyperlinkImpl.cpp
accessibility/atk/WebKitAccessibleInterfaceHypertext.cpp
accessibility/atk/WebKitAccessibleInterfaceImage.cpp
accessibility/atk/WebKitAccessibleInterfaceSelection.cpp
accessibility/atk/WebKitAccessibleInterfaceTable.cpp
accessibility/atk/WebKitAccessibleInterfaceTableCell.cpp
accessibility/atk/WebKitAccessibleInterfaceText.cpp
accessibility/atk/WebKitAccessibleInterfaceValue.cpp
accessibility/atk/WebKitAccessibleUtil.cpp
editing/atk/FrameSelectionAtk.cpp
editing/libwpe/EditorLibWPE.cpp
loader/soup/ResourceLoaderSoup.cpp
page/linux/ResourceUsageOverlayLinux.cpp
page/linux/ResourceUsageThreadLinux.cpp
[Nicosia] Take over CoordinatedGraphics-named implementation of async scrolling classes https://bugs.webkit.org/show_bug.cgi?id=193133 Reviewed by Michael Catanzaro. Move the CoordinatedGraphics-specific files under page/scrolling/coordinatedgraphics/ to page/scrolling/nicosia/, along with renaming the files and classes accordingly. Implementation will only depend on the Nicosia-specific layer structure and is not specific to the CoordinatedGraphics system. * PlatformPlayStation.cmake: * SourcesGTK.txt: * SourcesWPE.txt: * page/scrolling/nicosia/ScrollingCoordinatorNicosia.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp. * page/scrolling/nicosia/ScrollingCoordinatorNicosia.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.h. * page/scrolling/nicosia/ScrollingStateNodeNicosia.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingStateNodeCoordinatedGraphics.cpp. * page/scrolling/nicosia/ScrollingTreeFixedNode.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeFixedNode.cpp. * page/scrolling/nicosia/ScrollingTreeFixedNode.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeFixedNode.h. * page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeFrameScrollingNodeCoordinatedGraphics.cpp. * page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeFrameScrollingNodeCoordinatedGraphics.h. * page/scrolling/nicosia/ScrollingTreeNicosia.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeCoordinatedGraphics.cpp. * page/scrolling/nicosia/ScrollingTreeNicosia.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeCoordinatedGraphics.h. * page/scrolling/nicosia/ScrollingTreeStickyNode.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeStickyNode.cpp. * page/scrolling/nicosia/ScrollingTreeStickyNode.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeStickyNode.h. * platform/TextureMapper.cmake: Canonical link: https://commits.webkit.org/207693@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-01-07 06:42:59 +00:00
page/scrolling/nicosia/ScrollingCoordinatorNicosia.cpp
page/scrolling/nicosia/ScrollingStateNodeNicosia.cpp
page/scrolling/nicosia/ScrollingTreeFixedNode.cpp
page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.cpp
page/scrolling/nicosia/ScrollingTreeNicosia.cpp
[Nicosia] Add overflow, overflow proxy node implementations https://bugs.webkit.org/show_bug.cgi?id=202306 Reviewed by Carlos Garcia Campos. Add the ScrollingTreeOverflowScrollProxyNode and ScrollingTreeOverflowScrollingNodeNicosia classes, implementing the missing overlfow node types. Both implementations are based on the corresponsing classes for Cocoa/Mac platforms and should ideally share most of the platform-agnostic logic. * SourcesWPE.txt: * page/scrolling/nicosia/ScrollingTreeOverflowScrollProxyNode.cpp: Added. (WebCore::ScrollingTreeOverflowScrollProxyNode::create): (WebCore::ScrollingTreeOverflowScrollProxyNode::ScrollingTreeOverflowScrollProxyNode): (WebCore::ScrollingTreeOverflowScrollProxyNode::commitStateBeforeChildren): (WebCore::ScrollingTreeOverflowScrollProxyNode::applyLayerPositions): (WebCore::ScrollingTreeOverflowScrollProxyNode::dumpProperties const): * page/scrolling/nicosia/ScrollingTreeOverflowScrollProxyNode.h: Added. * page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp: Added. (WebCore::ScrollingTreeOverflowScrollingNodeNicosia::create): (WebCore::ScrollingTreeOverflowScrollingNodeNicosia::ScrollingTreeOverflowScrollingNodeNicosia): (WebCore::ScrollingTreeOverflowScrollingNodeNicosia::commitStateAfterChildren): (WebCore::ScrollingTreeOverflowScrollingNodeNicosia::adjustedScrollPosition const): (WebCore::ScrollingTreeOverflowScrollingNodeNicosia::repositionScrollingLayers): (WebCore::ScrollingTreeOverflowScrollingNodeNicosia::handleWheelEvent): * page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.h: Added. Canonical link: https://commits.webkit.org/215890@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-09-29 08:56:34 +00:00
page/scrolling/nicosia/ScrollingTreeOverflowScrollProxyNode.cpp
page/scrolling/nicosia/ScrollingTreeOverflowScrollingNodeNicosia.cpp
[Nicosia] Add implementations for fixed, positioned, sticky ScrollingTreeNodes https://bugs.webkit.org/show_bug.cgi?id=202100 Reviewed by Carlos Garcia Campos. Fill in the Nicosia implementations for the ScrollingTreeFixedNode, ScrollingTreePositionedNode and ScrollingTreeStickyNode classes. The implementations in majority repeat what the Cocoa implementations do, with the main difference being the Nicosia-specific layer state application. Sharing more of this logic should be investigated in the future. * PlatformPlayStation.cmake: Add ScrollingTreePositionedNode to build. * SourcesGTK.txt: Ditto. * SourcesWPE.txt: Ditto. * page/scrolling/nicosia/ScrollingTreeFixedNode.cpp: (WebCore::ScrollingTreeFixedNode::commitStateBeforeChildren): (WebCore::ScrollingTreeFixedNode::applyLayerPositions): (WebCore::ScrollingTreeFixedNode::dumpProperties const): * page/scrolling/nicosia/ScrollingTreeFixedNode.h: * page/scrolling/nicosia/ScrollingTreePositionedNode.cpp: Added. (WebCore::ScrollingTreePositionedNode::create): (WebCore::ScrollingTreePositionedNode::ScrollingTreePositionedNode): (WebCore::ScrollingTreePositionedNode::commitStateBeforeChildren): (WebCore::ScrollingTreePositionedNode::applyLayerPositions): (WebCore::ScrollingTreePositionedNode::dumpProperties const): * page/scrolling/nicosia/ScrollingTreePositionedNode.h: Added. (WebCore::ScrollingTreePositionedNode::relatedOverflowScrollingNodes const): * page/scrolling/nicosia/ScrollingTreeStickyNode.cpp: (WebCore::ScrollingTreeStickyNode::commitStateBeforeChildren): (WebCore::ScrollingTreeStickyNode::applyLayerPositions): (WebCore::ScrollingTreeStickyNode::dumpProperties const): (WebCore::ScrollingTreeStickyNode::computeLayerPosition const): * page/scrolling/nicosia/ScrollingTreeStickyNode.h: Canonical link: https://commits.webkit.org/215780@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@250339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-09-25 09:47:49 +00:00
page/scrolling/nicosia/ScrollingTreePositionedNode.cpp
2021-03-04 13:22:14 +00:00
page/scrolling/nicosia/ScrollingTreeScrollingNodeDelegateNicosia.cpp
[Nicosia] Take over CoordinatedGraphics-named implementation of async scrolling classes https://bugs.webkit.org/show_bug.cgi?id=193133 Reviewed by Michael Catanzaro. Move the CoordinatedGraphics-specific files under page/scrolling/coordinatedgraphics/ to page/scrolling/nicosia/, along with renaming the files and classes accordingly. Implementation will only depend on the Nicosia-specific layer structure and is not specific to the CoordinatedGraphics system. * PlatformPlayStation.cmake: * SourcesGTK.txt: * SourcesWPE.txt: * page/scrolling/nicosia/ScrollingCoordinatorNicosia.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.cpp. * page/scrolling/nicosia/ScrollingCoordinatorNicosia.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingCoordinatorCoordinatedGraphics.h. * page/scrolling/nicosia/ScrollingStateNodeNicosia.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingStateNodeCoordinatedGraphics.cpp. * page/scrolling/nicosia/ScrollingTreeFixedNode.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeFixedNode.cpp. * page/scrolling/nicosia/ScrollingTreeFixedNode.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeFixedNode.h. * page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeFrameScrollingNodeCoordinatedGraphics.cpp. * page/scrolling/nicosia/ScrollingTreeFrameScrollingNodeNicosia.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeFrameScrollingNodeCoordinatedGraphics.h. * page/scrolling/nicosia/ScrollingTreeNicosia.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeCoordinatedGraphics.cpp. * page/scrolling/nicosia/ScrollingTreeNicosia.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeCoordinatedGraphics.h. * page/scrolling/nicosia/ScrollingTreeStickyNode.cpp: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeStickyNode.cpp. * page/scrolling/nicosia/ScrollingTreeStickyNode.h: Renamed from Source/WebCore/page/scrolling/coordinatedgraphics/ScrollingTreeStickyNode.h. * platform/TextureMapper.cmake: Canonical link: https://commits.webkit.org/207693@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@239667 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2019-01-07 06:42:59 +00:00
page/scrolling/nicosia/ScrollingTreeStickyNode.cpp
platform/ScrollAnimationKinetic.cpp
platform/UserAgentQuirks.cpp
[GTK] Stop using gtk foreign drawing API to style form controls https://bugs.webkit.org/show_bug.cgi?id=208129 Reviewed by Adrian Perez de Castro. .: Add a test case for datalist element. * ManualTests/gtk/theme.html: Source/WebCore: It causes layout issues in some websites, it doesn't really work with all GTK themes and it won't be possible with GTK4 because foreign drawing APIs have been removed. Instead, we can use the new custom style used by WPE port, which is based on adwaita, but simplified to avoid the huge minimum control sizes, the usage of gradients and transparencies, etc. We can still use the GTK API to get the selection colors, to keep some consistency with the actual GTK theme, but that won't be possible with GTK4 either. This also means we won't be rendering directly to the cairo context anymore (which was required by GTK foreign drawing), so we can use things like threaded rendering in the GTK port now. This patch renames ScrollbarThemeWPE, RenderThemeWPE and ThemeWPE as ScrollbarThemeAdwaita, RenderThemeAdwaita and ThemeAdwaita and adds ThemeGtk. GTK media controls CSS and JavaScript files have been removed in favor of using the adwaita ones. * Modules/mediacontrols/mediaControlsGtk.js: Removed. * PlatformGTK.cmake: * PlatformWPE.cmake: * SourcesGTK.txt: * SourcesWPE.txt: * css/mediaControlsGtk.css: Removed. * platform/adwaita/ScrollbarThemeAdwaita.cpp: Renamed from Source/WebCore/platform/wpe/ScrollbarThemeWPE.cpp. (WebCore::ScrollbarThemeAdwaita::usesOverlayScrollbars const): (WebCore::ScrollbarThemeAdwaita::scrollbarThickness): (WebCore::ScrollbarThemeAdwaita::minimumThumbLength): (WebCore::ScrollbarThemeAdwaita::hasButtons): (WebCore::ScrollbarThemeAdwaita::hasThumb): (WebCore::ScrollbarThemeAdwaita::backButtonRect): (WebCore::ScrollbarThemeAdwaita::forwardButtonRect): (WebCore::ScrollbarThemeAdwaita::trackRect): (WebCore::ScrollbarThemeAdwaita::paint): (WebCore::ScrollbarThemeAdwaita::handleMousePressEvent): (WebCore::ScrollbarTheme::nativeTheme): * platform/adwaita/ScrollbarThemeAdwaita.h: Copied from Source/WebCore/platform/wpe/ScrollbarThemeWPE.h. * platform/adwaita/ThemeAdwaita.cpp: Renamed from Source/WebCore/platform/wpe/ThemeWPE.cpp. (WebCore::Theme::singleton): (WebCore::ThemeAdwaita::activeSelectionForegroundColor const): (WebCore::ThemeAdwaita::activeSelectionBackgroundColor const): (WebCore::ThemeAdwaita::inactiveSelectionForegroundColor const): (WebCore::ThemeAdwaita::inactiveSelectionBackgroundColor const): (WebCore::ThemeAdwaita::focusColor): (WebCore::ThemeAdwaita::paintFocus): (WebCore::ThemeAdwaita::paintArrow): (WebCore::ThemeAdwaita::controlSize const): (WebCore::ThemeAdwaita::paint): (WebCore::ThemeAdwaita::paintCheckbox): (WebCore::ThemeAdwaita::paintRadio): (WebCore::ThemeAdwaita::paintButton): (WebCore::ThemeAdwaita::paintSpinButton): * platform/adwaita/ThemeAdwaita.h: Renamed from Source/WebCore/platform/wpe/ThemeWPE.h. (WebCore::ThemeAdwaita::platformColorsDidChange): * platform/graphics/cairo/CairoOperations.cpp: (WebCore::Cairo::drawFocusRing): * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawFocusRing): * platform/gtk/RenderThemeGadget.cpp: Removed. * platform/gtk/RenderThemeGadget.h: Removed. * platform/gtk/RenderThemeWidget.cpp: Removed. * platform/gtk/RenderThemeWidget.h: Removed. * platform/gtk/ScrollbarThemeGtk.cpp: Removed. * platform/gtk/ScrollbarThemeGtk.h: Removed. * platform/gtk/ThemeGtk.cpp: Added. (WebCore::Theme::singleton): (WebCore::ThemeGtk::ensurePlatformColors const): (WebCore::ThemeGtk::platformColorsDidChange): (WebCore::ThemeGtk::activeSelectionForegroundColor const): (WebCore::ThemeGtk::activeSelectionBackgroundColor const): (WebCore::ThemeGtk::inactiveSelectionForegroundColor const): (WebCore::ThemeGtk::inactiveSelectionBackgroundColor const): * platform/gtk/ThemeGtk.h: Renamed from Source/WebCore/platform/wpe/ScrollbarThemeWPE.h. * rendering/RenderThemeAdwaita.cpp: Renamed from Source/WebCore/platform/wpe/RenderThemeWPE.cpp. (WebCore::RenderTheme::singleton): (WebCore::RenderThemeAdwaita::supportsFocusRing const): (WebCore::RenderThemeAdwaita::shouldHaveCapsLockIndicator const): (WebCore::RenderThemeAdwaita::platformActiveSelectionBackgroundColor const): (WebCore::RenderThemeAdwaita::platformInactiveSelectionBackgroundColor const): (WebCore::RenderThemeAdwaita::platformActiveSelectionForegroundColor const): (WebCore::RenderThemeAdwaita::platformInactiveSelectionForegroundColor const): (WebCore::RenderThemeAdwaita::platformActiveListBoxSelectionBackgroundColor const): (WebCore::RenderThemeAdwaita::platformInactiveListBoxSelectionBackgroundColor const): (WebCore::RenderThemeAdwaita::platformActiveListBoxSelectionForegroundColor const): (WebCore::RenderThemeAdwaita::platformInactiveListBoxSelectionForegroundColor const): (WebCore::RenderThemeAdwaita::platformFocusRingColor const): (WebCore::RenderThemeAdwaita::platformColorsDidChange): (WebCore::RenderThemeAdwaita::extraDefaultStyleSheet): (WebCore::RenderThemeAdwaita::extraMediaControlsStyleSheet): (WebCore::RenderThemeAdwaita::mediaControlsScript): (WebCore::RenderThemeAdwaita::paintTextField): (WebCore::RenderThemeAdwaita::paintTextArea): (WebCore::RenderThemeAdwaita::paintSearchField): (WebCore::RenderThemeAdwaita::popupInternalPaddingBox const): (WebCore::RenderThemeAdwaita::paintMenuList): (WebCore::RenderThemeAdwaita::paintMenuListButtonDecorations): (WebCore::RenderThemeAdwaita::animationRepeatIntervalForProgressBar const): (WebCore::RenderThemeAdwaita::animationDurationForProgressBar const): (WebCore::RenderThemeAdwaita::progressBarRectForBounds const): (WebCore::RenderThemeAdwaita::paintProgressBar): (WebCore::RenderThemeAdwaita::paintSliderTrack): (WebCore::RenderThemeAdwaita::adjustSliderThumbSize const): (WebCore::RenderThemeAdwaita::paintSliderThumb): (WebCore::RenderThemeAdwaita::paintMediaSliderTrack): (WebCore::RenderThemeAdwaita::paintMediaVolumeSliderTrack): (WebCore::RenderThemeAdwaita::sliderTickSize const): (WebCore::RenderThemeAdwaita::sliderTickOffsetFromTrackCenter const): (WebCore::RenderThemeAdwaita::adjustListButtonStyle const): * rendering/RenderThemeAdwaita.h: Renamed from Source/WebCore/platform/wpe/RenderThemeWPE.h. * rendering/RenderThemeGtk.cpp: (WebCore::RenderThemeGtk::updateCachedSystemFontDescription const): (WebCore::RenderThemeGtk::caretBlinkInterval const): * rendering/RenderThemeGtk.h: Source/WebKit: * WebProcess/WebPage/gtk/WebPageGtk.cpp: (WebKit::WebPage::themeDidChange): Notify RenderTheme about the theme change to clear the colors cache. Source/WTF: Enable USE_NEW_THEME for the GTK port. * wtf/PlatformUse.h: Canonical link: https://commits.webkit.org/221120@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@257299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-25 09:55:52 +00:00
platform/adwaita/ScrollbarThemeAdwaita.cpp
platform/adwaita/ThemeAdwaita.cpp
platform/generic/ScrollAnimatorGeneric.cpp
platform/graphics/ANGLEWebKitBridge.cpp
platform/graphics/GLContext.cpp
platform/graphics/PlatformDisplay.cpp
platform/graphics/egl/GLContextEGL.cpp
Add USE(LIBWPE) to WebCore https://bugs.webkit.org/show_bug.cgi?id=191401 Reviewed by Michael Catanzaro. .: Exposes USE_LIBWPE to the build. * Source/cmake/OptionsWPE.cmake: Source/WebCore: No new tests. No change in behavior. Migrates all PLATFORM(WPE) code that calls into wpe_* APIs to USE(LIBWPE) instead. Renames classes and files to use the suffix LibWPE. * PlatformWPE.cmake: * SourcesWPE.txt: * platform/Pasteboard.h: * platform/PasteboardStrategy.h: * platform/PlatformKeyboardEvent.h: * platform/PlatformPasteboard.h: * platform/graphics/PlatformDisplay.cpp: (WebCore::PlatformDisplay::createPlatformDisplay): * platform/graphics/PlatformDisplay.h: * platform/graphics/egl/GLContextEGL.h: * platform/graphics/egl/GLContextEGLLibWPE.cpp: Renamed from Source/WebCore/platform/graphics/egl/GLContextEGLWPE.cpp. (WebCore::GLContextEGL::createWPEContext): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: (WebCore::MediaPlayerPrivateGStreamerBase::ensureGstGLContext): * platform/graphics/libwpe/PlatformDisplayLibWPE.cpp: Renamed from Source/WebCore/platform/graphics/wpe/PlatformDisplayWPE.cpp. (WebCore::PlatformDisplayLibWPE::create): (WebCore::PlatformDisplayLibWPE::PlatformDisplayLibWPE): (WebCore::PlatformDisplayLibWPE::~PlatformDisplayLibWPE): (WebCore::PlatformDisplayLibWPE::initialize): * platform/graphics/libwpe/PlatformDisplayLibWPE.h: Renamed from Source/WebCore/platform/graphics/wpe/PlatformDisplayWPE.h. * platform/libwpe/PasteboardLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PasteboardWPE.cpp. * platform/libwpe/PlatformKeyboardEventLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PlatformKeyboardEventWPE.cpp. * platform/libwpe/PlatformPasteboardLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PlatformPasteboardWPE.cpp. Source/WebKit: Rename PlatformDisplayWPE to PlatformDisplayLibWPE. * WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp: (WebKit::AcceleratedSurfaceWPE::initialize): * WebProcess/wpe/WebProcessMainWPE.cpp: Canonical link: https://commits.webkit.org/206477@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-11-16 16:38:53 +00:00
platform/graphics/egl/GLContextEGLLibWPE.cpp
platform/graphics/libwpe/PlatformDisplayLibWPE.cpp
platform/graphics/opentype/OpenTypeVerticalData.cpp
Add USE(LIBWPE) to WebCore https://bugs.webkit.org/show_bug.cgi?id=191401 Reviewed by Michael Catanzaro. .: Exposes USE_LIBWPE to the build. * Source/cmake/OptionsWPE.cmake: Source/WebCore: No new tests. No change in behavior. Migrates all PLATFORM(WPE) code that calls into wpe_* APIs to USE(LIBWPE) instead. Renames classes and files to use the suffix LibWPE. * PlatformWPE.cmake: * SourcesWPE.txt: * platform/Pasteboard.h: * platform/PasteboardStrategy.h: * platform/PlatformKeyboardEvent.h: * platform/PlatformPasteboard.h: * platform/graphics/PlatformDisplay.cpp: (WebCore::PlatformDisplay::createPlatformDisplay): * platform/graphics/PlatformDisplay.h: * platform/graphics/egl/GLContextEGL.h: * platform/graphics/egl/GLContextEGLLibWPE.cpp: Renamed from Source/WebCore/platform/graphics/egl/GLContextEGLWPE.cpp. (WebCore::GLContextEGL::createWPEContext): * platform/graphics/gstreamer/MediaPlayerPrivateGStreamerBase.cpp: (WebCore::MediaPlayerPrivateGStreamerBase::ensureGstGLContext): * platform/graphics/libwpe/PlatformDisplayLibWPE.cpp: Renamed from Source/WebCore/platform/graphics/wpe/PlatformDisplayWPE.cpp. (WebCore::PlatformDisplayLibWPE::create): (WebCore::PlatformDisplayLibWPE::PlatformDisplayLibWPE): (WebCore::PlatformDisplayLibWPE::~PlatformDisplayLibWPE): (WebCore::PlatformDisplayLibWPE::initialize): * platform/graphics/libwpe/PlatformDisplayLibWPE.h: Renamed from Source/WebCore/platform/graphics/wpe/PlatformDisplayWPE.h. * platform/libwpe/PasteboardLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PasteboardWPE.cpp. * platform/libwpe/PlatformKeyboardEventLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PlatformKeyboardEventWPE.cpp. * platform/libwpe/PlatformPasteboardLibWPE.cpp: Renamed from Source/WebCore/platform/wpe/PlatformPasteboardWPE.cpp. Source/WebKit: Rename PlatformDisplayWPE to PlatformDisplayLibWPE. * WebProcess/WebPage/wpe/AcceleratedSurfaceWPE.cpp: (WebKit::AcceleratedSurfaceWPE::initialize): * WebProcess/wpe/WebProcessMainWPE.cpp: Canonical link: https://commits.webkit.org/206477@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@238282 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2018-11-16 16:38:53 +00:00
platform/libwpe/PasteboardLibWPE.cpp
platform/libwpe/PlatformKeyboardEventLibWPE.cpp
platform/libwpe/PlatformPasteboardLibWPE.cpp
platform/text/Hyphenation.cpp
platform/text/LocaleICU.cpp
platform/unix/LoggingUnix.cpp
platform/wpe/PlatformScreenWPE.cpp
platform/xdg/MIMETypeRegistryXdg.cpp
[GTK] Stop using gtk foreign drawing API to style form controls https://bugs.webkit.org/show_bug.cgi?id=208129 Reviewed by Adrian Perez de Castro. .: Add a test case for datalist element. * ManualTests/gtk/theme.html: Source/WebCore: It causes layout issues in some websites, it doesn't really work with all GTK themes and it won't be possible with GTK4 because foreign drawing APIs have been removed. Instead, we can use the new custom style used by WPE port, which is based on adwaita, but simplified to avoid the huge minimum control sizes, the usage of gradients and transparencies, etc. We can still use the GTK API to get the selection colors, to keep some consistency with the actual GTK theme, but that won't be possible with GTK4 either. This also means we won't be rendering directly to the cairo context anymore (which was required by GTK foreign drawing), so we can use things like threaded rendering in the GTK port now. This patch renames ScrollbarThemeWPE, RenderThemeWPE and ThemeWPE as ScrollbarThemeAdwaita, RenderThemeAdwaita and ThemeAdwaita and adds ThemeGtk. GTK media controls CSS and JavaScript files have been removed in favor of using the adwaita ones. * Modules/mediacontrols/mediaControlsGtk.js: Removed. * PlatformGTK.cmake: * PlatformWPE.cmake: * SourcesGTK.txt: * SourcesWPE.txt: * css/mediaControlsGtk.css: Removed. * platform/adwaita/ScrollbarThemeAdwaita.cpp: Renamed from Source/WebCore/platform/wpe/ScrollbarThemeWPE.cpp. (WebCore::ScrollbarThemeAdwaita::usesOverlayScrollbars const): (WebCore::ScrollbarThemeAdwaita::scrollbarThickness): (WebCore::ScrollbarThemeAdwaita::minimumThumbLength): (WebCore::ScrollbarThemeAdwaita::hasButtons): (WebCore::ScrollbarThemeAdwaita::hasThumb): (WebCore::ScrollbarThemeAdwaita::backButtonRect): (WebCore::ScrollbarThemeAdwaita::forwardButtonRect): (WebCore::ScrollbarThemeAdwaita::trackRect): (WebCore::ScrollbarThemeAdwaita::paint): (WebCore::ScrollbarThemeAdwaita::handleMousePressEvent): (WebCore::ScrollbarTheme::nativeTheme): * platform/adwaita/ScrollbarThemeAdwaita.h: Copied from Source/WebCore/platform/wpe/ScrollbarThemeWPE.h. * platform/adwaita/ThemeAdwaita.cpp: Renamed from Source/WebCore/platform/wpe/ThemeWPE.cpp. (WebCore::Theme::singleton): (WebCore::ThemeAdwaita::activeSelectionForegroundColor const): (WebCore::ThemeAdwaita::activeSelectionBackgroundColor const): (WebCore::ThemeAdwaita::inactiveSelectionForegroundColor const): (WebCore::ThemeAdwaita::inactiveSelectionBackgroundColor const): (WebCore::ThemeAdwaita::focusColor): (WebCore::ThemeAdwaita::paintFocus): (WebCore::ThemeAdwaita::paintArrow): (WebCore::ThemeAdwaita::controlSize const): (WebCore::ThemeAdwaita::paint): (WebCore::ThemeAdwaita::paintCheckbox): (WebCore::ThemeAdwaita::paintRadio): (WebCore::ThemeAdwaita::paintButton): (WebCore::ThemeAdwaita::paintSpinButton): * platform/adwaita/ThemeAdwaita.h: Renamed from Source/WebCore/platform/wpe/ThemeWPE.h. (WebCore::ThemeAdwaita::platformColorsDidChange): * platform/graphics/cairo/CairoOperations.cpp: (WebCore::Cairo::drawFocusRing): * platform/graphics/cairo/GraphicsContextCairo.cpp: (WebCore::GraphicsContext::drawFocusRing): * platform/gtk/RenderThemeGadget.cpp: Removed. * platform/gtk/RenderThemeGadget.h: Removed. * platform/gtk/RenderThemeWidget.cpp: Removed. * platform/gtk/RenderThemeWidget.h: Removed. * platform/gtk/ScrollbarThemeGtk.cpp: Removed. * platform/gtk/ScrollbarThemeGtk.h: Removed. * platform/gtk/ThemeGtk.cpp: Added. (WebCore::Theme::singleton): (WebCore::ThemeGtk::ensurePlatformColors const): (WebCore::ThemeGtk::platformColorsDidChange): (WebCore::ThemeGtk::activeSelectionForegroundColor const): (WebCore::ThemeGtk::activeSelectionBackgroundColor const): (WebCore::ThemeGtk::inactiveSelectionForegroundColor const): (WebCore::ThemeGtk::inactiveSelectionBackgroundColor const): * platform/gtk/ThemeGtk.h: Renamed from Source/WebCore/platform/wpe/ScrollbarThemeWPE.h. * rendering/RenderThemeAdwaita.cpp: Renamed from Source/WebCore/platform/wpe/RenderThemeWPE.cpp. (WebCore::RenderTheme::singleton): (WebCore::RenderThemeAdwaita::supportsFocusRing const): (WebCore::RenderThemeAdwaita::shouldHaveCapsLockIndicator const): (WebCore::RenderThemeAdwaita::platformActiveSelectionBackgroundColor const): (WebCore::RenderThemeAdwaita::platformInactiveSelectionBackgroundColor const): (WebCore::RenderThemeAdwaita::platformActiveSelectionForegroundColor const): (WebCore::RenderThemeAdwaita::platformInactiveSelectionForegroundColor const): (WebCore::RenderThemeAdwaita::platformActiveListBoxSelectionBackgroundColor const): (WebCore::RenderThemeAdwaita::platformInactiveListBoxSelectionBackgroundColor const): (WebCore::RenderThemeAdwaita::platformActiveListBoxSelectionForegroundColor const): (WebCore::RenderThemeAdwaita::platformInactiveListBoxSelectionForegroundColor const): (WebCore::RenderThemeAdwaita::platformFocusRingColor const): (WebCore::RenderThemeAdwaita::platformColorsDidChange): (WebCore::RenderThemeAdwaita::extraDefaultStyleSheet): (WebCore::RenderThemeAdwaita::extraMediaControlsStyleSheet): (WebCore::RenderThemeAdwaita::mediaControlsScript): (WebCore::RenderThemeAdwaita::paintTextField): (WebCore::RenderThemeAdwaita::paintTextArea): (WebCore::RenderThemeAdwaita::paintSearchField): (WebCore::RenderThemeAdwaita::popupInternalPaddingBox const): (WebCore::RenderThemeAdwaita::paintMenuList): (WebCore::RenderThemeAdwaita::paintMenuListButtonDecorations): (WebCore::RenderThemeAdwaita::animationRepeatIntervalForProgressBar const): (WebCore::RenderThemeAdwaita::animationDurationForProgressBar const): (WebCore::RenderThemeAdwaita::progressBarRectForBounds const): (WebCore::RenderThemeAdwaita::paintProgressBar): (WebCore::RenderThemeAdwaita::paintSliderTrack): (WebCore::RenderThemeAdwaita::adjustSliderThumbSize const): (WebCore::RenderThemeAdwaita::paintSliderThumb): (WebCore::RenderThemeAdwaita::paintMediaSliderTrack): (WebCore::RenderThemeAdwaita::paintMediaVolumeSliderTrack): (WebCore::RenderThemeAdwaita::sliderTickSize const): (WebCore::RenderThemeAdwaita::sliderTickOffsetFromTrackCenter const): (WebCore::RenderThemeAdwaita::adjustListButtonStyle const): * rendering/RenderThemeAdwaita.h: Renamed from Source/WebCore/platform/wpe/RenderThemeWPE.h. * rendering/RenderThemeGtk.cpp: (WebCore::RenderThemeGtk::updateCachedSystemFontDescription const): (WebCore::RenderThemeGtk::caretBlinkInterval const): * rendering/RenderThemeGtk.h: Source/WebKit: * WebProcess/WebPage/gtk/WebPageGtk.cpp: (WebKit::WebPage::themeDidChange): Notify RenderTheme about the theme change to clear the colors cache. Source/WTF: Enable USE_NEW_THEME for the GTK port. * wtf/PlatformUse.h: Canonical link: https://commits.webkit.org/221120@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@257299 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2020-02-25 09:55:52 +00:00
rendering/RenderThemeAdwaita.cpp