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

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

Issue 1140153006: Remove Navigation Transitions from Blink. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed layout tests. Created 5 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/css/CSSDefaultStyleSheets.h ('k') | Source/core/css/navigationTransitions.css » ('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 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com) 3 * (C) 2004-2005 Allan Sandfeld Jensen (kde@carewolf.com)
4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com) 4 * Copyright (C) 2006, 2007 Nicholas Shanks (webkit@nickshanks.com)
5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved. 5 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012 Apple Inc. All r ights reserved.
6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org> 6 * Copyright (C) 2007 Alexey Proskuryakov <ap@webkit.org>
7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org> 7 * Copyright (C) 2007, 2008 Eric Seidel <eric@webkit.org>
8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 8 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved. 9 * Copyright (c) 2011, Code Aurora Forum. All rights reserved.
10 * Copyright (C) Research In Motion Limited 2011. All rights reserved. 10 * Copyright (C) Research In Motion Limited 2011. All rights reserved.
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 return sheet.release(); 72 return sheet.release();
73 } 73 }
74 74
75 CSSDefaultStyleSheets::CSSDefaultStyleSheets() 75 CSSDefaultStyleSheets::CSSDefaultStyleSheets()
76 : m_defaultStyle(nullptr) 76 : m_defaultStyle(nullptr)
77 , m_defaultMobileViewportStyle(nullptr) 77 , m_defaultMobileViewportStyle(nullptr)
78 , m_defaultQuirksStyle(nullptr) 78 , m_defaultQuirksStyle(nullptr)
79 , m_defaultPrintStyle(nullptr) 79 , m_defaultPrintStyle(nullptr)
80 , m_defaultViewSourceStyle(nullptr) 80 , m_defaultViewSourceStyle(nullptr)
81 , m_defaultXHTMLMobileProfileStyle(nullptr) 81 , m_defaultXHTMLMobileProfileStyle(nullptr)
82 , m_defaultTransitionStyle(nullptr)
83 , m_defaultStyleSheet(nullptr) 82 , m_defaultStyleSheet(nullptr)
84 , m_mobileViewportStyleSheet(nullptr) 83 , m_mobileViewportStyleSheet(nullptr)
85 , m_quirksStyleSheet(nullptr) 84 , m_quirksStyleSheet(nullptr)
86 , m_svgStyleSheet(nullptr) 85 , m_svgStyleSheet(nullptr)
87 , m_mathmlStyleSheet(nullptr) 86 , m_mathmlStyleSheet(nullptr)
88 , m_mediaControlsStyleSheet(nullptr) 87 , m_mediaControlsStyleSheet(nullptr)
89 , m_fullscreenStyleSheet(nullptr) 88 , m_fullscreenStyleSheet(nullptr)
90 { 89 {
91 m_defaultStyle = RuleSet::create(); 90 m_defaultStyle = RuleSet::create();
92 m_defaultPrintStyle = RuleSet::create(); 91 m_defaultPrintStyle = RuleSet::create();
(...skipping 15 matching lines...) Expand all
108 { 107 {
109 if (!m_defaultViewSourceStyle) { 108 if (!m_defaultViewSourceStyle) {
110 m_defaultViewSourceStyle = RuleSet::create(); 109 m_defaultViewSourceStyle = RuleSet::create();
111 // Loaded stylesheet is leaked on purpose. 110 // Loaded stylesheet is leaked on purpose.
112 RefPtrWillBeRawPtr<StyleSheetContents> stylesheet = parseUASheet(loadRes ourceAsASCIIString("view-source.css")); 111 RefPtrWillBeRawPtr<StyleSheetContents> stylesheet = parseUASheet(loadRes ourceAsASCIIString("view-source.css"));
113 m_defaultViewSourceStyle->addRulesFromSheet(stylesheet.release().leakRef (), screenEval()); 112 m_defaultViewSourceStyle->addRulesFromSheet(stylesheet.release().leakRef (), screenEval());
114 } 113 }
115 return m_defaultViewSourceStyle.get(); 114 return m_defaultViewSourceStyle.get();
116 } 115 }
117 116
118 RuleSet* CSSDefaultStyleSheets::defaultTransitionStyle()
119 {
120 if (!m_defaultTransitionStyle) {
121 m_defaultTransitionStyle = RuleSet::create();
122 // Loaded stylesheet is leaked on purpose.
123 RefPtrWillBeRawPtr<StyleSheetContents> stylesheet = parseUASheet(loadRes ourceAsASCIIString("navigationTransitions.css"));
124 m_defaultTransitionStyle->addRulesFromSheet(stylesheet.release().leakRef (), screenEval());
125 }
126 return m_defaultTransitionStyle.get();
127 }
128
129 RuleSet* CSSDefaultStyleSheets::defaultXHTMLMobileProfileStyle() 117 RuleSet* CSSDefaultStyleSheets::defaultXHTMLMobileProfileStyle()
130 { 118 {
131 if (!m_defaultXHTMLMobileProfileStyle) { 119 if (!m_defaultXHTMLMobileProfileStyle) {
132 m_defaultXHTMLMobileProfileStyle = RuleSet::create(); 120 m_defaultXHTMLMobileProfileStyle = RuleSet::create();
133 // Loaded stylesheet is leaked on purpose. 121 // Loaded stylesheet is leaked on purpose.
134 RefPtrWillBeRawPtr<StyleSheetContents> stylesheet = parseUASheet(loadRes ourceAsASCIIString("xhtmlmp.css")); 122 RefPtrWillBeRawPtr<StyleSheetContents> stylesheet = parseUASheet(loadRes ourceAsASCIIString("xhtmlmp.css"));
135 m_defaultXHTMLMobileProfileStyle->addRulesFromSheet(stylesheet.release() .leakRef(), screenEval()); 123 m_defaultXHTMLMobileProfileStyle->addRulesFromSheet(stylesheet.release() .leakRef(), screenEval());
136 } 124 }
137 return m_defaultXHTMLMobileProfileStyle.get(); 125 return m_defaultXHTMLMobileProfileStyle.get();
138 } 126 }
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } 178 }
191 179
192 DEFINE_TRACE(CSSDefaultStyleSheets) 180 DEFINE_TRACE(CSSDefaultStyleSheets)
193 { 181 {
194 visitor->trace(m_defaultStyle); 182 visitor->trace(m_defaultStyle);
195 visitor->trace(m_defaultMobileViewportStyle); 183 visitor->trace(m_defaultMobileViewportStyle);
196 visitor->trace(m_defaultQuirksStyle); 184 visitor->trace(m_defaultQuirksStyle);
197 visitor->trace(m_defaultPrintStyle); 185 visitor->trace(m_defaultPrintStyle);
198 visitor->trace(m_defaultViewSourceStyle); 186 visitor->trace(m_defaultViewSourceStyle);
199 visitor->trace(m_defaultXHTMLMobileProfileStyle); 187 visitor->trace(m_defaultXHTMLMobileProfileStyle);
200 visitor->trace(m_defaultTransitionStyle);
201 visitor->trace(m_defaultStyleSheet); 188 visitor->trace(m_defaultStyleSheet);
202 visitor->trace(m_mobileViewportStyleSheet); 189 visitor->trace(m_mobileViewportStyleSheet);
203 visitor->trace(m_quirksStyleSheet); 190 visitor->trace(m_quirksStyleSheet);
204 visitor->trace(m_svgStyleSheet); 191 visitor->trace(m_svgStyleSheet);
205 visitor->trace(m_mathmlStyleSheet); 192 visitor->trace(m_mathmlStyleSheet);
206 visitor->trace(m_mediaControlsStyleSheet); 193 visitor->trace(m_mediaControlsStyleSheet);
207 visitor->trace(m_fullscreenStyleSheet); 194 visitor->trace(m_fullscreenStyleSheet);
208 } 195 }
209 196
210 } // namespace blink 197 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/css/CSSDefaultStyleSheets.h ('k') | Source/core/css/navigationTransitions.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698