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

Side by Side Diff: third_party/WebKit/Source/core/css/resolver/ScopedStyleResolver.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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc.
4 * All rights reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 5 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 6 *
6 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
8 * are met: 9 * are met:
9 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
11 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
12 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
13 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
(...skipping 19 matching lines...) Expand all
33 #include "core/dom/TreeScope.h" 34 #include "core/dom/TreeScope.h"
34 #include "wtf/HashMap.h" 35 #include "wtf/HashMap.h"
35 #include "wtf/HashSet.h" 36 #include "wtf/HashSet.h"
36 37
37 namespace blink { 38 namespace blink {
38 39
39 class PageRuleCollector; 40 class PageRuleCollector;
40 class StyleSheetContents; 41 class StyleSheetContents;
41 class ViewportStyleResolver; 42 class ViewportStyleResolver;
42 43
43 // This class selects a ComputedStyle for a given element based on a collection of stylesheets. 44 // This class selects a ComputedStyle for a given element based on a collection
45 // of stylesheets.
44 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> { 46 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> {
45 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); 47 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver);
46 48
47 public: 49 public:
48 static ScopedStyleResolver* create(TreeScope& scope) { 50 static ScopedStyleResolver* create(TreeScope& scope) {
49 return new ScopedStyleResolver(scope); 51 return new ScopedStyleResolver(scope);
50 } 52 }
51 53
52 const TreeScope& treeScope() const { return *m_scope; } 54 const TreeScope& treeScope() const { return *m_scope; }
53 ScopedStyleResolver* parent() const; 55 ScopedStyleResolver* parent() const;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; 116 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>;
115 117
116 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; 118 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet;
117 bool m_hasDeepOrShadowSelector = false; 119 bool m_hasDeepOrShadowSelector = false;
118 bool m_hasUnresolvedKeyframesRule = false; 120 bool m_hasUnresolvedKeyframesRule = false;
119 }; 121 };
120 122
121 } // namespace blink 123 } // namespace blink
122 124
123 #endif // ScopedStyleResolver_h 125 #endif // ScopedStyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698