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 276 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 WebString WebPageSerializer::generateMarkOfTheWebDeclaration(const WebURL& url) | 287 WebString WebPageSerializer::generateMarkOfTheWebDeclaration(const WebURL& url) |
288 { | 288 { |
289 return String::format("\n<!-- saved from url=(%04d)%s -->\n", | 289 return String::format("\n<!-- saved from url=(%04d)%s -->\n", |
290 static_cast<int>(url.spec().length()), | 290 static_cast<int>(url.spec().length()), |
291 url.spec().data()); | 291 url.spec().data()); |
292 } | 292 } |
293 | 293 |
294 WebString WebPageSerializer::generateBaseTagDeclaration(const WebString& baseTar
get) | 294 WebString WebPageSerializer::generateBaseTagDeclaration(const WebString& baseTar
get) |
295 { | 295 { |
296 if (baseTarget.isEmpty()) | 296 if (baseTarget.isEmpty()) |
297 return String(ASCIILiteral("<base href=\".\">")); | 297 return String("<base href=\".\">"); |
298 String baseString = "<base href=\".\" target=\"" + static_cast<const String&
>(baseTarget) + "\">"; | 298 String baseString = "<base href=\".\" target=\"" + static_cast<const String&
>(baseTarget) + "\">"; |
299 return baseString; | 299 return baseString; |
300 } | 300 } |
301 | 301 |
302 } // namespace WebKit | 302 } // namespace WebKit |
OLD | NEW |