Changeset 84199 in webkit
- Timestamp:
- Apr 18, 2011 3:58:38 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 2 added
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ChangeLog
r84149 r84199 1 2011-04-18 Evan Martin <evan@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [chromium] expose title direction to webkit client 6 https://bugs.webkit.org/show_bug.cgi?id=58823 7 8 * Tools/DumpRenderTree/chromium/LayoutTestController.cpp: 9 * Tools/DumpRenderTree/chromium/LayoutTestController.h: 10 Adapt to new API. Expose title direction to JS so it can be tested. 11 12 * Tools/DumpRenderTree/chromium/WebViewHost.cpp: 13 * Tools/DumpRenderTree/chromium/WebViewHost.h: 14 Provide new API. 15 1 16 2011-04-18 Hans Wennborg <hans@chromium.org> 2 17 -
trunk/LayoutTests/ChangeLog
r84183 r84199 1 2011-04-18 Evan Martin <evan@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [chromium] expose title direction to webkit client 6 https://bugs.webkit.org/show_bug.cgi?id=58823 7 8 New test that checks the directionality of the title for some 9 simple pages. 10 11 * fast/dom/title-directionality-expected.txt: Added. 12 * fast/dom/title-directionality.html: Added. 13 1 14 2011-04-18 Chang Shu <cshu@webkit.org> 2 15 -
trunk/LayoutTests/platform/gtk/Skipped
r84175 r84199 1387 1387 # Quota API is not supported. 1388 1388 storage/storageinfo-query-usage.html 1389 1390 # Expose title direction in WebKit API 1391 # https://bugs.webkit.org/show_bug.cgi?id=58845 1392 fast/dom/title-directionality.html -
trunk/LayoutTests/platform/mac/Skipped
r84110 r84199 327 327 # Quota API is not supported. 328 328 storage/storageinfo-query-usage.html 329 330 # Expose title direction in WebKit API 331 # https://bugs.webkit.org/show_bug.cgi?id=58845 332 fast/dom/title-directionality.html -
trunk/LayoutTests/platform/qt/Skipped
r84168 r84199 3496 3496 # Quota API is not yet supported. 3497 3497 storage/storageinfo-query-usage.html 3498 3499 # Expose title direction in WebKit API 3500 # https://bugs.webkit.org/show_bug.cgi?id=58845 3501 fast/dom/title-directionality.html -
trunk/LayoutTests/platform/win/Skipped
r84142 r84199 1241 1241 # Quota API is not supported. 1242 1242 storage/storageinfo-query-usage.html 1243 1244 # Expose title direction in WebKit API 1245 # https://bugs.webkit.org/show_bug.cgi?id=58845 1246 fast/dom/title-directionality.html -
trunk/Source/WebKit/chromium/ChangeLog
r84101 r84199 1 2011-04-18 Evan Martin <evan@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [chromium] expose title direction to webkit client 6 https://bugs.webkit.org/show_bug.cgi?id=58823 7 8 * public/WebFrameClient.h: 9 (WebKit::WebFrameClient::didReceiveTitle): 10 Add new param to API. 11 12 * src/FrameLoaderClientImpl.cpp: 13 (WebKit::FrameLoaderClientImpl::dispatchDidReceiveTitle): 14 Pass new param in API. 15 1 16 2011-04-17 Patrick Gansterer <paroga@webkit.org> 2 17 -
trunk/Source/WebKit/chromium/public/WebFrameClient.h
r83258 r84199 37 37 #include "WebNavigationType.h" 38 38 #include "WebStorageQuotaType.h" 39 #include "WebTextDirection.h" 39 40 #include "WebURLError.h" 40 41 … … 207 208 208 209 // The page title is available. 209 virtual void didReceiveTitle(WebFrame*, const WebString& title) { } 210 // FIXME: remove default arg once Chrome is updated. 211 virtual void didReceiveTitle(WebFrame*, const WebString& title, WebTextDirection direction = WebTextDirectionDefault) { } 210 212 211 213 // The icons for the page have changed. -
trunk/Source/WebKit/chromium/src/FrameLoaderClientImpl.cpp
r84055 r84199 745 745 void FrameLoaderClientImpl::dispatchDidReceiveTitle(const StringWithDirection& title) 746 746 { 747 // FIXME: use direction of title. 748 if (m_webFrame->client()) 749 m_webFrame->client()->didReceiveTitle(m_webFrame, title.string()); 747 if (m_webFrame->client()) 748 m_webFrame->client()->didReceiveTitle(m_webFrame, title.string(), title.direction() == LTR ? WebTextDirectionLeftToRight : WebTextDirectionRightToLeft); 750 749 } 751 750 -
trunk/Tools/ChangeLog
r84197 r84199 1 2011-04-18 Evan Martin <evan@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 [chromium] expose title direction to webkit client 6 https://bugs.webkit.org/show_bug.cgi?id=58823 7 8 * DumpRenderTree/chromium/LayoutTestController.cpp: 9 (LayoutTestController::LayoutTestController): 10 (LayoutTestController::reset): 11 * DumpRenderTree/chromium/LayoutTestController.h: 12 (LayoutTestController::setTitleTextDirection): 13 Add member and setter to let us stash the title direction at load time. 14 15 * DumpRenderTree/chromium/WebViewHost.cpp: 16 (WebViewHost::didReceiveTitle): 17 * DumpRenderTree/chromium/WebViewHost.h: 18 Adapt to new API; push the title into layoutTestController when we 19 receive it. 20 1 21 2011-04-18 Dirk Pranke <dpranke@chromium.org> 2 22 -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp
r82469 r84199 215 215 // webHistoryItemCount is used by tests in LayoutTests\http\tests\history 216 216 bindProperty("webHistoryItemCount", &m_webHistoryItemCount); 217 bindProperty("titleTextDirection", &m_titleTextDirection); 217 218 } 218 219 … … 574 575 m_globalFlag.set(false); 575 576 m_webHistoryItemCount.set(0); 577 m_titleTextDirection.set("ltr"); 576 578 m_userStyleSheetLocation = WebURL(); 577 579 -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.h
r82469 r84199 45 45 #include "Task.h" 46 46 #include "WebString.h" 47 #include "WebTextDirection.h" 47 48 #include "WebURL.h" 48 49 #include <wtf/Deque.h> … … 392 393 bool deferMainResourceDataLoad() { return m_deferMainResourceDataLoad; } 393 394 void setShowDebugLayerTree(bool value) { m_showDebugLayerTree = value; } 395 void setTitleTextDirection(WebKit::WebTextDirection dir) 396 { 397 m_titleTextDirection.set(dir == WebKit::WebTextDirectionLeftToRight ? "ltr" : "rtl"); 398 } 394 399 395 400 bool testRepaint() const { return m_testRepaint; } … … 575 580 CppVariant m_webHistoryItemCount; 576 581 582 // Bound variable tracking the directionality of the <title> tag. 583 CppVariant m_titleTextDirection; 584 577 585 WebKit::WebURL m_userStyleSheetLocation; 578 586 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r84101 r84199 933 933 } 934 934 935 void WebViewHost::didReceiveTitle(WebFrame* frame, const WebString& title )935 void WebViewHost::didReceiveTitle(WebFrame* frame, const WebString& title, WebTextDirection direction) 936 936 { 937 937 WebCString title8 = title.utf8(); … … 946 946 947 947 setPageTitle(title); 948 layoutTestController()->setTitleTextDirection(direction); 948 949 } 949 950 -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.h
r83941 r84199 193 193 virtual void didCommitProvisionalLoad(WebKit::WebFrame*, bool isNewNavigation); 194 194 virtual void didClearWindowObject(WebKit::WebFrame*); 195 virtual void didReceiveTitle(WebKit::WebFrame*, const WebKit::WebString& );195 virtual void didReceiveTitle(WebKit::WebFrame*, const WebKit::WebString&, WebKit::WebTextDirection); 196 196 virtual void didFinishDocumentLoad(WebKit::WebFrame*); 197 197 virtual void didHandleOnloadEvents(WebKit::WebFrame*);
Note: See TracChangeset
for help on using the changeset viewer.