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

Side by Side Diff: Source/core/css/resolver/ScopedStyleResolver.cpp

Issue 17480002: Remove unused includes from core/accessibility, core/css and core/dom (Closed) Base URL: https://chromium.googlesource.com/chromium/blink@master
Patch Set: rebased ; update <wtf/Foo.h> to "wtf/Foo.h" in changed files Created 7 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 23 matching lines...) Expand all
34 #include "core/css/RuleFeature.h" 34 #include "core/css/RuleFeature.h"
35 #include "core/css/RuleSet.h" 35 #include "core/css/RuleSet.h"
36 #include "core/css/StyleRule.h" 36 #include "core/css/StyleRule.h"
37 #include "core/dom/Document.h" 37 #include "core/dom/Document.h"
38 #include "core/dom/WebCoreMemoryInstrumentation.h" 38 #include "core/dom/WebCoreMemoryInstrumentation.h"
39 #include "core/dom/shadow/ContentDistributor.h" 39 #include "core/dom/shadow/ContentDistributor.h"
40 #include "core/dom/shadow/ElementShadow.h" 40 #include "core/dom/shadow/ElementShadow.h"
41 #include "core/dom/shadow/ShadowRoot.h" 41 #include "core/dom/shadow/ShadowRoot.h"
42 #include "core/html/HTMLStyleElement.h" 42 #include "core/html/HTMLStyleElement.h"
43 #include "wtf/MemoryInstrumentationHashMap.h" 43 #include "wtf/MemoryInstrumentationHashMap.h"
44 #include "wtf/MemoryInstrumentationHashSet.h"
45 44
46 namespace WebCore { 45 namespace WebCore {
47 46
48 ScopedStyleResolver* ScopedStyleTree::ensureScopedStyleResolver(const ContainerN ode* scopingNode) 47 ScopedStyleResolver* ScopedStyleTree::ensureScopedStyleResolver(const ContainerN ode* scopingNode)
49 { 48 {
50 ASSERT(scopingNode); 49 ASSERT(scopingNode);
51 bool isNewEntry; 50 bool isNewEntry;
52 ScopedStyleResolver* scopedStyleResolver = addScopedStyleResolver(scopingNod e, isNewEntry); 51 ScopedStyleResolver* scopedStyleResolver = addScopedStyleResolver(scopingNod e, isNewEntry);
53 if (isNewEntry) 52 if (isNewEntry)
54 setupScopedStylesTree(scopedStyleResolver); 53 setupScopedStylesTree(scopedStyleResolver);
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 } 322 }
324 323
325 void ScopedStyleResolver::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const 324 void ScopedStyleResolver::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const
326 { 325 {
327 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); 326 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS);
328 info.addMember(m_authorStyle, "authorStyle"); 327 info.addMember(m_authorStyle, "authorStyle");
329 info.addMember(m_atHostRules, "atHostRules"); 328 info.addMember(m_atHostRules, "atHostRules");
330 } 329 }
331 330
332 } // namespace WebCore 331 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/resolver/ScopedStyleResolver.h ('k') | Source/core/css/resolver/StyleResolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698