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 2237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2248 return markup.toString(); | 2248 return markup.toString(); |
2249 } | 2249 } |
2250 | 2250 |
2251 void Internals::hideAllTransitionElements() | 2251 void Internals::hideAllTransitionElements() |
2252 { | 2252 { |
2253 Vector<Document::TransitionElementData> elementData; | 2253 Vector<Document::TransitionElementData> elementData; |
2254 frame()->document()->getTransitionElementData(elementData); | 2254 frame()->document()->getTransitionElementData(elementData); |
2255 | 2255 |
2256 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; | 2256 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; |
2257 for (; iter != elementData.end(); ++iter) | 2257 for (; iter != elementData.end(); ++iter) |
2258 frame()->document()->hideTransitionElements(AtomicString(iter->selector)
); | 2258 frame()->document()->onTransitionElementOpacity(AtomicString(iter->selec
tor), 0.0); |
| 2259 } |
| 2260 |
| 2261 void Internals::showAllTransitionElements() |
| 2262 { |
| 2263 Vector<Document::TransitionElementData> elementData; |
| 2264 frame()->document()->getTransitionElementData(elementData); |
| 2265 |
| 2266 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; |
| 2267 for (; iter != elementData.end(); ++iter) |
| 2268 frame()->document()->onTransitionElementOpacity(AtomicString(iter->selec
tor), 1.0); |
| 2269 } |
| 2270 |
| 2271 void Internals::enableExitTransitionStylesheets() |
| 2272 { |
| 2273 frame()->document()->styleEngine()->enableExitTransitionStylesheets(); |
| 2274 } |
| 2275 |
| 2276 void Internals::disableExitTransitionStylesheets() |
| 2277 { |
| 2278 frame()->document()->styleEngine()->disableExitTransitionStylesheets(); |
2259 } | 2279 } |
2260 | 2280 |
2261 void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRaw
Ptr<DocumentFragment> fragment, ExceptionState& exceptionState) | 2281 void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRaw
Ptr<DocumentFragment> fragment, ExceptionState& exceptionState) |
2262 { | 2282 { |
2263 if (!element->isPluginElement()) { | 2283 if (!element->isPluginElement()) { |
2264 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2284 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
2265 return; | 2285 return; |
2266 } | 2286 } |
2267 toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlacehold
er::create(fragment)); | 2287 toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlacehold
er::create(fragment)); |
2268 } | 2288 } |
2269 | 2289 |
2270 void Internals::forcePluginPlaceholder(HTMLElement* element, const Dictionary& o
ptions, ExceptionState& exceptionState) | 2290 void Internals::forcePluginPlaceholder(HTMLElement* element, const Dictionary& o
ptions, ExceptionState& exceptionState) |
2271 { | 2291 { |
2272 if (!element->isPluginElement()) { | 2292 if (!element->isPluginElement()) { |
2273 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2293 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
2274 return; | 2294 return; |
2275 } | 2295 } |
2276 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2296 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
2277 } | 2297 } |
2278 | 2298 |
2279 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2299 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
2280 { | 2300 { |
2281 return new InternalsIterator; | 2301 return new InternalsIterator; |
2282 } | 2302 } |
2283 | 2303 |
2284 } // namespace blink | 2304 } // namespace blink |
OLD | NEW |