OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "config.h" | 31 #include "config.h" |
32 #include "WebPageSerializer.h" | 32 #include "WebPageSerializer.h" |
33 | 33 |
34 #include "DocumentLoader.h" | 34 #include "DocumentLoader.h" |
35 #include "Element.h" | 35 #include "Element.h" |
36 #include "Frame.h" | 36 #include "Frame.h" |
37 #include "HTMLAllCollection.h" | 37 #include "HTMLAllCollection.h" |
38 #include "HTMLFrameOwnerElement.h" | 38 #include "HTMLFrameOwnerElement.h" |
39 #include "HTMLInputElement.h" | 39 #include "HTMLInputElement.h" |
40 #include "HTMLNames.h" | 40 #include "HTMLNames.h" |
41 #include "KURL.h" | |
42 #include "MHTMLArchive.h" | 41 #include "MHTMLArchive.h" |
43 #include "PageSerializer.h" | 42 #include "PageSerializer.h" |
44 #include "WebFrame.h" | 43 #include "WebFrame.h" |
45 #include "WebFrameImpl.h" | 44 #include "WebFrameImpl.h" |
46 #include "WebPageSerializerClient.h" | 45 #include "WebPageSerializerClient.h" |
47 #include "WebPageSerializerImpl.h" | 46 #include "WebPageSerializerImpl.h" |
48 #include "WebView.h" | 47 #include "WebView.h" |
49 #include "WebViewImpl.h" | 48 #include "WebViewImpl.h" |
| 49 #include "core/platform/KURL.h" |
50 #include <public/WebCString.h> | 50 #include <public/WebCString.h> |
51 #include <public/WebString.h> | 51 #include <public/WebString.h> |
52 #include <public/WebURL.h> | 52 #include <public/WebURL.h> |
53 #include <public/WebVector.h> | 53 #include <public/WebVector.h> |
| 54 #include <wtf/text/StringConcatenate.h> |
54 #include <wtf/Vector.h> | 55 #include <wtf/Vector.h> |
55 #include <wtf/text/StringConcatenate.h> | |
56 | 56 |
57 using namespace WebCore; | 57 using namespace WebCore; |
58 | 58 |
59 namespace { | 59 namespace { |
60 | 60 |
61 KURL getSubResourceURLFromElement(Element* element) | 61 KURL getSubResourceURLFromElement(Element* element) |
62 { | 62 { |
63 ASSERT(element); | 63 ASSERT(element); |
64 const QualifiedName* attributeName = 0; | 64 const QualifiedName* attributeName = 0; |
65 if (element->hasTagName(HTMLNames::imgTag) || element->hasTagName(HTMLNames:
:scriptTag)) | 65 if (element->hasTagName(HTMLNames::imgTag) || element->hasTagName(HTMLNames:
:scriptTag)) |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 } | 280 } |
281 | 281 |
282 WebString WebPageSerializer::generateBaseTagDeclaration(const WebString& baseTar
get) | 282 WebString WebPageSerializer::generateBaseTagDeclaration(const WebString& baseTar
get) |
283 { | 283 { |
284 if (baseTarget.isEmpty()) | 284 if (baseTarget.isEmpty()) |
285 return makeString("<base href=\".\">"); | 285 return makeString("<base href=\".\">"); |
286 return makeString("<base href=\".\" target=\"", static_cast<const String&>(b
aseTarget), "\">"); | 286 return makeString("<base href=\".\" target=\"", static_cast<const String&>(b
aseTarget), "\">"); |
287 } | 287 } |
288 | 288 |
289 } // namespace WebKit | 289 } // namespace WebKit |
OLD | NEW |