Changeset 244912 in webkit
- Timestamp:
- May 3, 2019 11:18:12 AM (5 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r244908 r244912 1 2019-05-03 Antti Koivisto <antti@apple.com> 2 3 Add a quirk to make youtube navigation bar scrollable without mouse hover on iOS 4 https://bugs.webkit.org/show_bug.cgi?id=197555 5 <rdar://problem/49582231> 6 7 Reviewed by Brent Fulgham. 8 9 * css/StyleResolver.cpp: 10 (WebCore::StyleResolver::adjustRenderStyleForSiteSpecificQuirks): 11 12 Turn 'overflow:hidden' into 'overflow:auto' on element with id="guide-inner-content". 13 14 * page/Quirks.cpp: 15 (WebCore::Quirks::needsYouTubeOverflowScrollQuirk const): 16 * page/Quirks.h: 17 1 18 2019-05-03 Devin Rousso <drousso@apple.com> 2 19 -
trunk/Source/WebCore/css/StyleResolver.cpp
r244904 r244912 1132 1132 if (document().quirks().needsGMailOverflowScrollQuirk()) { 1133 1133 // This turns sidebar scrollable without mouse move event. 1134 if (style.overflowY() == Overflow::Hidden && element.attributeWithoutSynchronization(roleAttr) == "navigation") 1134 static NeverDestroyed<AtomicString> roleValue("navigation", AtomicString::ConstructFromLiteral); 1135 if (style.overflowY() == Overflow::Hidden && element.attributeWithoutSynchronization(roleAttr) == roleValue) 1136 style.setOverflowY(Overflow::Auto); 1137 } 1138 if (document().quirks().needsYouTubeOverflowScrollQuirk()) { 1139 // This turns sidebar scrollable without hover. 1140 static NeverDestroyed<AtomicString> idValue("guide-inner-content", AtomicString::ConstructFromLiteral); 1141 if (style.overflowY() == Overflow::Hidden && element.idForStyleResolution() == idValue) 1135 1142 style.setOverflowY(Overflow::Auto); 1136 1143 } -
trunk/Source/WebCore/page/Quirks.cpp
r244904 r244912 288 288 } 289 289 290 // FIXME: Remove after the site is fixed, <rdar://problem/50374200> 290 291 bool Quirks::needsGMailOverflowScrollQuirk() const 291 292 { … … 303 304 } 304 305 305 306 } 306 // FIXME: Remove after the site is fixed, <rdar://problem/50374311> 307 bool Quirks::needsYouTubeOverflowScrollQuirk() const 308 { 309 #if PLATFORM(IOS_FAMILY) 310 if (!needsQuirks()) 311 return false; 312 313 if (!m_needsYouTubeOverflowScrollQuirk) 314 m_needsYouTubeOverflowScrollQuirk = equalLettersIgnoringASCIICase(m_document->url().host(), "www.youtube.com"); 315 316 return *m_needsYouTubeOverflowScrollQuirk; 317 #else 318 return false; 319 #endif 320 } 321 322 323 } -
trunk/Source/WebCore/page/Quirks.h
r244904 r244912 56 56 57 57 bool needsGMailOverflowScrollQuirk() const; 58 bool needsYouTubeOverflowScrollQuirk() const; 58 59 59 60 private: … … 66 67 #if PLATFORM(IOS_FAMILY) 67 68 mutable Optional<bool> m_needsGMailOverflowScrollQuirk; 69 mutable Optional<bool> m_needsYouTubeOverflowScrollQuirk; 68 70 #endif 69 71 };
Note: See TracChangeset
for help on using the changeset viewer.