Changeset 111835 in webkit
- Timestamp:
- Mar 23, 2012 12:25:25 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r111833 r111835 1 2012-03-23 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 3 [EFL][DRT] Implement LayoutTestController's methods related with editing. 4 https://bugs.webkit.org/show_bug.cgi?id=80136 5 6 Reviewed by Ryosuke Niwa. 7 8 Enables tests connected with setSelectTrailingWhitespaceEnabled and setSmartInsertDeleteEnabled. 9 Tests related with spelling can not be enabled in this patch because WebKit-Efl doesn't 10 support spell checking (missing TextCheckerClient implementation). 11 12 * platform/efl/Skipped: 13 1 14 2012-03-22 Dan Bernstein <mitz@apple.com> 2 15 -
trunk/LayoutTests/platform/efl/Skipped
r111756 r111835 62 62 svg/zoom/page/zoom-zoom-coords.xhtml 63 63 64 # EFL's EventSender needs to emit double clicks 64 # EFL's EventSender needs to emit double clicks (e.g. to select text) 65 editing/selection/doubleclick-inline-first-last-contenteditable.html 65 66 fast/events/dblclick-addEventListener.html 66 67 fast/forms/password-doubleclick-selection.html … … 442 443 plugins/netscape-plugin-setwindow-size-2.html 443 444 444 # EFL's LayoutTestController does not implement setSmartInsertDeleteEnabled445 editing/deleting/smart-editing-disabled.html446 editing/selection/doubleclick-beside-cr-span.html447 editing/selection/doubleclick-whitespace-crash.html448 editing/selection/doubleclick-whitespace-img-crash.html449 editing/selection/doubleclick-whitespace.html450 451 445 # EFL's LayoutTestController does not implement setJavaScriptCanAccessClipboard 452 446 editing/execCommand/clipboard-access.html … … 473 467 # EFL's LayoutTestController does not implement setJavaScriptProfilingEnabled 474 468 fast/profiler 475 476 # EFL's LayoutTestController does not implement setSelectTrailingWhitespaceEnabled477 editing/selection/doubleclick-beside-cr-span.html478 editing/selection/doubleclick-inline-first-last-contenteditable.html479 editing/selection/doubleclick-whitespace-crash.html480 editing/selection/doubleclick-whitespace-img-crash.html481 editing/selection/doubleclick-whitespace.html482 469 483 470 # EFL's LayoutTestController does not implement elementDoesAutoCompleteForElementWithId … … 700 687 fast/harness/show-modal-dialog.html 701 688 702 # EFL's LayoutTestController does not implement hasSpellingMarker689 # Missing TextCheckerClient implementation (Efl's port does not support spell checking, Gtk port uses Enchant library https://bugs.webkit.org/show_bug.cgi?id=61787) 703 690 editing/spelling/design-mode-spellcheck-off.html 704 691 editing/spelling/spellcheck-attribute.html -
trunk/Source/WebKit/efl/ChangeLog
r111756 r111835 1 2012-03-23 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 3 [EFL][DRT] Implement LayoutTestController's methods related with editing. 4 https://bugs.webkit.org/show_bug.cgi?id=80136 5 6 Reviewed by Ryosuke Niwa. 7 8 Implements DumpRenderTreeSupportEfl's and EditorClientEfl's methods related with editing. 9 10 * WebCoreSupport/DumpRenderTreeSupportEfl.cpp: 11 (DumpRenderTreeSupportEfl::setSmartInsertDeleteEnabled): New function. 12 (DumpRenderTreeSupportEfl::setSelectTrailingWhitespaceEnabled): New function. 13 * WebCoreSupport/DumpRenderTreeSupportEfl.h: 14 * WebCoreSupport/EditorClientEfl.cpp: 15 (WebCore::EditorClientEfl::setSmartInsertDeleteEnabled): New function. 16 (WebCore): 17 (WebCore::EditorClientEfl::smartInsertDeleteEnabled): Add implementation. 18 (WebCore::EditorClientEfl::setSelectTrailingWhitespaceEnabled): New function. 19 (WebCore::EditorClientEfl::isSelectTrailingWhitespaceEnabled): Add implementation. 20 (WebCore::EditorClientEfl::EditorClientEfl): 21 * WebCoreSupport/EditorClientEfl.h: 22 (EditorClientEfl): 23 1 24 2012-03-22 Sudarsana Nagineni <sudarsana.nagineni@linux.intel.com> 2 25 -
trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.cpp
r111756 r111835 27 27 #include <AnimationController.h> 28 28 #include <DocumentLoader.h> 29 #include <EditorClientEfl.h> 29 30 #include <Eina.h> 30 31 #include <Evas.h> … … 323 324 } 324 325 326 void DumpRenderTreeSupportEfl::setSmartInsertDeleteEnabled(Evas_Object* ewkView, bool enabled) 327 { 328 WebCore::Page* page = EWKPrivate::corePage(ewkView); 329 if (!page) 330 return; 331 332 WebCore::EditorClientEfl* editorClient = static_cast<WebCore::EditorClientEfl*>(page->editorClient()); 333 if (!editorClient) 334 return; 335 336 editorClient->setSmartInsertDeleteEnabled(enabled); 337 } 338 339 void DumpRenderTreeSupportEfl::setSelectTrailingWhitespaceEnabled(Evas_Object* ewkView, bool enabled) 340 { 341 WebCore::Page* page = EWKPrivate::corePage(ewkView); 342 if (!page) 343 return; 344 345 WebCore::EditorClientEfl* editorClient = static_cast<WebCore::EditorClientEfl*>(page->editorClient()); 346 if (!editorClient) 347 return; 348 349 editorClient->setSelectTrailingWhitespaceEnabled(enabled); 350 } 351 325 352 void DumpRenderTreeSupportEfl::garbageCollectorCollect() 326 353 { -
trunk/Source/WebKit/efl/WebCoreSupport/DumpRenderTreeSupportEfl.h
r111756 r111835 67 67 68 68 static bool findString(const Evas_Object* ewkView, const char* text, WebCore::FindOptions); 69 static void setSmartInsertDeleteEnabled(Evas_Object* ewkView, bool enabled); 70 static void setSelectTrailingWhitespaceEnabled(Evas_Object* ewkView, bool enabled); 69 71 70 72 static void garbageCollectorCollect(); -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.cpp
r108462 r111835 24 24 #include "EditorClientEfl.h" 25 25 26 #include "DumpRenderTreeSupportEfl.h" 26 27 #include "Editor.h" 27 28 #include "EventNames.h" … … 230 231 } 231 232 233 void EditorClientEfl::setSmartInsertDeleteEnabled(bool enabled) 234 { 235 m_smartInsertDeleteEnabled = enabled; 236 if (enabled) 237 setSelectTrailingWhitespaceEnabled(false); 238 } 239 232 240 bool EditorClientEfl::smartInsertDeleteEnabled() 233 241 { 234 notImplemented(); 235 return false; 242 return m_smartInsertDeleteEnabled; 243 } 244 245 void EditorClientEfl::setSelectTrailingWhitespaceEnabled(bool enabled) 246 { 247 m_selectTrailingWhitespaceEnabled = enabled; 248 if (enabled) 249 setSmartInsertDeleteEnabled(false); 236 250 } 237 251 238 252 bool EditorClientEfl::isSelectTrailingWhitespaceEnabled() 239 253 { 240 notImplemented(); 241 return false; 254 return m_selectTrailingWhitespaceEnabled; 242 255 } 243 256 … … 438 451 : m_isInRedo(false) 439 452 , m_view(view) 453 , m_selectTrailingWhitespaceEnabled(false) 454 , m_smartInsertDeleteEnabled(false) 440 455 { 441 456 notImplemented(); -
trunk/Source/WebKit/efl/WebCoreSupport/EditorClientEfl.h
r108772 r111835 61 61 virtual bool shouldShowDeleteInterface(HTMLElement*); 62 62 virtual bool smartInsertDeleteEnabled(); 63 void setSmartInsertDeleteEnabled(bool); 63 64 virtual bool isSelectTrailingWhitespaceEnabled(); 65 void setSelectTrailingWhitespaceEnabled(bool); 64 66 virtual bool isContinuousSpellCheckingEnabled(); 65 67 virtual void toggleContinuousSpellChecking(); … … 126 128 private: 127 129 Evas_Object *m_view; 130 bool m_selectTrailingWhitespaceEnabled; 131 bool m_smartInsertDeleteEnabled; 128 132 }; 129 133 } -
trunk/Tools/ChangeLog
r111824 r111835 1 2012-03-23 Grzegorz Czajkowski <g.czajkowski@samsung.com> 2 3 [EFL][DRT] Implement LayoutTestController's methods related with editing. 4 https://bugs.webkit.org/show_bug.cgi?id=80136 5 6 Reviewed by Ryosuke Niwa. 7 8 Implements EFL's LayoutTestController methods e.i. setSmartInsertDeleteEnabled, 9 setSelectTrailingWhitespaceEnabled. 10 11 * DumpRenderTree/efl/LayoutTestControllerEfl.cpp: 12 (LayoutTestController::setSmartInsertDeleteEnabled): 13 (LayoutTestController::setSelectTrailingWhitespaceEnabled): 14 1 15 2012-03-22 Gyuyoung Kim <gyuyoung.kim@samsung.com> 2 16 -
trunk/Tools/DumpRenderTree/efl/LayoutTestControllerEfl.cpp
r111824 r111835 287 287 } 288 288 289 void LayoutTestController::setSmartInsertDeleteEnabled(bool )290 { 291 notImplemented();289 void LayoutTestController::setSmartInsertDeleteEnabled(bool flag) 290 { 291 DumpRenderTreeSupportEfl::setSmartInsertDeleteEnabled(browser->mainView(), flag); 292 292 } 293 293 … … 447 447 } 448 448 449 void LayoutTestController::setSelectTrailingWhitespaceEnabled(bool )450 { 451 notImplemented();449 void LayoutTestController::setSelectTrailingWhitespaceEnabled(bool flag) 450 { 451 DumpRenderTreeSupportEfl::setSelectTrailingWhitespaceEnabled(browser->mainView(), flag); 452 452 } 453 453
Note: See TracChangeset
for help on using the changeset viewer.