[webkit-changes] cvs commit: WebCore/khtml/html html_objectimpl.cpp
Eric
eseidel at opensource.apple.com
Wed Oct 5 01:18:27 PDT 2005
eseidel 05/10/05 01:18:26
Modified: . ChangeLog
khtml/html html_objectimpl.cpp
Log:
Bug #: 5175
Submitted by: eseidel
Reviewed by: mjs
Makes <object> tags not use image mode for svg content:
http://bugzilla.opendarwin.org/show_bug.cgi?id=5175
* khtml/html/html_objectimpl.cpp:
(DOM::HTMLObjectElementImpl::isImageType):
Revision Changes Path
1.201 +10 -0 WebCore/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /cvs/root/WebCore/ChangeLog,v
retrieving revision 1.200
retrieving revision 1.201
diff -u -r1.200 -r1.201
--- ChangeLog 5 Oct 2005 07:50:44 -0000 1.200
+++ ChangeLog 5 Oct 2005 08:18:24 -0000 1.201
@@ -1,3 +1,13 @@
+2005-10-05 Eric Seidel <eseidel at apple.com>
+
+ Reviewed by mjs.
+
+ Makes <object> tags not use image mode for svg content:
+ http://bugzilla.opendarwin.org/show_bug.cgi?id=5175
+
+ * khtml/html/html_objectimpl.cpp:
+ (DOM::HTMLObjectElementImpl::isImageType):
+
2005-10-05 Anders Carlsson <andersca at mac.com>
Reviewed by Maciej.
1.81 +6 -0 WebCore/khtml/html/html_objectimpl.cpp
Index: html_objectimpl.cpp
===================================================================
RCS file: /cvs/root/WebCore/khtml/html/html_objectimpl.cpp,v
retrieving revision 1.80
retrieving revision 1.81
diff -u -r1.80 -r1.81
--- html_objectimpl.cpp 3 Oct 2005 21:12:29 -0000 1.80
+++ html_objectimpl.cpp 5 Oct 2005 08:18:26 -0000 1.81
@@ -839,6 +839,12 @@
serviceType = "text/plain"; // Data URLs with no MIME type are considered text/plain.
}
}
+
+#if SVG_SUPPORT
+ // Even if the image system supports it, we don't want to render SVGs as images.
+ if (serviceType == "image/svg+xml")
+ return false;
+#endif
return canRenderImageType(serviceType);
}
More information about the webkit-changes
mailing list