[webkit-changes] [WebKit/WebKit] a63f31: Adopt dynamicDowncast<>() more in html/

Chris Dumez noreply at github.com
Mon Nov 20 18:11:11 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: a63f311f92d49dd5b950d3680da12d25bb9f7375
      https://github.com/WebKit/WebKit/commit/a63f311f92d49dd5b950d3680da12d25bb9f7375
  Author: Chris Dumez <cdumez at apple.com>
  Date:   2023-11-20 (Mon, 20 Nov 2023)

  Changed paths:
    M Source/WebCore/html/HTMLTrackElement.cpp
    M Source/WebCore/html/HTMLVideoElement.h
    M Source/WebCore/html/ImageDocument.cpp
    M Source/WebCore/html/ImageDocument.h
    M Source/WebCore/html/ImageInputType.cpp
    M Source/WebCore/html/LabelsNodeList.cpp
    M Source/WebCore/html/LazyLoadFrameObserver.cpp
    M Source/WebCore/html/LazyLoadImageObserver.cpp
    M Source/WebCore/html/MediaDocument.cpp
    M Source/WebCore/html/MediaDocument.h
    M Source/WebCore/html/MediaElementSession.cpp
    M Source/WebCore/html/ModelDocument.h
    M Source/WebCore/html/OffscreenCanvas.cpp
    M Source/WebCore/html/PDFDocument.h
    M Source/WebCore/html/PluginDocument.h
    M Source/WebCore/html/RadioInputType.cpp
    M Source/WebCore/html/RadioNodeList.cpp
    M Source/WebCore/html/RangeInputType.cpp
    M Source/WebCore/html/SearchInputType.cpp
    M Source/WebCore/html/TextFieldInputType.cpp
    M Source/WebCore/html/ValidatedFormListedElement.cpp
    M Source/WebCore/html/canvas/CanvasRenderingContext2DBase.cpp
    M Source/WebCore/html/canvas/CanvasStyle.cpp
    M Source/WebCore/html/canvas/GPUBasedCanvasRenderingContext.cpp
    M Source/WebCore/html/canvas/GPUCanvasContextCocoa.mm
    M Source/WebCore/html/canvas/ImageBitmapRenderingContext.cpp
    M Source/WebCore/html/canvas/PlaceholderRenderingContext.cpp
    M Source/WebCore/html/canvas/WebGLRenderingContextBase.cpp
    M Source/WebCore/html/parser/HTMLConstructionSite.cpp
    M Source/WebCore/html/parser/HTMLStackItem.h
    M Source/WebCore/html/parser/HTMLTreeBuilder.cpp
    M Source/WebCore/html/shadow/AutoFillButtonElement.cpp
    M Source/WebCore/html/shadow/DataListButtonElement.cpp
    M Source/WebCore/html/shadow/DateTimeFieldElement.cpp
    M Source/WebCore/html/shadow/MediaControlTextTrackContainerElement.cpp
    M Source/WebCore/html/shadow/SliderThumbElement.cpp
    M Source/WebCore/html/shadow/SliderThumbElement.h
    M Source/WebCore/html/shadow/SpinButtonElement.cpp
    M Source/WebCore/html/shadow/SpinButtonElement.h
    M Source/WebCore/html/shadow/TextControlInnerElements.cpp
    M Source/WebCore/html/shadow/TextControlInnerElements.h
    M Source/WebCore/html/shadow/TextPlaceholderElement.cpp
    M Source/WebCore/html/shadow/TextPlaceholderElement.h
    M Source/WebCore/html/track/TextTrackCue.cpp
    M Source/WebCore/html/track/TextTrackCueGeneric.cpp
    M Source/WebCore/html/track/TextTrackList.cpp
    M Source/WebCore/html/track/VTTCue.cpp

  Log Message:
  -----------
  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




More information about the webkit-changes mailing list