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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/SharedStyleFinder.h

Issue 2399633003: reflow comments in core/css/resolver (Closed)
Patch Set: Created 4 years, 2 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) 2013 Google, Inc. 2 * Copyright (C) 2013 Google, Inc.
3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 3 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
5 * All rights reserved.
5 * 6 *
6 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
10 * 11 *
11 * This library is distributed in the hope that it will be useful, 12 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Library General Public License for more details. 15 * Library General Public License for more details.
(...skipping 16 matching lines...) Expand all
31 class ComputedStyle; 32 class ComputedStyle;
32 class RuleFeatureSet; 33 class RuleFeatureSet;
33 class RuleSet; 34 class RuleSet;
34 class SpaceSplitString; 35 class SpaceSplitString;
35 class StyleResolver; 36 class StyleResolver;
36 37
37 class CORE_EXPORT SharedStyleFinder { 38 class CORE_EXPORT SharedStyleFinder {
38 STACK_ALLOCATED(); 39 STACK_ALLOCATED();
39 40
40 public: 41 public:
41 // RuleSets are passed non-const as the act of matching against them can cause them 42 // RuleSets are passed non-const as the act of matching against them can cause
42 // to be compacted. :( 43 // them to be compacted. :(
43 SharedStyleFinder(const ElementResolveContext& context, 44 SharedStyleFinder(const ElementResolveContext& context,
44 const RuleFeatureSet& features, 45 const RuleFeatureSet& features,
45 RuleSet* siblingRuleSet, 46 RuleSet* siblingRuleSet,
46 RuleSet* uncommonAttributeRuleSet, 47 RuleSet* uncommonAttributeRuleSet,
47 StyleResolver& styleResolver) 48 StyleResolver& styleResolver)
48 : m_elementAffectedByClassRules(false), 49 : m_elementAffectedByClassRules(false),
49 m_features(features), 50 m_features(features),
50 m_siblingRuleSet(siblingRuleSet), 51 m_siblingRuleSet(siblingRuleSet),
51 m_uncommonAttributeRuleSet(uncommonAttributeRuleSet), 52 m_uncommonAttributeRuleSet(uncommonAttributeRuleSet),
52 m_styleResolver(&styleResolver), 53 m_styleResolver(&styleResolver),
(...skipping 27 matching lines...) Expand all
80 Member<RuleSet> m_uncommonAttributeRuleSet; 81 Member<RuleSet> m_uncommonAttributeRuleSet;
81 Member<StyleResolver> m_styleResolver; 82 Member<StyleResolver> m_styleResolver;
82 const ElementResolveContext& m_context; 83 const ElementResolveContext& m_context;
83 84
84 friend class SharedStyleFinderTest; 85 friend class SharedStyleFinderTest;
85 }; 86 };
86 87
87 } // namespace blink 88 } // namespace blink
88 89
89 #endif // SharedStyleFinder_h 90 #endif // SharedStyleFinder_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698