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

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

Issue 2614663004: Pause HTML parser for external stylesheets in the body (Closed)
Patch Set: Paramaterized test cases Created 3 years, 11 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 /* 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 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All
7 * rights reserved. 7 * rights reserved.
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
9 * (http://www.torchmobile.com/) 9 * (http://www.torchmobile.com/)
10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 10 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
(...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 327
328 Member<Document> m_document; 328 Member<Document> m_document;
329 bool m_isMaster; 329 bool m_isMaster;
330 330
331 // Track the number of currently loading top-level stylesheets needed for 331 // Track the number of currently loading top-level stylesheets needed for
332 // layout. Sheets loaded using the @import directive are not included in this 332 // layout. Sheets loaded using the @import directive are not included in this
333 // count. We use this count of pending sheets to detect when we can begin 333 // count. We use this count of pending sheets to detect when we can begin
334 // attaching elements and when it is safe to execute scripts. 334 // attaching elements and when it is safe to execute scripts.
335 int m_pendingScriptBlockingStylesheets = 0; 335 int m_pendingScriptBlockingStylesheets = 0;
336 int m_pendingRenderBlockingStylesheets = 0; 336 int m_pendingRenderBlockingStylesheets = 0;
337 int m_pendingBodyStylesheets = 0;
337 338
338 HeapVector<TraceWrapperMember<CSSStyleSheet>> m_injectedAuthorStyleSheets; 339 HeapVector<TraceWrapperMember<CSSStyleSheet>> m_injectedAuthorStyleSheets;
339 Member<CSSStyleSheet> m_inspectorStyleSheet; 340 Member<CSSStyleSheet> m_inspectorStyleSheet;
340 341
341 TraceWrapperMember<DocumentStyleSheetCollection> 342 TraceWrapperMember<DocumentStyleSheetCollection>
342 m_documentStyleSheetCollection; 343 m_documentStyleSheetCollection;
343 344
344 Member<StyleRuleUsageTracker> m_tracker; 345 Member<StyleRuleUsageTracker> m_tracker;
345 346
346 using StyleSheetCollectionMap = 347 using StyleSheetCollectionMap =
(...skipping 27 matching lines...) Expand all
374 375
375 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 376 std::unique_ptr<StyleResolverStats> m_styleResolverStats;
376 unsigned m_styleForElementCount = 0; 377 unsigned m_styleForElementCount = 0;
377 378
378 friend class StyleEngineTest; 379 friend class StyleEngineTest;
379 }; 380 };
380 381
381 } // namespace blink 382 } // namespace blink
382 383
383 #endif 384 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/ScriptableDocumentParser.h ('k') | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698