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 2823 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2834 return parseToDoubleForNumberType(getAttribute(attributeName), fallbackValue
); | 2834 return parseToDoubleForNumberType(getAttribute(attributeName), fallbackValue
); |
2835 } | 2835 } |
2836 | 2836 |
2837 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
le value) | 2837 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
le value) |
2838 { | 2838 { |
2839 setAttribute(attributeName, AtomicString::number(value)); | 2839 setAttribute(attributeName, AtomicString::number(value)); |
2840 } | 2840 } |
2841 | 2841 |
2842 void Element::webkitRequestFullscreen() | 2842 void Element::webkitRequestFullscreen() |
2843 { | 2843 { |
2844 FullscreenElementStack::from(&document())->requestFullScreenForElement(this,
ALLOW_KEYBOARD_INPUT, FullscreenElementStack::EnforceIFrameAllowFullScreenRequi
rement); | 2844 FullscreenElementStack::from(document()).requestFullScreenForElement(this, A
LLOW_KEYBOARD_INPUT, FullscreenElementStack::EnforceIFrameAllowFullScreenRequire
ment); |
2845 } | 2845 } |
2846 | 2846 |
2847 void Element::webkitRequestFullScreen(unsigned short flags) | 2847 void Element::webkitRequestFullScreen(unsigned short flags) |
2848 { | 2848 { |
2849 FullscreenElementStack::from(&document())->requestFullScreenForElement(this,
(flags | LEGACY_MOZILLA_REQUEST), FullscreenElementStack::EnforceIFrameAllowFul
lScreenRequirement); | 2849 FullscreenElementStack::from(document()).requestFullScreenForElement(this, (
flags | LEGACY_MOZILLA_REQUEST), FullscreenElementStack::EnforceIFrameAllowFullS
creenRequirement); |
2850 } | 2850 } |
2851 | 2851 |
2852 bool Element::containsFullScreenElement() const | 2852 bool Element::containsFullScreenElement() const |
2853 { | 2853 { |
2854 return hasRareData() && elementRareData()->containsFullScreenElement(); | 2854 return hasRareData() && elementRareData()->containsFullScreenElement(); |
2855 } | 2855 } |
2856 | 2856 |
2857 void Element::setContainsFullScreenElement(bool flag) | 2857 void Element::setContainsFullScreenElement(bool flag) |
2858 { | 2858 { |
2859 ensureElementRareData().setContainsFullScreenElement(flag); | 2859 ensureElementRareData().setContainsFullScreenElement(flag); |
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3504 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems | 3504 // Before doing so, we need to resolve issues in HTMLSelectElement::recalcLi
stItems |
3505 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 | 3505 // and RenderMenuList::setText. See also https://bugs.webkit.org/show_bug.cg
i?id=88405 |
3506 if (hasTagName(optionTag) || hasTagName(optgroupTag)) | 3506 if (hasTagName(optionTag) || hasTagName(optgroupTag)) |
3507 return false; | 3507 return false; |
3508 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3508 if (FullscreenElementStack::isActiveFullScreenElement(this)) |
3509 return false; | 3509 return false; |
3510 return true; | 3510 return true; |
3511 } | 3511 } |
3512 | 3512 |
3513 } // namespace WebCore | 3513 } // namespace WebCore |
OLD | NEW |