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 2259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2270 return markup.toString(); | 2270 return markup.toString(); |
2271 } | 2271 } |
2272 | 2272 |
2273 void Internals::hideAllTransitionElements() | 2273 void Internals::hideAllTransitionElements() |
2274 { | 2274 { |
2275 Vector<Document::TransitionElementData> elementData; | 2275 Vector<Document::TransitionElementData> elementData; |
2276 frame()->document()->getTransitionElementData(elementData); | 2276 frame()->document()->getTransitionElementData(elementData); |
2277 | 2277 |
2278 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; | 2278 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; |
2279 for (; iter != elementData.end(); ++iter) | 2279 for (; iter != elementData.end(); ++iter) |
2280 frame()->document()->hideTransitionElements(AtomicString(iter->selector)
); | 2280 frame()->document()->updateTransitionElementOpacity(AtomicString(iter->s
elector), 0.0); |
| 2281 } |
| 2282 |
| 2283 void Internals::showAllTransitionElements() |
| 2284 { |
| 2285 Vector<Document::TransitionElementData> elementData; |
| 2286 frame()->document()->getTransitionElementData(elementData); |
| 2287 |
| 2288 Vector<Document::TransitionElementData>::iterator iter = elementData.begin()
; |
| 2289 for (; iter != elementData.end(); ++iter) |
| 2290 frame()->document()->updateTransitionElementOpacity(AtomicString(iter->s
elector), 1.0); |
2281 } | 2291 } |
2282 | 2292 |
2283 void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRaw
Ptr<DocumentFragment> fragment, ExceptionState& exceptionState) | 2293 void Internals::forcePluginPlaceholder(HTMLElement* element, PassRefPtrWillBeRaw
Ptr<DocumentFragment> fragment, ExceptionState& exceptionState) |
2284 { | 2294 { |
2285 if (!element->isPluginElement()) { | 2295 if (!element->isPluginElement()) { |
2286 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2296 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
2287 return; | 2297 return; |
2288 } | 2298 } |
2289 toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlacehold
er::create(fragment)); | 2299 toHTMLPlugInElement(element)->setPlaceholder(DocumentFragmentPluginPlacehold
er::create(fragment)); |
2290 } | 2300 } |
2291 | 2301 |
2292 void Internals::forcePluginPlaceholder(HTMLElement* element, const Dictionary& o
ptions, ExceptionState& exceptionState) | 2302 void Internals::forcePluginPlaceholder(HTMLElement* element, const Dictionary& o
ptions, ExceptionState& exceptionState) |
2293 { | 2303 { |
2294 if (!element->isPluginElement()) { | 2304 if (!element->isPluginElement()) { |
2295 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); | 2305 exceptionState.throwDOMException(InvalidNodeTypeError, "The element prov
ided is not a plugin."); |
2296 return; | 2306 return; |
2297 } | 2307 } |
2298 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); | 2308 toHTMLPlugInElement(element)->setPlaceholder(DictionaryPluginPlaceholder::cr
eate(element->document(), options)); |
2299 } | 2309 } |
2300 | 2310 |
2301 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) | 2311 Iterator* Internals::iterator(ScriptState* scriptState, ExceptionState& exceptio
nState) |
2302 { | 2312 { |
2303 return new InternalsIterator; | 2313 return new InternalsIterator; |
2304 } | 2314 } |
2305 | 2315 |
2306 } // namespace blink | 2316 } // namespace blink |
OLD | NEW |