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