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

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

Issue 815853005: RuleCanUseFastCheckSelector flag unused. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Useless cast 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/RuleSet.h ('k') | no next file » | 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) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 } 288 }
289 } 289 }
290 } 290 }
291 291
292 void RuleSet::addRulesFromSheet(StyleSheetContents* sheet, const MediaQueryEvalu ator& medium, AddRuleFlags addRuleFlags) 292 void RuleSet::addRulesFromSheet(StyleSheetContents* sheet, const MediaQueryEvalu ator& medium, AddRuleFlags addRuleFlags)
293 { 293 {
294 TRACE_EVENT0("blink", "RuleSet::addRulesFromSheet"); 294 TRACE_EVENT0("blink", "RuleSet::addRulesFromSheet");
295 295
296 ASSERT(sheet); 296 ASSERT(sheet);
297 297
298 addRuleFlags = static_cast<AddRuleFlags>(addRuleFlags | RuleCanUseFastCheckS elector);
299 const WillBeHeapVector<RefPtrWillBeMember<StyleRuleImport> >& importRules = sheet->importRules(); 298 const WillBeHeapVector<RefPtrWillBeMember<StyleRuleImport> >& importRules = sheet->importRules();
300 for (unsigned i = 0; i < importRules.size(); ++i) { 299 for (unsigned i = 0; i < importRules.size(); ++i) {
301 StyleRuleImport* importRule = importRules[i].get(); 300 StyleRuleImport* importRule = importRules[i].get();
302 if (importRule->styleSheet() && (!importRule->mediaQueries() || medium.e val(importRule->mediaQueries(), &m_viewportDependentMediaQueryResults))) 301 if (importRule->styleSheet() && (!importRule->mediaQueries() || medium.e val(importRule->mediaQueries(), &m_viewportDependentMediaQueryResults)))
303 addRulesFromSheet(importRule->styleSheet(), medium, addRuleFlags); 302 addRulesFromSheet(importRule->styleSheet(), medium, addRuleFlags);
304 } 303 }
305 304
306 addChildRules(sheet->childRules(), medium, addRuleFlags); 305 addChildRules(sheet->childRules(), medium, addRuleFlags);
307 } 306 }
308 307
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 398
400 #ifndef NDEBUG 399 #ifndef NDEBUG
401 void RuleSet::show() 400 void RuleSet::show()
402 { 401 {
403 for (const auto& rule: m_allRules) 402 for (const auto& rule: m_allRules)
404 rule.selector().show(); 403 rule.selector().show();
405 } 404 }
406 #endif 405 #endif
407 406
408 } // namespace blink 407 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/RuleSet.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698