OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 #include "core/html/HTMLLinkElement.h" | 56 #include "core/html/HTMLLinkElement.h" |
57 #include "core/html/HTMLMetaElement.h" | 57 #include "core/html/HTMLMetaElement.h" |
58 #include "core/html/HTMLStyleElement.h" | 58 #include "core/html/HTMLStyleElement.h" |
59 #include "core/html/ImageDocument.h" | 59 #include "core/html/ImageDocument.h" |
60 #include "core/style/StyleFetchedImage.h" | 60 #include "core/style/StyleFetchedImage.h" |
61 #include "core/style/StyleImage.h" | 61 #include "core/style/StyleImage.h" |
62 #include "platform/SerializedResource.h" | 62 #include "platform/SerializedResource.h" |
63 #include "platform/graphics/Image.h" | 63 #include "platform/graphics/Image.h" |
64 #include "platform/heap/Handle.h" | 64 #include "platform/heap/Handle.h" |
65 #include "wtf/HashSet.h" | 65 #include "wtf/HashSet.h" |
| 66 #include "wtf/OwnPtr.h" |
66 #include "wtf/text/CString.h" | 67 #include "wtf/text/CString.h" |
67 #include "wtf/text/StringBuilder.h" | 68 #include "wtf/text/StringBuilder.h" |
68 #include "wtf/text/TextEncoding.h" | 69 #include "wtf/text/TextEncoding.h" |
69 #include "wtf/text/WTFString.h" | 70 #include "wtf/text/WTFString.h" |
70 | 71 |
71 namespace blink { | 72 namespace blink { |
72 | 73 |
73 static bool shouldIgnoreElement(const Element& element) | 74 static bool shouldIgnoreElement(const Element& element) |
74 { | 75 { |
75 if (isHTMLScriptElement(element)) | 76 if (isHTMLScriptElement(element)) |
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
478 continue; | 479 continue; |
479 } | 480 } |
480 emitsMinus = ch == '-'; | 481 emitsMinus = ch == '-'; |
481 builder.append(ch); | 482 builder.append(ch); |
482 } | 483 } |
483 CString escapedUrl = builder.toString().ascii(); | 484 CString escapedUrl = builder.toString().ascii(); |
484 return String::format("saved from url=(%04d)%s", static_cast<int>(escapedUrl
.length()), escapedUrl.data()); | 485 return String::format("saved from url=(%04d)%s", static_cast<int>(escapedUrl
.length()), escapedUrl.data()); |
485 } | 486 } |
486 | 487 |
487 } // namespace blink | 488 } // namespace blink |
OLD | NEW |