Changeset 95604 in webkit
- Timestamp:
- Sep 21, 2011 1:59:13 AM (13 years ago)
- Location:
- trunk/Source
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r95600 r95604 1 2011-09-21 Andras Becsi <andras.becsi@nokia.com> 2 3 [Qt] Remove Qt specific code from css/SelectorChecker.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=67702 5 6 Reviewed by Csaba Osztrogonác. 7 8 No new tests needed. 9 10 * css/SelectorChecker.cpp: Move Qt-specific code to the Qt-specific WebPlatformStrategies. 11 (WebCore::SelectorChecker::determineLinkStateSlowCase): 12 * platform/VisitedLinkStrategy.h: 13 1 14 2011-09-16 MORITA Hajime <morrita@google.com> 2 15 -
trunk/Source/WebCore/css/SelectorChecker.cpp
r95295 r95604 60 60 #endif 61 61 62 #if PLATFORM(QT)63 //FIXME: Remove this Qt specific code from a platform neutral file.64 #include <qwebhistoryinterface.h>65 #endif66 67 62 namespace WebCore { 68 63 … … 231 226 if (!attr || attr->isNull()) 232 227 return NotInsideLink; 233 234 #if PLATFORM(QT) 235 //FIXME: Remove this Qt specific code from a platform neutral file. 236 Vector<UChar, 512> url; 237 visitedURL(m_document->baseURL(), *attr, url); 238 if (url.isEmpty()) 239 return InsideUnvisitedLink; 240 241 // If the Qt4.4 interface for the history is used, we will have to fallback 242 // to the old global history. 243 QWebHistoryInterface* iface = QWebHistoryInterface::defaultInterface(); 244 if (iface) 245 return iface->historyContains(QString(reinterpret_cast<QChar*>(url.data()), url.size())) ? InsideVisitedLink : InsideUnvisitedLink; 246 247 LinkHash hash = visitedLinkHash(url.data(), url.size()); 248 if (!hash) 249 return InsideUnvisitedLink; 250 #else 228 251 229 LinkHash hash = visitedLinkHash(m_document->baseURL(), *attr); 252 230 if (!hash) 253 231 return InsideUnvisitedLink; 254 #endif 255 232 256 233 Frame* frame = m_document->frame(); 257 234 if (!frame) … … 265 242 266 243 #if USE(PLATFORM_STRATEGIES) 267 return platformStrategies()->visitedLinkStrategy()->isLinkVisited(page, hash ) ? InsideVisitedLink : InsideUnvisitedLink;244 return platformStrategies()->visitedLinkStrategy()->isLinkVisited(page, hash, m_document->baseURL(), *attr) ? InsideVisitedLink : InsideUnvisitedLink; 268 245 #else 269 246 return page->group().isLinkVisited(hash) ? InsideVisitedLink : InsideUnvisitedLink; -
trunk/Source/WebCore/platform/VisitedLinkStrategy.h
r64527 r95604 33 33 typedef uint64_t LinkHash; 34 34 class Page; 35 class KURL; 35 36 36 37 class VisitedLinkStrategy { 37 38 public: 38 virtual bool isLinkVisited(Page*, LinkHash ) = 0;39 virtual bool isLinkVisited(Page*, LinkHash, const KURL& baseURL, const AtomicString& attributeURL) = 0; 39 40 virtual void addVisitedLink(Page*, LinkHash) = 0; 40 41 -
trunk/Source/WebKit/mac/ChangeLog
r95570 r95604 1 2011-09-21 Andras Becsi <andras.becsi@nokia.com> 2 3 [Qt] Remove Qt specific code from css/SelectorChecker.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=67702 5 6 Reviewed by Csaba Osztrogonác. 7 8 * WebCoreSupport/WebPlatformStrategies.h: 9 * WebCoreSupport/WebPlatformStrategies.mm: 10 (WebPlatformStrategies::isLinkVisited): 11 1 12 2011-09-20 Anders Carlsson <andersca@apple.com> 2 13 -
trunk/Source/WebKit/mac/WebCoreSupport/WebPlatformStrategies.h
r83985 r95604 52 52 53 53 // WebCore::VisitedLinkStrategy 54 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash );54 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash, const WebCore::KURL& baseURL, const WTF::AtomicString& attributeURL); 55 55 virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash); 56 56 }; -
trunk/Source/WebKit/mac/WebCoreSupport/WebPlatformStrategies.mm
r83985 r95604 82 82 } 83 83 84 bool WebPlatformStrategies::isLinkVisited(Page* page, LinkHash hash )84 bool WebPlatformStrategies::isLinkVisited(Page* page, LinkHash hash, const KURL&, const AtomicString&) 85 85 { 86 86 return page->group().isLinkVisited(hash); -
trunk/Source/WebKit/qt/ChangeLog
r95548 r95604 1 2011-09-21 Andras Becsi <andras.becsi@nokia.com> 2 3 [Qt] Remove Qt specific code from css/SelectorChecker.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=67702 5 6 Reviewed by Csaba Osztrogonác. 7 8 * WebCoreSupport/WebPlatformStrategies.cpp: Check the Qt global history here, instead of a platform independent file. 9 (WebPlatformStrategies::isLinkVisited): 10 * WebCoreSupport/WebPlatformStrategies.h: 11 1 12 2011-09-20 Jarred Nicholls <jarred@sencha.com> 2 13 -
trunk/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.cpp
r90101 r95604 40 40 #include <QCoreApplication> 41 41 #include <QLocale> 42 #include <qwebhistoryinterface.h> 42 43 #include <qwebpage.h> 43 44 #include <qwebpluginfactory.h> … … 744 745 // VisitedLinkStrategy 745 746 746 bool WebPlatformStrategies::isLinkVisited(Page* page, LinkHash hash) 747 { 747 bool WebPlatformStrategies::isLinkVisited(Page* page, LinkHash hash, const KURL& baseURL, const AtomicString& attributeURL) 748 { 749 ASSERT(hash); 750 751 Vector<UChar, 512> url; 752 visitedURL(baseURL, attributeURL, url); 753 754 // If the Qt4.4 interface for the history is used, we will have to fallback 755 // to the old global history. 756 QWebHistoryInterface* iface = QWebHistoryInterface::defaultInterface(); 757 if (iface) 758 return iface->historyContains(QString(reinterpret_cast<QChar*>(url.data()), url.size())); 759 748 760 return page->group().isLinkVisited(hash); 749 761 } -
trunk/Source/WebKit/qt/WebCoreSupport/WebPlatformStrategies.h
r90101 r95604 154 154 155 155 // WebCore::VisitedLinkStrategy 156 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash );156 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash, const WebCore::KURL& baseURL, const WTF::AtomicString& attributeURL); 157 157 virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash); 158 158 }; -
trunk/Source/WebKit/win/ChangeLog
r95387 r95604 1 2011-09-21 Andras Becsi <andras.becsi@nokia.com> 2 3 [Qt] Remove Qt specific code from css/SelectorChecker.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=67702 5 6 Reviewed by Csaba Osztrogonác. 7 8 * WebCoreSupport/WebPlatformStrategies.cpp: Modify to match new prototype. 9 (WebPlatformStrategies::isLinkVisited): 10 * WebCoreSupport/WebPlatformStrategies.h: Ditto. 11 1 12 2011-09-17 Mihai Parparita <mihaip@chromium.org> 2 13 -
trunk/Source/WebKit/win/WebCoreSupport/WebPlatformStrategies.cpp
r84094 r95604 100 100 } 101 101 102 bool WebPlatformStrategies::isLinkVisited(Page* page, LinkHash hash )102 bool WebPlatformStrategies::isLinkVisited(Page* page, LinkHash hash, const KURL&, const AtomicString&) 103 103 { 104 104 return page->group().isLinkVisited(hash); -
trunk/Source/WebKit/win/WebCoreSupport/WebPlatformStrategies.h
r84094 r95604 52 52 53 53 // WebCore::VisitedLinkStrategy 54 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash );54 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash, const WebCore::KURL& baseURL, const WTF::AtomicString& attributeURL); 55 55 virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash); 56 56 }; -
trunk/Source/WebKit/wince/ChangeLog
r95387 r95604 1 2011-09-21 Andras Becsi <andras.becsi@nokia.com> 2 3 [Qt] Remove Qt specific code from css/SelectorChecker.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=67702 5 6 Reviewed by Csaba Osztrogonác. 7 8 * WebCoreSupport/PlatformStrategiesWinCE.cpp: 9 (PlatformStrategiesWinCE::addVisitedLink): 10 * WebCoreSupport/PlatformStrategiesWinCE.h: 11 1 12 2011-09-17 Mihai Parparita <mihaip@chromium.org> 2 13 -
trunk/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.cpp
r90101 r95604 677 677 } 678 678 679 void PlatformStrategiesWinCE::addVisitedLink(Page* page, LinkHash hash )679 void PlatformStrategiesWinCE::addVisitedLink(Page* page, LinkHash hash, const KURL&, const AtomicString&) 680 680 { 681 681 page->group().addVisitedLinkHash(hash); -
trunk/Source/WebKit/wince/WebCoreSupport/PlatformStrategiesWinCE.h
r90101 r95604 149 149 150 150 // WebCore::VisitedLinkStrategy 151 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash );151 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash, const WebCore::KURL&, const WTF::AtomicString&); 152 152 virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash); 153 153 }; -
trunk/Source/WebKit2/ChangeLog
r95585 r95604 1 2011-09-21 Andras Becsi <andras.becsi@nokia.com> 2 3 [Qt] Remove Qt specific code from css/SelectorChecker.cpp 4 https://bugs.webkit.org/show_bug.cgi?id=67702 5 6 Reviewed by Csaba Osztrogonác. 7 8 * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Modify to match new prototype. 9 (WebKit::WebPlatformStrategies::isLinkVisited): 10 (WebKit::WebPlatformStrategies::addVisitedLink): 11 * WebProcess/WebCoreSupport/WebPlatformStrategies.h: Ditto. 12 1 13 2011-09-20 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.cpp
r82465 r95604 116 116 // VisitedLinkStrategy 117 117 118 bool WebPlatformStrategies::isLinkVisited(Page* page, LinkHash linkHash)118 bool WebPlatformStrategies::isLinkVisited(Page*, LinkHash linkHash, const KURL&, const AtomicString&) 119 119 { 120 120 return WebProcess::shared().isLinkVisited(linkHash); 121 121 } 122 122 123 void WebPlatformStrategies::addVisitedLink(Page* page, LinkHash linkHash)123 void WebPlatformStrategies::addVisitedLink(Page*, LinkHash linkHash) 124 124 { 125 125 WebProcess::shared().addVisitedLink(linkHash); -
trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebPlatformStrategies.h
r82465 r95604 57 57 58 58 // WebCore::VisitedLinkStrategy 59 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash );59 virtual bool isLinkVisited(WebCore::Page*, WebCore::LinkHash, const WebCore::KURL& baseURL, const WTF::AtomicString& attributeURL); 60 60 virtual void addVisitedLink(WebCore::Page*, WebCore::LinkHash); 61 61
Note: See TracChangeset
for help on using the changeset viewer.