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

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

Issue 1251523003: Delete AuthorStyleInfo and move its data into ComputedStyle.RareNonInheritedData. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: update comment 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 | « Source/core/layout/LayoutThemeMac.h ('k') | Source/core/style/AuthorStyleInfo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/layout/LayoutThemeMac.mm
diff --git a/Source/core/layout/LayoutThemeMac.mm b/Source/core/layout/LayoutThemeMac.mm
index 7ada83ecad5247fb21a71254a20e95fa39befc13..618ee12ba613e0fe76ac4ac2705e656d0d24df26 100644
--- a/Source/core/layout/LayoutThemeMac.mm
+++ b/Source/core/layout/LayoutThemeMac.mm
@@ -29,7 +29,6 @@
#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"
@@ -446,10 +445,10 @@ Color LayoutThemeMac::systemColor(CSSValueID cssValueId) const
return color;
}
-bool LayoutThemeMac::isControlStyled(const ComputedStyle& style, const AuthorStyleInfo& authorStyle) const
+bool LayoutThemeMac::isControlStyled(const ComputedStyle& style) const
{
if (style.appearance() == TextFieldPart || style.appearance() == TextAreaPart)
- return authorStyle.specifiesBorder() || style.boxShadow();
+ return style.hasAuthorBorder() || 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
@@ -463,7 +462,7 @@ bool LayoutThemeMac::isControlStyled(const ComputedStyle& style, const AuthorSty
if (style.appearance() == SearchFieldPart && style.effectiveZoom() != 1)
return true;
- return LayoutTheme::isControlStyled(style, authorStyle);
+ return LayoutTheme::isControlStyled(style);
}
void LayoutThemeMac::addVisualOverflow(const LayoutObject& object, IntRect& rect)
« no previous file with comments | « Source/core/layout/LayoutThemeMac.h ('k') | Source/core/style/AuthorStyleInfo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698