OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r
ights reserved. | 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All |
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 7 * rights reserved. |
| 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 9 * (http://www.torchmobile.com/) |
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) | 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) |
9 * Copyright (C) 2011 Google Inc. All rights reserved. | 11 * Copyright (C) 2011 Google Inc. All rights reserved. |
10 * | 12 * |
11 * This library is free software; you can redistribute it and/or | 13 * This library is free software; you can redistribute it and/or |
12 * modify it under the terms of the GNU Library General Public | 14 * modify it under the terms of the GNU Library General Public |
13 * License as published by the Free Software Foundation; either | 15 * License as published by the Free Software Foundation; either |
14 * version 2 of the License, or (at your option) any later version. | 16 * version 2 of the License, or (at your option) any later version. |
15 * | 17 * |
16 * This library is distributed in the hope that it will be useful, | 18 * This library is distributed in the hope that it will be useful, |
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 270 |
269 bool shouldSkipInvalidationFor(const Element&) const; | 271 bool shouldSkipInvalidationFor(const Element&) const; |
270 void scheduleRuleSetInvalidationsForElement( | 272 void scheduleRuleSetInvalidationsForElement( |
271 Element&, | 273 Element&, |
272 const HeapVector<Member<const RuleSet>>&); | 274 const HeapVector<Member<const RuleSet>>&); |
273 void invalidateSlottedElements(HTMLSlotElement&); | 275 void invalidateSlottedElements(HTMLSlotElement&); |
274 | 276 |
275 Member<Document> m_document; | 277 Member<Document> m_document; |
276 bool m_isMaster; | 278 bool m_isMaster; |
277 | 279 |
278 // Track the number of currently loading top-level stylesheets needed for layo
ut. | 280 // Track the number of currently loading top-level stylesheets needed for |
279 // Sheets loaded using the @import directive are not included in this count. | 281 // layout. Sheets loaded using the @import directive are not included in this |
280 // We use this count of pending sheets to detect when we can begin attaching | 282 // count. We use this count of pending sheets to detect when we can begin |
281 // elements and when it is safe to execute scripts. | 283 // attaching elements and when it is safe to execute scripts. |
282 int m_pendingScriptBlockingStylesheets = 0; | 284 int m_pendingScriptBlockingStylesheets = 0; |
283 int m_pendingRenderBlockingStylesheets = 0; | 285 int m_pendingRenderBlockingStylesheets = 0; |
284 | 286 |
285 HeapVector<Member<CSSStyleSheet>> m_injectedAuthorStyleSheets; | 287 HeapVector<Member<CSSStyleSheet>> m_injectedAuthorStyleSheets; |
286 Member<CSSStyleSheet> m_inspectorStyleSheet; | 288 Member<CSSStyleSheet> m_inspectorStyleSheet; |
287 | 289 |
288 Member<DocumentStyleSheetCollection> m_documentStyleSheetCollection; | 290 Member<DocumentStyleSheetCollection> m_documentStyleSheetCollection; |
289 | 291 |
290 typedef HeapHashMap<WeakMember<TreeScope>, | 292 typedef HeapHashMap<WeakMember<TreeScope>, |
291 Member<ShadowTreeStyleSheetCollection>> | 293 Member<ShadowTreeStyleSheetCollection>> |
(...skipping 26 matching lines...) Expand all Loading... |
318 | 320 |
319 std::unique_ptr<StyleResolverStats> m_styleResolverStats; | 321 std::unique_ptr<StyleResolverStats> m_styleResolverStats; |
320 unsigned m_styleForElementCount = 0; | 322 unsigned m_styleForElementCount = 0; |
321 | 323 |
322 friend class StyleEngineTest; | 324 friend class StyleEngineTest; |
323 }; | 325 }; |
324 | 326 |
325 } // namespace blink | 327 } // namespace blink |
326 | 328 |
327 #endif | 329 #endif |
OLD | NEW |