Changeset 224320 in webkit


Ignore:
Timestamp:
Nov 1, 2017 10:43:02 PM (6 years ago)
Author:
jiewen_tan@apple.com
Message:

Let is<T>() accept RefPtrs
https://bugs.webkit.org/show_bug.cgi?id=178612
<rdar://problem/35102004>

Reviewed by Ryosuke Niwa.

Source/WebCore:

Get rid of .get() for all is<T>() calls.

No changes in behaviors.

  • bindings/js/JSElementCustom.cpp:

(WebCore::createNewElementWrapper):

  • bindings/js/JSMediaStreamTrackCustom.cpp:

(WebCore::toJSNewlyCreated):

  • bindings/js/JSNodeCustom.cpp:

(WebCore::createWrapperInline):

  • bindings/js/JSTextCustom.cpp:

(WebCore::toJSNewlyCreated):

  • css/CSSFilterImageValue.cpp:

(WebCore::CSSFilterImageValue::loadSubimages):

  • css/CSSFontFaceSet.cpp:

(WebCore::CSSFontFaceSet::matchingFaces):

  • css/CSSFontSelector.cpp:

(WebCore::CSSFontSelector::addFontFaceRule):

  • css/CSSToStyleMap.cpp:

(WebCore::CSSToStyleMap::mapNinePieceImage):

  • css/FontFace.cpp:

(WebCore::FontFace::create):

  • css/StyleBuilderConverter.h:

(WebCore::StyleBuilderConverter::createGridTrackList):

  • css/StyleBuilderCustom.h:

(WebCore::StyleBuilderCustom::applyValueCursor):
(WebCore::StyleBuilderCustom::applyValueContent):
(WebCore::StyleBuilderCustom::applyValueWillChange):

  • css/StyleProperties.cpp:

(WebCore::StyleProperties::propertyAsColor const):
(WebCore::StyleProperties::propertyAsValueID const):

  • css/StyleResolver.cpp:

(WebCore::StyleResolver::createFilterOperations):

  • css/TransformFunctions.cpp:

(WebCore::transformsForValue):

  • css/ViewportStyleResolver.cpp:

(WebCore::ViewportStyleResolver::getViewportArgumentValue const):

  • dom/Document.cpp:

(WebCore::Document::setBodyOrFrameset):
(WebCore::Document::setFocusedElement):
(WebCore::Document::updateHoverActiveState):

  • dom/Element.cpp:

(WebCore::Element::setOuterHTML):

  • dom/Range.cpp:

(WebCore::Range::insertNode):

  • editing/ApplyStyleCommand.cpp:

(WebCore::toIdentifier):
(WebCore::ApplyStyleCommand::applyBlockStyle):
(WebCore::ApplyStyleCommand::surroundNodeRangeWithElement):

  • editing/EditingStyle.cpp:

(WebCore::identifierForStyleProperty):
(WebCore::HTMLElementEquivalent::valueIsPresentInStyle const):
(WebCore::EditingStyle::extractFontSizeDelta):
(WebCore::EditingStyle::textDirection const):
(WebCore::textDecorationValueList):
(WebCore::EditingStyle::prepareToApplyAt):
(WebCore::EditingStyle::legacyFontSize const):
(WebCore::EditingStyle::textDirectionForSelection):
(WebCore::StyleChange::StyleChange):
(WebCore::StyleChange::extractTextStyles):
(WebCore::diffTextDecorations):

  • html/BaseChooserOnlyDateAndTimeInputType.cpp:

(WebCore::BaseChooserOnlyDateAndTimeInputType::updateAppearance):

  • html/FormAssociatedElement.cpp:

(WebCore::FormAssociatedElement::findAssociatedForm):

  • html/HTMLAreaElement.cpp:

(WebCore::HTMLAreaElement::imageElement const):

  • html/HTMLElement.cpp:

(WebCore::HTMLElement::setOuterText):
(WebCore::HTMLElement::dirAttributeChanged):

  • html/HTMLEmbedElement.cpp:

(WebCore::HTMLEmbedElement::rendererIsNeeded):

  • html/HTMLFormControlElement.cpp:

(WebCore::HTMLFormControlElement::computeIsDisabledByFieldsetAncestor const):

  • html/HTMLInputElement.cpp:

(WebCore::HTMLInputElement::dataList const):

  • html/HTMLOptionElement.cpp:

(WebCore::HTMLOptionElement::setText):
(WebCore::HTMLOptionElement::textIndentedToRespectGroupLabel const):

  • html/HTMLPlugInElement.cpp:

(WebCore::HTMLPlugInElement::isKeyboardFocusable const):
(WebCore::HTMLPlugInElement::isUserObservable const):

  • html/HTMLSelectElement.cpp:

(WebCore::HTMLSelectElement::selectOption):

  • html/HTMLSummaryElement.cpp:

(WebCore::isClickableControl):

  • html/HTMLTextFormControlElement.cpp:

(WebCore::HTMLTextFormControlElement::adjustInnerTextStyle const):

  • html/RadioInputType.cpp:

(WebCore::RadioInputType::isKeyboardFocusable const):

  • html/parser/HTMLConstructionSite.cpp:

(WebCore::HTMLConstructionSite::attachLater):
(WebCore::HTMLConstructionSite::insertTextNode):

  • html/shadow/MediaControlElements.cpp:

(WebCore::MediaControlClosedCaptionsTrackListElement::defaultEventHandler):

  • html/track/TextTrackList.cpp:

(TextTrackList::append):

  • inspector/InspectorDOMAgent.cpp:

(WebCore::InspectorDOMAgent::setNodeName):

  • inspector/PageScriptDebugServer.cpp:

(WebCore::PageScriptDebugServer::setJavaScriptPaused):

  • page/FocusController.cpp:

(WebCore::shouldClearSelectionWhenChangingFocusedElement):

  • page/FrameView.cpp:

(WebCore::FrameView::hasCustomScrollbars const):

  • page/Page.cpp:

(WebCore::Page::pluginViews):

  • page/mac/EventHandlerMac.mm:

(WebCore::EventHandler::platformPrepareForWheelEvents):

  • rendering/RenderBoxModelObject.cpp:

(WebCore::RenderBoxModelObject::paintFillLayerExtended):

  • testing/Internals.cpp:

(WebCore::deferredStyleRulesCountForList):
(WebCore::deferredGroupRulesCountForList):
(WebCore::deferredKeyframesRulesCountForList):

Source/WTF:

Add support for is<T>() for RefPtrs.

  • wtf/RefPtr.h:

