Changeset 68198 in webkit
- Timestamp:
- Sep 23, 2010 2:36:18 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r68197 r68198 1 2010-09-23 Jeff Schiller <jeffschiller@google.com> 2 3 Reviewed by David Hyatt. 4 5 Test to confirm that object/iframe/embed backgrounds are transparent for SVG documents 6 https://bugs.webkit.org/show_bug.cgi?id=10687 7 8 * platform/mac/svg/in-html/by-reference-expected.txt: Added. 9 * svg/in-html/by-reference-expected.checksum: Added. 10 * svg/in-html/by-reference-expected.png: Added. 11 * svg/in-html/by-reference.html: Added. 12 1 13 2010-09-23 Hans Wennborg <hans@chromium.org> 2 14 -
trunk/WebCore/ChangeLog
r68197 r68198 1 2010-09-23 Jeff Schiller <jeffschiller@google.com> 2 3 Reviewed by David Hyatt. 4 5 Ensure that SVG documents included by reference (object, iframe, embed) have transparent 6 backgrounds (not white). https://bugs.webkit.org/show_bug.cgi?id=10687 7 8 Test: svg/in-html/by-reference.html 9 10 * dom/Document.cpp: 11 (WebCore::Document::hasSVGRootNode): 12 * dom/Document.h: 13 (WebCore::Document::hasSVGRootNode): 14 * rendering/RenderBoxModelObject.cpp: 15 (WebCore::RenderBoxModelObject::paintFillLayerExtended): 16 1 17 2010-09-23 Hans Wennborg <hans@chromium.org> 2 18 -
trunk/WebCore/dom/Document.cpp
r68195 r68198 4029 4029 return m_svgExtensions.get(); 4030 4030 } 4031 4032 bool Document::hasSVGRootNode() const 4033 { 4034 return documentElement() && documentElement()->hasTagName(SVGNames::svgTag); 4035 } 4031 4036 #endif 4032 4037 -
trunk/WebCore/dom/Document.h
r67512 r68198 386 386 #if ENABLE(SVG) 387 387 virtual bool isSVGDocument() const { return false; } 388 bool hasSVGRootNode() const; 388 389 #else 389 390 static bool isSVGDocument() { return false; } 391 static bool hasSVGRootNode() { return false; } 390 392 #endif 391 393 virtual bool isPluginDocument() const { return false; } -
trunk/WebCore/rendering/RenderBoxModelObject.cpp
r67921 r68198 625 625 isOpaqueRoot = body->hasLocalName(framesetTag); 626 626 } 627 #if ENABLE(SVG) 628 else { 629 // SVG documents and XML documents with SVG root nodes are transparent. 630 isOpaqueRoot = !document()->hasSVGRootNode(); 631 } 632 #endif 627 633 } 628 634 } else
Note: See TracChangeset
for help on using the changeset viewer.