Changeset 59373 in webkit
- Timestamp:
- May 13, 2010 10:59:10 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r59369 r59373 1 2010-05-13 Antonio Gomes <tonikitoo@webkit.org>, Yi Shen <yi.4.shen@nokia.com> 2 3 Reviewed by Kenneth Christiansen. 4 5 [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo 6 https://bugs.webkit.org/show_bug.cgi?id=37759 7 8 * platform/qt/Skipped: 9 1 10 2010-05-13 Martin Robinson <mrobinson@igalia.com> 2 11 Reviewed by Gustavo Noronha. -
trunk/LayoutTests/platform/qt/Skipped
r59225 r59373 318 318 # Missing layoutTestController.evaluateScriptInIsolatedWorld() 319 319 storage/open-database-creation-callback-isolated-world.html 320 321 # Missing layoutTestController.computedStyleIncludingVisitedInfo()322 fast/history/multiple-classes-visited.html323 fast/history/nested-visited-test.html324 fast/history/self-is-visited.html325 fast/history/sibling-visited-test.html326 320 327 321 # Missing layoutTestController.dumpWillCacheResponse -
trunk/WebKit/qt/ChangeLog
r59335 r59373 1 2010-05-13 Antonio Gomes <tonikitoo@webkit.org>, Yi Shen <yi.4.shen@nokia.com> 2 3 Reviewed by Kenneth Christiansen. 4 5 [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo 6 https://bugs.webkit.org/show_bug.cgi?id=37759 7 8 * WebCoreSupport/DumpRenderTreeSupportQt.cpp: 9 (DumpRenderTreeSupportQt::markerTextForListItem): 10 (DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo): 11 * WebCoreSupport/DumpRenderTreeSupportQt.h: 12 1 13 2010-05-12 Joe Ligman <joseph.ligman@nokia.com> 2 14 -
trunk/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.cpp
r58527 r59373 24 24 #include "DumpRenderTreeSupportQt.h" 25 25 26 #include "CSSComputedStyleDeclaration.h" 26 27 #include "ContextMenu.h" 27 28 #include "ContextMenuClientQt.h" … … 48 49 #include "WorkerThread.h" 49 50 51 #include "qwebelement.h" 50 52 #include "qwebframe.h" 51 53 #include "qwebframe_p.h" … … 378 380 } 379 381 382 QVariantMap DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo(const QWebElement& element) 383 { 384 QVariantMap res; 385 386 WebCore::Element* webElement = element.m_element; 387 if (!webElement) 388 return res; 389 390 RefPtr<WebCore::CSSComputedStyleDeclaration> style = computedStyle(webElement, true); 391 for (int i = 0; i < style->length(); i++) { 392 QString name = style->item(i); 393 QString value = (static_cast<WebCore::CSSStyleDeclaration*>(style.get()))->getPropertyValue(name); 394 res[name] = QVariant(value); 395 } 396 return res; 397 } 398 380 399 QVariantList DumpRenderTreeSupportQt::selectedRange(QWebPage* page) 381 400 { -
trunk/WebKit/qt/WebCoreSupport/DumpRenderTreeSupportQt.h
r58218 r59373 27 27 #include <QVariant> 28 28 29 #include "qwebelement.h" 30 29 class QWebElement; 30 class QWebFrame; 31 31 class QWebPage; 32 class QWebFrame;33 32 34 33 class QWEBKIT_EXPORT DumpRenderTreeSupportQt { … … 86 85 87 86 static QString markerTextForListItem(const QWebElement& listItem); 87 static QVariantMap computedStyleIncludingVisitedInfo(const QWebElement& element); 88 88 }; 89 89 -
trunk/WebKitTools/ChangeLog
r59371 r59373 1 2010-05-13 Antonio Gomes <tonikitoo@webkit.org>, Yi Shen <yi.4.shen@nokia.com> 2 3 Reviewed by Kenneth Christiansen. 4 5 [Qt] Add LayoutTestController interface: computedStyleIncludingVisitedInfo 6 https://bugs.webkit.org/show_bug.cgi?id=37759 7 8 WebKitTools: 9 10 * DumpRenderTree/qt/LayoutTestControllerQt.cpp: 11 (LayoutTestController::computedStyleIncludingVisitedInfo): 12 * DumpRenderTree/qt/LayoutTestControllerQt.h: 13 1 14 2010-05-10 Adam Roben <aroben@apple.com> 2 15 -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.cpp
r58917 r59373 625 625 } 626 626 627 QVariantMap LayoutTestController::computedStyleIncludingVisitedInfo(const QWebElement& element) const 628 { 629 return DumpRenderTreeSupportQt::computedStyleIncludingVisitedInfo(element); 630 } 631 627 632 void LayoutTestController::authenticateSession(const QString&, const QString&, const QString&) 628 633 { 629 634 // FIXME: If there is a concept per-session (per-process) credential storage, the credentials should be added to it for later use. 630 635 } 631 632 636 633 637 const unsigned LayoutTestController::maxViewWidth = 800; -
trunk/WebKitTools/DumpRenderTree/qt/LayoutTestControllerQt.h
r58920 r59373 187 187 188 188 QString markerTextForListItem(const QWebElement& listItem); 189 QVariantMap computedStyleIncludingVisitedInfo(const QWebElement& element) const; 189 190 190 191 // Simulate a request an embedding application could make, populating per-session credential storage.
Note: See TracChangeset
for help on using the changeset viewer.