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

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

Issue 1018213004: CSS Parser: Mark on stylesheets whether the first rule was valid (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 9 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 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 return true; 455 return true;
456 break; 456 break;
457 case StyleRuleBase::FontFace: 457 case StyleRuleBase::FontFace:
458 if (toStyleRuleFontFace(rule)->properties().hasFailedOrCanceledSubre sources()) 458 if (toStyleRuleFontFace(rule)->properties().hasFailedOrCanceledSubre sources())
459 return true; 459 return true;
460 break; 460 break;
461 case StyleRuleBase::Media: 461 case StyleRuleBase::Media:
462 if (childRulesHaveFailedOrCanceledSubresources(toStyleRuleMedia(rule )->childRules())) 462 if (childRulesHaveFailedOrCanceledSubresources(toStyleRuleMedia(rule )->childRules()))
463 return true; 463 return true;
464 break; 464 break;
465 case StyleRuleBase::Charset:
465 case StyleRuleBase::Import: 466 case StyleRuleBase::Import:
466 case StyleRuleBase::Namespace: 467 case StyleRuleBase::Namespace:
467 case StyleRuleBase::Unknown: 468 case StyleRuleBase::Unknown:
468 ASSERT_NOT_REACHED(); 469 ASSERT_NOT_REACHED();
469 case StyleRuleBase::Page: 470 case StyleRuleBase::Page:
470 case StyleRuleBase::Keyframes: 471 case StyleRuleBase::Keyframes:
471 case StyleRuleBase::Keyframe: 472 case StyleRuleBase::Keyframe:
472 case StyleRuleBase::Supports: 473 case StyleRuleBase::Supports:
473 case StyleRuleBase::Viewport: 474 case StyleRuleBase::Viewport:
474 break; 475 break;
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
654 visitor->trace(m_ownerRule); 655 visitor->trace(m_ownerRule);
655 visitor->trace(m_importRules); 656 visitor->trace(m_importRules);
656 visitor->trace(m_childRules); 657 visitor->trace(m_childRules);
657 visitor->trace(m_loadingClients); 658 visitor->trace(m_loadingClients);
658 visitor->trace(m_completedClients); 659 visitor->trace(m_completedClients);
659 visitor->trace(m_ruleSet); 660 visitor->trace(m_ruleSet);
660 #endif 661 #endif
661 } 662 }
662 663
663 } 664 }
OLDNEW
« no previous file with comments | « Source/core/css/StyleRule.cpp ('k') | Source/core/css/invalidation/StyleSheetInvalidationAnalysis.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698