Changeset 104398 in webkit
- Timestamp:
- Jan 8, 2012 12:06:38 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r104394 r104398 1 2012-01-08 David Levin <levin@chromium.org> 2 3 [chromium] Add layout test support for autosize code in FrameView. 4 https://bugs.webkit.org/show_bug.cgi?id=73631 5 6 Reviewed by Dmitry Titov. 7 8 * fast/autoresize/basic-expected.txt: Added. 9 * fast/autoresize/basic.html: Added. Simple test to verify that autoresizing happens. 10 * platform/efl/Skipped: Skipped the new directory since the layout test 11 controller on this platform, doesn't support enableAutoResizeMode. 12 * platform/gtk/Skipped: Ditto. 13 * platform/mac/Skipped: Ditto. 14 * platform/qt/Skipped: Ditto. 15 * platform/win/Skipped: Ditto. 16 * platform/wincairo/Skipped: Ditto. 17 1 18 2012-01-07 Dmitry Lomov <dslomov@google.com> 2 19 -
trunk/LayoutTests/platform/efl/Skipped
r104358 r104398 478 478 fast/media/view-mode-media-feature.html 479 479 480 # EFL's LayoutTestController does not implement enableAutoResizeMode 481 fast/autoresize 482 480 483 # EFL's LayoutTestController does not implement setWindowIsKey 481 484 editing/selection/4975120.html -
trunk/LayoutTests/platform/gtk/Skipped
r104391 r104398 373 373 # supported. 374 374 fast/text/international/locale-sensitive-fonts.html 375 376 # Needs layoutTestController.enableAutoResizeMode() 377 fast/autoresize 375 378 376 379 # The GTK+ build bots don't yet have the muscle to run WebGL tests. -
trunk/LayoutTests/platform/mac/Skipped
r104358 r104398 133 133 fast/media/media-query-list-07.html 134 134 135 # Needs layoutTestController.enableAutoResizeMode() 136 fast/autoresize 137 135 138 # Test is flaky and thus not useful until fixed. 136 139 # https://bugs.webkit.org/show_bug.cgi?id=36642 -
trunk/LayoutTests/platform/qt/Skipped
r104358 r104398 694 694 fast/repaint/text-emphasis-v.html 695 695 fast/repaint/background-clip-text.html 696 697 # Needs layoutTestController.enableAutoResizeMode() 698 fast/autoresize 696 699 697 700 # This requires didClearWindowObjectForFrameInIsolatedWorld foo in FrameLoaderClient -
trunk/LayoutTests/platform/win/Skipped
r104358 r104398 1074 1074 # LayoutTestController::pageProperty is not implemented for WIN yet. 1075 1075 printing/page-rule-selection.html 1076 1077 # Needs layoutTestController.enableAutoResizeMode() 1078 fast/autoresize 1076 1079 1077 1080 # Hyphenation is not implemented yet. -
trunk/LayoutTests/platform/wincairo/Skipped
r104358 r104398 1613 1613 printing/page-rule-selection.html 1614 1614 1615 # Needs layoutTestController.enableAutoResizeMode() 1616 fast/autoresize 1617 1615 1618 # Hyphenation is not implemented yet. 1616 1619 fast/text/hyphenate-character.html -
trunk/Tools/ChangeLog
r104387 r104398 1 2012-01-08 David Levin <levin@chromium.org> 2 3 [chromium] Add layout test support for autosize code in FrameView. 4 https://bugs.webkit.org/show_bug.cgi?id=73631 5 6 Reviewed by Dmitry Titov. 7 8 * DumpRenderTree/chromium/LayoutTestController.cpp: 9 (LayoutTestController::LayoutTestController): Expose the new autoresize method. 10 (LayoutTestController::reset): Set the autoresize mode back to false. 11 (LayoutTestController::enableAutoResizeMode): A way to turn on autoresizing from javascript code in DumpRenderTree. 12 * DumpRenderTree/chromium/LayoutTestController.h: 13 * DumpRenderTree/chromium/WebViewHost.cpp: 14 (WebViewHost::didAutoResize): Handle the autoresize callback so that the outer bounds change appropriately. 15 * DumpRenderTree/chromium/WebViewHost.h: 16 1 17 2012-01-07 Zan Dobersek <zandobersek@gmail.com> 2 18 -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.cpp
r104005 r104398 117 117 bindMethod("dumpCreateView", &LayoutTestController::dumpCreateView); 118 118 bindMethod("elementDoesAutoCompleteForElementWithId", &LayoutTestController::elementDoesAutoCompleteForElementWithId); 119 bindMethod("enableAutoResizeMode", &LayoutTestController::enableAutoResizeMode); 119 120 bindMethod("evaluateInWebInspector", &LayoutTestController::evaluateInWebInspector); 120 121 bindMethod("evaluateScriptInIsolatedWorld", &LayoutTestController::evaluateScriptInIsolatedWorld); … … 609 610 #endif 610 611 m_shell->webView()->removeAllUserContent(); 612 WebKit::WebSize empty; 613 m_shell->webView()->enableAutoResizeMode(false, empty, empty); 611 614 } 612 615 m_dumpAsText = false; … … 1097 1100 WebString elementId = cppVariantToWebString(arguments[0]); 1098 1101 result->set(elementDoesAutoCompleteForElementWithId(elementId)); 1102 } 1103 1104 void LayoutTestController::enableAutoResizeMode(const CppArgumentList& arguments, CppVariant* result) 1105 { 1106 if (arguments.size() != 4) { 1107 result->set(false); 1108 return; 1109 } 1110 int minWidth = cppVariantToInt32(arguments[0]); 1111 int minHeight = cppVariantToInt32(arguments[1]); 1112 WebKit::WebSize minSize(minWidth, minHeight); 1113 1114 int maxWidth = cppVariantToInt32(arguments[2]); 1115 int maxHeight = cppVariantToInt32(arguments[3]); 1116 WebKit::WebSize maxSize(maxWidth, maxHeight); 1117 1118 m_shell->webView()->enableAutoResizeMode(true, minSize, maxSize); 1119 result->set(true); 1099 1120 } 1100 1121 -
trunk/Tools/DumpRenderTree/chromium/LayoutTestController.h
r104005 r104398 244 244 void pauseTransitionAtTimeOnElementWithId(const CppArgumentList&, CppVariant*); 245 245 void elementDoesAutoCompleteForElementWithId(const CppArgumentList&, CppVariant*); 246 void enableAutoResizeMode(const CppArgumentList&, CppVariant*); 246 247 void numberOfActiveAnimations(const CppArgumentList&, CppVariant*); 247 248 void suspendAnimations(const CppArgumentList&, CppVariant*); -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.cpp
r104005 r104398 710 710 } 711 711 712 void WebViewHost::didAutoResize(const WebSize& newSize) 713 { 714 // Purposely don't include the virtualWindowBorder in this case so that 715 // window.inner[Width|Height] is the same as window.outer[Width|Height] 716 setWindowRect(WebRect(0, 0, newSize.width, newSize.height)); 717 } 718 712 719 void WebViewHost::scheduleComposite() 713 720 { -
trunk/Tools/DumpRenderTree/chromium/WebViewHost.h
r104005 r104398 155 155 virtual void didInvalidateRect(const WebKit::WebRect&); 156 156 virtual void didScrollRect(int dx, int dy, const WebKit::WebRect&); 157 virtual void didAutoResize(const WebKit::WebSize& newSize); 157 158 virtual void scheduleComposite(); 158 159 #if ENABLE(REQUEST_ANIMATION_FRAME)
Note: See TracChangeset
for help on using the changeset viewer.