| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 #include "core/loader/FrameLoader.h" | 105 #include "core/loader/FrameLoader.h" |
| 106 #include "core/loader/HistoryItem.h" | 106 #include "core/loader/HistoryItem.h" |
| 107 #include "core/page/ChromeClient.h" | 107 #include "core/page/ChromeClient.h" |
| 108 #include "core/page/FocusController.h" | 108 #include "core/page/FocusController.h" |
| 109 #include "core/page/NetworkStateNotifier.h" | 109 #include "core/page/NetworkStateNotifier.h" |
| 110 #include "core/page/Page.h" | 110 #include "core/page/Page.h" |
| 111 #include "core/page/PrintContext.h" | 111 #include "core/page/PrintContext.h" |
| 112 #include "core/page/scrolling/ScrollState.h" | 112 #include "core/page/scrolling/ScrollState.h" |
| 113 #include "core/paint/PaintLayer.h" | 113 #include "core/paint/PaintLayer.h" |
| 114 #include "core/svg/SVGImageElement.h" | 114 #include "core/svg/SVGImageElement.h" |
| 115 #include "core/testing/CacheAwareFontDisplayTest.h" |
| 115 #include "core/testing/CallbackFunctionTest.h" | 116 #include "core/testing/CallbackFunctionTest.h" |
| 116 #include "core/testing/DictionaryTest.h" | 117 #include "core/testing/DictionaryTest.h" |
| 117 #include "core/testing/GCObservation.h" | 118 #include "core/testing/GCObservation.h" |
| 118 #include "core/testing/InternalRuntimeFlags.h" | 119 #include "core/testing/InternalRuntimeFlags.h" |
| 119 #include "core/testing/InternalSettings.h" | 120 #include "core/testing/InternalSettings.h" |
| 120 #include "core/testing/LayerRect.h" | 121 #include "core/testing/LayerRect.h" |
| 121 #include "core/testing/LayerRectList.h" | 122 #include "core/testing/LayerRectList.h" |
| 122 #include "core/testing/MockHyphenation.h" | 123 #include "core/testing/MockHyphenation.h" |
| 123 #include "core/testing/OriginTrialsTest.h" | 124 #include "core/testing/OriginTrialsTest.h" |
| 124 #include "core/testing/PrivateScriptTest.h" | 125 #include "core/testing/PrivateScriptTest.h" |
| (...skipping 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2315 } | 2316 } |
| 2316 | 2317 |
| 2317 OriginTrialsTest* Internals::originTrialsTest() const { | 2318 OriginTrialsTest* Internals::originTrialsTest() const { |
| 2318 return OriginTrialsTest::create(); | 2319 return OriginTrialsTest::create(); |
| 2319 } | 2320 } |
| 2320 | 2321 |
| 2321 CallbackFunctionTest* Internals::callbackFunctionTest() const { | 2322 CallbackFunctionTest* Internals::callbackFunctionTest() const { |
| 2322 return CallbackFunctionTest::create(); | 2323 return CallbackFunctionTest::create(); |
| 2323 } | 2324 } |
| 2324 | 2325 |
| 2326 CacheAwareFontDisplayTest* Internals::cacheAwareFontDisplayTest( |
| 2327 const String& fontUrl) const { |
| 2328 if (!contextDocument()) |
| 2329 return nullptr; |
| 2330 return CacheAwareFontDisplayTest::create(contextDocument(), fontUrl); |
| 2331 } |
| 2332 |
| 2325 Vector<String> Internals::getReferencedFilePaths() const { | 2333 Vector<String> Internals::getReferencedFilePaths() const { |
| 2326 if (!frame()) | 2334 if (!frame()) |
| 2327 return Vector<String>(); | 2335 return Vector<String>(); |
| 2328 | 2336 |
| 2329 return frame()->loader().currentItem()->getReferencedFilePaths(); | 2337 return frame()->loader().currentItem()->getReferencedFilePaths(); |
| 2330 } | 2338 } |
| 2331 | 2339 |
| 2332 void Internals::startTrackingRepaints(Document* document, | 2340 void Internals::startTrackingRepaints(Document* document, |
| 2333 ExceptionState& exceptionState) { | 2341 ExceptionState& exceptionState) { |
| 2334 ASSERT(document); | 2342 ASSERT(document); |
| (...skipping 744 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3079 return ClientRect::create(); | 3087 return ClientRect::create(); |
| 3080 | 3088 |
| 3081 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); | 3089 return ClientRect::create(FloatRect(node->layoutObject()->visualRect())); |
| 3082 } | 3090 } |
| 3083 | 3091 |
| 3084 void Internals::crash() { | 3092 void Internals::crash() { |
| 3085 CHECK(false) << "Intentional crash"; | 3093 CHECK(false) << "Intentional crash"; |
| 3086 } | 3094 } |
| 3087 | 3095 |
| 3088 } // namespace blink | 3096 } // namespace blink |
| OLD | NEW |