OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |