Fullscreen element should not share styles with it's siblings.
[WebKit-https.git] / Source / WebCore / css / StyleResolver.cpp
index 9dea08810d729f5464e726074a279aa5ccaa03b0..8d75a93efbf4c391f58bb7f22f7ab1aeb9649471 100644 (file)
@@ -1245,6 +1245,10 @@ bool StyleResolver::canShareStyleWithElement(StyledElement* element) const
         return false;
 #endif
 
+#if ENABLE(FULLSCREEN_API)
+    if (element == element->document()->webkitCurrentFullScreenElement() || m_element == m_element->document()->webkitCurrentFullScreenElement())
+        return false;
+#endif
     return true;
 }