Changeset 231915 in webkit
- Timestamp:
- May 17, 2018 12:20:28 PM (6 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r231911 r231915 1 2018-05-17 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 [Extra zoom mode] Disabled adaptations are not reset upon mainframe navigation 4 https://bugs.webkit.org/show_bug.cgi?id=185735 5 <rdar://problem/40335311> 6 7 Reviewed by Tim Horton. 8 9 Adds a new layout test that disables extra zoom mode adaptations, navigates to a new document, and checks that 10 the innerWidth and innerHeight are reset to their expected (default) values. 11 12 * fast/viewport/extrazoom/viewport-adaptations-after-navigation.html: Added. 13 1 14 2018-05-17 Chris Dumez <cdumez@apple.com> 2 15 -
trunk/Source/WebCore/ChangeLog
r231913 r231915 1 2018-05-17 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 [Extra zoom mode] Disabled adaptations are not reset upon mainframe navigation 4 https://bugs.webkit.org/show_bug.cgi?id=185735 5 <rdar://problem/40335311> 6 7 Reviewed by Tim Horton. 8 9 When performing mainframe navigation, we currently don't update the Page's ViewportConfiguration's disabled 10 adaptations. This causes disabled adaptations from the previous main document to persist. To fix this, propagate 11 the new document's disabled adaptations to the client when it becomes the main document in the page. 12 13 Test: fast/viewport/extrazoom/viewport-adaptations-after-navigation.html 14 15 * dom/Document.cpp: 16 (WebCore::Document::didBecomeCurrentDocumentInFrame): 17 (WebCore::Document::processDisabledAdaptations): 18 (WebCore::Document::dispatchDisabledAdaptationsDidChangeForMainFrame): 19 * dom/Document.h: 20 1 21 2018-05-17 Eric Carlson <eric.carlson@apple.com> 2 22 -
trunk/Source/WebCore/dom/Document.cpp
r231911 r231915 2230 2230 createRenderTree(); 2231 2231 2232 dispatchDisabledAdaptationsDidChangeForMainFrame(); 2232 2233 updateViewportArguments(); 2233 2234 … … 3418 3419 3419 3420 m_disabledAdaptations = disabledAdaptations; 3420 3421 if (page() && frame()->isMainFrame()) 3422 page()->chrome().dispatchDisabledAdaptationsDidChange(m_disabledAdaptations); 3421 dispatchDisabledAdaptationsDidChangeForMainFrame(); 3422 } 3423 3424 void Document::dispatchDisabledAdaptationsDidChangeForMainFrame() 3425 { 3426 if (!frame()->isMainFrame()) 3427 return; 3428 3429 if (!page()) 3430 return; 3431 3432 page()->chrome().dispatchDisabledAdaptationsDidChange(m_disabledAdaptations); 3423 3433 } 3424 3434 -
trunk/Source/WebCore/dom/Document.h
r231910 r231915 1507 1507 #endif 1508 1508 1509 void dispatchDisabledAdaptationsDidChangeForMainFrame(); 1510 1509 1511 #if ENABLE(TELEPHONE_NUMBER_DETECTION) 1510 1512 friend void setParserFeature(const String& key, const String& value, Document*, void* userData);
Note: See TracChangeset
for help on using the changeset viewer.