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

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

Issue 950743002: Only compare unvisited background color for LayoutTheme adjustment (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 | « Source/core/css/resolver/StyleResolver.h ('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 3a37b10f5fed2506b4d4351d375008eb897d5fe7..f0e35335553f3633db6868de25e4b4c5af31f3cc 100644
--- a/Source/core/css/resolver/StyleResolver.cpp
+++ b/Source/core/css/resolver/StyleResolver.cpp
@@ -492,7 +492,7 @@ PassRefPtr<LayoutStyle> StyleResolver::styleForDocument(Document& document)
return documentStyle.release();
}
-static AuthorStyleInfo authorStyleInfo(StyleResolverState& state)
+AuthorStyleInfo StyleResolver::authorStyleInfo(StyleResolverState& state)
{
const CachedUAStyle* cachedUAStyle = state.cachedUAStyle();
@@ -508,7 +508,7 @@ static AuthorStyleInfo authorStyleInfo(StyleResolverState& state)
backgroundLayersCopy.setRepeatY(NoRepeatFill);
bool backgroundChanged = backgroundLayersCopy != backgroundCopy
- || state.style()->visitedDependentColor(CSSPropertyBackgroundColor) != cachedUAStyle->backgroundColor;
+ || state.style()->backgroundColor() != cachedUAStyle->backgroundColor;
bool borderChanged = state.style()->border() != cachedUAStyle->border;
return AuthorStyleInfo(backgroundChanged, borderChanged);
« no previous file with comments | « Source/core/css/resolver/StyleResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698