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

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

Issue 2880303002: Update styleSheets list in import without active style update. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 void InvalidateSlottedElements(HTMLSlotElement&); 336 void InvalidateSlottedElements(HTMLSlotElement&);
337 337
338 void UpdateViewport(); 338 void UpdateViewport();
339 void UpdateActiveStyleSheets(); 339 void UpdateActiveStyleSheets();
340 void UpdateGlobalRuleSet() { 340 void UpdateGlobalRuleSet() {
341 DCHECK(!NeedsActiveStyleSheetUpdate()); 341 DCHECK(!NeedsActiveStyleSheetUpdate());
342 if (global_rule_set_) 342 if (global_rule_set_)
343 global_rule_set_->Update(GetDocument()); 343 global_rule_set_->Update(GetDocument());
344 } 344 }
345 const MediaQueryEvaluator& EnsureMediaQueryEvaluator(); 345 const MediaQueryEvaluator& EnsureMediaQueryEvaluator();
346 void UpdateStyleSheetList(TreeScope&);
346 347
347 Member<Document> document_; 348 Member<Document> document_;
348 bool is_master_; 349 bool is_master_;
349 350
350 // Track the number of currently loading top-level stylesheets needed for 351 // Track the number of currently loading top-level stylesheets needed for
351 // layout. Sheets loaded using the @import directive are not included in this 352 // layout. Sheets loaded using the @import directive are not included in this
352 // count. We use this count of pending sheets to detect when we can begin 353 // count. We use this count of pending sheets to detect when we can begin
353 // attaching elements and when it is safe to execute scripts. 354 // attaching elements and when it is safe to execute scripts.
354 int pending_script_blocking_stylesheets_ = 0; 355 int pending_script_blocking_stylesheets_ = 0;
355 int pending_render_blocking_stylesheets_ = 0; 356 int pending_render_blocking_stylesheets_ = 0;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 397
397 std::unique_ptr<StyleResolverStats> style_resolver_stats_; 398 std::unique_ptr<StyleResolverStats> style_resolver_stats_;
398 unsigned style_for_element_count_ = 0; 399 unsigned style_for_element_count_ = 0;
399 400
400 friend class StyleEngineTest; 401 friend class StyleEngineTest;
401 }; 402 };
402 403
403 } // namespace blink 404 } // namespace blink
404 405
405 #endif 406 #endif
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/StyleEngine.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698