| 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 2136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2147 } | 2147 } |
| 2148 | 2148 |
| 2149 PassRefPtr<SerializedScriptValue> Internals::deserializeBuffer(PassRefPtr<DOMArr
ayBuffer> buffer) const | 2149 PassRefPtr<SerializedScriptValue> Internals::deserializeBuffer(PassRefPtr<DOMArr
ayBuffer> buffer) const |
| 2150 { | 2150 { |
| 2151 String value(static_cast<const UChar*>(buffer->data()), buffer->byteLength()
/ sizeof(UChar)); | 2151 String value(static_cast<const UChar*>(buffer->data()), buffer->byteLength()
/ sizeof(UChar)); |
| 2152 return SerializedScriptValueFactory::instance().createFromWire(value); | 2152 return SerializedScriptValueFactory::instance().createFromWire(value); |
| 2153 } | 2153 } |
| 2154 | 2154 |
| 2155 void Internals::forceReload(bool bypassCache) | 2155 void Internals::forceReload(bool bypassCache) |
| 2156 { | 2156 { |
| 2157 frame()->reload(bypassCache ? FrameLoadTypeReloadBypassingCache : FrameLoadT
ypeReload, NotClientRedirect); | 2157 frame()->reload(bypassCache ? FrameLoadTypeReloadBypassingCache : FrameLoadT
ypeReload, ClientRedirectPolicy::NotClientRedirect); |
| 2158 } | 2158 } |
| 2159 | 2159 |
| 2160 ClientRect* Internals::selectionBounds(ExceptionState& exceptionState) | 2160 ClientRect* Internals::selectionBounds(ExceptionState& exceptionState) |
| 2161 { | 2161 { |
| 2162 Document* document = contextDocument(); | 2162 Document* document = contextDocument(); |
| 2163 if (!document || !document->frame()) { | 2163 if (!document || !document->frame()) { |
| 2164 exceptionState.throwDOMException(InvalidAccessError, document ? "The doc
ument's frame cannot be retrieved." : "No context document can be obtained."); | 2164 exceptionState.throwDOMException(InvalidAccessError, document ? "The doc
ument's frame cannot be retrieved." : "No context document can be obtained."); |
| 2165 return nullptr; | 2165 return nullptr; |
| 2166 } | 2166 } |
| 2167 | 2167 |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2581 } | 2581 } |
| 2582 | 2582 |
| 2583 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2583 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
| 2584 { | 2584 { |
| 2585 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2585 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2586 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2586 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
| 2587 return String(); | 2587 return String(); |
| 2588 } | 2588 } |
| 2589 | 2589 |
| 2590 } // namespace blink | 2590 } // namespace blink |
| OLD | NEW |