Index: Source/core/layout/LayoutThemeMac.mm |
diff --git a/Source/core/layout/LayoutThemeMac.mm b/Source/core/layout/LayoutThemeMac.mm |
index ed957c0ab21a31f8baae2ed6618786d6ee6857fb..f5086be000aa847a5bfb9724fca56b921f72c80f 100644 |
--- a/Source/core/layout/LayoutThemeMac.mm |
+++ b/Source/core/layout/LayoutThemeMac.mm |
@@ -29,6 +29,7 @@ |
#import "core/layout/LayoutProgress.h" |
#import "core/layout/LayoutView.h" |
#import "core/paint/MediaControlsPainter.h" |
+#import "core/style/AuthorStyleInfo.h" |
#import "core/style/ShadowList.h" |
#import "platform/LayoutTestSupport.h" |
#import "platform/PlatformResourceLoader.h" |
@@ -437,10 +438,10 @@ |
return color; |
} |
-bool LayoutThemeMac::isControlStyled(const ComputedStyle& style) const |
+bool LayoutThemeMac::isControlStyled(const ComputedStyle& style, const AuthorStyleInfo& authorStyle) const |
{ |
if (style.appearance() == TextFieldPart || style.appearance() == TextAreaPart) |
- return style.hasAuthorBorder() || style.boxShadow(); |
+ return authorStyle.specifiesBorder() || 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 |
@@ -454,7 +455,7 @@ |
if (style.appearance() == SearchFieldPart && style.effectiveZoom() != 1) |
return true; |
- return LayoutTheme::isControlStyled(style); |
+ return LayoutTheme::isControlStyled(style, authorStyle); |
} |
void LayoutThemeMac::addVisualOverflow(const LayoutObject& object, IntRect& rect) |