Changeset 62830 in webkit
- Timestamp:
- Jul 8, 2010 1:57:28 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r62828 r62830 1 2010-07-07 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Add DRT support for pageProperty etc. 6 7 https://bugs.webkit.org/show_bug.cgi?id=41584 8 9 Unskip: 10 printing/page-rule-selection.html 11 printing/page-format-data.html 12 13 * platform/qt/Skipped: 14 1 15 2010-07-08 Alexey Proskuryakov <ap@apple.com> 2 16 -
trunk/LayoutTests/platform/qt/Skipped
r62803 r62830 868 868 fast/ruby/rubyDOM-remove-text1.html 869 869 fast/ruby/rubyDOM-remove-text2.html 870 871 # Missing LayoutTestController::pageProperty.872 # https://bugs.webkit.org/show_bug.cgi?id=35961873 printing/page-rule-selection.html874 875 # Missing LayoutTestController::isPageBoxVisible, pageAreaRectInPixels, and preferredPageSizeInPixels.876 printing/page-format-data.html877 870 878 871 # ============================================================================= # -
trunk/WebKit/qt/ChangeLog
r62792 r62830 1 2010-07-07 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Add DRT support for pageProperty etc. 6 7 https://bugs.webkit.org/show_bug.cgi?id=41584 8 9 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 10 (DumpRenderTreeSupportQt::isPageBoxVisible): 11 (DumpRenderTreeSupportQt::pageSizeAndMarginsInPixels): 12 (DumpRenderTreeSupportQt::pageProperty): 13 (DumpRenderTreeSupportQt::addUserStyleSheet): 14 * WebCoreSupport/DumpRenderTreeSupportQt.h: 15 1 16 2010-07-08 Sam Weinig <sam@webkit.org> 2 17 -
trunk/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r62450 r62830 670 670 } 671 671 672 bool DumpRenderTreeSupportQt::isPageBoxVisible(QWebFrame* frame, int pageIndex) 673 { 674 WebCore::Frame* coreFrame = QWebFramePrivate::core(frame); 675 return coreFrame->document()->isPageBoxVisible(pageIndex); 676 } 677 678 QString DumpRenderTreeSupportQt::pageSizeAndMarginsInPixels(QWebFrame* frame, int pageIndex, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft) 679 { 680 WebCore::Frame* coreFrame = QWebFramePrivate::core(frame); 681 return PrintContext::pageSizeAndMarginsInPixels(coreFrame, pageIndex, width, height, 682 marginTop, marginRight, marginBottom, marginLeft); 683 } 684 685 QString DumpRenderTreeSupportQt::pageProperty(QWebFrame* frame, const QString& propertyName, int pageNumber) 686 { 687 WebCore::Frame* coreFrame = QWebFramePrivate::core(frame); 688 return PrintContext::pageProperty(coreFrame, propertyName.toUtf8().constData(), pageNumber); 689 } 690 691 void DumpRenderTreeSupportQt::addUserStyleSheet(QWebPage* page, const QString& sourceCode) 692 { 693 page->handle()->page->group().addUserStyleSheetToWorld(mainThreadNormalWorld(), sourceCode, QUrl(), 0, 0); 694 } 695 672 696 // Provide a backward compatibility with previously exported private symbols as of QtWebKit 4.6 release 673 697 -
trunk/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
r62296 r62830 136 136 137 137 static void setCustomPolicyDelegate(bool enabled, bool permissive); 138 139 static bool isPageBoxVisible(QWebFrame* frame, int pageIndex); 140 141 static QString pageSizeAndMarginsInPixels(QWebFrame* frame, int pageIndex, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft); 142 static QString pageProperty(QWebFrame* frame, const QString& propertyName, int pageNumber); 143 static void addUserStyleSheet(QWebPage* page, const QString& sourceCode); 144 138 145 }; 139 146 -
trunk/WebKitTools/ChangeLog
r62829 r62830 1 2010-07-07 Robert Hogan <robert@webkit.org> 2 3 Reviewed by Kenneth Rohde Christiansen. 4 5 [Qt] Add DRT support for pageProperty etc. 6 7 https://bugs.webkit.org/show_bug.cgi?id=41584 8 9 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: 10 (LayoutTestController::isPageBoxVisible): 11 (LayoutTestController::pageSizeAndMarginsInPixels): 12 (LayoutTestController::pageProperty): 13 (LayoutTestController::addUserStyleSheet): 14 * DumpRenderTree/qt/LayoutTestControllerQt.h: 15 1 16 2010-07-08 Martin Robinson <mrobinson@igalia.com> 2 17 -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r62454 r62830 688 688 } 689 689 690 bool LayoutTestController::isPageBoxVisible(int pageIndex) 691 { 692 return DumpRenderTreeSupportQt::isPageBoxVisible(m_drt->webPage()->mainFrame(), pageIndex); 693 } 694 695 QString LayoutTestController::pageSizeAndMarginsInPixels(int pageIndex, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft) 696 { 697 return DumpRenderTreeSupportQt::pageSizeAndMarginsInPixels(m_drt->webPage()->mainFrame(), pageIndex, 698 width, height, marginTop, marginRight, marginBottom, marginLeft); 699 } 700 701 QString LayoutTestController::pageProperty(const QString& propertyName, int pageNumber) 702 { 703 return DumpRenderTreeSupportQt::pageProperty(m_drt->webPage()->mainFrame(), propertyName, pageNumber); 704 } 705 706 void LayoutTestController::addUserStyleSheet(const QString& sourceCode) 707 { 708 DumpRenderTreeSupportQt::addUserStyleSheet(m_drt->webPage(), sourceCode); 709 } 710 690 711 const unsigned LayoutTestController::maxViewWidth = 800; 691 712 const unsigned LayoutTestController::maxViewHeight = 600; -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
r62454 r62830 218 218 219 219 void evaluateScriptInIsolatedWorld(int worldID, const QString& script); 220 bool isPageBoxVisible(int pageIndex); 221 QString pageSizeAndMarginsInPixels(int pageIndex, int width, int height, int marginTop, int marginRight, int marginBottom, int marginLeft); 222 QString pageProperty(const QString& propertyName, int pageNumber); 223 void addUserStyleSheet(const QString& sourceCode); 220 224 221 225 private slots:
Note: See TracChangeset
for help on using the changeset viewer.