git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fullscreen element should not share styles with it's siblings.
[WebKit-https.git]
/
Source
/
WebCore
/
css
/
StyleResolver.cpp
diff --git
a/Source/WebCore/css/StyleResolver.cpp
b/Source/WebCore/css/StyleResolver.cpp
index 9dea08810d729f5464e726074a279aa5ccaa03b0..8d75a93efbf4c391f58bb7f22f7ab1aeb9649471 100644
(file)
--- a/
Source/WebCore/css/StyleResolver.cpp
+++ b/
Source/WebCore/css/StyleResolver.cpp
@@
-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;
}