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

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

Issue 895383002: Let StyleResolver figure out differences between UA style and resolved style. (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
Index: Source/core/css/resolver/StyleAdjuster.cpp
diff --git a/Source/core/css/resolver/StyleAdjuster.cpp b/Source/core/css/resolver/StyleAdjuster.cpp
index 89cdfefc173b462bf453fdb94f5fa806a9b72293..6b793b493d3564daddc335f4ddf38535b0caa445 100644
--- a/Source/core/css/resolver/StyleAdjuster.cpp
+++ b/Source/core/css/resolver/StyleAdjuster.cpp
@@ -151,7 +151,7 @@ static bool hasWillChangeThatCreatesStackingContext(const RenderStyle* style)
return false;
}
-void StyleAdjuster::adjustRenderStyle(RenderStyle* style, RenderStyle* parentStyle, Element *e, const CachedUAStyle* cachedUAStyle)
+void StyleAdjuster::adjustRenderStyle(RenderStyle* style, RenderStyle* parentStyle, Element *e, const UAStyleChange& uaStyle)
{
ASSERT(parentStyle);
@@ -218,7 +218,7 @@ void StyleAdjuster::adjustRenderStyle(RenderStyle* style, RenderStyle* parentSty
// Let the theme also have a crack at adjusting the style.
if (style->hasAppearance())
- LayoutTheme::theme().adjustStyle(style, e, cachedUAStyle);
+ LayoutTheme::theme().adjustStyle(style, e, uaStyle);
// If we have first-letter pseudo style, transitions, or animations, do not share this style.
if (style->hasPseudoStyle(FIRST_LETTER) || style->transitions() || style->animations())

Powered by Google App Engine
This is Rietveld 408576698