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

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

Issue 1903803002: Do not block painting for in-body CSS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed merge conflict 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 (c) 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 StyleEngineContext_h
6 #define StyleEngineContext_h
7
8 #include "core/dom/Document.h"
9
10 namespace blink {
11
12 class StyleEngineContext {
13 public:
14 StyleEngineContext() : m_addedPendingSheetBeforeBody(false) {}
15 ~StyleEngineContext() {}
16 bool addedPendingSheetBeforeBody() const { return m_addedPendingSheetBeforeB ody; }
17 void addingPendingSheet(const Document& document) { m_addedPendingSheetBefor eBody = m_addedPendingSheetBeforeBody || !document.body(); }
18 private:
19 bool m_addedPendingSheetBeforeBody : 1;
20 };
21
22 } // namespace blink
23
24 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleEngine.cpp ('k') | third_party/WebKit/Source/core/html/HTMLLinkElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698