Changeset 102192 in webkit
- Timestamp:
- Dec 6, 2011, 4:45:49 PM (15 years ago)
- Location:
- branches/safari-534.53-branch/Source/WebCore
- Files:
-
- 6 edited
-
ChangeLog (modified) (1 diff)
-
editing/DeleteButtonController.cpp (modified) (1 diff)
-
editing/DeleteButtonController.h (modified) (1 diff)
-
editing/Editor.cpp (modified) (1 diff)
-
editing/Editor.h (modified) (1 diff)
-
page/Page.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-534.53-branch/Source/WebCore/ChangeLog
r102191 r102192 1 2011-12-06 Lucas Forschler <lforschler@apple.com> 2 3 Merge 95244 4 5 2011-09-15 Beth Dakin <bdakin@apple.com> 6 7 https://bugs.webkit.org/show_bug.cgi?id=67884 8 Delete button icon does not properly update when the device resolution changes 9 dynamically 10 -and corresponding- 11 <rdar://problem/10104632> 12 13 Reviewed by Darin Adler. 14 15 In DeleteButtonController::deviceScaleFactorChanged(), if the delete button is 16 currently showing, hide it and re-show it, forcing it to re-create the deletion 17 UI. 18 * editing/DeleteButtonController.cpp: 19 (WebCore::DeleteButtonController::deviceScaleFactorChanged): 20 * editing/DeleteButtonController.h: 21 * editing/Editor.cpp: 22 (WebCore::Editor::deviceScaleFactorChanged): 23 * editing/Editor.h: 24 25 Iterate through all of the frames and propagate the deviceScaleFactorChange() 26 message to Editor. 27 * page/Page.cpp: 28 (WebCore::Page::setDeviceScaleFactor): 29 1 30 2011-12-06 Lucas Forschler <lforschler@apple.com> 2 31 -
branches/safari-534.53-branch/Source/WebCore/editing/DeleteButtonController.cpp
r102032 r102192 186 186 } 187 187 188 void DeleteButtonController::deviceScaleFactorChanged() 189 { 190 if (!enabled()) 191 return; 192 193 HTMLElement* currentTarget = m_target.get(); 194 hide(); 195 196 // Setting m_containerElement to 0 will force the deletionUI to be re-created with 197 // artwork of the appropriate resolution in show(). 198 m_containerElement = 0; 199 show(currentTarget); 200 } 201 188 202 void DeleteButtonController::createDeletionUI() 189 203 { -
branches/safari-534.53-branch/Source/WebCore/editing/DeleteButtonController.h
r76248 r102192 49 49 void respondToChangedSelection(const VisibleSelection& oldSelection); 50 50 51 void deviceScaleFactorChanged(); 52 51 53 void show(HTMLElement*); 52 54 void hide(); -
branches/safari-534.53-branch/Source/WebCore/editing/Editor.cpp
r92931 r102192 3262 3262 } 3263 3263 3264 void Editor::deviceScaleFactorChanged() 3265 { 3266 m_deleteButtonController->deviceScaleFactorChanged(); 3267 } 3268 3264 3269 } // namespace WebCore -
branches/safari-534.53-branch/Source/WebCore/editing/Editor.h
r86520 r102192 378 378 void deletedAutocorrectionAtPosition(const Position&, const String& originalString); 379 379 380 void deviceScaleFactorChanged(); 381 380 382 private: 381 383 Frame* m_frame; -
branches/safari-534.53-branch/Source/WebCore/page/Page.cpp
r102032 r102192 608 608 #endif 609 609 610 for (Frame* frame = mainFrame(); frame; frame = frame->tree()->traverseNext()) 611 frame->editor()->deviceScaleFactorChanged(); 612 610 613 backForward()->markPagesForFullStyleRecalc(); 611 614 }
Note:
See TracChangeset
for help on using the changeset viewer.