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 21 matching lines...) Expand all Loading... |
32 class Element; | 32 class Element; |
33 class RuleSet; | 33 class RuleSet; |
34 class StyleSheetContents; | 34 class StyleSheetContents; |
35 | 35 |
36 class CSSDefaultStyleSheets : public GarbageCollected<CSSDefaultStyleSheets> { | 36 class CSSDefaultStyleSheets : public GarbageCollected<CSSDefaultStyleSheets> { |
37 WTF_MAKE_NONCOPYABLE(CSSDefaultStyleSheets); | 37 WTF_MAKE_NONCOPYABLE(CSSDefaultStyleSheets); |
38 | 38 |
39 public: | 39 public: |
40 static CSSDefaultStyleSheets& instance(); | 40 static CSSDefaultStyleSheets& instance(); |
41 | 41 |
42 void ensureDefaultStyleSheetsForElement(const Element&, | 42 bool ensureDefaultStyleSheetsForElement(const Element&); |
43 bool& changedDefaultStyle); | |
44 void ensureDefaultStyleSheetForFullscreen(); | 43 void ensureDefaultStyleSheetForFullscreen(); |
45 | 44 |
46 RuleSet* defaultStyle() { return m_defaultStyle.get(); } | 45 RuleSet* defaultStyle() { return m_defaultStyle.get(); } |
47 RuleSet* defaultQuirksStyle() { return m_defaultQuirksStyle.get(); } | 46 RuleSet* defaultQuirksStyle() { return m_defaultQuirksStyle.get(); } |
48 RuleSet* defaultPrintStyle() { return m_defaultPrintStyle.get(); } | 47 RuleSet* defaultPrintStyle() { return m_defaultPrintStyle.get(); } |
49 RuleSet* defaultViewSourceStyle(); | 48 RuleSet* defaultViewSourceStyle(); |
50 | 49 |
51 StyleSheetContents* ensureMobileViewportStyleSheet(); | 50 StyleSheetContents* ensureMobileViewportStyleSheet(); |
52 StyleSheetContents* ensureTelevisionViewportStyleSheet(); | 51 StyleSheetContents* ensureTelevisionViewportStyleSheet(); |
53 StyleSheetContents* ensureXHTMLMobileProfileStyleSheet(); | 52 StyleSheetContents* ensureXHTMLMobileProfileStyleSheet(); |
(...skipping 26 matching lines...) Expand all Loading... |
80 Member<StyleSheetContents> m_quirksStyleSheet; | 79 Member<StyleSheetContents> m_quirksStyleSheet; |
81 Member<StyleSheetContents> m_svgStyleSheet; | 80 Member<StyleSheetContents> m_svgStyleSheet; |
82 Member<StyleSheetContents> m_mathmlStyleSheet; | 81 Member<StyleSheetContents> m_mathmlStyleSheet; |
83 Member<StyleSheetContents> m_mediaControlsStyleSheet; | 82 Member<StyleSheetContents> m_mediaControlsStyleSheet; |
84 Member<StyleSheetContents> m_fullscreenStyleSheet; | 83 Member<StyleSheetContents> m_fullscreenStyleSheet; |
85 }; | 84 }; |
86 | 85 |
87 } // namespace blink | 86 } // namespace blink |
88 | 87 |
89 #endif // CSSDefaultStyleSheets_h | 88 #endif // CSSDefaultStyleSheets_h |
OLD | NEW |