| 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 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2154 { | 2154 { |
| 2155 String stringValue = value->toWireString(); | 2155 String stringValue = value->toWireString(); |
| 2156 DOMArrayBuffer* buffer = DOMArrayBuffer::createUninitialized(stringValue.len
gth(), sizeof(UChar)); | 2156 DOMArrayBuffer* buffer = DOMArrayBuffer::createUninitialized(stringValue.len
gth(), sizeof(UChar)); |
| 2157 stringValue.copyTo(static_cast<UChar*>(buffer->data()), 0, stringValue.lengt
h()); | 2157 stringValue.copyTo(static_cast<UChar*>(buffer->data()), 0, stringValue.lengt
h()); |
| 2158 return buffer; | 2158 return buffer; |
| 2159 } | 2159 } |
| 2160 | 2160 |
| 2161 PassRefPtr<SerializedScriptValue> Internals::deserializeBuffer(DOMArrayBuffer* b
uffer) const | 2161 PassRefPtr<SerializedScriptValue> Internals::deserializeBuffer(DOMArrayBuffer* b
uffer) const |
| 2162 { | 2162 { |
| 2163 String value(static_cast<const UChar*>(buffer->data()), buffer->byteLength()
/ sizeof(UChar)); | 2163 String value(static_cast<const UChar*>(buffer->data()), buffer->byteLength()
/ sizeof(UChar)); |
| 2164 return SerializedScriptValueFactory::instance().createFromWire(value); | 2164 return SerializedScriptValue::create(value); |
| 2165 } | 2165 } |
| 2166 | 2166 |
| 2167 void Internals::forceReload(bool bypassCache) | 2167 void Internals::forceReload(bool bypassCache) |
| 2168 { | 2168 { |
| 2169 frame()->reload(bypassCache ? FrameLoadTypeReloadBypassingCache : FrameLoadT
ypeReload, ClientRedirectPolicy::NotClientRedirect); | 2169 frame()->reload(bypassCache ? FrameLoadTypeReloadBypassingCache : FrameLoadT
ypeReload, ClientRedirectPolicy::NotClientRedirect); |
| 2170 } | 2170 } |
| 2171 | 2171 |
| 2172 ClientRect* Internals::selectionBounds(ExceptionState& exceptionState) | 2172 ClientRect* Internals::selectionBounds(ExceptionState& exceptionState) |
| 2173 { | 2173 { |
| 2174 Document* document = contextDocument(); | 2174 Document* document = contextDocument(); |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2588 } | 2588 } |
| 2589 | 2589 |
| 2590 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2590 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
| 2591 { | 2591 { |
| 2592 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2592 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2593 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2593 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
| 2594 return String(); | 2594 return String(); |
| 2595 } | 2595 } |
| 2596 | 2596 |
| 2597 } // namespace blink | 2597 } // namespace blink |
| OLD | NEW |