OLD | NEW |
(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 |
OLD | NEW |