Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adopt dynamicDowncast<>() more in html/
https://bugs.webkit.org/show_bug.cgi?id=265122 Reviewed by Dan Glastonbury. * Source/WebCore/html/HTMLTrackElement.cpp: (WebCore::HTMLTrackElement::insertedIntoAncestor): (WebCore::HTMLTrackElement::removedFromAncestor): (WebCore::HTMLTrackElement::mediaElement const): * Source/WebCore/html/HTMLVideoElement.h: (isType): * Source/WebCore/html/ImageDocument.cpp: (WebCore::ImageEventListener::handleEvent): * Source/WebCore/html/ImageDocument.h: (isType): * Source/WebCore/html/ImageInputType.cpp: (WebCore::ImageInputType::handleDOMActivateEvent): (WebCore::ImageInputType::attributeChanged): * Source/WebCore/html/LabelsNodeList.cpp: (WebCore::LabelsNodeList::elementMatches const): * Source/WebCore/html/LazyLoadFrameObserver.cpp: * Source/WebCore/html/LazyLoadImageObserver.cpp: * Source/WebCore/html/MediaDocument.cpp: (WebCore::descendantVideoElement): (WebCore::ancestorVideoElement): (WebCore::MediaDocument::defaultEventHandler): * Source/WebCore/html/MediaDocument.h: (isType): * Source/WebCore/html/MediaElementSession.cpp: (WebCore::MediaElementSession::requiresFullscreenForVideoPlayback const): * Source/WebCore/html/ModelDocument.h: (isType): * Source/WebCore/html/OffscreenCanvas.cpp: (WebCore::OffscreenCanvas::setSize): (WebCore::OffscreenCanvas::createContextWebGL): (WebCore::OffscreenCanvas::getContext): (WebCore::OffscreenCanvas::transferToImageBitmap): (WebCore::OffscreenCanvas::securityOrigin const): (WebCore::OffscreenCanvas::reset): * Source/WebCore/html/PDFDocument.h: (isType): * Source/WebCore/html/PluginDocument.h: (isType): * Source/WebCore/html/RadioInputType.cpp: (WebCore::RadioInputType::handleKeydownEvent): (WebCore::RadioInputType::isKeyboardFocusable const): * Source/WebCore/html/RadioNodeList.cpp: (WebCore::nonEmptyRadioButton): (WebCore::RadioNodeList::elementMatches const): * Source/WebCore/html/RangeInputType.cpp: (WebCore::RangeInputType::handleMouseDownEvent): * Source/WebCore/html/SearchInputType.cpp: (WebCore::SearchInputType::addSearchResult): (WebCore::SearchInputType::didSetValueByUserEdit): * Source/WebCore/html/TextFieldInputType.cpp: (WebCore::TextFieldInputType::shouldSubmitImplicitly): * Source/WebCore/html/ValidatedFormListedElement.cpp: (WebCore::addInvalidElementToAncestorFromInsertionPoint): (WebCore::removeInvalidElementToAncestorFromInsertionPoint): (WebCore::ValidatedFormListedElement::computeIsDisabledByFieldsetAncestor const): * Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp: (WebCore::size): (WebCore::CanvasRenderingContext2DBase::drawImage): (WebCore::CanvasRenderingContext2DBase::getImageData const): * Source/WebCore/html/canvas/CanvasStyle.cpp: (WebCore::parseColor): (WebCore::currentColor): * Source/WebCore/html/canvas/GPUBasedCanvasRenderingContext.cpp: (WebCore::GPUBasedCanvasRenderingContext::htmlCanvas const): * Source/WebCore/html/canvas/GPUCanvasContextCocoa.mm: (WebCore::GPUCanvasContextCocoa::htmlOrOffscreenCanvas const): * Source/WebCore/html/canvas/ImageBitmapRenderingContext.cpp: (WebCore::ImageBitmapRenderingContext::canvas): * Source/WebCore/html/canvas/PlaceholderRenderingContext.cpp: (WebCore::PlaceholderRenderingContext::canvas const): * Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp: (WebCore::WebGLRenderingContextBase::canvas): (WebCore::WebGLRenderingContextBase::offscreenCanvas): (WebCore::WebGLRenderingContextBase::useProgram): * Source/WebCore/html/parser/HTMLConstructionSite.cpp: (WebCore::shouldUseLengthLimit): (WebCore::HTMLConstructionSite::insertHTMLTemplateElement): (WebCore::HTMLConstructionSite::ownerDocumentForCurrentNode): (WebCore::HTMLConstructionSite::createHTMLElementOrFindCustomElementInterface): * Source/WebCore/html/parser/HTMLStackItem.h: (WebCore::HTMLStackItem::HTMLStackItem): * Source/WebCore/html/parser/HTMLTreeBuilder.cpp: (WebCore::HTMLTreeBuilder::HTMLTreeBuilder): (WebCore::HTMLTreeBuilder::processTemplateEndTag): (WebCore::disallowTelephoneNumberParsing): * Source/WebCore/html/shadow/AutoFillButtonElement.cpp: (WebCore::AutoFillButtonElement::defaultEventHandler): * Source/WebCore/html/shadow/DataListButtonElement.cpp: (WebCore::DataListButtonElement::defaultEventHandler): * Source/WebCore/html/shadow/DateTimeFieldElement.cpp: (WebCore::DateTimeFieldElement::defaultEventHandler): * Source/WebCore/html/shadow/MediaControlTextTrackContainerElement.cpp: (WebCore::MediaControlTextTrackContainerElement::updateDisplay): (WebCore::MediaControlTextTrackContainerElement::updateVideoDisplaySize): * Source/WebCore/html/shadow/SliderThumbElement.cpp: (WebCore::SliderThumbElement::defaultEventHandler): * Source/WebCore/html/shadow/SliderThumbElement.h: (isType): * Source/WebCore/html/shadow/SpinButtonElement.cpp: (WebCore::SpinButtonElement::defaultEventHandler): (WebCore::SpinButtonElement::forwardEvent): * Source/WebCore/html/shadow/SpinButtonElement.h: (isType): * Source/WebCore/html/shadow/TextControlInnerElements.cpp: (WebCore::isStrongPasswordTextField): (WebCore::TextControlPlaceholderElement::resolveCustomStyle): (WebCore::SearchFieldResultsButtonElement::defaultEventHandler): (WebCore::SearchFieldCancelButtonElement::defaultEventHandler): (WebCore::SearchFieldCancelButtonElement::willRespondToMouseClickEventsWithEditability const): * Source/WebCore/html/shadow/TextControlInnerElements.h: (isType): * Source/WebCore/html/shadow/TextPlaceholderElement.cpp: (WebCore::TextPlaceholderElement::insertedIntoAncestor): (WebCore::TextPlaceholderElement::removedFromAncestor): * Source/WebCore/html/shadow/TextPlaceholderElement.h: (isType): * Source/WebCore/html/track/TextTrackCue.cpp: (WebCore::tagPseudoObjects): (WebCore::removePseudoAttributes): * Source/WebCore/html/track/TextTrackCueGeneric.cpp: (WebCore::TextTrackCueGeneric::isOrderedBefore const): (WebCore::TextTrackCueGeneric::isPositionedAbove const): * Source/WebCore/html/track/TextTrackList.cpp: (WebCore::TextTrackList::getTrackIndex): (WebCore::TextTrackList::append): * Source/WebCore/html/track/VTTCue.cpp: (WebCore::VTTCueBox::applyCSSPropertiesWithRegion): (WebCore::VTTCueBox::applyCSSProperties): (WebCore::copyWebVTTNodeToDOMTree): (WebCore::VTTCue::markFutureAndPastNodes): Canonical link: https://commits.webkit.org/270996@main
- Loading branch information