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

Side by Side Diff: third_party/WebKit/Source/core/html/shadow/AppearanceSwitchElement.h

Issue 1958073002: Introduce :-internal-shadow-host-has-appearance pseudo class, and apply it to METER element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove null host check Created 4 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2016 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 AppearanceSwitchElement_h
6 #define AppearanceSwitchElement_h
7
8 #include "core/html/HTMLDivElement.h"
9
10 namespace blink {
11
12 class AppearanceSwitchElement final : public HTMLDivElement {
13 public:
14 enum Mode {
15 ShowIfHostHasAppearance,
16 ShowIfHostHasNoAppearance,
17 };
18 static AppearanceSwitchElement* create(Document&, Mode);
19
20 private:
21 AppearanceSwitchElement(Document&, Mode);
22 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override;
23
24 const Mode m_mode;
25 };
26
27 } // namespace blink
28 #endif // AppearanceSwitchElement_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698