Changeset 185398 in webkit
- Timestamp:
- Jun 9, 2015, 5:57:30 PM (11 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 6 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/editing/selection/update-selection-by-style-change-expected.html (added)
-
LayoutTests/editing/selection/update-selection-by-style-change.html (added)
-
Source/WebCore/ChangeLog (modified) (1 diff)
-
Source/WebCore/dom/Document.cpp (modified) (1 diff)
-
Source/WebCore/editing/FrameSelection.cpp (modified) (1 diff)
-
Source/WebCore/editing/FrameSelection.h (modified) (1 diff)
-
Source/WebCore/page/FrameView.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r185395 r185398 1 2015-06-09 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION(r180867): Tabbing to login field on iCloud.com doesn't have highlight for text 4 https://bugs.webkit.org/show_bug.cgi?id=145830 5 6 Reviewed by Darin Adler. 7 8 Added a regression test. 9 10 * editing/selection/update-selection-by-style-change-expected.html: Added. 11 * editing/selection/update-selection-by-style-change.html: Added. 12 1 13 2015-06-09 Said Abou-Hallawa <sabouhallawa@apple.com> 2 14 -
trunk/Source/WebCore/ChangeLog
r185397 r185398 1 2015-06-09 Ryosuke Niwa <rniwa@webkit.org> 2 3 REGRESSION(r180867): Tabbing to login field on iCloud.com doesn't have highlight for text 4 https://bugs.webkit.org/show_bug.cgi?id=145830 5 6 Reviewed by Darin Adler. 7 8 The bug was caused by setSelection not updating RenderView when there is a style recalc scheduled 9 that doesn't trigger a layout. Fixed the bug by explicitly updating the selection in 10 Document::recalcStyle in that case. 11 12 Test: editing/selection/update-selection-by-style-change.html 13 14 * dom/Document.cpp: 15 (WebCore::Document::recalcStyle): 16 * editing/FrameSelection.cpp: 17 (WebCore::FrameSelection::updateAppearanceAfterLayout): Renamed from didLayout. 18 * editing/FrameSelection.h: 19 * page/FrameView.cpp: 20 (WebCore::FrameView::performPostLayoutTasks): 21 1 22 2015-06-09 Dean Jackson <dino@apple.com> 2 23 -
trunk/Source/WebCore/dom/Document.cpp
r185118 r185398 1812 1812 frameView.viewportContentsChanged(); 1813 1813 1814 if (!frameView.needsLayout()) 1815 frameView.frame().selection().updateAppearanceAfterLayout(); 1816 1814 1817 // As a result of the style recalculation, the currently hovered element might have been 1815 1818 // detached (for example, by setting display:none in the :hover style), schedule another mouseMove event -
trunk/Source/WebCore/editing/FrameSelection.cpp
r185020 r185398 2223 2223 } 2224 2224 2225 void FrameSelection:: didLayout()2225 void FrameSelection::updateAppearanceAfterLayout() 2226 2226 { 2227 2227 setCaretRectNeedsUpdate(); -
trunk/Source/WebCore/editing/FrameSelection.h
r185020 r185398 152 152 void prepareForDestruction(); 153 153 154 void didLayout();154 void updateAppearanceAfterLayout(); 155 155 void setNeedsSelectionUpdate(); 156 156 -
trunk/Source/WebCore/page/FrameView.cpp
r185269 r185398 2984 2984 m_postLayoutTasksTimer.stop(); 2985 2985 2986 frame().selection(). didLayout();2986 frame().selection().updateAppearanceAfterLayout(); 2987 2987 2988 2988 if (m_nestedLayoutCount <= 1 && frame().document()->documentElement())
Note:
See TracChangeset
for help on using the changeset viewer.