| 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 2607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2618 DOMArrayBuffer* buffer) const { | 2618 DOMArrayBuffer* buffer) const { |
| 2619 String value(static_cast<const UChar*>(buffer->data()), | 2619 String value(static_cast<const UChar*>(buffer->data()), |
| 2620 buffer->byteLength() / sizeof(UChar)); | 2620 buffer->byteLength() / sizeof(UChar)); |
| 2621 return SerializedScriptValue::create(value); | 2621 return SerializedScriptValue::create(value); |
| 2622 } | 2622 } |
| 2623 | 2623 |
| 2624 void Internals::forceReload(bool bypassCache) { | 2624 void Internals::forceReload(bool bypassCache) { |
| 2625 if (!frame()) | 2625 if (!frame()) |
| 2626 return; | 2626 return; |
| 2627 | 2627 |
| 2628 frame()->reload(bypassCache ? FrameLoadTypeReloadBypassingCache | 2628 frame()->reload( |
| 2629 : FrameLoadTypeReloadMainResource, | 2629 bypassCache ? FrameLoadTypeReloadBypassingCache : FrameLoadTypeReload, |
| 2630 ClientRedirectPolicy::NotClientRedirect); | 2630 ClientRedirectPolicy::NotClientRedirect); |
| 2631 } | 2631 } |
| 2632 | 2632 |
| 2633 Node* Internals::visibleSelectionAnchorNode() { | 2633 Node* Internals::visibleSelectionAnchorNode() { |
| 2634 if (!frame()) | 2634 if (!frame()) |
| 2635 return nullptr; | 2635 return nullptr; |
| 2636 Position position = | 2636 Position position = |
| 2637 frame()->selection().computeVisibleSelectionInDOMTreeDeprecated().base(); | 2637 frame()->selection().computeVisibleSelectionInDOMTreeDeprecated().base(); |
| 2638 return position.isNull() ? nullptr : position.computeContainerNode(); | 2638 return position.isNull() ? nullptr : position.computeContainerNode(); |
| 2639 } | 2639 } |
| 2640 | 2640 |
| (...skipping 542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3183 | 3183 |
| 3184 void Internals::crash() { | 3184 void Internals::crash() { |
| 3185 CHECK(false) << "Intentional crash"; | 3185 CHECK(false) << "Intentional crash"; |
| 3186 } | 3186 } |
| 3187 | 3187 |
| 3188 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3188 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
| 3189 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3189 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
| 3190 } | 3190 } |
| 3191 | 3191 |
| 3192 } // namespace blink | 3192 } // namespace blink |
| OLD | NEW |