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