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

Changeset 259543 in webkit


Ignore:
Timestamp:
Apr 4, 2020, 9:16:19 PM (6 years ago)
Author:
ddkilzer@apple.com
Message:

Build fix v2: 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):
(WebCore::HTMLFormElement::addToPastNamesMap):

  • Apply macros consistently. Regressed in r259513 and was not fixed by r259527.
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r259541 r259543  
     12020-04-04  David Kilzer  <ddkilzer@apple.com>
     2
     3        Build fix v2: 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        (WebCore::HTMLFormElement::addToPastNamesMap):
     9        - Apply macros consistently.  Regressed in r259513 and was
     10          not fixed by r259527.
     11
    1122020-04-04  Wenson Hsieh  <wenson_hsieh@apple.com>
    213
  • trunk/Source/WebCore/html/HTMLFormElement.cpp

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