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 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 Vector<String> Internals::formControlStateOfHistoryItem( | 862 Vector<String> Internals::formControlStateOfHistoryItem( |
863 ExceptionState& exceptionState) { | 863 ExceptionState& exceptionState) { |
864 HistoryItem* mainItem = nullptr; | 864 HistoryItem* mainItem = nullptr; |
865 if (frame()) | 865 if (frame()) |
866 mainItem = frame()->loader().currentItem(); | 866 mainItem = frame()->loader().currentItem(); |
867 if (!mainItem) { | 867 if (!mainItem) { |
868 exceptionState.throwDOMException(InvalidAccessError, | 868 exceptionState.throwDOMException(InvalidAccessError, |
869 "No history item is available."); | 869 "No history item is available."); |
870 return Vector<String>(); | 870 return Vector<String>(); |
871 } | 871 } |
872 return mainItem->documentState(); | 872 return mainItem->getDocumentState(); |
873 } | 873 } |
874 | 874 |
875 void Internals::setFormControlStateOfHistoryItem( | 875 void Internals::setFormControlStateOfHistoryItem( |
876 const Vector<String>& state, | 876 const Vector<String>& state, |
877 ExceptionState& exceptionState) { | 877 ExceptionState& exceptionState) { |
878 HistoryItem* mainItem = nullptr; | 878 HistoryItem* mainItem = nullptr; |
879 if (frame()) | 879 if (frame()) |
880 mainItem = frame()->loader().currentItem(); | 880 mainItem = frame()->loader().currentItem(); |
881 if (!mainItem) { | 881 if (!mainItem) { |
882 exceptionState.throwDOMException(InvalidAccessError, | 882 exceptionState.throwDOMException(InvalidAccessError, |
(...skipping 2176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3059 | 3059 |
3060 void Internals::crash() { | 3060 void Internals::crash() { |
3061 CHECK(false) << "Intentional crash"; | 3061 CHECK(false) << "Intentional crash"; |
3062 } | 3062 } |
3063 | 3063 |
3064 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3064 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
3065 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3065 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
3066 } | 3066 } |
3067 | 3067 |
3068 } // namespace blink | 3068 } // namespace blink |
OLD | NEW |