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

Side by Side Diff: Source/core/css/StyleRule.cpp

Issue 809823002: replace COMPILE_ASSERT with static assert in core/css/ (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 22 matching lines...) Expand all
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 blink { 37 namespace blink {
38 38
39 struct SameSizeAsStyleRuleBase : public RefCountedWillBeGarbageCollectedFinalize d<SameSizeAsStyleRuleBase> { 39 struct SameSizeAsStyleRuleBase : public RefCountedWillBeGarbageCollectedFinalize d<SameSizeAsStyleRuleBase> {
40 unsigned bitfields; 40 unsigned bitfields;
41 }; 41 };
42 42
43 COMPILE_ASSERT(sizeof(StyleRuleBase) <= sizeof(SameSizeAsStyleRuleBase), StyleRu leBase_should_stay_small); 43 static_assert(sizeof(StyleRuleBase) <= sizeof(SameSizeAsStyleRuleBase), "StyleRu leBase should stay small");
44 44
45 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet) const 45 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSStyleSheet* parentSheet) const
46 { 46 {
47 return createCSSOMWrapper(parentSheet, 0); 47 return createCSSOMWrapper(parentSheet, 0);
48 } 48 }
49 49
50 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSRule* paren tRule) const 50 PassRefPtrWillBeRawPtr<CSSRule> StyleRuleBase::createCSSOMWrapper(CSSRule* paren tRule) const
51 { 51 {
52 return createCSSOMWrapper(0, parentRule); 52 return createCSSOMWrapper(0, parentRule);
53 } 53 }
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 m_properties = properties; 476 m_properties = properties;
477 } 477 }
478 478
479 void StyleRuleFilter::traceAfterDispatch(Visitor* visitor) 479 void StyleRuleFilter::traceAfterDispatch(Visitor* visitor)
480 { 480 {
481 visitor->trace(m_properties); 481 visitor->trace(m_properties);
482 StyleRuleBase::traceAfterDispatch(visitor); 482 StyleRuleBase::traceAfterDispatch(visitor);
483 } 483 }
484 484
485 } // namespace blink 485 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/StylePropertySet.cpp ('k') | Source/core/css/resolver/AnimatedStyleBuilder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698