Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use PseudoElementIdentifier in ComputedStyleExtractor and CSSComputed…
…StyleDeclaration https://bugs.webkit.org/show_bug.cgi?id=268063 rdar://121580606 Reviewed by Antti Koivisto. In preparation of making animation code and `getComputedStyle()` work with pseudo-element name arguments (like `::highlight(name)` or `::view-transition-group(name)`). Some of the consumers will also need refactoring to take PseudoElementIdentifier, which will be done separately. * Source/WebCore/Headers.cmake: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/animation/KeyframeEffect.cpp: (WebCore::KeyframeEffect::getKeyframes): * Source/WebCore/css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::CSSComputedStyleDeclaration): (WebCore::CSSComputedStyleDeclaration::create): (WebCore::CSSComputedStyleDeclaration::createEmpty): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue const): (WebCore::CSSComputedStyleDeclaration::copyProperties const): (WebCore::CSSComputedStyleDeclaration::getPropertyValue const): (WebCore::CSSComputedStyleDeclaration::length const): (WebCore::CSSComputedStyleDeclaration::item const): (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): (WebCore::CSSComputedStyleDeclaration::getPropertyValue): * Source/WebCore/css/CSSComputedStyleDeclaration.h: * Source/WebCore/css/ComputedStyleExtractor.cpp: (WebCore::ComputedStyleExtractor::ComputedStyleExtractor): (WebCore::ComputedStyleExtractor::getFontSizeCSSValuePreferringKeyword const): (WebCore::ComputedStyleExtractor::useFixedFontDefaultSize const): (WebCore::ComputedStyleExtractor::styledRenderer const): (WebCore::computeRenderStyleForProperty): (WebCore::ComputedStyleExtractor::customPropertyValue const): (WebCore::ComputedStyleExtractor::propertyValue const): (WebCore::ComputedStyleExtractor::propertyMatches const): (WebCore::ComputedStyleExtractor::getLayerCount const): * Source/WebCore/css/ComputedStyleExtractor.h: * Source/WebCore/css/SelectorChecker.h: * Source/WebCore/dom/Document.cpp: (WebCore::Document::styleForElementIgnoringPendingStylesheets): * Source/WebCore/dom/Document.h: * Source/WebCore/dom/Element.cpp: (WebCore::Element::resolvePseudoElementStyle): (WebCore::Element::computedStyle): * Source/WebCore/dom/Element.h: * Source/WebCore/dom/Node.cpp: (WebCore::Node::computedStyle): * Source/WebCore/dom/Node.h: * Source/WebCore/inspector/agents/InspectorAnimationAgent.cpp: (WebCore::buildObjectForKeyframes): * Source/WebCore/inspector/agents/InspectorCSSAgent.cpp: (WebCore::InspectorCSSAgent::getComputedStyleForNode): * Source/WebCore/page/LocalDOMWindow.cpp: (WebCore::LocalDOMWindow::getComputedStyle const): (WebCore::LocalDOMWindow::getMatchedCSSRules const): Deleted. (WebCore::LocalDOMWindow::webkitConvertPointFromNodeToPage const): Deleted. (WebCore::LocalDOMWindow::webkitConvertPointFromPageToNode const): Deleted. (WebCore::LocalDOMWindow::devicePixelRatio const): Deleted. (WebCore::LocalDOMWindow::scrollBy const): Deleted. (WebCore::LocalDOMWindow::scrollTo const): Deleted. (WebCore::LocalDOMWindow::allowedToChangeWindowGeometry const): Deleted. (WebCore::LocalDOMWindow::moveBy const): Deleted. (WebCore::LocalDOMWindow::moveTo const): Deleted. (WebCore::LocalDOMWindow::resizeBy const): Deleted. (WebCore::LocalDOMWindow::resizeTo const): Deleted. (WebCore::LocalDOMWindow::setTimeout): Deleted. (WebCore::LocalDOMWindow::clearTimeout): Deleted. (WebCore::LocalDOMWindow::setInterval): Deleted. (WebCore::LocalDOMWindow::clearInterval): Deleted. (WebCore::LocalDOMWindow::requestAnimationFrame): Deleted. (WebCore::LocalDOMWindow::webkitRequestAnimationFrame): Deleted. (WebCore::LocalDOMWindow::cancelAnimationFrame): Deleted. (WebCore::LocalDOMWindow::requestIdleCallback): Deleted. (WebCore::LocalDOMWindow::cancelIdleCallback): Deleted. (WebCore::LocalDOMWindow::createImageBitmap): Deleted. (WebCore::LocalDOMWindow::isSecureContext const): Deleted. (WebCore::LocalDOMWindow::crossOriginIsolated const): Deleted. (WebCore::didAddStorageEventListener): Deleted. (WebCore::LocalDOMWindow::isSameSecurityOriginAsMainFrame const): Deleted. (WebCore::LocalDOMWindow::addEventListener): Deleted. (WebCore::LocalDOMWindow::deviceOrientationController const): Deleted. (WebCore::LocalDOMWindow::deviceMotionController const): Deleted. (WebCore::LocalDOMWindow::isAllowedToUseDeviceMotionOrOrientation const): Deleted. (WebCore::LocalDOMWindow::isAllowedToUseDeviceMotion const): Deleted. (WebCore::LocalDOMWindow::isAllowedToUseDeviceOrientation const): Deleted. (WebCore::LocalDOMWindow::hasPermissionToReceiveDeviceMotionOrOrientationEvents const): Deleted. (WebCore::LocalDOMWindow::startListeningForDeviceOrientationIfNecessary): Deleted. (WebCore::LocalDOMWindow::stopListeningForDeviceOrientationIfNecessary): Deleted. (WebCore::LocalDOMWindow::startListeningForDeviceMotionIfNecessary): Deleted. (WebCore::LocalDOMWindow::stopListeningForDeviceMotionIfNecessary): Deleted. (WebCore::LocalDOMWindow::failedToRegisterDeviceMotionEventListener): Deleted. (WebCore::LocalDOMWindow::incrementScrollEventListenersCount): Deleted. (WebCore::LocalDOMWindow::decrementScrollEventListenersCount): Deleted. (WebCore::LocalDOMWindow::resetAllGeolocationPermission): Deleted. (WebCore::LocalDOMWindow::removeEventListener): Deleted. (WebCore::LocalDOMWindow::languagesChanged): Deleted. (WebCore::LocalDOMWindow::dispatchLoadEvent): Deleted. (WebCore::LocalDOMWindow::dispatchEvent): Deleted. (WebCore::LocalDOMWindow::removeAllEventListeners): Deleted. (WebCore::LocalDOMWindow::captureEvents): Deleted. (WebCore::LocalDOMWindow::releaseEvents): Deleted. (WebCore::LocalDOMWindow::finishedLoading): Deleted. (WebCore::LocalDOMWindow::setLocation): Deleted. (WebCore::LocalDOMWindow::printErrorMessage const): Deleted. (WebCore::LocalDOMWindow::crossDomainAccessErrorMessage): Deleted. (WebCore::LocalDOMWindow::isInsecureScriptAccess): Deleted. (WebCore::LocalDOMWindow::createWindow): Deleted. (WebCore::LocalDOMWindow::open): Deleted. (WebCore::LocalDOMWindow::showModalDialog): Deleted. (WebCore::LocalDOMWindow::enableSuddenTermination): Deleted. (WebCore::LocalDOMWindow::disableSuddenTermination): Deleted. (WebCore::LocalDOMWindow::frame const): Deleted. (WebCore::LocalDOMWindow::protectedFrame const): Deleted. (WebCore::LocalDOMWindow::eventListenersDidChange): Deleted. (WebCore::LocalDOMWindow::cookieStore): Deleted. * Source/WebCore/style/ElementRuleCollector.cpp: (WebCore::Style::ElementRuleCollector::ruleMatches): * Source/WebCore/style/PseudoElementIdentifier.h: * Source/WebCore/style/PseudoElementRequest.h: (WebCore::Style::PseudoElementRequest::PseudoElementRequest): (WebCore::Style::PseudoElementRequest::nameArgument const): (WebCore::Style::PseudoElementRequest::pseudoElementNameArgument const): Deleted. * Source/WebCore/style/StyleResolver.cpp: (WebCore::Style::Resolver::styleForPseudoElement): * Source/WebCore/svg/SVGElement.cpp: (WebCore::SVGElement::computedStyle): * Source/WebCore/svg/SVGElement.h: * Source/WebCore/testing/Internals.cpp: (WebCore::Internals::computedStyleIncludingVisitedInfo const): Canonical link: https://commits.webkit.org/273934@main
- Loading branch information