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

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

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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. All rights reserved.
4 * Copyright (C) 2012 Google Inc. All rights reserved. 4 * Copyright (C) 2012 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 14 matching lines...) Expand all
25 */ 25 */
26 26
27 #ifndef ScopedStyleResolver_h 27 #ifndef ScopedStyleResolver_h
28 #define ScopedStyleResolver_h 28 #define ScopedStyleResolver_h
29 29
30 #include "core/css/ElementRuleCollector.h" 30 #include "core/css/ElementRuleCollector.h"
31 #include "core/css/RuleSet.h" 31 #include "core/css/RuleSet.h"
32 #include "core/dom/TreeScope.h" 32 #include "core/dom/TreeScope.h"
33 #include "wtf/HashMap.h" 33 #include "wtf/HashMap.h"
34 #include "wtf/HashSet.h" 34 #include "wtf/HashSet.h"
35 #include "wtf/OwnPtr.h"
36 #include "wtf/PassOwnPtr.h"
35 37
36 namespace blink { 38 namespace blink {
37 39
38 class PageRuleCollector; 40 class PageRuleCollector;
39 class StyleSheetContents; 41 class StyleSheetContents;
40 class ViewportStyleResolver; 42 class ViewportStyleResolver;
41 43
42 // 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 of stylesheets.
43 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> { 45 class ScopedStyleResolver final : public GarbageCollected<ScopedStyleResolver> {
44 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver); 46 WTF_MAKE_NONCOPYABLE(ScopedStyleResolver);
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 }; 108 };
107 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>; 109 using CSSStyleSheetRuleSubSet = HeapVector<Member<RuleSubSet>>;
108 110
109 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet; 111 Member<CSSStyleSheetRuleSubSet> m_treeBoundaryCrossingRuleSet;
110 bool m_hasDeepOrShadowSelector = false; 112 bool m_hasDeepOrShadowSelector = false;
111 }; 113 };
112 114
113 } // namespace blink 115 } // namespace blink
114 116
115 #endif // ScopedStyleResolver_h 117 #endif // ScopedStyleResolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698