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

Changeset 275807 in webkit


Ignore:
Timestamp:
Apr 11, 2021, 7:35:46 AM (6 years ago)
Author:
commit-queue@webkit.org
Message:

Store InputType in a Ref before calling setValueAsDecimal
​https://bugs.webkit.org/show_bug.cgi?id=223535

Patch by Rob Buis <​rbuis@igalia.com> on 2021-04-11
Reviewed by Ryosuke Niwa.

Store InputType in a Ref before calling setValueAsDecimal.

  • html/InputType.cpp:

(WebCore::InputType::applyStep):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r275804 r275807  
     12021-04-11  Rob Buis  <rbuis@igalia.com>
     2
     3        Store InputType in a Ref before calling setValueAsDecimal
     4        https://bugs.webkit.org/show_bug.cgi?id=223535
     5
     6        Reviewed by Ryosuke Niwa.
     7
     8        Store InputType in a Ref before calling setValueAsDecimal.
     9
     10        * html/InputType.cpp:
     11        (WebCore::InputType::applyStep):
     12
    1132021-04-10  Chris Dumez  <cdumez@apple.com>
    214
  • trunk/Source/WebCore/html/InputType.cpp

    r275527 r275807  
    931931        newValue = stepRange.maximum();
    932932
     933    auto protectedThis = makeRef(*this);
    933934    auto result = setValueAsDecimal(newValue, eventBehavior);
    934     if (result.hasException())
     935    if (result.hasException() || !element())
    935936        return result;
    936937
Note: See TracChangeset for help on using the changeset viewer.