Changeset 30515 in webkit
- Timestamp:
- Feb 22, 2008 9:14:55 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r30506 r30515 1 2008-02-22 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Anders. 4 5 <rdar://problem/5714333> Add document.getSelection() 6 7 * editing/selection/5714333-expected.txt: Added. 8 * editing/selection/5714333.html: Added. 9 1 10 2008-02-22 Oliver Hunt <oliver@apple.com> 2 11 -
trunk/WebCore/ChangeLog
r30514 r30515 1 2008-02-22 Justin Garcia <justin.garcia@apple.com> 2 3 Reviewed by Anders Carlsson. 4 5 <rdar://problem/5714333> Add document.getSelection() 6 7 Add a synonym for window.getSelection() that FF supports. There were requests in 8 this bugs dupes to also support the IE only document.selection, but IE's Selection 9 object is too different than ours currently for that to be safe (specifically, we 10 don't support enough of IE's TextRange methods on our DOM Range object yet). I 11 filed <rdar://problem/5761233> to cover that. 12 13 * dom/Document.cpp: 14 (WebCore::Document::getSelection): Added. 15 * dom/Document.h: 16 * dom/Document.idl: Ditto. JS only since this is about web compatibility. 17 1 18 2008-02-22 Oliver Hunt <oliver@apple.com> 2 19 -
trunk/WebCore/dom/Document.cpp
r30450 r30515 42 42 #include "DocumentLoader.h" 43 43 #include "DocumentType.h" 44 #include "DOMWindow.h" 44 45 #include "EditingText.h" 45 46 #include "Editor.h" … … 3768 3769 } 3769 3770 3771 // FF method for accessing the selection added for compatability. 3772 DOMSelection* Document::getSelection() const 3773 { 3774 return frame() ? frame()->domWindow()->getSelection() : 0; 3775 } 3776 3770 3777 #if ENABLE(DATABASE) 3771 3778 -
trunk/WebCore/dom/Document.h
r30431 r30515 61 61 class Database; 62 62 class DOMImplementation; 63 class DOMSelection; 63 64 class DOMWindow; 64 65 class DatabaseThread; … … 691 692 void cancelFocusAppearanceUpdate(); 692 693 694 // FF method for accessing the selection added for compatability. 695 DOMSelection* getSelection() const; 696 693 697 private: 694 698 CSSStyleSelector* m_styleSelector; -
trunk/WebCore/dom/Document.idl
r30052 r30515 194 194 195 195 // Mozilla extensions 196 196 #if defined(LANGUAGE_JAVASCRIPT) 197 DOMSelection getSelection(); 198 #endif 197 199 readonly attribute [ConvertNullStringTo=Null] DOMString characterSet; 198 200
Note: See TracChangeset
for help on using the changeset viewer.