| 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 2273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2284 void Internals::showAllTransitionElements() | 2284 void Internals::showAllTransitionElements() |
| 2285 { | 2285 { |
| 2286 Vector<Document::TransitionElementData> elementData; | 2286 Vector<Document::TransitionElementData> elementData; |
| 2287 frame()->document()->getTransitionElementData(elementData); | 2287 frame()->document()->getTransitionElementData(elementData); |
| 2288 | 2288 |
| 2289 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; | 2289 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; |
| 2290 for (; iter != elementData.end(); ++iter) | 2290 for (; iter != elementData.end(); ++iter) |
| 2291 frame()->document()->showTransitionElements(AtomicString(iter->selector)
); | 2291 frame()->document()->showTransitionElements(AtomicString(iter->selector)
); |
| 2292 } | 2292 } |
| 2293 | 2293 |
| 2294 void Internals::enableExitTransitionStylesheets() |
| 2295 { |
| 2296 frame()->document()->styleEngine()->enableExitTransitionStylesheets(); |
| 2297 } |
| 2298 |
| 2299 void Internals::disableExitTransitionStylesheets() |
| 2300 { |
| 2301 frame()->document()->styleEngine()->disableExitTransitionStylesheets(); |
| 2302 } |
| 2303 |
| 2294 void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRaw
Ptr<DocumentFragment> fragment, ExceptionState& exceptionState) | 2304 void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRaw
Ptr<DocumentFragment> fragment, ExceptionState& exceptionState) |
| 2295 { | 2305 { |
| 2296 if (!element->isPluginElement()) { | 2306 if (!element->isPluginElement()) { |
| 2297 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2307 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
| 2298 return; | 2308 return; |
| 2299 } | 2309 } |
| 2300 toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlacehold
er::create(fragment)); | 2310 toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlacehold
er::create(fragment)); |
| 2301 } | 2311 } |
| 2302 | 2312 |
| 2303 void Internals::forcePluginPlaceholder(HTMLElement* element, const PluginPlaceho
lderOptions& options, ExceptionState& exceptionState) | 2313 void Internals::forcePluginPlaceholder(HTMLElement* element, const PluginPlaceho
lderOptions& options, ExceptionState& exceptionState) |
| 2304 { | 2314 { |
| 2305 if (!element->isPluginElement()) { | 2315 if (!element->isPluginElement()) { |
| 2306 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2316 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
| 2307 return; | 2317 return; |
| 2308 } | 2318 } |
| 2309 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2319 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
| 2310 } | 2320 } |
| 2311 | 2321 |
| 2312 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2322 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
| 2313 { | 2323 { |
| 2314 return new InternalsIterator; | 2324 return new InternalsIterator; |
| 2315 } | 2325 } |
| 2316 | 2326 |
| 2317 } // namespace blink | 2327 } // namespace blink |
| OLD | NEW |