| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 bool Internals::isPreloaded(const String& url) | 347 bool Internals::isPreloaded(const String& url) |
| 348 { | 348 { |
| 349 Document* document = contextDocument(); | 349 Document* document = contextDocument(); |
| 350 return document->fetcher()->isPreloaded(url); | 350 return document->fetcher()->isPreloaded(url); |
| 351 } | 351 } |
| 352 | 352 |
| 353 bool Internals::isLoadingFromMemoryCache(const String& url) | 353 bool Internals::isLoadingFromMemoryCache(const String& url) |
| 354 { | 354 { |
| 355 if (!contextDocument()) | 355 if (!contextDocument()) |
| 356 return false; | 356 return false; |
| 357 Resource* resource = memoryCache()->resourceForURL(contextDocument()->comple
teURL(url)); | 357 const String cacheIdentifier = contextDocument()->fetcher()->getCacheIdentif
ier(); |
| 358 Resource* resource = memoryCache()->resourceForURL(contextDocument()->comple
teURL(url), cacheIdentifier); |
| 358 return resource && resource->status() == Resource::Cached; | 359 return resource && resource->status() == Resource::Cached; |
| 359 } | 360 } |
| 360 | 361 |
| 361 bool Internals::isSharingStyle(Element* element1, Element* element2) const | 362 bool Internals::isSharingStyle(Element* element1, Element* element2) const |
| 362 { | 363 { |
| 363 ASSERT(element1 && element2); | 364 ASSERT(element1 && element2); |
| 364 return element1->renderStyle() == element2->renderStyle(); | 365 return element1->renderStyle() == element2->renderStyle(); |
| 365 } | 366 } |
| 366 | 367 |
| 367 bool Internals::isValidContentSelect(Element* insertionPoint, ExceptionState& ex
ceptionState) | 368 bool Internals::isValidContentSelect(Element* insertionPoint, ExceptionState& ex
ceptionState) |
| (...skipping 1922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2290 } | 2291 } |
| 2291 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2292 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
| 2292 } | 2293 } |
| 2293 | 2294 |
| 2294 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2295 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
| 2295 { | 2296 { |
| 2296 return new InternalsIterator; | 2297 return new InternalsIterator; |
| 2297 } | 2298 } |
| 2298 | 2299 |
| 2299 } // namespace blink | 2300 } // namespace blink |
| OLD | NEW |