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

Side by Side Diff: third_party/WebKit/Source/core/css/StyleSheetContents.cpp

Issue 1896793002: Rename (updateLayout/updateStyle).*.() to updateStyleAndLayout.*.() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
OLDNEW
1 /* 1 /*
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2006, 2007, 2012 Apple Inc. All rights reserved.
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 if (loadingClients[i]->sheetLoaded()) 408 if (loadingClients[i]->sheetLoaded())
409 ownerNode->notifyLoadedSheetAndAllCriticalSubresources(m_didLoad ErrorOccur ? Node::ErrorOccurredLoadingSubresource : Node::NoErrorLoadingSubreso urce); 409 ownerNode->notifyLoadedSheetAndAllCriticalSubresources(m_didLoad ErrorOccur ? Node::ErrorOccurredLoadingSubresource : Node::NoErrorLoadingSubreso urce);
410 } 410 }
411 } 411 }
412 } 412 }
413 413
414 void StyleSheetContents::notifyLoadedSheet(const CSSStyleSheetResource* sheet) 414 void StyleSheetContents::notifyLoadedSheet(const CSSStyleSheetResource* sheet)
415 { 415 {
416 ASSERT(sheet); 416 ASSERT(sheet);
417 m_didLoadErrorOccur |= sheet->errorOccurred(); 417 m_didLoadErrorOccur |= sheet->errorOccurred();
418 // updateLayoutIgnorePendingStyleSheets can cause us to create the RuleSet o n this 418 // updateStyleAndLayoutIgnorePendingStylesheets can cause us to create the R uleSet on this
419 // sheet before its imports have loaded. So clear the RuleSet when the impor ts 419 // sheet before its imports have loaded. So clear the RuleSet when the impor ts
420 // load since the import's subrules are flattened into its parent sheet's Ru leSet. 420 // load since the import's subrules are flattened into its parent sheet's Ru leSet.
421 clearRuleSet(); 421 clearRuleSet();
422 } 422 }
423 423
424 void StyleSheetContents::startLoadingDynamicSheet() 424 void StyleSheetContents::startLoadingDynamicSheet()
425 { 425 {
426 StyleSheetContents* root = rootStyleSheet(); 426 StyleSheetContents* root = rootStyleSheet();
427 for (const auto& client : root->m_loadingClients) 427 for (const auto& client : root->m_loadingClients)
428 client->startLoadingDynamicSheet(); 428 client->startLoadingDynamicSheet();
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
667 visitor->trace(m_ownerRule); 667 visitor->trace(m_ownerRule);
668 visitor->trace(m_importRules); 668 visitor->trace(m_importRules);
669 visitor->trace(m_namespaceRules); 669 visitor->trace(m_namespaceRules);
670 visitor->trace(m_childRules); 670 visitor->trace(m_childRules);
671 visitor->trace(m_loadingClients); 671 visitor->trace(m_loadingClients);
672 visitor->trace(m_completedClients); 672 visitor->trace(m_completedClients);
673 visitor->trace(m_ruleSet); 673 visitor->trace(m_ruleSet);
674 } 674 }
675 675
676 } // namespace blink 676 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698