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

Side by Side Diff: third_party/WebKit/Source/core/css/PageRuleCollector.cpp

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 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 * 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, 2013 Apple Inc. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 Apple Inc.
6 * All rights reserved. 6 * All rights reserved.
7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 7 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 8 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. 9 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved.
10 * (http://www.torchmobile.com/) 10 * (http://www.torchmobile.com/)
(...skipping 12 matching lines...) Expand all
23 * Library General Public License for more details. 23 * Library General Public License for more details.
24 * 24 *
25 * You should have received a copy of the GNU Library General Public License 25 * You should have received a copy of the GNU Library General Public License
26 * along with this library; see the file COPYING.LIB. If not, write to 26 * along with this library; see the file COPYING.LIB. If not, write to
27 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 27 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
28 * Boston, MA 02110-1301, USA. 28 * Boston, MA 02110-1301, USA.
29 */ 29 */
30 30
31 #include "core/css/PageRuleCollector.h" 31 #include "core/css/PageRuleCollector.h"
32 32
33 #include <algorithm>
33 #include "core/css/StylePropertySet.h" 34 #include "core/css/StylePropertySet.h"
34 #include "core/css/StyleRule.h" 35 #include "core/css/StyleRule.h"
35 #include "core/css/resolver/StyleResolverState.h" 36 #include "core/css/resolver/StyleResolverState.h"
36 #include <algorithm>
37 37
38 namespace blink { 38 namespace blink {
39 39
40 static inline bool comparePageRules(const StyleRulePage* r1, 40 static inline bool comparePageRules(const StyleRulePage* r1,
41 const StyleRulePage* r2) { 41 const StyleRulePage* r2) {
42 return r1->selector()->specificity() < r2->selector()->specificity(); 42 return r1->selector()->specificity() < r2->selector()->specificity();
43 } 43 }
44 44
45 bool PageRuleCollector::isLeftPage(const ComputedStyle* rootElementStyle, 45 bool PageRuleCollector::isLeftPage(const ComputedStyle* rootElementStyle,
46 int pageIndex) const { 46 int pageIndex) const {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 const StylePropertySet& properties = rule->properties(); 126 const StylePropertySet& properties = rule->properties();
127 if (properties.isEmpty()) 127 if (properties.isEmpty())
128 continue; 128 continue;
129 129
130 // Add this rule to our list of matched rules. 130 // Add this rule to our list of matched rules.
131 matchedRules.push_back(rule); 131 matchedRules.push_back(rule);
132 } 132 }
133 } 133 }
134 134
135 } // namespace blink 135 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaQueryMatcherTest.cpp ('k') | third_party/WebKit/Source/core/css/SelectorFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698