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 2301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2312 void Internals::showAllTransitionElements() | 2312 void Internals::showAllTransitionElements() |
2313 { | 2313 { |
2314 Vector<Document::TransitionElementData> elementData; | 2314 Vector<Document::TransitionElementData> elementData; |
2315 frame()->document()->getTransitionElementData(elementData); | 2315 frame()->document()->getTransitionElementData(elementData); |
2316 | 2316 |
2317 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; | 2317 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; |
2318 for (; iter != elementData.end(); ++iter) | 2318 for (; iter != elementData.end(); ++iter) |
2319 frame()->document()->showTransitionElements(AtomicString(iter->selector)
); | 2319 frame()->document()->showTransitionElements(AtomicString(iter->selector)
); |
2320 } | 2320 } |
2321 | 2321 |
| 2322 void Internals::setExitTransitionStylesheetsEnabled(bool enabled) |
| 2323 { |
| 2324 frame()->document()->styleEngine()->setExitTransitionStylesheetsEnabled(enab
led); |
| 2325 } |
| 2326 |
2322 void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRaw
Ptr<DocumentFragment> fragment, ExceptionState& exceptionState) | 2327 void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRaw
Ptr<DocumentFragment> fragment, ExceptionState& exceptionState) |
2323 { | 2328 { |
2324 if (!element->isPluginElement()) { | 2329 if (!element->isPluginElement()) { |
2325 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2330 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
2326 return; | 2331 return; |
2327 } | 2332 } |
2328 toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlacehold
er::create(fragment)); | 2333 toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlacehold
er::create(fragment)); |
2329 } | 2334 } |
2330 | 2335 |
2331 void Internals::forcePluginPlaceholder(HTMLElement* element, const PluginPlaceho
lderOptions& options, ExceptionState& exceptionState) | 2336 void Internals::forcePluginPlaceholder(HTMLElement* element, const PluginPlaceho
lderOptions& options, ExceptionState& exceptionState) |
2332 { | 2337 { |
2333 if (!element->isPluginElement()) { | 2338 if (!element->isPluginElement()) { |
2334 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2339 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
2335 return; | 2340 return; |
2336 } | 2341 } |
2337 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2342 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
2338 } | 2343 } |
2339 | 2344 |
2340 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2345 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
2341 { | 2346 { |
2342 return new InternalsIterator; | 2347 return new InternalsIterator; |
2343 } | 2348 } |
2344 | 2349 |
2345 } // namespace blink | 2350 } // namespace blink |
OLD | NEW |