| 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 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2616 return; | 2616 return; |
| 2617 | 2617 |
| 2618 frame()->reload(bypassCache ? FrameLoadTypeReloadBypassingCache | 2618 frame()->reload(bypassCache ? FrameLoadTypeReloadBypassingCache |
| 2619 : FrameLoadTypeReloadMainResource, | 2619 : FrameLoadTypeReloadMainResource, |
| 2620 ClientRedirectPolicy::NotClientRedirect); | 2620 ClientRedirectPolicy::NotClientRedirect); |
| 2621 } | 2621 } |
| 2622 | 2622 |
| 2623 Node* Internals::visibleSelectionAnchorNode() { | 2623 Node* Internals::visibleSelectionAnchorNode() { |
| 2624 if (!frame()) | 2624 if (!frame()) |
| 2625 return nullptr; | 2625 return nullptr; |
| 2626 Position position = frame()->selection().base(); | 2626 Position position = |
| 2627 frame()->selection().computeVisibleSelectionInDOMTreeDeprecated().base(); |
| 2627 return position.isNull() ? nullptr : position.computeContainerNode(); | 2628 return position.isNull() ? nullptr : position.computeContainerNode(); |
| 2628 } | 2629 } |
| 2629 | 2630 |
| 2630 unsigned Internals::visibleSelectionAnchorOffset() { | 2631 unsigned Internals::visibleSelectionAnchorOffset() { |
| 2631 if (!frame()) | 2632 if (!frame()) |
| 2632 return 0; | 2633 return 0; |
| 2633 Position position = frame()->selection().base(); | 2634 Position position = |
| 2635 frame()->selection().computeVisibleSelectionInDOMTreeDeprecated().base(); |
| 2634 return position.isNull() ? 0 : position.computeOffsetInContainerNode(); | 2636 return position.isNull() ? 0 : position.computeOffsetInContainerNode(); |
| 2635 } | 2637 } |
| 2636 | 2638 |
| 2637 Node* Internals::visibleSelectionFocusNode() { | 2639 Node* Internals::visibleSelectionFocusNode() { |
| 2638 if (!frame()) | 2640 if (!frame()) |
| 2639 return nullptr; | 2641 return nullptr; |
| 2640 Position position = frame()->selection().extent(); | 2642 Position position = frame()->selection().extent(); |
| 2641 return position.isNull() ? nullptr : position.computeContainerNode(); | 2643 return position.isNull() ? nullptr : position.computeContainerNode(); |
| 2642 } | 2644 } |
| 2643 | 2645 |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3160 | 3162 |
| 3161 void Internals::crash() { | 3163 void Internals::crash() { |
| 3162 CHECK(false) << "Intentional crash"; | 3164 CHECK(false) << "Intentional crash"; |
| 3163 } | 3165 } |
| 3164 | 3166 |
| 3165 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3167 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
| 3166 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3168 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
| 3167 } | 3169 } |
| 3168 | 3170 |
| 3169 } // namespace blink | 3171 } // namespace blink |
| OLD | NEW |