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

Changeset 250326 in webkit


Ignore:
Timestamp:
Sep 24, 2019, 5:14:23 PM (7 years ago)
Author:
Wenson Hsieh
Message:

Remove a content change observation quirk on united.com
​https://bugs.webkit.org/show_bug.cgi?id=202175

Reviewed by Tim Horton.

Remove a site-specific quirk that is no longer necessary.

  • page/Quirks.cpp:

(WebCore::Quirks::shouldIgnoreContentChange const): Deleted.

  • page/Quirks.h:
  • page/ios/ContentChangeObserver.cpp:

(WebCore::ContentChangeObserver::shouldObserveVisibilityChangeForElement):

Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r250324 r250326  
     12019-09-24  Wenson Hsieh  <wenson_hsieh@apple.com>
     2
     3        Remove a content change observation quirk on united.com
     4        https://bugs.webkit.org/show_bug.cgi?id=202175
     5
     6        Reviewed by Tim Horton.
     7
     8        Remove a site-specific quirk that is no longer necessary.
     9
     10        * page/Quirks.cpp:
     11        (WebCore::Quirks::shouldIgnoreContentChange const): Deleted.
     12        * page/Quirks.h:
     13        * page/ios/ContentChangeObserver.cpp:
     14        (WebCore::ContentChangeObserver::shouldObserveVisibilityChangeForElement):
     15
    1162019-09-24  Kate Cheney  <katherine_cheney@apple.com>
    217
  • trunk/Source/WebCore/page/Quirks.cpp

    r249493 r250326  
    474474}
    475475
    476 bool Quirks::shouldIgnoreContentChange(const Element& element) const
    477 {
    478 #if PLATFORM(IOS_FAMILY)
    479     if (!needsQuirks())
    480         return false;
    481 
    482     auto* parentElement = element.parentElement();
    483     if (!parentElement || !parentElement->hasClass())
    484         return false;
    485 
    486     DOMTokenList& classList = parentElement->classList();
    487     if (!classList.contains("feedback") || !classList.contains("feedback-mid"))
    488         return false;
    489 
    490     if (!equalLettersIgnoringASCIICase(topPrivatelyControlledDomain(m_document->url().host().toString()), "united.com"))
    491         return false;
    492 
    493     return true;
    494 #else
    495     UNUSED_PARAM(element);
    496     return false;
    497 #endif
    498 }
    499 
    500476// FIXME(<rdar://problem/50394969>): Remove after desmos.com adopts inputmode="none".
    501477bool Quirks::needsInputModeNoneImplicitly(const HTMLElement& element) const
  • trunk/Source/WebCore/page/Quirks.h

    r248502 r250326  
    5858#endif
    5959    bool shouldDisablePointerEventsQuirk() const;
    60     bool shouldIgnoreContentChange(const Element&) const;
    6160    bool needsInputModeNoneImplicitly(const HTMLElement&) const;
    6261    bool needsDeferKeyDownAndKeyPressTimersUntilNextEditingCommand() const;
  • trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp

    r248911 r250326  
    631631bool ContentChangeObserver::shouldObserveVisibilityChangeForElement(const Element& element)
    632632{
    633     return isObservingContentChanges() && !visibleRendererWasDestroyed(element) && !element.document().quirks().shouldIgnoreContentChange(element);
     633    return isObservingContentChanges() && !visibleRendererWasDestroyed(element);
    634634}
    635635
Note: See TracChangeset for help on using the changeset viewer.