OLD | NEW |
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. | 3 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. |
4 * All rights reserved. | 4 * All rights reserved. |
5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
6 * | 6 * |
7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
(...skipping 29 matching lines...) Expand all Loading... |
40 static CSSDefaultStyleSheets& instance(); | 40 static CSSDefaultStyleSheets& instance(); |
41 | 41 |
42 void ensureDefaultStyleSheetsForElement(const Element&, | 42 void ensureDefaultStyleSheetsForElement(const Element&, |
43 bool& changedDefaultStyle); | 43 bool& changedDefaultStyle); |
44 void ensureDefaultStyleSheetForFullscreen(); | 44 void ensureDefaultStyleSheetForFullscreen(); |
45 | 45 |
46 RuleSet* defaultStyle() { return m_defaultStyle.get(); } | 46 RuleSet* defaultStyle() { return m_defaultStyle.get(); } |
47 RuleSet* defaultQuirksStyle() { return m_defaultQuirksStyle.get(); } | 47 RuleSet* defaultQuirksStyle() { return m_defaultQuirksStyle.get(); } |
48 RuleSet* defaultPrintStyle() { return m_defaultPrintStyle.get(); } | 48 RuleSet* defaultPrintStyle() { return m_defaultPrintStyle.get(); } |
49 RuleSet* defaultViewSourceStyle(); | 49 RuleSet* defaultViewSourceStyle(); |
50 RuleSet* defaultMobileViewportStyle(); | |
51 RuleSet* defaultTelevisionViewportStyle(); | |
52 | 50 |
53 // FIXME: Remove WAP support. | 51 StyleSheetContents* ensureMobileViewportStyleSheet(); |
54 RuleSet* defaultXHTMLMobileProfileStyle(); | 52 StyleSheetContents* ensureTelevisionViewportStyleSheet(); |
| 53 StyleSheetContents* ensureXHTMLMobileProfileStyleSheet(); |
55 | 54 |
56 StyleSheetContents* defaultStyleSheet() { return m_defaultStyleSheet.get(); } | 55 StyleSheetContents* defaultStyleSheet() { return m_defaultStyleSheet.get(); } |
57 StyleSheetContents* quirksStyleSheet() { return m_quirksStyleSheet.get(); } | 56 StyleSheetContents* quirksStyleSheet() { return m_quirksStyleSheet.get(); } |
58 StyleSheetContents* svgStyleSheet() { return m_svgStyleSheet.get(); } | 57 StyleSheetContents* svgStyleSheet() { return m_svgStyleSheet.get(); } |
59 StyleSheetContents* mathmlStyleSheet() { return m_mathmlStyleSheet.get(); } | 58 StyleSheetContents* mathmlStyleSheet() { return m_mathmlStyleSheet.get(); } |
60 StyleSheetContents* mediaControlsStyleSheet() { | 59 StyleSheetContents* mediaControlsStyleSheet() { |
61 return m_mediaControlsStyleSheet.get(); | 60 return m_mediaControlsStyleSheet.get(); |
62 } | 61 } |
63 StyleSheetContents* fullscreenStyleSheet() { | 62 StyleSheetContents* fullscreenStyleSheet() { |
64 return m_fullscreenStyleSheet.get(); | 63 return m_fullscreenStyleSheet.get(); |
65 } | 64 } |
66 | 65 |
67 DECLARE_TRACE(); | 66 DECLARE_TRACE(); |
68 | 67 |
69 private: | 68 private: |
70 CSSDefaultStyleSheets(); | 69 CSSDefaultStyleSheets(); |
71 | 70 |
72 Member<RuleSet> m_defaultStyle; | 71 Member<RuleSet> m_defaultStyle; |
73 Member<RuleSet> m_defaultMobileViewportStyle; | |
74 Member<RuleSet> m_defaultTelevisionViewportStyle; | |
75 Member<RuleSet> m_defaultQuirksStyle; | 72 Member<RuleSet> m_defaultQuirksStyle; |
76 Member<RuleSet> m_defaultPrintStyle; | 73 Member<RuleSet> m_defaultPrintStyle; |
77 Member<RuleSet> m_defaultViewSourceStyle; | 74 Member<RuleSet> m_defaultViewSourceStyle; |
78 Member<RuleSet> m_defaultXHTMLMobileProfileStyle; | |
79 | 75 |
80 Member<StyleSheetContents> m_defaultStyleSheet; | 76 Member<StyleSheetContents> m_defaultStyleSheet; |
81 Member<StyleSheetContents> m_mobileViewportStyleSheet; | 77 Member<StyleSheetContents> m_mobileViewportStyleSheet; |
82 Member<StyleSheetContents> m_televisionViewportStyleSheet; | 78 Member<StyleSheetContents> m_televisionViewportStyleSheet; |
| 79 Member<StyleSheetContents> m_xhtmlMobileProfileStyleSheet; |
83 Member<StyleSheetContents> m_quirksStyleSheet; | 80 Member<StyleSheetContents> m_quirksStyleSheet; |
84 Member<StyleSheetContents> m_svgStyleSheet; | 81 Member<StyleSheetContents> m_svgStyleSheet; |
85 Member<StyleSheetContents> m_mathmlStyleSheet; | 82 Member<StyleSheetContents> m_mathmlStyleSheet; |
86 Member<StyleSheetContents> m_mediaControlsStyleSheet; | 83 Member<StyleSheetContents> m_mediaControlsStyleSheet; |
87 Member<StyleSheetContents> m_fullscreenStyleSheet; | 84 Member<StyleSheetContents> m_fullscreenStyleSheet; |
88 }; | 85 }; |
89 | 86 |
90 } // namespace blink | 87 } // namespace blink |
91 | 88 |
92 #endif // CSSDefaultStyleSheets_h | 89 #endif // CSSDefaultStyleSheets_h |
OLD | NEW |