| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 // know those old base tags are original content or added by JavaScript. If | 72 // know those old base tags are original content or added by JavaScript. If |
| 73 // they are added by JavaScript, it means when loading saved page, the script(s) | 73 // they are added by JavaScript, it means when loading saved page, the script(s) |
| 74 // will still insert base tag(s) to DOM, so the new added base tag(s) can | 74 // will still insert base tag(s) to DOM, so the new added base tag(s) can |
| 75 // override the incorrect base URL and make sure we alway load correct local | 75 // override the incorrect base URL and make sure we alway load correct local |
| 76 // saved resource files. | 76 // saved resource files. |
| 77 | 77 |
| 78 #include "config.h" | 78 #include "config.h" |
| 79 #include "WebPageSerializerImpl.h" | 79 #include "WebPageSerializerImpl.h" |
| 80 | 80 |
| 81 #include "DOMUtilitiesPrivate.h" | 81 #include "DOMUtilitiesPrivate.h" |
| 82 #include "HTMLAllCollection.h" | |
| 83 #include "HTMLElement.h" | |
| 84 #include "HTMLFormElement.h" | |
| 85 #include "HTMLMetaElement.h" | |
| 86 #include "HTMLNames.h" | 82 #include "HTMLNames.h" |
| 87 #include "WebFrameImpl.h" | 83 #include "WebFrameImpl.h" |
| 88 #include "core/dom/Document.h" | 84 #include "core/dom/Document.h" |
| 89 #include "core/dom/DocumentType.h" | 85 #include "core/dom/DocumentType.h" |
| 90 #include "core/dom/Element.h" | 86 #include "core/dom/Element.h" |
| 91 #include "core/editing/markup.h" | 87 #include "core/editing/markup.h" |
| 88 #include "core/html/HTMLAllCollection.h" |
| 89 #include "core/html/HTMLElement.h" |
| 90 #include "core/html/HTMLFormElement.h" |
| 91 #include "core/html/HTMLMetaElement.h" |
| 92 #include "core/loader/DocumentLoader.h" | 92 #include "core/loader/DocumentLoader.h" |
| 93 #include "core/loader/FrameLoader.h" | 93 #include "core/loader/FrameLoader.h" |
| 94 #include "core/platform/KURL.h" | 94 #include "core/platform/KURL.h" |
| 95 #include "core/platform/text/TextEncoding.h" | 95 #include "core/platform/text/TextEncoding.h" |
| 96 #include <public/WebURL.h> | 96 #include <public/WebURL.h> |
| 97 #include <public/WebVector.h> | 97 #include <public/WebVector.h> |
| 98 | 98 |
| 99 using namespace WebCore; | 99 using namespace WebCore; |
| 100 | 100 |
| 101 namespace WebKit { | 101 namespace WebKit { |
| (...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 | 522 |
| 523 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); | 523 encodeAndFlushBuffer(WebPageSerializerClient::CurrentFrameIsFinished, &p
aram, ForceFlush); |
| 524 } | 524 } |
| 525 | 525 |
| 526 ASSERT(m_dataBuffer.isEmpty()); | 526 ASSERT(m_dataBuffer.isEmpty()); |
| 527 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); | 527 m_client->didSerializeDataForFrame(KURL(), WebCString("", 0), WebPageSeriali
zerClient::AllFramesAreFinished); |
| 528 return didSerialization; | 528 return didSerialization; |
| 529 } | 529 } |
| 530 | 530 |
| 531 } // namespace WebKit | 531 } // namespace WebKit |
| OLD | NEW |