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

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

Issue 951213004: Make CSSRuleSourceData use the CSSRule Type enum (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Use StyleRule::Type Created 5 years, 10 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 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 case StyleRuleBase::FontFace: 456 case StyleRuleBase::FontFace:
457 if (toStyleRuleFontFace(rule)->properties().hasFailedOrCanceledSubre sources()) 457 if (toStyleRuleFontFace(rule)->properties().hasFailedOrCanceledSubre sources())
458 return true; 458 return true;
459 break; 459 break;
460 case StyleRuleBase::Media: 460 case StyleRuleBase::Media:
461 if (childRulesHaveFailedOrCanceledSubresources(toStyleRuleMedia(rule )->childRules())) 461 if (childRulesHaveFailedOrCanceledSubresources(toStyleRuleMedia(rule )->childRules()))
462 return true; 462 return true;
463 break; 463 break;
464 case StyleRuleBase::Import: 464 case StyleRuleBase::Import:
465 case StyleRuleBase::Namespace: 465 case StyleRuleBase::Namespace:
466 case StyleRuleBase::Unknown:
466 ASSERT_NOT_REACHED(); 467 ASSERT_NOT_REACHED();
467 case StyleRuleBase::Page: 468 case StyleRuleBase::Page:
468 case StyleRuleBase::Keyframes: 469 case StyleRuleBase::Keyframes:
469 case StyleRuleBase::Keyframe: 470 case StyleRuleBase::Keyframe:
470 case StyleRuleBase::Supports: 471 case StyleRuleBase::Supports:
471 case StyleRuleBase::Viewport: 472 case StyleRuleBase::Viewport:
472 break; 473 break;
473 } 474 }
474 } 475 }
475 return false; 476 return false;
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 visitor->trace(m_ownerRule); 653 visitor->trace(m_ownerRule);
653 visitor->trace(m_importRules); 654 visitor->trace(m_importRules);
654 visitor->trace(m_childRules); 655 visitor->trace(m_childRules);
655 visitor->trace(m_loadingClients); 656 visitor->trace(m_loadingClients);
656 visitor->trace(m_completedClients); 657 visitor->trace(m_completedClients);
657 visitor->trace(m_ruleSet); 658 visitor->trace(m_ruleSet);
658 #endif 659 #endif
659 } 660 }
660 661
661 } 662 }
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