| 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 #include "core/page/PrintContext.h" | 114 #include "core/page/PrintContext.h" |
| 115 #include "core/page/scrolling/ScrollState.h" | 115 #include "core/page/scrolling/ScrollState.h" |
| 116 #include "core/paint/PaintLayer.h" | 116 #include "core/paint/PaintLayer.h" |
| 117 #include "core/svg/SVGImageElement.h" | 117 #include "core/svg/SVGImageElement.h" |
| 118 #include "core/testing/DictionaryTest.h" | 118 #include "core/testing/DictionaryTest.h" |
| 119 #include "core/testing/GCObservation.h" | 119 #include "core/testing/GCObservation.h" |
| 120 #include "core/testing/InternalRuntimeFlags.h" | 120 #include "core/testing/InternalRuntimeFlags.h" |
| 121 #include "core/testing/InternalSettings.h" | 121 #include "core/testing/InternalSettings.h" |
| 122 #include "core/testing/LayerRect.h" | 122 #include "core/testing/LayerRect.h" |
| 123 #include "core/testing/LayerRectList.h" | 123 #include "core/testing/LayerRectList.h" |
| 124 #include "core/testing/MockHyphenation.h" |
| 124 #include "core/testing/PrivateScriptTest.h" | 125 #include "core/testing/PrivateScriptTest.h" |
| 125 #include "core/testing/TypeConversions.h" | 126 #include "core/testing/TypeConversions.h" |
| 126 #include "core/testing/UnionTypesTest.h" | 127 #include "core/testing/UnionTypesTest.h" |
| 127 #include "core/workers/WorkerThread.h" | 128 #include "core/workers/WorkerThread.h" |
| 128 #include "gpu/command_buffer/client/gles2_interface.h" | 129 #include "gpu/command_buffer/client/gles2_interface.h" |
| 129 #include "platform/Cursor.h" | 130 #include "platform/Cursor.h" |
| 130 #include "platform/Language.h" | 131 #include "platform/Language.h" |
| 131 #include "platform/PlatformKeyboardEvent.h" | 132 #include "platform/PlatformKeyboardEvent.h" |
| 132 #include "platform/RuntimeEnabledFeatures.h" | 133 #include "platform/RuntimeEnabledFeatures.h" |
| 133 #include "platform/TraceEvent.h" | 134 #include "platform/TraceEvent.h" |
| (...skipping 1407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1541 | 1542 |
| 1542 void Internals::setContinuousSpellCheckingEnabled(bool enabled) | 1543 void Internals::setContinuousSpellCheckingEnabled(bool enabled) |
| 1543 { | 1544 { |
| 1544 if (!contextDocument() || !contextDocument()->frame()) | 1545 if (!contextDocument() || !contextDocument()->frame()) |
| 1545 return; | 1546 return; |
| 1546 | 1547 |
| 1547 if (enabled != contextDocument()->frame()->spellChecker().isContinuousSpellC
heckingEnabled()) | 1548 if (enabled != contextDocument()->frame()->spellChecker().isContinuousSpellC
heckingEnabled()) |
| 1548 contextDocument()->frame()->spellChecker().toggleContinuousSpellChecking
(); | 1549 contextDocument()->frame()->spellChecker().toggleContinuousSpellChecking
(); |
| 1549 } | 1550 } |
| 1550 | 1551 |
| 1552 void Internals::setMockHyphenation(const AtomicString& locale) |
| 1553 { |
| 1554 Hyphenation::setForTesting(locale, adoptRef(new MockHyphenation)); |
| 1555 } |
| 1556 |
| 1551 bool Internals::isOverwriteModeEnabled(Document* document) | 1557 bool Internals::isOverwriteModeEnabled(Document* document) |
| 1552 { | 1558 { |
| 1553 ASSERT(document); | 1559 ASSERT(document); |
| 1554 if (!document->frame()) | 1560 if (!document->frame()) |
| 1555 return false; | 1561 return false; |
| 1556 | 1562 |
| 1557 return document->frame()->editor().isOverwriteModeEnabled(); | 1563 return document->frame()->editor().isOverwriteModeEnabled(); |
| 1558 } | 1564 } |
| 1559 | 1565 |
| 1560 void Internals::toggleOverwriteModeEnabled(Document* document) | 1566 void Internals::toggleOverwriteModeEnabled(Document* document) |
| (...skipping 1021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2582 } | 2588 } |
| 2583 | 2589 |
| 2584 String Internals::getProgrammaticScrollAnimationState(Node* node) const | 2590 String Internals::getProgrammaticScrollAnimationState(Node* node) const |
| 2585 { | 2591 { |
| 2586 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) | 2592 if (ScrollableArea* scrollableArea = scrollableAreaForNode(node)) |
| 2587 return scrollableArea->programmaticScrollAnimator().runStateAsText(); | 2593 return scrollableArea->programmaticScrollAnimator().runStateAsText(); |
| 2588 return String(); | 2594 return String(); |
| 2589 } | 2595 } |
| 2590 | 2596 |
| 2591 } // namespace blink | 2597 } // namespace blink |
| OLD | NEW |