| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |