Changeset 250326 in webkit
- Timestamp:
- Sep 24, 2019, 5:14:23 PM (7 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
-
ChangeLog (modified) (1 diff)
-
page/Quirks.cpp (modified) (1 diff)
-
page/Quirks.h (modified) (1 diff)
-
page/ios/ContentChangeObserver.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r250324 r250326 1 2019-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 1 16 2019-09-24 Kate Cheney <katherine_cheney@apple.com> 2 17 -
trunk/Source/WebCore/page/Quirks.cpp
r249493 r250326 474 474 } 475 475 476 bool Quirks::shouldIgnoreContentChange(const Element& element) const477 {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 #else495 UNUSED_PARAM(element);496 return false;497 #endif498 }499 500 476 // FIXME(<rdar://problem/50394969>): Remove after desmos.com adopts inputmode="none". 501 477 bool Quirks::needsInputModeNoneImplicitly(const HTMLElement& element) const -
trunk/Source/WebCore/page/Quirks.h
r248502 r250326 58 58 #endif 59 59 bool shouldDisablePointerEventsQuirk() const; 60 bool shouldIgnoreContentChange(const Element&) const;61 60 bool needsInputModeNoneImplicitly(const HTMLElement&) const; 62 61 bool needsDeferKeyDownAndKeyPressTimersUntilNextEditingCommand() const; -
trunk/Source/WebCore/page/ios/ContentChangeObserver.cpp
r248911 r250326 631 631 bool ContentChangeObserver::shouldObserveVisibilityChangeForElement(const Element& element) 632 632 { 633 return isObservingContentChanges() && !visibleRendererWasDestroyed(element) && !element.document().quirks().shouldIgnoreContentChange(element);633 return isObservingContentChanges() && !visibleRendererWasDestroyed(element); 634 634 } 635 635
Note:
See TracChangeset
for help on using the changeset viewer.