OLD | NEW |
1 /* | 1 /* |
2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) | 2 * (C) 1999-2003 Lars Knoll (knoll@kde.org) |
3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) | 3 * (C) 2002-2003 Dirk Mueller (mueller@kde.org) |
4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. | 4 * Copyright (C) 2002, 2005, 2006, 2008, 2012 Apple Inc. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
20 */ | 20 */ |
21 | 21 |
22 #include "config.h" | 22 #include "config.h" |
23 #include "core/css/StyleRule.h" | 23 #include "core/css/StyleRule.h" |
24 | 24 |
25 #include "RuntimeEnabledFeatures.h" | 25 #include "RuntimeEnabledFeatures.h" |
26 #include "core/css/CSSCharsetRule.h" | |
27 #include "core/css/CSSFilterRule.h" | 26 #include "core/css/CSSFilterRule.h" |
28 #include "core/css/CSSFontFaceRule.h" | 27 #include "core/css/CSSFontFaceRule.h" |
29 #include "core/css/CSSHostRule.h" | 28 #include "core/css/CSSHostRule.h" |
30 #include "core/css/CSSImportRule.h" | 29 #include "core/css/CSSImportRule.h" |
31 #include "core/css/CSSKeyframeRule.h" | |
32 #include "core/css/CSSKeyframesRule.h" | 30 #include "core/css/CSSKeyframesRule.h" |
33 #include "core/css/CSSMediaRule.h" | 31 #include "core/css/CSSMediaRule.h" |
34 #include "core/css/CSSPageRule.h" | 32 #include "core/css/CSSPageRule.h" |
35 #include "core/css/CSSRegionRule.h" | 33 #include "core/css/CSSRegionRule.h" |
36 #include "core/css/CSSStyleRule.h" | 34 #include "core/css/CSSStyleRule.h" |
37 #include "core/css/CSSSupportsRule.h" | 35 #include "core/css/CSSSupportsRule.h" |
38 #include "core/css/CSSUnknownRule.h" | |
39 #include "core/css/CSSViewportRule.h" | 36 #include "core/css/CSSViewportRule.h" |
40 #include "core/css/StylePropertySet.h" | 37 #include "core/css/StylePropertySet.h" |
41 #include "core/css/StyleRuleImport.h" | 38 #include "core/css/StyleRuleImport.h" |
42 #include "core/dom/WebCoreMemoryInstrumentation.h" | 39 #include "core/dom/WebCoreMemoryInstrumentation.h" |
43 #include "wtf/MemoryInstrumentationVector.h" | |
44 | 40 |
45 namespace WebCore { | 41 namespace WebCore { |
46 | 42 |
47 struct SameSizeAsStyleRuleBase : public WTF::RefCountedBase { | 43 struct SameSizeAsStyleRuleBase : public WTF::RefCountedBase { |
48 unsigned bitfields; | 44 unsigned bitfields; |
49 }; | 45 }; |
50 | 46 |
51 COMPILE_ASSERT(sizeof(StyleRuleBase) == sizeof(SameSizeAsStyleRuleBase), StyleRu
leBase_should_stay_small); | 47 COMPILE_ASSERT(sizeof(StyleRuleBase) == sizeof(SameSizeAsStyleRuleBase), StyleRu
leBase_should_stay_small); |
52 | 48 |
53 PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
) const | 49 PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
) const |
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
492 } | 488 } |
493 | 489 |
494 void StyleRuleFilter::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
Info) const | 490 void StyleRuleFilter::reportDescendantMemoryUsage(MemoryObjectInfo* memoryObject
Info) const |
495 { | 491 { |
496 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); | 492 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::CSS); |
497 info.addMember(m_filterName); | 493 info.addMember(m_filterName); |
498 info.addMember(m_properties); | 494 info.addMember(m_properties); |
499 } | 495 } |
500 | 496 |
501 } // namespace WebCore | 497 } // namespace WebCore |
OLD | NEW |