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

Side by Side Diff: Source/core/css/CSSDefaultStyleSheets.h

Issue 1304623002: Make blink classes and structures in core/css fast-allocated (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing (Fixed windows compile error) Created 5 years, 4 months 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 | « no previous file | Source/core/css/CSSFontFace.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 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google 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 22
23 #ifndef CSSDefaultStyleSheets_h 23 #ifndef CSSDefaultStyleSheets_h
24 #define CSSDefaultStyleSheets_h 24 #define CSSDefaultStyleSheets_h
25 25
26 #include "platform/heap/Handle.h" 26 #include "platform/heap/Handle.h"
27 #include "wtf/Allocator.h"
27 28
28 namespace blink { 29 namespace blink {
29 30
30 class Element; 31 class Element;
31 class RuleSet; 32 class RuleSet;
32 class StyleSheetContents; 33 class StyleSheetContents;
33 34
34 class CSSDefaultStyleSheets : public NoBaseWillBeGarbageCollected<CSSDefaultStyl eSheets> { 35 class CSSDefaultStyleSheets : public NoBaseWillBeGarbageCollected<CSSDefaultStyl eSheets> {
36 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(CSSDefaultStyleSheets);
37 WTF_MAKE_NONCOPYABLE(CSSDefaultStyleSheets);
35 public: 38 public:
36 static CSSDefaultStyleSheets& instance(); 39 static CSSDefaultStyleSheets& instance();
37 40
38 void ensureDefaultStyleSheetsForElement(const Element&, bool& changedDefault Style); 41 void ensureDefaultStyleSheetsForElement(const Element&, bool& changedDefault Style);
39 42
40 RuleSet* defaultStyle() { return m_defaultStyle.get(); } 43 RuleSet* defaultStyle() { return m_defaultStyle.get(); }
41 RuleSet* defaultQuirksStyle() { return m_defaultQuirksStyle.get(); } 44 RuleSet* defaultQuirksStyle() { return m_defaultQuirksStyle.get(); }
42 RuleSet* defaultPrintStyle() { return m_defaultPrintStyle.get(); } 45 RuleSet* defaultPrintStyle() { return m_defaultPrintStyle.get(); }
43 RuleSet* defaultViewSourceStyle(); 46 RuleSet* defaultViewSourceStyle();
44 RuleSet* defaultMobileViewportStyle(); 47 RuleSet* defaultMobileViewportStyle();
(...skipping 25 matching lines...) Expand all
70 RefPtrWillBeMember<StyleSheetContents> m_quirksStyleSheet; 73 RefPtrWillBeMember<StyleSheetContents> m_quirksStyleSheet;
71 RefPtrWillBeMember<StyleSheetContents> m_svgStyleSheet; 74 RefPtrWillBeMember<StyleSheetContents> m_svgStyleSheet;
72 RefPtrWillBeMember<StyleSheetContents> m_mathmlStyleSheet; 75 RefPtrWillBeMember<StyleSheetContents> m_mathmlStyleSheet;
73 RefPtrWillBeMember<StyleSheetContents> m_mediaControlsStyleSheet; 76 RefPtrWillBeMember<StyleSheetContents> m_mediaControlsStyleSheet;
74 RefPtrWillBeMember<StyleSheetContents> m_fullscreenStyleSheet; 77 RefPtrWillBeMember<StyleSheetContents> m_fullscreenStyleSheet;
75 }; 78 };
76 79
77 } // namespace blink 80 } // namespace blink
78 81
79 #endif // CSSDefaultStyleSheets_h 82 #endif // CSSDefaultStyleSheets_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/css/CSSFontFace.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698