Changeset 69509 in webkit
- Timestamp:
- Oct 11, 2010 11:12:33 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69495 r69509 1 2010-10-11 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 spellcheck="false" not respected in designMode 6 https://bugs.webkit.org/show_bug.cgi?id=39978 7 8 Added a test to ensure Webkit respects spellcheck=off on body element. 9 Rebaselined are due to our setting the focus to body element rather than html element in design mode. 10 11 * editing/spelling/design-mode-spellcheck-off-expected.txt: Added. 12 * editing/spelling/design-mode-spellcheck-off.html: Added. 13 * editing/inserting/space-after-removeformat-expected.txt: Editing delegates change due to focus moving to body. 14 * platform/chromium-win/editing/inserting/editable-html-element-expected.txt: Ditto. 15 * platform/chromium-win/editing/selection/editable-html-element-expected.txt: Ditto. 16 * platform/chromium-win/editing/selection/editable-links-expected.txt: Ditto. 17 * platform/chromium-win/editing/selection/focus_editable_html-expected.txt: Ditto. 18 * platform/chromium-win/editing/style/designmode-expected.txt: Ditto. 19 * platform/mac/editing/inserting/editable-html-element-expected.txt: Ditto. 20 * platform/mac/editing/selection/designmode-no-caret-expected.txt: Ditto. 21 * platform/mac/editing/selection/editable-html-element-expected.txt: Ditto. 22 * platform/mac/editing/selection/editable-links-expected.txt: Ditto. 23 * platform/mac/editing/selection/focus_editable_html-expected.txt: Ditto. 24 * platform/mac/editing/style/designmode-expected.txt: Ditto. 25 * platform/qt/editing/inserting/editable-html-element-expected.txt: Ditto. 26 * platform/qt/editing/selection/editable-html-element-expected.txt: Ditto. 27 * platform/qt/editing/selection/focus_editable_html-expected.txt: Ditto. 28 * platform/qt/editing/style/designmode-expected.txt: Ditto. 29 1 30 2010-10-11 Martin Robinson <mrobinson@igalia.com> 2 31 -
trunk/LayoutTests/editing/inserting/space-after-removeformat-expected.txt
r45016 r69509 2 2 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of #text > DIV > BODY > HTML > #document to 10 of #text > DIV > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document4 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 9 of BODY > HTML > #document 5 5 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 6 6 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/LayoutTests/platform/chromium-win/editing/inserting/editable-html-element-expected.txt
r69456 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 1 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/LayoutTests/platform/chromium-win/editing/selection/editable-html-element-expected.txt
r69456 r69509 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of HTML > #document to 2 of HTML > #document 5 EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification 6 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 1 of BODY > HTML > #document 7 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 4 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > BODY > HTML > #document to 1 of #text > SPAN > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE -
trunk/LayoutTests/platform/chromium-win/editing/selection/editable-links-expected.txt
r69456 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text > A > BODY > HTML > #document to 6 of #text > A > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE -
trunk/LayoutTests/platform/chromium-win/editing/selection/focus_editable_html-expected.txt
r69456 r69509 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of HTML > #document to 2 of HTML > #document 5 EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification 6 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 9 of BODY > HTML > #document 7 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 4 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 9 layer at (0,0) size 2008x2096 -
trunk/LayoutTests/platform/chromium-win/editing/style/designmode-expected.txt
r69456 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/LayoutTests/platform/mac/editing/inserting/editable-html-element-expected.txt
r63291 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 1 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/LayoutTests/platform/mac/editing/selection/designmode-no-caret-expected.txt
r64712 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 4 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/LayoutTests/platform/mac/editing/selection/editable-html-element-expected.txt
r63291 r69509 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of HTML > #document to 2 of HTML > #document 5 EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification 6 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 1 of BODY > HTML > #document 7 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 4 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > BODY > HTML > #document to 1 of #text > SPAN > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE -
trunk/LayoutTests/platform/mac/editing/selection/editable-links-expected.txt
r63291 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 6 of #text > A > BODY > HTML > #document to 6 of #text > A > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE -
trunk/LayoutTests/platform/mac/editing/selection/focus_editable_html-expected.txt
r63403 r69509 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of HTML > #document to 2 of HTML > #document 5 EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification 6 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 9 of BODY > HTML > #document 7 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 4 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 9 layer at (0,0) size 2008x2088 -
trunk/LayoutTests/platform/mac/editing/style/designmode-expected.txt
r63291 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/LayoutTests/platform/qt/editing/inserting/editable-html-element-expected.txt
r69456 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 1 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/LayoutTests/platform/qt/editing/selection/editable-html-element-expected.txt
r69456 r69509 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of HTML > #document to 2 of HTML > #document 5 EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification 6 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 1 of BODY > HTML > #document 7 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 4 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 9 EDITING DELEGATE: shouldChangeSelectedDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document toDOMRange:range from 1 of #text > SPAN > BODY > HTML > #document to 1 of #text > SPAN > BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE -
trunk/LayoutTests/platform/qt/editing/selection/focus_editable_html-expected.txt
r69456 r69509 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: shouldChangeSelectedDOMRange:(null) toDOMRange:range from 0 of BODY > HTML > #document to 0 of BODY > HTML > #document affinity:NSSelectionAffinityDownstream stillSelecting:FALSE 4 EDITING DELEGATE: shouldEndEditingInDOMRange:range from 0 of HTML > #document to 2 of HTML > #document 5 EDITING DELEGATE: webViewDidEndEditing:WebViewDidEndEditingNotification 6 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 9 of BODY > HTML > #document 7 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 4 8 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification 5 9 layer at (0,0) size 2008x2093 -
trunk/LayoutTests/platform/qt/editing/style/designmode-expected.txt
r69456 r69509 1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of HTML > #document to 2 ofHTML > #document1 EDITING DELEGATE: shouldBeginEditingInDOMRange:range from 0 of BODY > HTML > #document to 5 of BODY > HTML > #document 2 2 EDITING DELEGATE: webViewDidBeginEditing:WebViewDidBeginEditingNotification 3 3 EDITING DELEGATE: webViewDidChangeSelection:WebViewDidChangeSelectionNotification -
trunk/WebCore/ChangeLog
r69507 r69509 1 2010-10-11 Ryosuke Niwa <rniwa@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 spellcheck="false" not respected in designMode 6 https://bugs.webkit.org/show_bug.cgi?id=39978 7 8 The bug was caused by WebKit's setting focus to html element rather than body element in design mode. 9 Because we disable spell-check only if ancestor nodes of the focused element had spellcheck=false, 10 this caused us to ignore body element's spellcheck attribute. 11 12 Fixed the bug by overriding supportsFocus in HTMLBodyElement to make body element focusable 13 when the parent node of body elements (namely html element) is editable. 14 15 Test: editing/spelling/design-mode-spellcheck-off.html 16 17 * html/HTMLBodyElement.cpp: 18 (WebCore::HTMLBodyElement::supportsFocus): Added. 19 * html/HTMLBodyElement.h: 20 1 21 2010-10-11 Oliver Hunt <oliver@apple.com> 2 22 -
trunk/WebCore/html/HTMLBodyElement.cpp
r69009 r69509 207 207 } 208 208 209 bool HTMLBodyElement::supportsFocus() const 210 { 211 return isContentEditable() || HTMLElement::supportsFocus(); 212 } 213 209 214 String HTMLBodyElement::aLink() const 210 215 { -
trunk/WebCore/html/HTMLBodyElement.h
r66057 r69509 78 78 79 79 virtual bool isURLAttribute(Attribute*) const; 80 81 virtual bool supportsFocus() const; 80 82 81 83 virtual int scrollLeft() const;
Note: See TracChangeset
for help on using the changeset viewer.