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

Side by Side Diff: sky/engine/core/dom/Document.cpp

Issue 849773002: Remove didRemoveAllPendingStylesheet. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/html/imports/HTMLImportLoader.h » ('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, 2011, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2011, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2008, 2009, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 9 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2010-2011. All rights reserved.
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after
1512 m_baseURL = KURL(); 1512 m_baseURL = KURL();
1513 } 1513 }
1514 1514
1515 void Document::didLoadAllImports() 1515 void Document::didLoadAllImports()
1516 { 1516 {
1517 if (!importLoader()) 1517 if (!importLoader())
1518 styleResolverChanged(); 1518 styleResolverChanged();
1519 didLoadAllParserBlockingResources(); 1519 didLoadAllParserBlockingResources();
1520 } 1520 }
1521 1521
1522 void Document::didRemoveAllPendingStylesheet()
1523 {
1524 styleResolverChanged();
1525
1526 // Only imports on master documents can trigger rendering.
1527 if (HTMLImportLoader* import = importLoader())
1528 import->didRemoveAllPendingStylesheet();
1529 if (!haveImportsLoaded())
1530 return;
1531 didLoadAllParserBlockingResources();
1532 }
1533
1534 void Document::didLoadAllParserBlockingResources() 1522 void Document::didLoadAllParserBlockingResources()
1535 { 1523 {
1536 m_resumeParserWaitingForResourcesTimer.startOneShot(0, FROM_HERE); 1524 m_resumeParserWaitingForResourcesTimer.startOneShot(0, FROM_HERE);
1537 } 1525 }
1538 1526
1539 void Document::resumeParserWaitingForResourcesTimerFired(Timer<Document>*) 1527 void Document::resumeParserWaitingForResourcesTimerFired(Timer<Document>*)
1540 { 1528 {
1541 if (!isRenderingReady()) 1529 if (!isRenderingReady())
1542 return; 1530 return;
1543 if (m_parser) 1531 if (m_parser)
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
2675 using namespace blink; 2663 using namespace blink;
2676 void showLiveDocumentInstances() 2664 void showLiveDocumentInstances()
2677 { 2665 {
2678 WeakDocumentSet& set = liveDocumentSet(); 2666 WeakDocumentSet& set = liveDocumentSet();
2679 fprintf(stderr, "There are %u documents currently alive:\n", set.size()); 2667 fprintf(stderr, "There are %u documents currently alive:\n", set.size());
2680 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) { 2668 for (WeakDocumentSet::const_iterator it = set.begin(); it != set.end(); ++it ) {
2681 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data()); 2669 fprintf(stderr, "- Document %p URL: %s\n", *it, (*it)->url().string().ut f8().data());
2682 } 2670 }
2683 } 2671 }
2684 #endif 2672 #endif
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Document.h ('k') | sky/engine/core/html/imports/HTMLImportLoader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698