| 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 #include "core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h" | 107 #include "core/layout/compositing/CompositedDeprecatedPaintLayerMapping.h" |
| 108 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" | 108 #include "core/layout/compositing/DeprecatedPaintLayerCompositor.h" |
| 109 #include "core/loader/FrameLoader.h" | 109 #include "core/loader/FrameLoader.h" |
| 110 #include "core/loader/HistoryItem.h" | 110 #include "core/loader/HistoryItem.h" |
| 111 #include "core/page/ChromeClient.h" | 111 #include "core/page/ChromeClient.h" |
| 112 #include "core/page/EventHandler.h" | 112 #include "core/page/EventHandler.h" |
| 113 #include "core/page/FocusController.h" | 113 #include "core/page/FocusController.h" |
| 114 #include "core/page/NetworkStateNotifier.h" | 114 #include "core/page/NetworkStateNotifier.h" |
| 115 #include "core/page/Page.h" | 115 #include "core/page/Page.h" |
| 116 #include "core/page/PrintContext.h" | 116 #include "core/page/PrintContext.h" |
| 117 #include "core/page/scrolling/ScrollState.h" |
| 117 #include "core/paint/DeprecatedPaintLayer.h" | 118 #include "core/paint/DeprecatedPaintLayer.h" |
| 118 #include "core/plugins/testing/DictionaryPluginPlaceholder.h" | 119 #include "core/plugins/testing/DictionaryPluginPlaceholder.h" |
| 119 #include "core/plugins/testing/DocumentFragmentPluginPlaceholder.h" | 120 #include "core/plugins/testing/DocumentFragmentPluginPlaceholder.h" |
| 120 #include "core/testing/DictionaryTest.h" | 121 #include "core/testing/DictionaryTest.h" |
| 121 #include "core/testing/GCObservation.h" | 122 #include "core/testing/GCObservation.h" |
| 122 #include "core/testing/InternalRuntimeFlags.h" | 123 #include "core/testing/InternalRuntimeFlags.h" |
| 123 #include "core/testing/InternalSettings.h" | 124 #include "core/testing/InternalSettings.h" |
| 124 #include "core/testing/LayerRect.h" | 125 #include "core/testing/LayerRect.h" |
| 125 #include "core/testing/LayerRectList.h" | 126 #include "core/testing/LayerRectList.h" |
| 126 #include "core/testing/PluginPlaceholderOptions.h" | 127 #include "core/testing/PluginPlaceholderOptions.h" |
| (...skipping 2186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2313 | 2314 |
| 2314 void Internals::forcePluginPlaceholder(HTMLElement* element, const PluginPlaceho
lderOptions& options, ExceptionState& exceptionState) | 2315 void Internals::forcePluginPlaceholder(HTMLElement* element, const PluginPlaceho
lderOptions& options, ExceptionState& exceptionState) |
| 2315 { | 2316 { |
| 2316 if (!element->isPluginElement()) { | 2317 if (!element->isPluginElement()) { |
| 2317 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2318 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
| 2318 return; | 2319 return; |
| 2319 } | 2320 } |
| 2320 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2321 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
| 2321 } | 2322 } |
| 2322 | 2323 |
| 2324 void Internals::setScrollChain(ScrollState* scrollState, |
| 2325 const WillBeHeapVector<RefPtrWillBeMember<Element>>& elements, ExceptionStat
e&) |
| 2326 { |
| 2327 WillBeHeapDeque<RefPtrWillBeMember<Element>> scrollChain; |
| 2328 for (size_t i = 0; i < elements.size(); ++i) |
| 2329 scrollChain.append(elements[i]); |
| 2330 scrollState->setScrollChain(scrollChain); |
| 2331 } |
| 2332 |
| 2323 void Internals::forceBlinkGCWithoutV8GC() | 2333 void Internals::forceBlinkGCWithoutV8GC() |
| 2324 { | 2334 { |
| 2325 ThreadState::current()->setGCState(ThreadState::FullGCScheduled); | 2335 ThreadState::current()->setGCState(ThreadState::FullGCScheduled); |
| 2326 } | 2336 } |
| 2327 | 2337 |
| 2328 String Internals::selectedHTMLForClipboard() | 2338 String Internals::selectedHTMLForClipboard() |
| 2329 { | 2339 { |
| 2330 return frame()->selection().selectedHTMLForClipboard(); | 2340 return frame()->selection().selectedHTMLForClipboard(); |
| 2331 } | 2341 } |
| 2332 | 2342 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2364 | 2374 |
| 2365 ClientRectList* Internals::focusRingRects(Element* element) | 2375 ClientRectList* Internals::focusRingRects(Element* element) |
| 2366 { | 2376 { |
| 2367 Vector<LayoutRect> rects; | 2377 Vector<LayoutRect> rects; |
| 2368 if (element && element->layoutObject()) | 2378 if (element && element->layoutObject()) |
| 2369 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); | 2379 element->layoutObject()->addFocusRingRects(rects, LayoutPoint()); |
| 2370 return ClientRectList::create(rects); | 2380 return ClientRectList::create(rects); |
| 2371 } | 2381 } |
| 2372 | 2382 |
| 2373 } // namespace blink | 2383 } // namespace blink |
| OLD | NEW |