Title: [150081] trunk/Source/WebCore
- Revision
- 150081
- Author
- grao...@apple.com
- Date
- 2013-05-14 11:03:11 -0700 (Tue, 14 May 2013)
Log Message
Snapshotted plug-ins shadow tree should reset style inheritance
https://bugs.webkit.org/show_bug.cgi?id=116098
Reset the styles such that only injected user-agent stylesheets affect
the rendering of snapshotted plug-ins' shadow content.
Reviewed by Darin Adler.
* html/HTMLPlugInImageElement.cpp:
(WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (150080 => 150081)
--- trunk/Source/WebCore/ChangeLog 2013-05-14 17:57:12 UTC (rev 150080)
+++ trunk/Source/WebCore/ChangeLog 2013-05-14 18:03:11 UTC (rev 150081)
@@ -1,3 +1,16 @@
+2013-05-14 Antoine Quint <grao...@apple.com>
+
+ Snapshotted plug-ins shadow tree should reset style inheritance
+ https://bugs.webkit.org/show_bug.cgi?id=116098
+
+ Reset the styles such that only injected user-agent stylesheets affect
+ the rendering of snapshotted plug-ins' shadow content.
+
+ Reviewed by Darin Adler.
+
+ * html/HTMLPlugInImageElement.cpp:
+ (WebCore::HTMLPlugInImageElement::didAddUserAgentShadowRoot):
+
2013-05-14 Mihnea Ovidenie <mih...@adobe.com>
[CSSRegions] Improve hit testing for empty regions
Modified: trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp (150080 => 150081)
--- trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp 2013-05-14 17:57:12 UTC (rev 150080)
+++ trunk/Source/WebCore/html/HTMLPlugInImageElement.cpp 2013-05-14 18:03:11 UTC (rev 150081)
@@ -366,6 +366,11 @@
Page* page = document()->page();
if (!page)
return;
+
+ // Reset any author styles that may apply as we only want explicit
+ // styles defined in the injected user agents stylesheets to specify
+ // the look-and-feel of the snapshotted plug-in overlay.
+ root->setResetStyleInheritance(true);
String mimeType = loadedMimeType();
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes