Changeset 259527 in webkit


Ignore:
Timestamp:
Apr 3, 2020 10:06:20 PM (4 years ago)
Author:
ddkilzer@apple.com
Message:

Build fix: HTMLFormElement should use WeakPtr to keep track of its FormNamedItem
https://bugs.webkit.org/show_bug.cgi?id=209925

  • html/HTMLFormElement.cpp:

(WebCore::HTMLFormElement::elementFromPastNamesMap const):

  • Apply macros consistently. Regressed in r259513.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r259525 r259527  
     12020-04-03  David Kilzer  <ddkilzer@apple.com>
     2
     3        Build fix: HTMLFormElement should use WeakPtr to keep track of its FormNamedItem
     4        https://bugs.webkit.org/show_bug.cgi?id=209925
     5
     6        * html/HTMLFormElement.cpp:
     7        (WebCore::HTMLFormElement::elementFromPastNamesMap const):
     8        - Apply macros consistently.  Regressed in r259513.
     9
    1102020-04-03  Jack Lee  <shihchieh_lee@apple.com>
    211
  • trunk/Source/WebCore/html/HTMLFormElement.cpp

    r259513 r259527  
    765765}
    766766
    767 #if ASSERT_ENABLED
     767#if ASSERT_ENABLED || ENABLE(SECURITY_ASSERTIONS)
    768768void HTMLFormElement::assertItemCanBeInPastNamesMap(FormNamedItem* item) const
    769769{
     
    790790        return nullptr;
    791791    auto element = makeRefPtr(weakElement.get());
    792 #if ASSERT_ENABLED
     792#if ASSERT_ENABLED || ENABLE(SECURITY_ASSERTIONS)
    793793    assertItemCanBeInPastNamesMap(element->asFormNamedItem());
    794794#endif
Note: See TracChangeset for help on using the changeset viewer.