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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngineContext.h

Issue 2203993002: Add a Physical Web omnibox autocomplete provider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops, wrong CL Created 4 years, 3 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
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef StyleEngineContext_h 5 #ifndef StyleEngineContext_h
6 #define StyleEngineContext_h 6 #define StyleEngineContext_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 9
10 namespace blink { 10 namespace blink {
11 11
12 class StyleEngineContext { 12 class CORE_EXPORT StyleEngineContext {
13 public: 13 public:
14 StyleEngineContext() : m_addedPendingSheetBeforeBody(false) {} 14 StyleEngineContext();
15 ~StyleEngineContext() {} 15 ~StyleEngineContext() {}
16 bool addedPendingSheetBeforeBody() const { return m_addedPendingSheetBeforeB ody; } 16 bool addedPendingSheetBeforeBody() const { return m_addedPendingSheetBeforeB ody; }
17 void addingPendingSheet(const Document& document) { m_addedPendingSheetBefor eBody = m_addedPendingSheetBeforeBody || !document.body(); } 17 void addingPendingSheet(const Document&);
18 private: 18 private:
19 bool m_addedPendingSheetBeforeBody : 1; 19 bool m_addedPendingSheetBeforeBody : 1;
20 }; 20 };
21 21
22 } // namespace blink 22 } // namespace blink
23 23
24 #endif 24 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/dom/StyleEngineContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698