Changeset 120428 in webkit
- Timestamp:
- Jun 15, 2012, 2:24:04 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
LayoutTests/ChangeLog (modified) (1 diff)
-
LayoutTests/platform/efl/TestExpectations (modified) (1 diff)
-
Source/WebKit/efl/ChangeLog (modified) (1 diff)
-
Source/WebKit/efl/ewk/ewk_frame.cpp (modified) (1 diff)
-
Tools/ChangeLog (modified) (1 diff)
-
Tools/DumpRenderTree/LayoutTestController.cpp (modified) (3 diffs)
-
Tools/DumpRenderTree/LayoutTestController.h (modified) (2 diffs)
-
Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r120426 r120428 1 2012-06-15 Christophe Dumez <christophe.dumez@intel.com> 2 3 [EFL] EFL's LayoutTestController does not support titleTextDirection 4 https://bugs.webkit.org/show_bug.cgi?id=86475 5 6 Reviewed by Hajime Morita. 7 8 Unskip title-directionality tests now that EFL's LayoutTestController 9 supports titleTextDirection. 10 11 * platform/efl/TestExpectations: 12 1 13 2012-06-15 Emil A Eklund <eae@chromium.org> 2 14 -
trunk/LayoutTests/platform/efl/TestExpectations
r120371 r120428 463 463 BUGWK84778 : ietestcenter/css3/multicolumn/column-width-negative-001.htm = IMAGE 464 464 465 // Expose title direction in WebKit API466 BUGWK58845 : fast/dom/title-directionality.html = TEXT467 BUGWK58845 : fast/dom/title-directionality-removeChild.html = TEXT468 469 465 // Tests that sometimes fail on the bot (for GTK and Chromium ports as well) 470 466 BUGWK77631 : fast/multicol/span/span-as-immediate-child-property-removal.html = TEXT PASS -
trunk/Source/WebKit/efl/ChangeLog
r120369 r120428 1 2012-06-15 Christophe Dumez <christophe.dumez@intel.com> 2 3 [EFL] EFL's LayoutTestController does not support titleTextDirection 4 https://bugs.webkit.org/show_bug.cgi?id=86475 5 6 Reviewed by Hajime Morita. 7 8 Emit the "title,changed" signal even if the title direction has 9 changed but not its text. 10 11 * ewk/ewk_frame.cpp: 12 (ewk_frame_title_set): 13 1 14 2012-06-14 Ryuan Choi <ryuan.choi@samsung.com> 2 15 -
trunk/Source/WebKit/efl/ewk/ewk_frame.cpp
r119243 r120428 1617 1617 void ewk_frame_title_set(Evas_Object* ewkFrame, const Ewk_Text_With_Direction* title) 1618 1618 { 1619 DBG("ewkFrame=%p, title=%s ", ewkFrame, title->string ? title->string : "(null)");1619 DBG("ewkFrame=%p, title=%s, direction=%s", ewkFrame, title->string ? title->string : "(null)", title->direction == EWK_TEXT_DIRECTION_LEFT_TO_RIGHT ? "ltr" : "rtl"); 1620 1620 EWK_FRAME_SD_GET_OR_RETURN(ewkFrame, smartData); 1621 if (!eina_stringshare_replace(&smartData->title.string, title->string) )1621 if (!eina_stringshare_replace(&smartData->title.string, title->string) && (smartData->title.direction == title->direction)) 1622 1622 return; 1623 1623 smartData->title.direction = title->direction; -
trunk/Tools/ChangeLog
r120427 r120428 1 2012-06-15 Christophe Dumez <christophe.dumez@intel.com> 2 3 [EFL] EFL's LayoutTestController does not support titleTextDirection 4 https://bugs.webkit.org/show_bug.cgi?id=86475 5 6 Reviewed by Hajime Morita. 7 8 Add titleTextDirection getter and setter to LayoutTestController and 9 expose its value to JavaScript. 10 Update the titleTextDirection value from EFL's "title,changed" 11 callback in DumpRenderTree. 12 13 * DumpRenderTree/LayoutTestController.cpp: 14 (LayoutTestController::LayoutTestController): 15 (getTitleTextDirectionCallback): 16 (LayoutTestController::staticValues): 17 * DumpRenderTree/LayoutTestController.h: 18 (LayoutTestController::titleTextDirection): 19 (LayoutTestController::setTitleTextDirection): 20 (LayoutTestController): 21 * DumpRenderTree/efl/DumpRenderTreeChrome.cpp: 22 (DumpRenderTreeChrome::onFrameTitleChanged): 23 1 24 2012-06-15 Christophe Dumez <christophe.dumez@intel.com> 2 25 -
trunk/Tools/DumpRenderTree/LayoutTestController.cpp
r120054 r120428 97 97 , m_testPathOrURL(testPathOrURL) 98 98 , m_expectedPixelHash(expectedPixelHash) 99 , m_titleTextDirection("ltr") 99 100 { 100 101 } … … 2159 2160 #endif 2160 2161 2162 static JSValueRef getTitleTextDirectionCallback(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef* exception) 2163 { 2164 LayoutTestController* controller = static_cast<LayoutTestController*>(JSObjectGetPrivate(thisObject)); 2165 JSRetainPtr<JSStringRef> titleDirection(Adopt, JSStringCreateWithUTF8CString(controller->titleTextDirection().c_str())); 2166 return JSValueMakeString(context, titleDirection.get()); 2167 } 2168 2161 2169 static bool setGlobalFlagCallback(JSContextRef context, JSObjectRef thisObject, JSStringRef propertyName, JSValueRef value, JSValueRef* exception) 2162 2170 { … … 2262 2270 { "platformName", getPlatformNameCallback, 0, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2263 2271 #endif 2272 { "titleTextDirection", getTitleTextDirectionCallback, 0, kJSPropertyAttributeReadOnly | kJSPropertyAttributeDontDelete }, 2264 2273 { 0, 0, 0, 0 } 2265 2274 }; -
trunk/Tools/DumpRenderTree/LayoutTestController.h
r120054 r120428 360 360 361 361 void setTextDirection(JSStringRef); 362 const std::string& titleTextDirection() const { return m_titleTextDirection; } 363 void setTitleTextDirection(const std::string& direction) { m_titleTextDirection = direction; } 362 364 363 365 // Custom full screen behavior. … … 424 426 std::string m_testPathOrURL; 425 427 std::string m_expectedPixelHash; // empty string if no hash 428 std::string m_titleTextDirection; 426 429 427 430 std::set<std::string> m_willSendRequestClearHeaders; -
trunk/Tools/DumpRenderTree/efl/DumpRenderTreeChrome.cpp
r120386 r120428 470 470 printf("WebView updated the title for history URL \"%s\" to \"%s\".\n", ewk_frame_uri_get(frame) 471 471 , (titleText && titleText->string) ? titleText->string : ""); 472 473 gLayoutTestController->setTitleTextDirection(titleText->direction == EWK_TEXT_DIRECTION_LEFT_TO_RIGHT ? "ltr" : "rtl"); 472 474 } 473 475
Note:
See TracChangeset
for help on using the changeset viewer.