⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 280599 in webkit


Ignore:
Timestamp:
Aug 3, 2021, 9:54:57 AM (5 years ago)
Author:
Antti Koivisto
Message:

REGRESSION(r279050): Crash under CSSImageValue::createDeprecatedCSSOMWrapper with cursor images
https://bugs.webkit.org/show_bug.cgi?id=228735

Reviewed by Alex Christensen.

Source/WebCore:

CSSCursorImageValue is not a CSSImageValue. This used to work before r279050 because they had
the URL field in the same offset.

Test: fast/css/cursor-image-cssvalue.html

  • css/CSSValue.cpp:

(WebCore::CSSValue::createDeprecatedCSSOMWrapper const):

Don't do any special handling for CSSCursorImageValue. They are exposed as generic (deprecated)
CSS values with cssText only.

LayoutTests:

  • fast/css/cursor-image-cssvalue-expected.txt: Added.
  • fast/css/cursor-image-cssvalue.html: Added.
Location:
trunk
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r280592 r280599  
     12021-08-03  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION(r279050): Crash under CSSImageValue::createDeprecatedCSSOMWrapper with cursor images
     4        https://bugs.webkit.org/show_bug.cgi?id=228735
     5
     6        Reviewed by Alex Christensen.
     7
     8        * fast/css/cursor-image-cssvalue-expected.txt: Added.
     9        * fast/css/cursor-image-cssvalue.html: Added.
     10
    1112021-08-03  Cathie Chen  <cathiechen@igalia.com>
    212
  • trunk/Source/WebCore/ChangeLog

    r280594 r280599  
     12021-08-03  Antti Koivisto  <antti@apple.com>
     2
     3        REGRESSION(r279050): Crash under CSSImageValue::createDeprecatedCSSOMWrapper with cursor images
     4        https://bugs.webkit.org/show_bug.cgi?id=228735
     5
     6        Reviewed by Alex Christensen.
     7
     8        CSSCursorImageValue is not a CSSImageValue. This used to work before r279050 because they had
     9        the URL field in the same offset.
     10
     11        Test: fast/css/cursor-image-cssvalue.html
     12
     13        * css/CSSValue.cpp:
     14        (WebCore::CSSValue::createDeprecatedCSSOMWrapper const):
     15
     16        Don't do any special handling for CSSCursorImageValue. They are exposed as generic (deprecated)
     17        CSS values with cssText only.
     18
    1192021-08-03  Alex Christensen  <achristensen@webkit.org>
    220
  • trunk/Source/WebCore/css/CSSValue.cpp

    r278540 r280599  
    494494Ref<DeprecatedCSSOMValue> CSSValue::createDeprecatedCSSOMWrapper(CSSStyleDeclaration& styleDeclaration) const
    495495{
    496     if (isImageValue() || isCursorImageValue())
     496    if (isImageValue())
    497497        return downcast<CSSImageValue>(this)->createDeprecatedCSSOMWrapper(styleDeclaration);
    498498    if (isPrimitiveValue())
Note: See TracChangeset for help on using the changeset viewer.