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

Unified Diff: Source/core/css/resolver/StyleResolver.cpp

Issue 1312983003: Apply CSS Animations on color properties to visited and unvisited link computed styles (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix test Created 5 years, 4 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
« no previous file with comments | « LayoutTests/animations/visited-link-color-animation-expected.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/resolver/StyleResolver.cpp
diff --git a/Source/core/css/resolver/StyleResolver.cpp b/Source/core/css/resolver/StyleResolver.cpp
index 1a1bcdf4213ce5ebbae6e13e27d50aaf4f0b19df..1273109f772c0c24ace6017cf1c8cf2812982319 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -918,6 +918,11 @@ void StyleResolver::collectPseudoRulesForElement(Element* element, ElementRuleCo
bool StyleResolver::applyAnimatedProperties(StyleResolverState& state, const Element* animatingElement)
{
+ if (state.style()->insideLink() != NotInsideLink) {
+ state.setApplyPropertyToRegularStyle(true);
Timothy Loh 2015/08/25 08:29:28 ASSERT(state.applyPropertyToRegularStyle())
+ state.setApplyPropertyToVisitedLinkStyle(true);
+ }
+
Element* element = state.element();
ASSERT(element);
« no previous file with comments | « LayoutTests/animations/visited-link-color-animation-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698