(WTF::is):

Location:
trunk/Source
Files:
47 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r224312 r224320  
     12017-11-01  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Let is<T>() accept RefPtrs
     4        https://bugs.webkit.org/show_bug.cgi?id=178612
     5        <rdar://problem/35102004>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Add support for is<T>() for RefPtrs.
     10
     11        * wtf/RefPtr.h:
     12        (WTF::is):
     13
    1142017-11-01  Simon Fraser  <simon.fraser@apple.com>
    215
  • trunk/Source/WTF/wtf/RefPtr.h

    r222827 r224320  
    239239}
    240240
     241template<typename ExpectedType, typename ArgType> inline bool is(RefPtr<ArgType>& source)
     242{
     243    return is<ExpectedType>(source.get());
     244}
     245
     246template<typename ExpectedType, typename ArgType> inline bool is(const RefPtr<ArgType>& source)
     247{
     248    return is<ExpectedType>(source.get());
     249}
     250
    241251} // namespace WTF
    242252
  • trunk/Source/WebCore/ChangeLog

    r224319 r224320  
     12017-11-01  Jiewen Tan  <jiewen_tan@apple.com>
     2
     3        Let is<T>() accept RefPtrs
     4        https://bugs.webkit.org/show_bug.cgi?id=178612
     5        <rdar://problem/35102004>
     6
     7        Reviewed by Ryosuke Niwa.
     8
     9        Get rid of .get() for all is<T>() calls.
     10
     11        No changes in behaviors.
     12
     13        * bindings/js/JSElementCustom.cpp:
     14        (WebCore::createNewElementWrapper):
     15        * bindings/js/JSMediaStreamTrackCustom.cpp:
     16        (WebCore::toJSNewlyCreated):
     17        * bindings/js/JSNodeCustom.cpp:
     18        (WebCore::createWrapperInline):
     19        * bindings/js/JSTextCustom.cpp:
     20        (WebCore::toJSNewlyCreated):
     21        * css/CSSFilterImageValue.cpp:
     22        (WebCore::CSSFilterImageValue::loadSubimages):
     23        * css/CSSFontFaceSet.cpp:
     24        (WebCore::CSSFontFaceSet::matchingFaces):
     25        * css/CSSFontSelector.cpp:
     26        (WebCore::CSSFontSelector::addFontFaceRule):
     27        * css/CSSToStyleMap.cpp:
     28        (WebCore::CSSToStyleMap::mapNinePieceImage):
     29        * css/FontFace.cpp:
     30        (WebCore::FontFace::create):
     31        * css/StyleBuilderConverter.h:
     32        (WebCore::StyleBuilderConverter::createGridTrackList):
     33        * css/StyleBuilderCustom.h:
     34        (WebCore::StyleBuilderCustom::applyValueCursor):
     35        (WebCore::StyleBuilderCustom::applyValueContent):
     36        (WebCore::StyleBuilderCustom::applyValueWillChange):
     37        * css/StyleProperties.cpp:
     38        (WebCore::StyleProperties::propertyAsColor const):
     39        (WebCore::StyleProperties::propertyAsValueID const):
     40        * css/StyleResolver.cpp:
     41        (WebCore::StyleResolver::createFilterOperations):
     42        * css/TransformFunctions.cpp:
     43        (WebCore::transformsForValue):
     44        * css/ViewportStyleResolver.cpp:
     45        (WebCore::ViewportStyleResolver::getViewportArgumentValue const):
     46        * dom/Document.cpp:
     47        (WebCore::Document::setBodyOrFrameset):
     48        (WebCore::Document::setFocusedElement):
     49        (WebCore::Document::updateHoverActiveState):
     50        * dom/Element.cpp:
     51        (WebCore::Element::setOuterHTML):
     52        * dom/Range.cpp:
     53        (WebCore::Range::insertNode):
     54        * editing/ApplyStyleCommand.cpp:
     55        (WebCore::toIdentifier):
     56        (WebCore::ApplyStyleCommand::applyBlockStyle):
     57        (WebCore::ApplyStyleCommand::surroundNodeRangeWithElement):
     58        * editing/EditingStyle.cpp:
     59        (WebCore::identifierForStyleProperty):
     60        (WebCore::HTMLElementEquivalent::valueIsPresentInStyle const):
     61        (WebCore::EditingStyle::extractFontSizeDelta):
     62        (WebCore::EditingStyle::textDirection const):
     63        (WebCore::textDecorationValueList):
     64        (WebCore::EditingStyle::prepareToApplyAt):
     65        (WebCore::EditingStyle::legacyFontSize const):
     66        (WebCore::EditingStyle::textDirectionForSelection):
     67        (WebCore::StyleChange::StyleChange):
     68        (WebCore::StyleChange::extractTextStyles):
     69        (WebCore::diffTextDecorations):
     70        * html/BaseChooserOnlyDateAndTimeInputType.cpp:
     71        (WebCore::BaseChooserOnlyDateAndTimeInputType::updateAppearance):
     72        * html/FormAssociatedElement.cpp:
     73        (WebCore::FormAssociatedElement::findAssociatedForm):
     74        * html/HTMLAreaElement.cpp:
     75        (WebCore::HTMLAreaElement::imageElement const):
     76        * html/HTMLElement.cpp:
     77        (WebCore::HTMLElement::setOuterText):
     78        (WebCore::HTMLElement::dirAttributeChanged):
     79        * html/HTMLEmbedElement.cpp:
     80        (WebCore::HTMLEmbedElement::rendererIsNeeded):
     81        * html/HTMLFormControlElement.cpp:
     82        (WebCore::HTMLFormControlElement::computeIsDisabledByFieldsetAncestor const):
     83        * html/HTMLInputElement.cpp:
     84        (WebCore::HTMLInputElement::dataList const):
     85        * html/HTMLOptionElement.cpp:
     86        (WebCore::HTMLOptionElement::setText):
     87        (WebCore::HTMLOptionElement::textIndentedToRespectGroupLabel const):
     88        * html/HTMLPlugInElement.cpp:
     89        (WebCore::HTMLPlugInElement::isKeyboardFocusable const):
     90        (WebCore::HTMLPlugInElement::isUserObservable const):
     91        * html/HTMLSelectElement.cpp:
     92        (WebCore::HTMLSelectElement::selectOption):
     93        * html/HTMLSummaryElement.cpp:
     94        (WebCore::isClickableControl):
     95        * html/HTMLTextFormControlElement.cpp:
     96        (WebCore::HTMLTextFormControlElement::adjustInnerTextStyle const):
     97        * html/RadioInputType.cpp:
     98        (WebCore::RadioInputType::isKeyboardFocusable const):
     99        * html/parser/HTMLConstructionSite.cpp:
     100        (WebCore::HTMLConstructionSite::attachLater):
     101        (WebCore::HTMLConstructionSite::insertTextNode):
     102        * html/shadow/MediaControlElements.cpp:
     103        (WebCore::MediaControlClosedCaptionsTrackListElement::defaultEventHandler):
     104        * html/track/TextTrackList.cpp:
     105        (TextTrackList::append):
     106        * inspector/InspectorDOMAgent.cpp:
     107        (WebCore::InspectorDOMAgent::setNodeName):
     108        * inspector/PageScriptDebugServer.cpp:
     109        (WebCore::PageScriptDebugServer::setJavaScriptPaused):
     110        * page/FocusController.cpp:
     111        (WebCore::shouldClearSelectionWhenChangingFocusedElement):
     112        * page/FrameView.cpp:
     113        (WebCore::FrameView::hasCustomScrollbars const):
     114        * page/Page.cpp:
     115        (WebCore::Page::pluginViews):
     116        * page/mac/EventHandlerMac.mm:
     117        (WebCore::EventHandler::platformPrepareForWheelEvents):
     118        * rendering/RenderBoxModelObject.cpp:
     119        (WebCore::RenderBoxModelObject::paintFillLayerExtended):
     120        * testing/Internals.cpp:
     121        (WebCore::deferredStyleRulesCountForList):
     122        (WebCore::deferredGroupRulesCountForList):
     123        (WebCore::deferredKeyframesRulesCountForList):
     124
    11252017-11-01  Fujii Hironori  <Hironori.Fujii@sony.com>
    2126
  • trunk/Source/WebCore/bindings/js/JSElementCustom.cpp

    r223476 r224320  
    5050static JSValue createNewElementWrapper(JSDOMGlobalObject* globalObject, Ref<Element>&& element)
    5151{
    52     if (is<HTMLElement>(element.get()))
     52    if (is<HTMLElement>(element))
    5353        return createJSHTMLWrapper(globalObject, static_reference_cast<HTMLElement>(WTFMove(element)));
    54     if (is<SVGElement>(element.get()))
     54    if (is<SVGElement>(element))
    5555        return createJSSVGWrapper(globalObject, static_reference_cast<SVGElement>(WTFMove(element)));
    5656    return createWrapper<Element>(globalObject, WTFMove(element));
  • trunk/Source/WebCore/bindings/js/JSMediaStreamTrackCustom.cpp

    r213598 r224320  
    3636JSC::JSValue toJSNewlyCreated(JSC::ExecState*, JSDOMGlobalObject* globalObject, Ref<MediaStreamTrack>&& object)
    3737{
    38     if (is<CanvasCaptureMediaStreamTrack>(object.get()))
     38    if (is<CanvasCaptureMediaStreamTrack>(object))
    3939        return createWrapper<CanvasCaptureMediaStreamTrack>(globalObject, WTFMove(object));
    4040    return createWrapper<MediaStreamTrack>(globalObject, WTFMove(object));
  • trunk/Source/WebCore/bindings/js/JSNodeCustom.cpp

    r223476 r224320  
    129129    switch (node->nodeType()) {
    130130        case Node::ELEMENT_NODE:
    131             if (is<HTMLElement>(node.get()))
     131            if (is<HTMLElement>(node))
    132132                wrapper = createJSHTMLWrapper(globalObject, static_reference_cast<HTMLElement>(WTFMove(node)));
    133             else if (is<SVGElement>(node.get()))
     133            else if (is<SVGElement>(node))
    134134                wrapper = createJSSVGWrapper(globalObject, static_reference_cast<SVGElement>(WTFMove(node)));
    135135            else
  • trunk/Source/WebCore/bindings/js/JSTextCustom.cpp

    r205422 r224320  
    3535JSValue toJSNewlyCreated(ExecState*, JSDOMGlobalObject* globalObject, Ref<Text>&& text)
    3636{
    37     if (is<CDATASection>(text.get()))
     37    if (is<CDATASection>(text))
    3838        return createWrapper<CDATASection>(globalObject, WTFMove(text));
    3939    return createWrapper<Text>(globalObject, WTFMove(text));
  • trunk/Source/WebCore/css/CSSFilterImageValue.cpp

    r220073 r224320  
    9696
    9797    for (auto& filterOperation : m_filterOperations.operations()) {
    98         if (!is<ReferenceFilterOperation>(filterOperation.get()))
     98        if (!is<ReferenceFilterOperation>(filterOperation))
    9999            continue;
    100100        auto& referenceFilterOperation = downcast<ReferenceFilterOperation>(*filterOperation);
  • trunk/Source/WebCore/css/CSSFontFaceSet.cpp

    r223600 r224320  
    339339
    340340    auto family = style->getPropertyCSSValue(CSSPropertyFontFamily);
    341     if (!is<CSSValueList>(family.get()))
     341    if (!is<CSSValueList>(family))
    342342        return Exception { SyntaxError };
    343343    CSSValueList& familyList = downcast<CSSValueList>(*family);
  • trunk/Source/WebCore/css/CSSFontSelector.cpp

    r223238 r224320  
    159159    RefPtr<CSSValue> variantEastAsian = style.getPropertyCSSValue(CSSPropertyFontVariantEastAsian);
    160160    RefPtr<CSSValue> loadingBehavior = style.getPropertyCSSValue(CSSPropertyFontDisplay);
    161     if (!is<CSSValueList>(fontFamily.get()) || !is<CSSValueList>(src.get()) || (unicodeRange && !is<CSSValueList>(*unicodeRange)))
     161    if (!is<CSSValueList>(fontFamily) || !is<CSSValueList>(src) || (unicodeRange && !is<CSSValueList>(*unicodeRange)))
    162162        return;
    163163
  • trunk/Source/WebCore/css/CSSToStyleMap.cpp

    r218890 r224320  
    550550
    551551    for (auto& current : borderImage) {
    552         if (is<CSSImageValue>(current.get()) || is<CSSImageGeneratorValue>(current.get()) || is<CSSImageSetValue>(current.get()))
     552        if (is<CSSImageValue>(current) || is<CSSImageGeneratorValue>(current) || is<CSSImageSetValue>(current))
    553553            image.setImage(styleImage(current.get()));
    554         else if (is<CSSBorderImageSliceValue>(current.get()))
     554        else if (is<CSSBorderImageSliceValue>(current))
    555555            mapNinePieceImageSlice(current, image);
    556         else if (is<CSSValueList>(current.get())) {
     556        else if (is<CSSValueList>(current)) {
    557557            CSSValueList& slashList = downcast<CSSValueList>(current.get());
    558558            // Map in the image slices.
     
    567567            if (slashList.item(2))
    568568                image.setOutset(mapNinePieceImageQuad(*slashList.item(2)));
    569         } else if (is<CSSPrimitiveValue>(current.get())) {
     569        } else if (is<CSSPrimitiveValue>(current)) {
    570570            // Set the appropriate rules for stretch/round/repeat of the slices.
    571571            mapNinePieceImageRepeat(current, image);
  • trunk/Source/WebCore/css/FontFace.cpp

    r222949 r224320  
    6767        [&] (String& string) -> ExceptionOr<void> {
    6868            auto value = FontFace::parseString(string, CSSPropertySrc);
    69             if (!is<CSSValueList>(value.get()))
     69            if (!is<CSSValueList>(value))
    7070                return Exception { SyntaxError };
    7171            CSSFontFace::appendSources(result->backing(), downcast<CSSValueList>(*value), &document, false);
  • trunk/Source/WebCore/css/StyleBuilderConverter.h

    r222259 r224320  
    910910    unsigned currentNamedGridLine = 0;
    911911    for (auto& currentValue : downcast<CSSValueList>(value)) {
    912         if (is<CSSGridLineNamesValue>(currentValue.get())) {
     912        if (is<CSSGridLineNamesValue>(currentValue)) {
    913913            createGridLineNamesList(currentValue.get(), currentNamedGridLine, tracksData.m_namedGridLines, tracksData.m_orderedNamedGridLines);
    914914            continue;
     
    922922            tracksData.m_autoRepeatType = autoRepeatID == CSSValueAutoFill ? AutoFill : AutoFit;
    923923            for (auto& autoRepeatValue : downcast<CSSValueList>(currentValue.get())) {
    924                 if (is<CSSGridLineNamesValue>(autoRepeatValue.get())) {
     924                if (is<CSSGridLineNamesValue>(autoRepeatValue)) {
    925925                    createGridLineNamesList(autoRepeatValue.get(), autoRepeatIndex, tracksData.m_autoRepeatNamedGridLines, tracksData.m_autoRepeatOrderedNamedGridLines);
    926926                    continue;
  • trunk/Source/WebCore/css/StyleBuilderCustom.h

    r222588 r224320  
    12301230    auto& list = downcast<CSSValueList>(value);
    12311231    for (auto& item : list) {
    1232         if (is<CSSCursorImageValue>(item.get())) {
     1232        if (is<CSSCursorImageValue>(item)) {
    12331233            auto& image = downcast<CSSCursorImageValue>(item.get());
    12341234            styleResolver.style()->addCursor(styleResolver.styleImage(image), image.hotSpot());
     
    14111411    bool didSet = false;
    14121412    for (auto& item : downcast<CSSValueList>(value)) {
    1413         if (is<CSSImageGeneratorValue>(item.get())) {
    1414             if (is<CSSGradientValue>(item.get()))
     1413        if (is<CSSImageGeneratorValue>(item)) {
     1414            if (is<CSSGradientValue>(item))
    14151415                styleResolver.style()->setContent(StyleGeneratedImage::create(downcast<CSSGradientValue>(item.get()).gradientWithStylesResolved(styleResolver)), didSet);
    14161416            else
    14171417                styleResolver.style()->setContent(StyleGeneratedImage::create(downcast<CSSImageGeneratorValue>(item.get())), didSet);
    14181418            didSet = true;
    1419         } else if (is<CSSImageSetValue>(item.get())) {
     1419        } else if (is<CSSImageSetValue>(item)) {
    14201420            styleResolver.style()->setContent(StyleCachedImage::create(item), didSet);
    14211421            didSet = true;
    14221422        }
    14231423
    1424         if (is<CSSImageValue>(item.get())) {
     1424        if (is<CSSImageValue>(item)) {
    14251425            styleResolver.style()->setContent(StyleCachedImage::create(item), didSet);
    14261426            didSet = true;
     
    14281428        }
    14291429
    1430         if (!is<CSSPrimitiveValue>(item.get()))
     1430        if (!is<CSSPrimitiveValue>(item))
    14311431            continue;
    14321432
     
    18601860    auto willChange = WillChangeData::create();
    18611861    for (auto& item : downcast<CSSValueList>(value)) {
    1862         if (!is<CSSPrimitiveValue>(item.get()))
     1862        if (!is<CSSPrimitiveValue>(item))
    18631863            continue;
    18641864        auto& primitiveValue = downcast<CSSPrimitiveValue>(item.get());
  • trunk/Source/WebCore/css/StyleProperties.cpp

    r223728 r224320  
    242242{
    243243    auto colorValue = getPropertyCSSValue(property);
    244     if (!is<CSSPrimitiveValue>(colorValue.get()))
     244    if (!is<CSSPrimitiveValue>(colorValue))
    245245        return std::nullopt;
    246246
     
    252252{
    253253    auto cssValue = getPropertyCSSValue(property);
    254     return is<CSSPrimitiveValue>(cssValue.get()) ? downcast<CSSPrimitiveValue>(*cssValue).valueID() : CSSValueInvalid;
     254    return is<CSSPrimitiveValue>(cssValue) ? downcast<CSSPrimitiveValue>(*cssValue).valueID() : CSSValueInvalid;
    255255}
    256256
  • trunk/Source/WebCore/css/StyleResolver.cpp

    r224213 r224320  
    19181918    for (auto& currentValue : downcast<CSSValueList>(inValue)) {
    19191919
    1920         if (is<CSSPrimitiveValue>(currentValue.get())) {
     1920        if (is<CSSPrimitiveValue>(currentValue)) {
    19211921            auto& primitiveValue = downcast<CSSPrimitiveValue>(currentValue.get());
    19221922            if (!primitiveValue.isURI())
     
    19311931        }
    19321932
    1933         if (!is<CSSFunctionValue>(currentValue.get()))
     1933        if (!is<CSSFunctionValue>(currentValue))
    19341934            continue;
    19351935
  • trunk/Source/WebCore/css/TransformFunctions.cpp

    r218890 r224320  
    111111    TransformOperations operations;
    112112    for (auto& currentValue : downcast<CSSValueList>(value)) {
    113         if (!is<CSSFunctionValue>(currentValue.get()))
     113        if (!is<CSSFunctionValue>(currentValue))
    114114            continue;
    115115
  • trunk/Source/WebCore/css/ViewportStyleResolver.cpp

    r223728 r224320  
    105105
    106106    RefPtr<CSSValue> value = m_propertySet->getPropertyCSSValue(id);
    107     if (!is<CSSPrimitiveValue>(value.get()))
     107    if (!is<CSSPrimitiveValue>(value))
    108108        return defaultValue;
    109109
  • trunk/Source/WebCore/dom/Document.cpp

    r224213 r224320  
    26462646ExceptionOr<void> Document::setBodyOrFrameset(RefPtr<HTMLElement>&& newBody)
    26472647{
    2648     if (!is<HTMLBodyElement>(newBody.get()) && !is<HTMLFrameSetElement>(newBody.get()))
     2648    if (!is<HTMLBodyElement>(newBody) && !is<HTMLFrameSetElement>(newBody))
    26492649        return Exception { HierarchyRequestError };
    26502650
     
    38453845        }
    38463846
    3847         if (is<HTMLInputElement>(oldFocusedElement.get())) {
     3847        if (is<HTMLInputElement>(oldFocusedElement)) {
    38483848            // HTMLInputElement::didBlur just scrolls text fields back to the beginning.
    38493849            // FIXME: This could be done asynchronusly.
     
    68486848        }
    68496849        // Unset hovered nodes in sub frame documents if the old hovered node was a frame owner.
    6850         if (is<HTMLFrameOwnerElement>(oldHoveredElement.get())) {
     6850        if (is<HTMLFrameOwnerElement>(oldHoveredElement)) {
    68516851            if (Document* contentDocument = downcast<HTMLFrameOwnerElement>(*oldHoveredElement).contentDocument())
    68526852                contentDocument->updateHoverActiveState(request, nullptr);
  • trunk/Source/WebCore/dom/Element.cpp

    r224316 r224320  
    25702570
    25712571    RefPtr<Node> node = next ? next->previousSibling() : nullptr;
    2572     if (is<Text>(node.get())) {
     2572    if (is<Text>(node)) {
    25732573        auto result = mergeWithNextTextNode(downcast<Text>(*node));
    25742574        if (result.hasException())
    25752575            return result.releaseException();
    25762576    }
    2577     if (is<Text>(prev.get())) {
     2577    if (is<Text>(prev)) {
    25782578        auto result = mergeWithNextTextNode(downcast<Text>(*prev));
    25792579        if (result.hasException())
  • trunk/Source/WebCore/dom/Range.cpp

    r220503 r224320  
    919919
    920920    unsigned newOffset = referenceNode ? referenceNode->computeNodeIndex() : parent->countChildNodes();
    921     if (is<DocumentFragment>(node.get()))
     921    if (is<DocumentFragment>(node))
    922922        newOffset += downcast<DocumentFragment>(node.get()).countChildNodes();
    923923    else
  • trunk/Source/WebCore/editing/ApplyStyleCommand.cpp

    r223788 r224320  
    6060static int toIdentifier(RefPtr<CSSValue>&& value)
    6161{
    62     return is<CSSPrimitiveValue>(value.get()) ? downcast<CSSPrimitiveValue>(*value).valueID() : 0;
     62    return is<CSSPrimitiveValue>(value) ? downcast<CSSPrimitiveValue>(*value).valueID() : 0;
    6363}
    6464
     
    271271            }
    272272            ASSERT(!block || is<HTMLElement>(*block));
    273             if (is<HTMLElement>(block.get())) {
     273            if (is<HTMLElement>(block)) {
    274274                removeCSSStyle(style, downcast<HTMLElement>(*block));
    275275                if (!m_removeOnly)
     
    13571357        mergeIdenticalElements(element, downcast<Element>(*nextSibling));
    13581358
    1359     if (is<Element>(previousSibling.get()) && previousSibling->hasEditableStyle()) {
     1359    if (is<Element>(previousSibling) && previousSibling->hasEditableStyle()) {
    13601360        auto* mergedElement = previousSibling->nextSibling();
    13611361        ASSERT(mergedElement);
  • trunk/Source/WebCore/editing/EditingStyle.cpp

    r223728 r224320  
    144144{
    145145    RefPtr<CSSValue> value = extractPropertyValue(style, propertyID);
    146     if (propertyID == CSSPropertyFontStyle && is<CSSFontStyleValue>(value.get()) && downcast<CSSFontStyleValue>(value.get())->isItalicOrOblique())
     146    if (propertyID == CSSPropertyFontStyle && is<CSSFontStyleValue>(value) && downcast<CSSFontStyleValue>(value.get())->isItalicOrOblique())
    147147        return CSSValueItalic;
    148     if (!is<CSSPrimitiveValue>(value.get()))
     148    if (!is<CSSPrimitiveValue>(value))
    149149        return 0;
    150150    return downcast<CSSPrimitiveValue>(*value).valueID();
     
    199199{
    200200    RefPtr<CSSValue> value = style.m_mutableStyle->getPropertyCSSValue(m_propertyID);
    201     return matches(element) && is<CSSPrimitiveValue>(value.get()) && downcast<CSSPrimitiveValue>(*value).valueID() == m_primitiveValue->valueID();
     201    return matches(element) && is<CSSPrimitiveValue>(value) && downcast<CSSPrimitiveValue>(*value).valueID() == m_primitiveValue->valueID();
    202202}
    203203
     
    238238        if (!styleValue)
    239239            styleValue = style.m_mutableStyle->getPropertyCSSValue(CSSPropertyTextDecoration);
    240         return is<CSSValueList>(styleValue.get()) && downcast<CSSValueList>(*styleValue).hasValue(m_primitiveValue.get());
     240        return is<CSSValueList>(styleValue) && downcast<CSSValueList>(*styleValue).hasValue(m_primitiveValue.get());
    241241    }
    242242
     
    503503    // Get the adjustment amount out of the style.
    504504    RefPtr<CSSValue> value = m_mutableStyle->getPropertyCSSValue(CSSPropertyWebkitFontSizeDelta);
    505     if (!is<CSSPrimitiveValue>(value.get()))
     505    if (!is<CSSPrimitiveValue>(value))
    506506        return;
    507507
     
    551551
    552552    RefPtr<CSSValue> unicodeBidi = m_mutableStyle->getPropertyCSSValue(CSSPropertyUnicodeBidi);
    553     if (!is<CSSPrimitiveValue>(unicodeBidi.get()))
     553    if (!is<CSSPrimitiveValue>(unicodeBidi))
    554554        return false;
    555555
     
    557557    if (unicodeBidiValue == CSSValueEmbed) {
    558558        RefPtr<CSSValue> direction = m_mutableStyle->getPropertyCSSValue(CSSPropertyDirection);
    559         if (!is<CSSPrimitiveValue>(direction.get()))
     559        if (!is<CSSPrimitiveValue>(direction))
    560560            return false;
    561561
     
    800800{
    801801    RefPtr<CSSValue> value = properties.getPropertyCSSValue(CSSPropertyTextDecoration);
    802     if (!is<CSSValueList>(value.get()))
     802    if (!is<CSSValueList>(value))
    803803        return nullptr;
    804804    return downcast<CSSValueList>(value.get());
     
    10901090        m_mutableStyle->removeProperty(CSSPropertyBackgroundColor);
    10911091
    1092     if (is<CSSPrimitiveValue>(unicodeBidi.get())) {
     1092    if (is<CSSPrimitiveValue>(unicodeBidi)) {
    10931093        m_mutableStyle->setProperty(CSSPropertyUnicodeBidi, static_cast<CSSValueID>(downcast<CSSPrimitiveValue>(*unicodeBidi).valueID()));
    1094         if (is<CSSPrimitiveValue>(direction.get()))
     1094        if (is<CSSPrimitiveValue>(direction))
    10951095            m_mutableStyle->setProperty(CSSPropertyDirection, static_cast<CSSValueID>(downcast<CSSPrimitiveValue>(*direction).valueID()));
    10961096    }
     
    14071407{
    14081408    RefPtr<CSSValue> cssValue = m_mutableStyle->getPropertyCSSValue(CSSPropertyFontSize);
    1409     if (!is<CSSPrimitiveValue>(cssValue.get()))
     1409    if (!is<CSSPrimitiveValue>(cssValue))
    14101410        return 0;
    14111411    return legacyFontSizeFromCSSValue(document, downcast<CSSPrimitiveValue>(cssValue.get()),
     
    14761476
    14771477            RefPtr<CSSValue> unicodeBidi = ComputedStyleExtractor(n).propertyValue(CSSPropertyUnicodeBidi);
    1478             if (!is<CSSPrimitiveValue>(unicodeBidi.get()))
     1478            if (!is<CSSPrimitiveValue>(unicodeBidi))
    14791479                continue;
    14801480
     
    15051505        ComputedStyleExtractor computedStyle(node);
    15061506        RefPtr<CSSValue> unicodeBidi = computedStyle.propertyValue(CSSPropertyUnicodeBidi);
    1507         if (!is<CSSPrimitiveValue>(unicodeBidi.get()))
     1507        if (!is<CSSPrimitiveValue>(unicodeBidi))
    15081508            continue;
    15091509
     
    15171517        ASSERT(unicodeBidiValue == CSSValueEmbed);
    15181518        RefPtr<CSSValue> direction = computedStyle.propertyValue(CSSPropertyDirection);
    1519         if (!is<CSSPrimitiveValue>(direction.get()))
     1519        if (!is<CSSPrimitiveValue>(direction))
    15201520            continue;
    15211521
     
    15851585    if (shouldAddUnderline || shouldAddStrikeThrough) {
    15861586        RefPtr<CSSValue> value = computedStyle.propertyValue(CSSPropertyWebkitTextDecorationsInEffect);
    1587         if (!is<CSSValueList>(value.get()))
     1587        if (!is<CSSValueList>(value))
    15881588            value = computedStyle.propertyValue(CSSPropertyTextDecoration);
    15891589
    15901590        RefPtr<CSSValueList> valueList;
    1591         if (is<CSSValueList>(value.get()))
     1591        if (is<CSSValueList>(value))
    15921592            valueList = downcast<CSSValueList>(value.get());
    15931593
     
    16681668    // Furthermore, text-decoration: none has been trimmed so that text-decoration property is always a CSSValueList.
    16691669    RefPtr<CSSValue> textDecoration = style.getPropertyCSSValue(CSSPropertyTextDecoration);
    1670     if (is<CSSValueList>(textDecoration.get())) {
     1670    if (is<CSSValueList>(textDecoration)) {
    16711671        auto& cssValuePool = CSSValuePool::singleton();
    16721672        RefPtr<CSSPrimitiveValue> underline = cssValuePool.createIdentifierValue(CSSValueUnderline);
     
    17191719{
    17201720    RefPtr<CSSValue> textDecoration = style.getPropertyCSSValue(propertID);
    1721     if (!is<CSSValueList>(textDecoration.get()) || !is<CSSValueList>(refTextDecoration))
     1721    if (!is<CSSValueList>(textDecoration) || !is<CSSValueList>(refTextDecoration))
    17221722        return;
    17231723
  • trunk/Source/WebCore/html/BaseChooserOnlyDateAndTimeInputType.cpp

    r223644 r224320  
    7171{
    7272    RefPtr<Node> node = element().userAgentShadowRoot()->firstChild();
    73     if (!is<HTMLElement>(node.get()))
     73    if (!is<HTMLElement>(node))
    7474        return;
    7575    String displayValue = visibleValue();
  • trunk/Source/WebCore/html/FormAssociatedElement.cpp

    r223802 r224320  
    109109        // treeScope().getElementById() over the given element.
    110110        RefPtr<Element> newFormCandidate = element->treeScope().getElementById(formId);
    111         if (is<HTMLFormElement>(newFormCandidate.get()))
     111        if (is<HTMLFormElement>(newFormCandidate))
    112112            return downcast<HTMLFormElement>(newFormCandidate.get());
    113113        return nullptr;
  • trunk/Source/WebCore/html/HTMLAreaElement.cpp

    r223644 r224320  
    189189{
    190190    RefPtr<Node> mapElement = parentNode();
    191     if (!is<HTMLMapElement>(mapElement.get()))
     191    if (!is<HTMLMapElement>(mapElement))
    192192        return nullptr;
    193193   
  • trunk/Source/WebCore/html/HTMLElement.cpp

    r224213 r224320  
    562562
    563563    RefPtr<Node> node = next ? next->previousSibling() : nullptr;
    564     if (is<Text>(node.get())) {
     564    if (is<Text>(node)) {
    565565        auto result = mergeWithNextTextNode(downcast<Text>(*node));
    566566        if (result.hasException())
    567567            return result.releaseException();
    568568    }
    569     if (is<Text>(prev.get())) {
     569    if (is<Text>(prev)) {
    570570        auto result = mergeWithNextTextNode(downcast<Text>(*prev));
    571571        if (result.hasException())
     
    841841    RefPtr<Element> parent = parentElement();
    842842
    843     if (is<HTMLElement>(parent.get()) && parent->selfOrAncestorHasDirAutoAttribute())
     843    if (is<HTMLElement>(parent) && parent->selfOrAncestorHasDirAutoAttribute())
    844844        downcast<HTMLElement>(*parent).adjustDirectionalityIfNeededAfterChildAttributeChanged(this);
    845845
  • trunk/Source/WebCore/html/HTMLEmbedElement.cpp

    r224150 r224320  
    201201    // should be ignored and not get a renderer.
    202202    RefPtr<ContainerNode> parent = parentNode();
    203     if (is<HTMLObjectElement>(parent.get())) {
     203    if (is<HTMLObjectElement>(parent)) {
    204204        if (!parent->renderer())
    205205            return false;
  • trunk/Source/WebCore/html/HTMLFormControlElement.cpp

    r224150 r224320  
    125125        if (is<HTMLFieldSetElement>(*ancestor) && ancestor->hasAttributeWithoutSynchronization(disabledAttr)) {
    126126            HTMLFieldSetElement& fieldSetAncestor = downcast<HTMLFieldSetElement>(*ancestor);
    127             bool isInFirstLegend = is<HTMLLegendElement>(previousAncestor.get()) && previousAncestor == fieldSetAncestor.legend();
     127            bool isInFirstLegend = is<HTMLLegendElement>(previousAncestor) && previousAncestor == fieldSetAncestor.legend();
    128128            return !isInFirstLegend;
    129129        }
  • trunk/Source/WebCore/html/HTMLInputElement.cpp

    r224316 r224320  
    15981598
    15991599    RefPtr<Element> element = treeScope().getElementById(attributeWithoutSynchronization(listAttr));
    1600     if (!is<HTMLDataListElement>(element.get())
     1600    if (!is<HTMLDataListElement>(element))
    16011601        return nullptr;
    16021602
  • trunk/Source/WebCore/html/HTMLOptionElement.cpp

    r223802 r224320  
    121121    // Handle the common special case where there's exactly 1 child node, and it's a text node.
    122122    RefPtr<Node> child = firstChild();
    123     if (is<Text>(child.get()) && !child->nextSibling())
     123    if (is<Text>(child) && !child->nextSibling())
    124124        downcast<Text>(*child).setData(text);
    125125    else {
     
    302302{
    303303    RefPtr<ContainerNode> parent = parentNode();
    304     if (is<HTMLOptGroupElement>(parent.get()))
     304    if (is<HTMLOptGroupElement>(parent))
    305305        return "    " + displayLabel();
    306306    return displayLabel();
  • trunk/Source/WebCore/html/HTMLPlugInElement.cpp

    r224316 r224320  
    228228
    229229    RefPtr<Widget> widget = pluginWidget();
    230     if (!is<PluginViewBase>(widget.get()))
     230    if (!is<PluginViewBase>(widget))
    231231        return false;
    232232
     
    243243    // No widget - can't be anything to see or hear here.
    244244    RefPtr<Widget> widget = pluginWidget(PluginLoadingPolicy::DoNotLoad);
    245     if (!is<PluginViewBase>(widget.get()))
     245    if (!is<PluginViewBase>(widget))
    246246        return false;
    247247
  • trunk/Source/WebCore/html/HTMLSelectElement.cpp

    r223802 r224320  
    866866        deselectItemsWithoutValidation(element.get());
    867867
    868     if (is<HTMLOptionElement>(element.get())) {
     868    if (is<HTMLOptionElement>(element)) {
    869869        if (m_activeSelectionAnchorIndex < 0 || shouldDeselect)
    870870            setActiveSelectionAnchorIndex(listIndex);
  • trunk/Source/WebCore/html/HTMLSummaryElement.cpp

    r224316 r224320  
    101101        return true;
    102102    RefPtr<Element> host = element.shadowHost();
    103     return host && is<HTMLFormControlElement>(host.get());
     103    return host && is<HTMLFormControlElement>(host);
    104104}
    105105
  • trunk/Source/WebCore/html/HTMLTextFormControlElement.cpp

    r224296 r224320  
    799799        if (const StyleProperties* properties = innerText->presentationAttributeStyle()) {
    800800            RefPtr<CSSValue> value = properties->getPropertyCSSValue(CSSPropertyWebkitUserModify);
    801             if (is<CSSPrimitiveValue>(value.get()))
     801            if (is<CSSPrimitiveValue>(value))
    802802                textBlockStyle.setUserModify(downcast<CSSPrimitiveValue>(*value));
    803803        }
  • trunk/Source/WebCore/html/RadioInputType.cpp

    r223644 r224320  
    122122    // skip any other elements in the group.
    123123    RefPtr<Element> currentFocusedNode = element().document().focusedElement();
    124     if (is<HTMLInputElement>(currentFocusedNode.get())) {
     124    if (is<HTMLInputElement>(currentFocusedNode)) {
    125125        HTMLInputElement& focusedInput = downcast<HTMLInputElement>(*currentFocusedNode);
    126126        if (focusedInput.isRadioButton() && focusedInput.form() == element().form() && focusedInput.name() == element().name())
  • trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp

    r224213 r224320  
    191191void HTMLConstructionSite::attachLater(ContainerNode& parent, Ref<Node>&& child, bool selfClosing)
    192192{
    193     ASSERT(scriptingContentIsAllowed(m_parserContentPolicy) || !is<Element>(child.get()) || !isScriptElement(downcast<Element>(child.get())));
     193    ASSERT(scriptingContentIsAllowed(m_parserContentPolicy) || !is<Element>(child) || !isScriptElement(downcast<Element>(child.get())));
    194194    ASSERT(pluginContentIsAllowed(m_parserContentPolicy) || !child->isPluginElement());
    195195
     
    585585
    586586    RefPtr<Node> previousChild = task.nextChild ? task.nextChild->previousSibling() : task.parent->lastChild();
    587     if (is<Text>(previousChild.get())) {
     587    if (is<Text>(previousChild)) {
    588588        // FIXME: We're only supposed to append to this text node if it
    589589        // was the last text node inserted by the parser.
  • trunk/Source/WebCore/html/shadow/MediaControlElements.cpp

    r223644 r224320  
    690690    if (event.type() == eventNames().clickEvent) {
    691691        RefPtr<Node> target = event.target()->toNode();
    692         if (!is<Element>(target.get()))
     692        if (!is<Element>(target))
    693693            return;
    694694
  • trunk/Source/WebCore/html/track/TextTrackList.cpp

    r210828 r224320  
    188188    if (track->trackType() == TextTrack::AddTrack)
    189189        m_addTrackTracks.append(track.ptr());
    190     else if (is<LoadableTextTrack>(track.get())) {
     190    else if (is<LoadableTextTrack>(track)) {
    191191        // Insert tracks added for <track> element in tree order.
    192192        size_t index = downcast<LoadableTextTrack>(track.get()).trackElementIndex();
  • trunk/Source/WebCore/inspector/InspectorDOMAgent.cpp

    r224074 r224320  
    737737
    738738    RefPtr<Node> oldNode = nodeForId(nodeId);
    739     if (!is<Element>(oldNode.get()))
     739    if (!is<Element>(oldNode))
    740740        return;
    741741
  • trunk/Source/WebCore/inspector/PageScriptDebugServer.cpp

    r223476 r224320  
    172172    if (auto* view = frame.view()) {
    173173        for (auto& child : view->children()) {
    174             if (!is<PluginViewBase>(child.get()))
     174            if (!is<PluginViewBase>(child))
    175175                continue;
    176176            downcast<PluginViewBase>(child.get()).setJavaScriptPaused(paused);
  • trunk/Source/WebCore/page/FocusController.cpp

    r217441 r224320  
    775775    // FIXME: These additional checks should not be necessary. We should consider generally keeping the selection whenever the
    776776    // focused element is blurred, with no new element taking focus.
    777     if (!oldFocusedElement->isRootEditableElement() && !is<HTMLInputElement>(oldFocusedElement.get()) && !is<HTMLTextAreaElement>(oldFocusedElement.get()))
     777    if (!oldFocusedElement->isRootEditableElement() && !is<HTMLInputElement>(oldFocusedElement) && !is<HTMLTextAreaElement>(oldFocusedElement))
    778778        return true;
    779779
  • trunk/Source/WebCore/page/FrameView.cpp

    r224198 r224320  
    37693769{
    37703770    for (auto& widget : children()) {
    3771         if (is<FrameView>(widget.get())) {
     3771        if (is<FrameView>(widget)) {
    37723772            if (downcast<FrameView>(widget.get()).hasCustomScrollbars())
    37733773                return true;
    3774         } else if (is<Scrollbar>(widget.get())) {
     3774        } else if (is<Scrollbar>(widget)) {
    37753775            if (downcast<Scrollbar>(widget.get()).isCustomScrollbar())
    37763776                return true;
  • trunk/Source/WebCore/page/Page.cpp

    r224150 r224320  
    14051405            break;
    14061406        for (auto& widget : view->children()) {
    1407             if (is<PluginViewBase>(widget.get()))
     1407            if (is<PluginViewBase>(widget))
    14081408                views.append(downcast<PluginViewBase>(widget.get()));
    14091409        }
  • trunk/Source/WebCore/page/mac/EventHandlerMac.mm

    r222898 r224320  
    934934        } else {
    935935            scrollableContainer = findEnclosingScrollableContainer(wheelEventTarget.get(), wheelEvent.deltaX(), wheelEvent.deltaY());
    936             if (scrollableContainer && !is<HTMLIFrameElement>(wheelEventTarget.get()))
     936            if (scrollableContainer && !is<HTMLIFrameElement>(wheelEventTarget))
    937937                scrollableArea = scrollableAreaForContainerNode(*scrollableContainer);
    938938            else {
  • trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp

    r224279 r224320  
    912912            context.setDrawLuminanceMask(bgLayer.maskSourceType() == MaskLuminance);
    913913
    914             if (is<BitmapImage>(image.get()))
     914            if (is<BitmapImage>(image))
    915915                downcast<BitmapImage>(*image).updateFromSettings(settings());
    916916
  • trunk/Source/WebCore/testing/Internals.cpp

    r224309 r224320  
    10341034    unsigned count = 0;
    10351035    for (auto rule : childRules) {
    1036         if (is<StyleRule>(rule.get())) {
     1036        if (is<StyleRule>(rule)) {
    10371037            auto* cssRule = downcast<StyleRule>(rule.get());
    10381038            if (!cssRule->propertiesWithoutDeferredParsing())
     
    10421042
    10431043        StyleRuleGroup* groupRule = nullptr;
    1044         if (is<StyleRuleMedia>(rule.get()))
     1044        if (is<StyleRuleMedia>(rule))
    10451045            groupRule = downcast<StyleRuleMedia>(rule.get());
    1046         else if (is<StyleRuleSupports>(rule.get()))
     1046        else if (is<StyleRuleSupports>(rule))
    10471047            groupRule = downcast<StyleRuleSupports>(rule.get());
    10481048        if (!groupRule)
     
    10691069    for (auto rule : childRules) {
    10701070        StyleRuleGroup* groupRule = nullptr;
    1071         if (is<StyleRuleMedia>(rule.get()))
     1071        if (is<StyleRuleMedia>(rule))
    10721072            groupRule = downcast<StyleRuleMedia>(rule.get());
    1073         else if (is<StyleRuleSupports>(rule.get()))
     1073        else if (is<StyleRuleSupports>(rule))
    10741074            groupRule = downcast<StyleRuleSupports>(rule.get());
    10751075        if (!groupRule)
     
    10941094    unsigned count = 0;
    10951095    for (auto rule : childRules) {
    1096         if (is<StyleRuleKeyframes>(rule.get())) {
     1096        if (is<StyleRuleKeyframes>(rule)) {
    10971097            auto* cssRule = downcast<StyleRuleKeyframes>(rule.get());
    10981098            if (!cssRule->keyframesWithoutDeferredParsing())
     
    11021102
    11031103        StyleRuleGroup* groupRule = nullptr;
    1104         if (is<StyleRuleMedia>(rule.get()))
     1104        if (is<StyleRuleMedia>(rule))
    11051105            groupRule = downcast<StyleRuleMedia>(rule.get());
    1106         else if (is<StyleRuleSupports>(rule.get()))
     1106        else if (is<StyleRuleSupports>(rule))
    11071107            groupRule = downcast<StyleRuleSupports>(rule.get());
    11081108        if (!groupRule)
Note: See TracChangeset for help on using the changeset viewer.