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

Side by Side Diff: third_party/WebKit/Source/core/dom/StyleEngine.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 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 25 matching lines...) Expand all
36 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
37 #include "core/dom/DocumentOrderedList.h" 37 #include "core/dom/DocumentOrderedList.h"
38 #include "core/dom/DocumentStyleSheetCollection.h" 38 #include "core/dom/DocumentStyleSheetCollection.h"
39 #include "core/dom/StyleEngineContext.h" 39 #include "core/dom/StyleEngineContext.h"
40 #include "platform/heap/Handle.h" 40 #include "platform/heap/Handle.h"
41 #include "wtf/Allocator.h" 41 #include "wtf/Allocator.h"
42 #include "wtf/ListHashSet.h" 42 #include "wtf/ListHashSet.h"
43 #include "wtf/TemporaryChange.h" 43 #include "wtf/TemporaryChange.h"
44 #include "wtf/Vector.h" 44 #include "wtf/Vector.h"
45 #include "wtf/text/WTFString.h" 45 #include "wtf/text/WTFString.h"
46 #include <memory>
47 46
48 namespace blink { 47 namespace blink {
49 48
50 class CSSFontSelector; 49 class CSSFontSelector;
51 class CSSStyleSheet; 50 class CSSStyleSheet;
52 class Node; 51 class Node;
53 class RuleFeatureSet; 52 class RuleFeatureSet;
54 class ShadowTreeStyleSheetCollection; 53 class ShadowTreeStyleSheetCollection;
55 class StyleRuleFontFace; 54 class StyleRuleFontFace;
56 class StyleSheet; 55 class StyleSheet;
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 bool m_didCalculateResolver = false; 254 bool m_didCalculateResolver = false;
256 255
257 Member<StyleResolver> m_resolver; 256 Member<StyleResolver> m_resolver;
258 StyleInvalidator m_styleInvalidator; 257 StyleInvalidator m_styleInvalidator;
259 258
260 Member<CSSFontSelector> m_fontSelector; 259 Member<CSSFontSelector> m_fontSelector;
261 260
262 HeapHashMap<AtomicString, Member<StyleSheetContents>> m_textToSheetCache; 261 HeapHashMap<AtomicString, Member<StyleSheetContents>> m_textToSheetCache;
263 HeapHashMap<Member<StyleSheetContents>, AtomicString> m_sheetToTextCache; 262 HeapHashMap<Member<StyleSheetContents>, AtomicString> m_sheetToTextCache;
264 263
265 std::unique_ptr<StyleResolverStats> m_styleResolverStats; 264 OwnPtr<StyleResolverStats> m_styleResolverStats;
266 unsigned m_styleForElementCount = 0; 265 unsigned m_styleForElementCount = 0;
267 266
268 friend class StyleEngineTest; 267 friend class StyleEngineTest;
269 }; 268 };
270 269
271 } // namespace blink 270 } // namespace blink
272 271
273 #endif 272 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/StyleElementTest.cpp ('k') | third_party/WebKit/Source/core/dom/StyleEngineTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698