| 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 15 matching lines...) Expand all Loading... |
| 26 #include "core/css/CSSImportRule.h" | 26 #include "core/css/CSSImportRule.h" |
| 27 #include "core/css/CSSKeyframesRule.h" | 27 #include "core/css/CSSKeyframesRule.h" |
| 28 #include "core/css/CSSMediaRule.h" | 28 #include "core/css/CSSMediaRule.h" |
| 29 #include "core/css/CSSPageRule.h" | 29 #include "core/css/CSSPageRule.h" |
| 30 #include "core/css/CSSStyleRule.h" | 30 #include "core/css/CSSStyleRule.h" |
| 31 #include "core/css/CSSSupportsRule.h" | 31 #include "core/css/CSSSupportsRule.h" |
| 32 #include "core/css/CSSViewportRule.h" | 32 #include "core/css/CSSViewportRule.h" |
| 33 #include "core/css/StyleRuleImport.h" | 33 #include "core/css/StyleRuleImport.h" |
| 34 #include "core/css/StyleRuleKeyframe.h" | 34 #include "core/css/StyleRuleKeyframe.h" |
| 35 #include "core/css/StyleRuleNamespace.h" | 35 #include "core/css/StyleRuleNamespace.h" |
| 36 #include "wtf/SizeAssertions.h" |
| 36 | 37 |
| 37 namespace blink { | 38 namespace blink { |
| 38 | 39 |
| 39 struct SameSizeAsStyleRuleBase : public RefCountedWillBeGarbageCollectedFinalize
d<SameSizeAsStyleRuleBase> { | 40 ASSERT_SIZE(StyleRuleBase, 8, 8); |
| 40 unsigned bitfields; | |
| 41 }; | |
| 42 | |
| 43 static_assert(sizeof(StyleRuleBase) <= sizeof(SameSizeAsStyleRuleBase), "StyleRu
leBase should stay small"); | |
| 44 | 41 |
| 45 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet*
parentSheet) const | 42 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet*
parentSheet) const |
| 46 { | 43 { |
| 47 return createCSSOMWrapper(parentSheet, 0); | 44 return createCSSOMWrapper(parentSheet, 0); |
| 48 } | 45 } |
| 49 | 46 |
| 50 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSRule* paren
tRule) const | 47 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSRule* paren
tRule) const |
| 51 { | 48 { |
| 52 return createCSSOMWrapper(0, parentRule); | 49 return createCSSOMWrapper(0, parentRule); |
| 53 } | 50 } |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 425 return *toMutableStylePropertySet(m_properties); | 422 return *toMutableStylePropertySet(m_properties); |
| 426 } | 423 } |
| 427 | 424 |
| 428 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleViewport) | 425 DEFINE_TRACE_AFTER_DISPATCH(StyleRuleViewport) |
| 429 { | 426 { |
| 430 visitor->trace(m_properties); | 427 visitor->trace(m_properties); |
| 431 StyleRuleBase::traceAfterDispatch(visitor); | 428 StyleRuleBase::traceAfterDispatch(visitor); |
| 432 } | 429 } |
| 433 | 430 |
| 434 } // namespace blink | 431 } // namespace blink |
| OLD | NEW |