OSDN Git Service
(root)
/
android-x86
/
external-webkit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8852b09
)
Add necessary null pointer check to avoid crash on youtube video
author
Teng-Hui Zhu
<ztenghui@google.com>
Tue, 8 Nov 2011 21:34:17 +0000
(13:34 -0800)
committer
Teng-Hui Zhu
<ztenghui@google.com>
Tue, 8 Nov 2011 21:59:03 +0000
(13:59 -0800)
bug:
5562347
Change-Id: I9b53a58137d70955bde5334c7c8b581343a8c2ce
Source/WebCore/dom/Document.cpp
patch
|
blob
|
history
diff --git
a/Source/WebCore/dom/Document.cpp
b/Source/WebCore/dom/Document.cpp
index
d85a949
..
6e21dc3
100644
(file)
--- a/
Source/WebCore/dom/Document.cpp
+++ b/
Source/WebCore/dom/Document.cpp
@@
-4902,6
+4902,10
@@
void Document::webkitWillEnterFullScreenForElement(Element* element)
m_fullScreenRenderer->setAnimating(true);
#if USE(ACCELERATED_COMPOSITING)
view()->updateCompositingLayers();
+#if PLATFORM(ANDROID)
+ if (!m_fullScreenRenderer->layer())
+ return;
+#endif
if (m_fullScreenRenderer->layer()->isComposited())
page()->chrome()->client()->setRootFullScreenLayer(m_fullScreenRenderer->layer()->backing()->graphicsLayer());
#endif