Changeset 29913 in webkit
- Timestamp:
- Feb 1, 2008 1:35:00 AM (16 years ago)
- Location:
- trunk
- Files:
-
- 3 added
- 12 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r29905 r29913 1 2008-02-01 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Oliver. 4 5 Add test for getSVGDocument() on object, embed, frame and iframe. 6 7 * svg/custom/frame-getSVGDocument.html: Added. 8 * svg/custom/frame-getSVGDocument-expected.txt: Added. 9 * svg/custom/resources/TEMPLATE.html: Added. 10 1 11 2008-01-31 Kevin McCullough <kmccullough@apple.com> 2 12 -
trunk/WebCore/ChangeLog
r29910 r29913 1 2008-02-01 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Oliver. 4 5 Add getSVGDocument to frame and iframe. 6 7 Test: svg/custom/frame-getSVGDocument.html 8 9 * html/HTMLEmbedElement.cpp: 10 * html/HTMLEmbedElement.h: 11 * html/HTMLFrameElement.idl: 12 * html/HTMLFrameOwnerElement.cpp: 13 (WebCore::HTMLFrameOwnerElement::getSVGDocument): 14 * html/HTMLFrameOwnerElement.h: 15 * html/HTMLIFrameElement.idl: 16 * html/HTMLObjectElement.cpp: 17 * html/HTMLObjectElement.h: 18 1 19 2008-01-30 Eric Seidel <eric@webkit.org> 2 20 -
trunk/WebCore/html/HTMLEmbedElement.cpp
r27982 r29913 34 34 #include "HTMLNames.h" 35 35 #include "RenderPartObject.h" 36 37 #if ENABLE(SVG)38 #include "ExceptionCode.h"39 #include "SVGDocument.h"40 #endif41 36 42 37 namespace WebCore { … … 246 241 } 247 242 248 #if ENABLE(SVG) 249 SVGDocument* HTMLEmbedElement::getSVGDocument(ExceptionCode& ec) const 250 { 251 Document* doc = contentDocument(); 252 if (doc && doc->isSVGDocument()) 253 return static_cast<SVGDocument*>(doc); 254 // Spec: http://www.w3.org/TR/SVG/struct.html#InterfaceGetSVGDocument 255 ec = NOT_SUPPORTED_ERR; 256 return 0; 257 } 258 #endif 259 260 } 243 } -
trunk/WebCore/html/HTMLEmbedElement.h
r27982 r29913 34 34 namespace WebCore { 35 35 36 class SVGDocument;37 38 36 class HTMLEmbedElement : public HTMLPlugInElement { 39 37 public: … … 69 67 String type() const; 70 68 void setType(const String&); 71 72 #if ENABLE(SVG)73 SVGDocument* getSVGDocument(ExceptionCode&) const;74 #endif75 69 76 70 DeprecatedString url; -
trunk/WebCore/html/HTMLFrameElement.idl
r29672 r29913 42 42 // Extensions 43 43 readonly attribute DOMWindow contentWindow; 44 45 #if ENABLE_SVG 46 [SVGCheckSecurityDocument] SVGDocument getSVGDocument() 47 raises(DOMException); 48 #endif 44 49 #endif 45 50 -
trunk/WebCore/html/HTMLFrameOwnerElement.cpp
r27125 r29913 25 25 #include "Frame.h" 26 26 #include "FrameLoader.h" 27 28 #if ENABLE(SVG) 29 #include "ExceptionCode.h" 30 #include "SVGDocument.h" 31 #endif 27 32 28 33 namespace WebCore { … … 61 66 } 62 67 68 #if ENABLE(SVG) 69 SVGDocument* HTMLFrameOwnerElement::getSVGDocument(ExceptionCode& ec) const 70 { 71 Document* doc = contentDocument(); 72 if (doc && doc->isSVGDocument()) 73 return static_cast<SVGDocument*>(doc); 74 // Spec: http://www.w3.org/TR/SVG/struct.html#InterfaceGetSVGDocument 75 ec = NOT_SUPPORTED_ERR; 76 return 0; 77 } 78 #endif 79 63 80 } // namespace WebCore -
trunk/WebCore/html/HTMLFrameOwnerElement.h
r29722 r29913 30 30 class KeyboardEvent; 31 31 32 #if ENABLE(SVG) 33 class SVGDocument; 34 #endif 35 32 36 class HTMLFrameOwnerElement : public HTMLElement { 33 37 protected: … … 51 55 virtual ScrollbarMode scrollingMode() const { return ScrollbarAuto; } 52 56 57 #if ENABLE(SVG) 58 SVGDocument* getSVGDocument(ExceptionCode&) const; 59 #endif 60 53 61 private: 54 62 friend class Frame; -
trunk/WebCore/html/HTMLIFrameElement.idl
r29672 r29913 44 44 // Extensions 45 45 readonly attribute DOMWindow contentWindow; 46 47 #if ENABLE_SVG 48 [SVGCheckSecurityDocument] SVGDocument getSVGDocument() 49 raises(DOMException); 50 #endif 46 51 #endif 47 52 -
trunk/WebCore/html/HTMLObjectElement.cpp
r27982 r29913 43 43 #include "Text.h" 44 44 45 #if ENABLE(SVG)46 #include "SVGDocument.h"47 #endif48 49 45 namespace WebCore { 50 46 … … 492 488 } 493 489 494 #if ENABLE(SVG) 495 SVGDocument* HTMLObjectElement::getSVGDocument(ExceptionCode& ec) const 496 { 497 Document* doc = contentDocument(); 498 if (doc && doc->isSVGDocument()) 499 return static_cast<SVGDocument*>(doc); 500 // Spec: http://www.w3.org/TR/SVG/struct.html#InterfaceGetSVGDocument 501 ec = NOT_SUPPORTED_ERR; 502 return 0; 503 } 504 #endif 505 506 } 490 } -
trunk/WebCore/html/HTMLObjectElement.h
r27982 r29913 30 30 31 31 class HTMLImageLoader; 32 33 #if ENABLE(SVG)34 class SVGDocument;35 #endif36 32 37 33 class HTMLObjectElement : public HTMLPlugInElement { … … 114 110 bool containsJavaApplet() const; 115 111 116 #if ENABLE(SVG)117 SVGDocument* getSVGDocument(ExceptionCode&) const;118 #endif119 120 112 String m_serviceType; 121 113 String m_url; -
trunk/WebKitTools/ChangeLog
r29899 r29913 1 2008-02-01 Eric Seidel <eric@webkit.org> 2 3 Reviewed by Oliver. 4 5 Also search LayoutTests/svg for js-based tests. 6 7 * Scripts/make-js-test-wrappers: 8 1 9 2008-01-31 Alp Toker <alp@atoker.com> 2 10 -
trunk/WebKitTools/Scripts/make-js-test-wrappers
r28848 r29913 41 41 chdirWebKit(); 42 42 43 my @templates = `find LayoutTests/fast -name "TEMPLATE.html"`;43 my @templates = `find LayoutTests/fast LayoutTests/svg -name "TEMPLATE.html"`; 44 44 45 45 for my $tfile (@templates) {
Note: See TracChangeset
for help on using the changeset viewer.