https://bugs.webkit.org/show_bug.cgi?id=76391
Reviewed by John Sullivan.
No new tests; Speculative fix for crash.
Crash report data suggests this crash is occurring as the document is being
closed. Check the nullity of document()->page() before deref-ing.
* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlPanelElement::makeOpaque):
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@105425
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2012-01-16 Jer Noble <jer.noble@apple.com>
+
+ Crash at WebCore::MediaControlRootElement::makeOpaque + 97
+ https://bugs.webkit.org/show_bug.cgi?id=76391
+
+ Reviewed by John Sullivan.
+
+ No new tests; Speculative fix for crash.
+
+ Crash report data suggests this crash is occurring as the document is being
+ closed. Check the nullity of document()->page() before deref-ing.
+
+ * html/shadow/MediaControlElements.cpp:
+ (WebCore::MediaControlPanelElement::makeOpaque):
+
2012-01-19 Ken Buchanan <kenrb@chromium.org>
Layout Test fast/text/international/spaces-combined-in-vertical-text.html is failing
{
if (m_opaque)
return;
-
+
+ double duration = document()->page() ? document()->page()->theme()->mediaControlsFadeInDuration() : 0;
+
CSSInlineStyleDeclaration* style = ensureInlineStyleDecl();
style->setProperty(CSSPropertyWebkitTransitionProperty, CSSPropertyOpacity);
- style->setProperty(CSSPropertyWebkitTransitionDuration, document()->page()->theme()->mediaControlsFadeInDuration(), CSSPrimitiveValue::CSS_S);
+ style->setProperty(CSSPropertyWebkitTransitionDuration, duration, CSSPrimitiveValue::CSS_S);
style->setProperty(CSSPropertyOpacity, 1.0, CSSPrimitiveValue::CSS_NUMBER);
m_opaque = true;