Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Unified Diff: Source/WebCore/css/CSSStyleSelector.cpp

Issue 8365028: Merge 97745 - REGRESSION(r97248): :visited as descendant selector broken (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/912/
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/WebCore/css/CSSStyleSelector.cpp
===================================================================
--- Source/WebCore/css/CSSStyleSelector.cpp (revision 98066)
+++ Source/WebCore/css/CSSStyleSelector.cpp (working copy)
@@ -2174,7 +2174,7 @@
if (startIndex == -1)
return;
- if (m_element && m_element->isLink()) {
+ if (m_style->insideLink() != NotInsideLink) {
for (int i = startIndex; i <= endIndex; ++i) {
CSSMutableStyleDeclaration* styleDeclaration = m_matchedDecls[i].styleDeclaration;
unsigned linkMatchType = m_matchedDecls[i].linkMatchType;
« no previous file with comments | « LayoutTests/platform/mac/fast/selectors/visited-descendant-expected.txt ('k') | Source/WebCore/css/SelectorChecker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698