OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2008, 2009, Google Inc. All rights reserved. | 2 * Copyright (c) 2008, 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.par
sed(), relativeUTF8.data(), relativeUTF8.length(), 0, buffer, &parsed); | 47 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.par
sed(), relativeUTF8.data(), relativeUTF8.length(), 0, buffer, &parsed); |
48 } | 48 } |
49 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.parsed(
), relative.characters16(), relative.length(), 0, buffer, &parsed); | 49 return url::ResolveRelative(baseUTF8.data(), baseUTF8.length(), base.parsed(
), relative.characters16(), relative.length(), 0, buffer, &parsed); |
50 } | 50 } |
51 | 51 |
52 LinkHash visitedLinkHash(const KURL& base, const AtomicString& relative) | 52 LinkHash visitedLinkHash(const KURL& base, const AtomicString& relative) |
53 { | 53 { |
54 if (relative.isNull()) | 54 if (relative.isNull()) |
55 return 0; | 55 return 0; |
56 url::RawCanonOutput<2048> buffer; | 56 url::RawCanonOutput<2048> buffer; |
57 if (!resolveRelative(base, relative.string(), &buffer)) | 57 if (!resolveRelative(base, relative.getString(), &buffer)) |
58 return 0; | 58 return 0; |
59 return Platform::current()->visitedLinkHash(buffer.data(), buffer.length()); | 59 return Platform::current()->visitedLinkHash(buffer.data(), buffer.length()); |
60 } | 60 } |
61 | 61 |
62 } // namespace blink | 62 } // namespace blink |
OLD | NEW |