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 * |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "core/css/CSSMediaRule.h" | 29 #include "core/css/CSSMediaRule.h" |
30 #include "core/css/CSSPageRule.h" | 30 #include "core/css/CSSPageRule.h" |
31 #include "core/css/CSSStyleRule.h" | 31 #include "core/css/CSSStyleRule.h" |
32 #include "core/css/CSSSupportsRule.h" | 32 #include "core/css/CSSSupportsRule.h" |
33 #include "core/css/CSSViewportRule.h" | 33 #include "core/css/CSSViewportRule.h" |
34 #include "core/css/StylePropertySet.h" | 34 #include "core/css/StylePropertySet.h" |
35 #include "core/css/StyleRuleImport.h" | 35 #include "core/css/StyleRuleImport.h" |
36 | 36 |
37 namespace WebCore { | 37 namespace WebCore { |
38 | 38 |
39 DEFINE_GC_INFO(StyleRuleBase); | |
40 | |
41 struct SameSizeAsStyleRuleBase : public RefCountedWillBeRefCountedGarbageCollect
ed<SameSizeAsStyleRuleBase> { | 39 struct SameSizeAsStyleRuleBase : public RefCountedWillBeRefCountedGarbageCollect
ed<SameSizeAsStyleRuleBase> { |
42 unsigned bitfields; | 40 unsigned bitfields; |
43 }; | 41 }; |
44 | 42 |
45 COMPILE_ASSERT(sizeof(StyleRuleBase) <= sizeof(SameSizeAsStyleRuleBase), StyleRu
leBase_should_stay_small); | 43 COMPILE_ASSERT(sizeof(StyleRuleBase) <= sizeof(SameSizeAsStyleRuleBase), StyleRu
leBase_should_stay_small); |
46 | 44 |
47 PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
) const | 45 PassRefPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet
) const |
48 { | 46 { |
49 return createCSSOMWrapper(parentSheet, 0); | 47 return createCSSOMWrapper(parentSheet, 0); |
50 } | 48 } |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
442 m_properties = m_properties->mutableCopy(); | 440 m_properties = m_properties->mutableCopy(); |
443 return toMutableStylePropertySet(m_properties); | 441 return toMutableStylePropertySet(m_properties); |
444 } | 442 } |
445 | 443 |
446 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) | 444 void StyleRuleFilter::setProperties(PassRefPtr<StylePropertySet> properties) |
447 { | 445 { |
448 m_properties = properties; | 446 m_properties = properties; |
449 } | 447 } |
450 | 448 |
451 } // namespace WebCore | 449 } // namespace WebCore |
OLD | NEW |