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

Changeset 282499 in webkit


Ignore:
Timestamp:
Sep 16, 2021, 1:00:25 AM (5 years ago)
Author:
Adrian Perez de Castro
Message:

Merge r275807 - 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:
releases/WebKitGTK/webkit-2.32/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/ChangeLog

    r282498 r282499  
     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-09  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • releases/WebKitGTK/webkit-2.32/Source/WebCore/html/InputType.cpp

    r272180 r282499  
    930930        newValue = stepRange.maximum();
    931931
     932    auto protectedThis = makeRef(*this);
    932933    auto result = setValueAsDecimal(newValue, eventBehavior);
    933     if (result.hasException())
     934    if (result.hasException() || !element())
    934935        return result;
    935936
Note: See TracChangeset for help on using the changeset viewer.