| 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 |
| 51 StyleSheetContents* ensureMobileViewportStyleSheet(); |
| 52 StyleSheetContents* ensureTelevisionViewportStyleSheet(); |
| 53 // FIXME: Remove WAP support. | 53 // FIXME: Remove WAP support. |
| 54 RuleSet* defaultXHTMLMobileProfileStyle(); | 54 StyleSheetContents* ensureXHTMLMobileProfileStyleSheet(); |
| 55 | 55 |
| 56 StyleSheetContents* defaultStyleSheet() { return m_defaultStyleSheet.get(); } | 56 StyleSheetContents* defaultStyleSheet() { return m_defaultStyleSheet.get(); } |
| 57 StyleSheetContents* quirksStyleSheet() { return m_quirksStyleSheet.get(); } | 57 StyleSheetContents* quirksStyleSheet() { return m_quirksStyleSheet.get(); } |
| 58 StyleSheetContents* svgStyleSheet() { return m_svgStyleSheet.get(); } | 58 StyleSheetContents* svgStyleSheet() { return m_svgStyleSheet.get(); } |
| 59 StyleSheetContents* mathmlStyleSheet() { return m_mathmlStyleSheet.get(); } | 59 StyleSheetContents* mathmlStyleSheet() { return m_mathmlStyleSheet.get(); } |
| 60 StyleSheetContents* mediaControlsStyleSheet() { | 60 StyleSheetContents* mediaControlsStyleSheet() { |
| 61 return m_mediaControlsStyleSheet.get(); | 61 return m_mediaControlsStyleSheet.get(); |
| 62 } | 62 } |
| 63 StyleSheetContents* fullscreenStyleSheet() { | 63 StyleSheetContents* fullscreenStyleSheet() { |
| 64 return m_fullscreenStyleSheet.get(); | 64 return m_fullscreenStyleSheet.get(); |
| 65 } | 65 } |
| 66 | 66 |
| 67 DECLARE_TRACE(); | 67 DECLARE_TRACE(); |
| 68 | 68 |
| 69 private: | 69 private: |
| 70 CSSDefaultStyleSheets(); | 70 CSSDefaultStyleSheets(); |
| 71 | 71 |
| 72 Member<RuleSet> m_defaultStyle; | 72 Member<RuleSet> m_defaultStyle; |
| 73 Member<RuleSet> m_defaultMobileViewportStyle; | |
| 74 Member<RuleSet> m_defaultTelevisionViewportStyle; | |
| 75 Member<RuleSet> m_defaultQuirksStyle; | 73 Member<RuleSet> m_defaultQuirksStyle; |
| 76 Member<RuleSet> m_defaultPrintStyle; | 74 Member<RuleSet> m_defaultPrintStyle; |
| 77 Member<RuleSet> m_defaultViewSourceStyle; | 75 Member<RuleSet> m_defaultViewSourceStyle; |
| 78 Member<RuleSet> m_defaultXHTMLMobileProfileStyle; | |
| 79 | 76 |
| 80 Member<StyleSheetContents> m_defaultStyleSheet; | 77 Member<StyleSheetContents> m_defaultStyleSheet; |
| 81 Member<StyleSheetContents> m_mobileViewportStyleSheet; | 78 Member<StyleSheetContents> m_mobileViewportStyleSheet; |
| 82 Member<StyleSheetContents> m_televisionViewportStyleSheet; | 79 Member<StyleSheetContents> m_televisionViewportStyleSheet; |
| 80 Member<StyleSheetContents> m_xhtmlMobileProfileStyleSheet; |
| 83 Member<StyleSheetContents> m_quirksStyleSheet; | 81 Member<StyleSheetContents> m_quirksStyleSheet; |
| 84 Member<StyleSheetContents> m_svgStyleSheet; | 82 Member<StyleSheetContents> m_svgStyleSheet; |
| 85 Member<StyleSheetContents> m_mathmlStyleSheet; | 83 Member<StyleSheetContents> m_mathmlStyleSheet; |
| 86 Member<StyleSheetContents> m_mediaControlsStyleSheet; | 84 Member<StyleSheetContents> m_mediaControlsStyleSheet; |
| 87 Member<StyleSheetContents> m_fullscreenStyleSheet; | 85 Member<StyleSheetContents> m_fullscreenStyleSheet; |
| 88 }; | 86 }; |
| 89 | 87 |
| 90 } // namespace blink | 88 } // namespace blink |
| 91 | 89 |
| 92 #endif // CSSDefaultStyleSheets_h | 90 #endif // CSSDefaultStyleSheets_h |
| OLD | NEW |