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

Unified Diff: Source/core/layout/LayoutThemeChromiumMac.mm

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/layout/LayoutThemeChromiumMac.mm
diff --git a/Source/core/layout/LayoutThemeChromiumMac.mm b/Source/core/layout/LayoutThemeChromiumMac.mm
index 66c6dc4b023da4b58883efbad0695b764c872214..a94046cfcc8209be8d169d4fea0f15e0dc9ed900 100644
--- a/Source/core/layout/LayoutThemeChromiumMac.mm
+++ b/Source/core/layout/LayoutThemeChromiumMac.mm
@@ -42,6 +42,7 @@
#import "core/rendering/RenderProgress.h"
#import "core/rendering/RenderView.h"
#import "core/rendering/style/ShadowList.h"
+#import "core/rendering/style/UAStyleChange.h"
#import "platform/LayoutTestSupport.h"
#import "platform/PlatformResourceLoader.h"
#import "platform/SharedBuffer.h"
@@ -469,11 +470,10 @@ Color LayoutThemeChromiumMac::systemColor(CSSValueID cssValueId) const
return color;
}
-bool LayoutThemeChromiumMac::isControlStyled(const RenderStyle* style, const CachedUAStyle* uaStyle) const
+bool LayoutThemeChromiumMac::isControlStyled(const RenderStyle* style, const UAStyleChange& uaStyle) const
{
- ASSERT(uaStyle);
if (style->appearance() == TextFieldPart || style->appearance() == TextAreaPart)
- return style->border() != uaStyle->border || style->boxShadow();
+ return uaStyle.borderChanged || style->boxShadow();
// FIXME: This is horrible, but there is not much else that can be done.
// Menu lists cannot draw properly when scaled. They can't really draw

Powered by Google App Engine
This is Rietveld 408576698