OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2001 Peter Kelly (pmk@post.com) | 4 * (C) 2001 Peter Kelly (pmk@post.com) |
5 * (C) 2001 Dirk Mueller (mueller@kde.org) | 5 * (C) 2001 Dirk Mueller (mueller@kde.org) |
6 * (C) 2007 David Smith (catfish.man@gmail.com) | 6 * (C) 2007 David Smith (catfish.man@gmail.com) |
7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
8 * (C) 2007 Eric Seidel (eric@webkit.org) | 8 * (C) 2007 Eric Seidel (eric@webkit.org) |
9 * | 9 * |
10 * This library is free software; you can redistribute it and/or | 10 * This library is free software; you can redistribute it and/or |
(...skipping 2669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2680 double Element::getFloatingPointAttribute(const QualifiedName& attributeName, do
uble fallbackValue) const | 2680 double Element::getFloatingPointAttribute(const QualifiedName& attributeName, do
uble fallbackValue) const |
2681 { | 2681 { |
2682 return parseToDoubleForNumberType(getAttribute(attributeName), fallbackValue
); | 2682 return parseToDoubleForNumberType(getAttribute(attributeName), fallbackValue
); |
2683 } | 2683 } |
2684 | 2684 |
2685 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
le value) | 2685 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
le value) |
2686 { | 2686 { |
2687 setAttribute(attributeName, AtomicString::number(value)); | 2687 setAttribute(attributeName, AtomicString::number(value)); |
2688 } | 2688 } |
2689 | 2689 |
| 2690 void Element::requestFullscreen() |
| 2691 { |
| 2692 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
FullscreenElementStack::UnprefixedRequest); |
| 2693 } |
| 2694 |
2690 void Element::webkitRequestFullscreen() | 2695 void Element::webkitRequestFullscreen() |
2691 { | 2696 { |
2692 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
FullscreenElementStack::PrefixedRequest); | 2697 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
FullscreenElementStack::PrefixedRequest); |
2693 } | 2698 } |
2694 | 2699 |
2695 void Element::webkitRequestFullScreen(unsigned short flags) | 2700 void Element::webkitRequestFullScreen(unsigned short flags) |
2696 { | 2701 { |
2697 FullscreenElementStack::RequestType requestType; | 2702 FullscreenElementStack::RequestType requestType; |
2698 if (flags & ALLOW_KEYBOARD_INPUT) | 2703 if (flags & ALLOW_KEYBOARD_INPUT) |
2699 requestType = FullscreenElementStack::PrefixedMozillaAllowKeyboardInputR
equest; | 2704 requestType = FullscreenElementStack::PrefixedMozillaAllowKeyboardInputR
equest; |
(...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3353 | 3358 |
3354 void Element::trace(Visitor* visitor) | 3359 void Element::trace(Visitor* visitor) |
3355 { | 3360 { |
3356 if (hasRareData()) | 3361 if (hasRareData()) |
3357 visitor->trace(elementRareData()); | 3362 visitor->trace(elementRareData()); |
3358 visitor->trace(m_elementData); | 3363 visitor->trace(m_elementData); |
3359 ContainerNode::trace(visitor); | 3364 ContainerNode::trace(visitor); |
3360 } | 3365 } |
3361 | 3366 |
3362 } // namespace WebCore | 3367 } // namespace WebCore |
OLD | NEW |