Changeset 90806 in webkit
- Timestamp:
- Jul 11, 2011 7:51:39 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r90802 r90806 1 2011-07-11 Hironori Bono <hbono@chromium.org> 2 3 Reviewed by Adam Roben. 4 5 Implement layoutTestController.setTextDirection for WebKit2 and Windows. 6 https://bugs.webkit.org/show_bug.cgi?id=61931 7 8 This change implements layoutTextController.setTextDirection for WebKit2 9 and Windows so we can run a layout test added by r87770 on them. Each 10 implementation adds a wrapper function for Editor::setBaseWritingDirection() 11 so LayoutTestController can call it. 12 13 * platform/mac-wk2/Skipped: Removed set-text-direction.html. 14 * platform/win/Skipped: ditto. 15 1 16 2011-07-11 Ryosuke Niwa <rniwa@webkit.org> 2 17 -
trunk/LayoutTests/platform/win/Skipped
r90726 r90806 1008 1008 editing/spelling/spellcheck-paste.html 1009 1009 1010 # layoutTestController::setTextDirection() is not implemented1011 fast/html/set-text-direction.html1012 1013 1010 # IndexedDB is not yet enabled. 1014 1011 storage/indexeddb -
trunk/LayoutTests/platform/wk2/Skipped
r90802 r90806 411 411 scrollbars/scrollbar-miss-mousemove-disabled.html 412 412 scrollbars/scrollevent-iframe-no-scrolling-wheel.html 413 414 # WebKitTestRunner needs an implementation of setTextDirection.415 # <https://bugs.webkit.org/show_bug.cgi?id=61931>416 fast/html/set-text-direction.html417 413 418 414 # CONSOLE MESSAGE: line 0: SVG animation pause API missing! -
trunk/Source/WebKit/win/ChangeLog
r90643 r90806 1 2011-07-11 Hironori Bono <hbono@chromium.org> 2 3 Reviewed by Adam Roben. 4 5 Implement layoutTestController.setTextDirection for WebKit2 and Windows. 6 https://bugs.webkit.org/show_bug.cgi?id=61931 7 8 This change implements layoutTextController.setTextDirection for WebKit2 9 and Windows so we can run a layout test added by r87770 on them. Each 10 implementation adds a wrapper function for Editor::setBaseWritingDirection() 11 so LayoutTestController can call it. 12 13 * Interfaces/IWebFramePrivate.idl: Added setTextDirection to allow 14 LayoutTestController to change the text direction. 15 * WebFrame.cpp: ditto. 16 (WebFrame::setTextDirection): 17 * WebFrame.h: ditto. 18 1 19 2011-07-08 Chang Shu <cshu@webkit.org> 2 20 -
trunk/Source/WebKit/win/Interfaces/IWebFramePrivate.idl
r85256 r90806 121 121 122 122 HRESULT clearOpener(); 123 124 HRESULT setTextDirection([in] BSTR direction); 123 125 } -
trunk/Source/WebKit/win/WebFrame.cpp
r89991 r90806 1062 1062 } 1063 1063 1064 HRESULT WebFrame::setTextDirection(BSTR direction) 1065 { 1066 Frame* coreFrame = core(this); 1067 if (!coreFrame || !coreFrame->editor()) 1068 return E_FAIL; 1069 1070 String directionString(direction, SysStringLen(direction)); 1071 if (directionString == "auto") 1072 coreFrame->editor()->setBaseWritingDirection(NaturalWritingDirection); 1073 else if (directionString == "ltr") 1074 coreFrame->editor()->setBaseWritingDirection(LeftToRightWritingDirection); 1075 else if (directionString == "rtl") 1076 coreFrame->editor()->setBaseWritingDirection(RightToLeftWritingDirection); 1077 return S_OK; 1078 } 1079 1064 1080 // IWebDocumentText ----------------------------------------------------------- 1065 1081 -
trunk/Source/WebKit/win/WebFrame.h
r88737 r90806 283 283 284 284 virtual HRESULT STDMETHODCALLTYPE clearOpener(); 285 286 virtual HRESULT STDMETHODCALLTYPE setTextDirection(BSTR); 285 287 286 288 // IWebDocumentText -
trunk/Source/WebKit2/ChangeLog
r90766 r90806 1 2011-07-11 Hironori Bono <hbono@chromium.org> 2 3 Reviewed by Adam Roben. 4 5 Implement layoutTestController.setTextDirection for WebKit2 and Windows. 6 https://bugs.webkit.org/show_bug.cgi?id=61931 7 8 This change implements layoutTextController.setTextDirection for WebKit2 9 and Windows so we can run a layout test added by r87770 on them. Each 10 implementation adds a wrapper function for Editor::setBaseWritingDirection() 11 so LayoutTestController can call it. 12 13 * WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp: Added 14 WKBundleFrameSetTextDirection to allow LayoutTestController to change the 15 text direction. 16 (WKBundleFrameSetTextDirection): 17 * WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h: ditto. 18 * WebProcess/WebPage/WebFrame.cpp: Added setTextDirection to allow 19 WKBundleFrame to change the text direction. 20 (WebKit::WebFrame::setTextDirection): 21 * WebProcess/WebPage/WebFrame.h: ditto. 22 1 23 2011-07-11 Benjamin Poulain <benjamin@webkit.org> 2 24 -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFrame.cpp
r86977 r90806 236 236 return toImpl(frameRef)->containsAnyFormElements(); 237 237 } 238 239 void WKBundleFrameSetTextDirection(WKBundleFrameRef frameRef, WKStringRef directionRef) 240 { 241 toImpl(frameRef)->setTextDirection(toImpl(directionRef)->string()); 242 } -
trunk/Source/WebKit2/WebProcess/InjectedBundle/API/c/WKBundleFramePrivate.h
r86977 r90806 52 52 53 53 WK_EXPORT bool WKBundleFrameContainsAnyFormElements(WKBundleFrameRef frame); 54 WK_EXPORT void WKBundleFrameSetTextDirection(WKBundleFrameRef frame, WKStringRef); 54 55 55 56 #ifdef __cplusplus -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.cpp
r86981 r90806 706 706 } 707 707 708 void WebFrame::setTextDirection(const String& direction) 709 { 710 if (!m_coreFrame || !m_coreFrame->editor()) 711 return; 712 713 if (direction == "auto") 714 m_coreFrame->editor()->setBaseWritingDirection(NaturalWritingDirection); 715 else if (direction == "ltr") 716 m_coreFrame->editor()->setBaseWritingDirection(LeftToRightWritingDirection); 717 else if (direction == "rtl") 718 m_coreFrame->editor()->setBaseWritingDirection(RightToLeftWritingDirection); 719 } 720 708 721 } // namespace WebKit -
trunk/Source/WebKit2/WebProcess/WebPage/WebFrame.h
r86977 r90806 122 122 String mimeTypeForResourceWithURL(const WebCore::KURL&) const; 123 123 124 void setTextDirection(const String&); 125 124 126 // Simple listener class used by plug-ins to know when frames finish or fail loading. 125 127 class LoadListener { -
trunk/Tools/ChangeLog
r90805 r90806 1 2011-07-11 Hironori Bono <hbono@chromium.org> 2 3 Reviewed by Adam Roben. 4 5 Implement layoutTestController.setTextDirection for WebKit2 and Windows. 6 https://bugs.webkit.org/show_bug.cgi?id=61931 7 8 This change implements layoutTextController.setTextDirection for WebKit2 9 and Windows so we can run a layout test added by r87770 on them. Each 10 implementation adds a wrapper function for Editor::setBaseWritingDirection() 11 so LayoutTestController can call it. 12 13 * DumpRenderTree/win/LayoutTestControllerWin.cpp: 14 (LayoutTestController::setTextDirection): Implemented the binding function 15 for layoutTestController.setTextDirection (Windows). 16 * WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl: 17 Added a binding function for layoutTestController.setTextDirection (WebKit2). 18 * WebKitTestRunner/InjectedBundle/LayoutTestController.cpp: ditto. 19 (WTR::LayoutTestController::setTextDirection): 20 * WebKitTestRunner/InjectedBundle/LayoutTestController.h: ditto. 21 1 22 2011-07-11 Raphael Kubo da Costa <kubo@profusion.mobi> 2 23 -
trunk/Tools/DumpRenderTree/win/LayoutTestControllerWin.cpp
r89733 r90806 1525 1525 void LayoutTestController::setTextDirection(JSStringRef direction) 1526 1526 { 1527 // FIXME: Implement. 1527 COMPtr<IWebFramePrivate> framePrivate(Query, frame); 1528 if (!framePrivate) 1529 return; 1530 1531 framePrivate->setTextDirection(bstrT(direction).GetBSTR()); 1528 1532 } 1529 1533 -
trunk/Tools/WebKitTestRunner/InjectedBundle/Bindings/LayoutTestController.idl
r89682 r90806 109 109 void setPOSIXLocale(in DOMString locale); 110 110 111 void setTextDirection(in DOMString direction); 112 111 113 void setWillSendRequestReturnsNull(in boolean flag); 112 114 }; -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.cpp
r89682 r90806 474 474 } 475 475 476 void LayoutTestController::setTextDirection(JSStringRef direction) 477 { 478 WKBundleFrameRef mainFrame = WKBundlePageGetMainFrame(InjectedBundle::shared().page()->page()); 479 return WKBundleFrameSetTextDirection(mainFrame, toWK(direction).get()); 480 } 481 476 482 } // namespace WTR -
trunk/Tools/WebKitTestRunner/InjectedBundle/LayoutTestController.h
r89682 r90806 163 163 void setWillSendRequestReturnsNull(bool f) { m_willSendRequestReturnsNull = f; } 164 164 165 void setTextDirection(JSStringRef); 166 165 167 private: 166 168 static const double waitToDumpWatchdogTimerInterval;
Note: See TracChangeset
for help on using the changeset viewer.