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

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

Issue 23819007: Have Node::document() return a reference instead of a pointer (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase on master Created 7 years, 3 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/CSSCursorImageValue.cpp ('k') | Source/core/css/CSSGradientValue.cpp » ('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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 } 169 }
170 170
171 if (!mediaControlsStyleSheet && (isHTMLVideoElement(element) || element->has TagName(audioTag))) { 171 if (!mediaControlsStyleSheet && (isHTMLVideoElement(element) || element->has TagName(audioTag))) {
172 String mediaRules = String(mediaControlsUserAgentStyleSheet, sizeof(medi aControlsUserAgentStyleSheet)) + RenderTheme::theme().extraMediaControlsStyleShe et(); 172 String mediaRules = String(mediaControlsUserAgentStyleSheet, sizeof(medi aControlsUserAgentStyleSheet)) + RenderTheme::theme().extraMediaControlsStyleShe et();
173 mediaControlsStyleSheet = parseUASheet(mediaRules); 173 mediaControlsStyleSheet = parseUASheet(mediaRules);
174 defaultStyle->addRulesFromSheet(mediaControlsStyleSheet, screenEval()); 174 defaultStyle->addRulesFromSheet(mediaControlsStyleSheet, screenEval());
175 defaultPrintStyle->addRulesFromSheet(mediaControlsStyleSheet, printEval( )); 175 defaultPrintStyle->addRulesFromSheet(mediaControlsStyleSheet, printEval( ));
176 changedDefaultStyle = true; 176 changedDefaultStyle = true;
177 } 177 }
178 178
179 if (!fullscreenStyleSheet && FullscreenElementStack::isFullScreen(element->d ocument())) { 179 if (!fullscreenStyleSheet && FullscreenElementStack::isFullScreen(&element-> document())) {
180 String fullscreenRules = String(fullscreenUserAgentStyleSheet, sizeof(fu llscreenUserAgentStyleSheet)) + RenderTheme::theme().extraFullScreenStyleSheet() ; 180 String fullscreenRules = String(fullscreenUserAgentStyleSheet, sizeof(fu llscreenUserAgentStyleSheet)) + RenderTheme::theme().extraFullScreenStyleSheet() ;
181 fullscreenStyleSheet = parseUASheet(fullscreenRules); 181 fullscreenStyleSheet = parseUASheet(fullscreenRules);
182 defaultStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval()); 182 defaultStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval());
183 defaultQuirksStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval() ); 183 defaultQuirksStyle->addRulesFromSheet(fullscreenStyleSheet, screenEval() );
184 changedDefaultStyle = true; 184 changedDefaultStyle = true;
185 } 185 }
186 186
187 ASSERT(defaultStyle->features().idsInRules.isEmpty()); 187 ASSERT(defaultStyle->features().idsInRules.isEmpty());
188 ASSERT(mathMLStyleSheet || defaultStyle->features().siblingRules.isEmpty()); 188 ASSERT(mathMLStyleSheet || defaultStyle->features().siblingRules.isEmpty());
189 } 189 }
190 190
191 } // namespace WebCore 191 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/css/CSSCursorImageValue.cpp ('k') | Source/core/css/CSSGradientValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698