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

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

Issue 15856002: First step of HTMLImports (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed Mac build Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Document.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 * (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 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 } 325 }
326 326
327 void StyleSheetContents::checkLoaded() 327 void StyleSheetContents::checkLoaded()
328 { 328 {
329 if (isLoading()) 329 if (isLoading())
330 return; 330 return;
331 331
332 RefPtr<StyleSheetContents> protect(this); 332 RefPtr<StyleSheetContents> protect(this);
333 333
334 // Avoid |this| being deleted by scripts that run via 334 // Avoid |this| being deleted by scripts that run via
335 // ScriptableDocumentParser::executeScriptsWaitingForStylesheets(). 335 // ScriptableDocumentParser::executeScriptsWaitingForResources().
336 // See <rdar://problem/6622300>. 336 // See <rdar://problem/6622300>.
337 RefPtr<StyleSheetContents> protector(this); 337 RefPtr<StyleSheetContents> protector(this);
338 StyleSheetContents* parentSheet = parentStyleSheet(); 338 StyleSheetContents* parentSheet = parentStyleSheet();
339 if (parentSheet) { 339 if (parentSheet) {
340 parentSheet->checkLoaded(); 340 parentSheet->checkLoaded();
341 m_loadCompleted = true; 341 m_loadCompleted = true;
342 return; 342 return;
343 } 343 }
344 RefPtr<Node> ownerNode = singleOwnerNode(); 344 RefPtr<Node> ownerNode = singleOwnerNode();
345 if (!ownerNode) { 345 if (!ownerNode) {
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 info.addMember(m_originalURL, "originalURL"); 518 info.addMember(m_originalURL, "originalURL");
519 info.addMember(m_encodingFromCharsetRule, "encodingFromCharsetRule"); 519 info.addMember(m_encodingFromCharsetRule, "encodingFromCharsetRule");
520 info.addMember(m_importRules, "importRules"); 520 info.addMember(m_importRules, "importRules");
521 info.addMember(m_childRules, "childRules"); 521 info.addMember(m_childRules, "childRules");
522 info.addMember(m_namespaces, "namespaces"); 522 info.addMember(m_namespaces, "namespaces");
523 info.addMember(m_parserContext, "parserContext"); 523 info.addMember(m_parserContext, "parserContext");
524 info.addMember(m_clients, "clients"); 524 info.addMember(m_clients, "clients");
525 } 525 }
526 526
527 } 527 }
OLDNEW
« no previous file with comments | « Source/core/core.gypi ('k') | Source/core/dom/Document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698