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

Side by Side Diff: Source/core/layout/style/AuthorStyleInfo.h

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: I mean *remove* assert. 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 unified diff | Download patch
« no previous file with comments | « Source/core/layout/LayoutThemeChromiumMac.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef AuthorStyleInfo_h
6 #define AuthorStyleInfo_h
7
8 namespace blink {
9
10 // This class knows whether the author specified a background and/or border on
11 // some element. Some control elements use this information to figure out if the
12 // element is sufficiently styled by the author to disable the native look.
13 class AuthorStyleInfo {
14 public:
15 AuthorStyleInfo() : AuthorStyleInfo(false, false) { }
16 AuthorStyleInfo(bool specifiesBackground, bool specifiesBorder)
17 : m_specifiesBackground(specifiesBackground)
18 , m_specifiesBorder(specifiesBorder)
19 {
20 }
21
22 bool specifiesBackground() const { return m_specifiesBackground; };
23 bool specifiesBorder() const { return m_specifiesBorder; };
24
25 private:
26 bool m_specifiesBackground;
27 bool m_specifiesBorder;
28 };
29
30 } // namespace blink
31
32 #endif // AuthorStyleInfo_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutThemeChromiumMac.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698