| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 | 259 |
| 260 void MHTMLArchive::addSubresource(ArchiveResource* resource) { | 260 void MHTMLArchive::addSubresource(ArchiveResource* resource) { |
| 261 const KURL& url = resource->url(); | 261 const KURL& url = resource->url(); |
| 262 m_subresources.set(url, resource); | 262 m_subresources.set(url, resource); |
| 263 KURL cidURI = MHTMLParser::convertContentIDToURI(resource->contentID()); | 263 KURL cidURI = MHTMLParser::convertContentIDToURI(resource->contentID()); |
| 264 if (cidURI.isValid()) | 264 if (cidURI.isValid()) |
| 265 m_subresources.set(cidURI, resource); | 265 m_subresources.set(cidURI, resource); |
| 266 } | 266 } |
| 267 | 267 |
| 268 ArchiveResource* MHTMLArchive::subresourceForURL(const KURL& url) const { | 268 ArchiveResource* MHTMLArchive::subresourceForURL(const KURL& url) const { |
| 269 return m_subresources.get(url.getString()); | 269 return m_subresources.at(url.getString()); |
| 270 } | 270 } |
| 271 | 271 |
| 272 DEFINE_TRACE(MHTMLArchive) { | 272 DEFINE_TRACE(MHTMLArchive) { |
| 273 visitor->trace(m_mainResource); | 273 visitor->trace(m_mainResource); |
| 274 visitor->trace(m_subresources); | 274 visitor->trace(m_subresources); |
| 275 } | 275 } |
| 276 | 276 |
| 277 } // namespace blink | 277 } // namespace blink |
| OLD | NEW |