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

Side by Side Diff: sky/engine/core/css/CSSRule.cpp

Issue 746023002: Make absolute and sort all Sky headers (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 | « sky/engine/core/css/CSSRule.h ('k') | sky/engine/core/css/CSSRuleList.h » ('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, 2007, 2012 Apple Inc. All rights reserved. 4 * Copyright (C) 2002, 2005, 2006, 2007, 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 "sky/engine/config.h"
23 #include "core/css/CSSRule.h" 23 #include "sky/engine/core/css/CSSRule.h"
24 24
25 #include "core/css/CSSStyleSheet.h" 25 #include "sky/engine/core/css/CSSStyleSheet.h"
26 #include "core/css/StyleRule.h" 26 #include "sky/engine/core/css/StyleRule.h"
27 #include "core/css/StyleSheetContents.h" 27 #include "sky/engine/core/css/StyleSheetContents.h"
28 #include "platform/NotImplemented.h" 28 #include "sky/engine/platform/NotImplemented.h"
29 29
30 namespace blink { 30 namespace blink {
31 31
32 // VC++ 2013 doesn't support EBCO (Empty Base Class Optimization), and having 32 // VC++ 2013 doesn't support EBCO (Empty Base Class Optimization), and having
33 // multiple empty base classes makes the size of CSSRule bloat (Note that both 33 // multiple empty base classes makes the size of CSSRule bloat (Note that both
34 // of GarbageCollectedFinalized and ScriptWrappableBase are empty classes). 34 // of GarbageCollectedFinalized and ScriptWrappableBase are empty classes).
35 // See the following article for details. 35 // See the following article for details.
36 // http://social.msdn.microsoft.com/forums/vstudio/en-US/504c6598-6076-4acf-96b6 -e6acb475d302/vc-multiple-inheritance-empty-base-classes-bloats-object-size 36 // http://social.msdn.microsoft.com/forums/vstudio/en-US/504c6598-6076-4acf-96b6 -e6acb475d302/vc-multiple-inheritance-empty-base-classes-bloats-object-size
37 // 37 //
38 // FIXME: Remove ScriptWrappableBase from the base class list once VC++'s issue 38 // FIXME: Remove ScriptWrappableBase from the base class list once VC++'s issue
(...skipping 15 matching lines...) Expand all
54 notImplemented(); 54 notImplemented();
55 } 55 }
56 56
57 const CSSParserContext& CSSRule::parserContext() const 57 const CSSParserContext& CSSRule::parserContext() const
58 { 58 {
59 CSSStyleSheet* styleSheet = parentStyleSheet(); 59 CSSStyleSheet* styleSheet = parentStyleSheet();
60 return styleSheet ? styleSheet->contents()->parserContext() : strictCSSParse rContext(); 60 return styleSheet ? styleSheet->contents()->parserContext() : strictCSSParse rContext();
61 } 61 }
62 62
63 } // namespace blink 63 } // namespace blink
OLDNEW
« no previous file with comments | « sky/engine/core/css/CSSRule.h ('k') | sky/engine/core/css/CSSRuleList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698