| 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 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2659 return parseToDoubleForNumberType(getAttribute(attributeName), fallbackValue
); | 2659 return parseToDoubleForNumberType(getAttribute(attributeName), fallbackValue
); |
| 2660 } | 2660 } |
| 2661 | 2661 |
| 2662 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
le value) | 2662 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
le value) |
| 2663 { | 2663 { |
| 2664 setAttribute(attributeName, AtomicString::number(value)); | 2664 setAttribute(attributeName, AtomicString::number(value)); |
| 2665 } | 2665 } |
| 2666 | 2666 |
| 2667 void Element::webkitRequestFullscreen() | 2667 void Element::webkitRequestFullscreen() |
| 2668 { | 2668 { |
| 2669 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
ALLOW_KEYBOARD_INPUT, FullscreenElementStack::EnforceIFrameAllowFullScreenRequir
ement); | 2669 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
FullscreenElementStack::PrefixedRequest); |
| 2670 } | 2670 } |
| 2671 | 2671 |
| 2672 void Element::webkitRequestFullScreen(unsigned short flags) | 2672 void Element::webkitRequestFullScreen(unsigned short flags) |
| 2673 { | 2673 { |
| 2674 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
(flags | LEGACY_MOZILLA_REQUEST), FullscreenElementStack::EnforceIFrameAllowFull
ScreenRequirement); | 2674 FullscreenElementStack::RequestType requestType; |
| 2675 if (flags & ALLOW_KEYBOARD_INPUT) |
| 2676 requestType = FullscreenElementStack::PrefixedMozillaAllowKeyboardInputR
equest; |
| 2677 else |
| 2678 requestType = FullscreenElementStack::PrefixedMozillaRequest; |
| 2679 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
requestType); |
| 2675 } | 2680 } |
| 2676 | 2681 |
| 2677 void Element::setContainsFullScreenElement(bool flag) | 2682 void Element::setContainsFullScreenElement(bool flag) |
| 2678 { | 2683 { |
| 2679 setElementFlag(ContainsFullScreenElement, flag); | 2684 setElementFlag(ContainsFullScreenElement, flag); |
| 2680 setNeedsStyleRecalc(SubtreeStyleChange); | 2685 setNeedsStyleRecalc(SubtreeStyleChange); |
| 2681 } | 2686 } |
| 2682 | 2687 |
| 2683 static Element* parentCrossingFrameBoundaries(Element* element) | 2688 static Element* parentCrossingFrameBoundaries(Element* element) |
| 2684 { | 2689 { |
| (...skipping 639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3324 | 3329 |
| 3325 void Element::trace(Visitor* visitor) | 3330 void Element::trace(Visitor* visitor) |
| 3326 { | 3331 { |
| 3327 if (hasRareData()) | 3332 if (hasRareData()) |
| 3328 visitor->trace(elementRareData()); | 3333 visitor->trace(elementRareData()); |
| 3329 | 3334 |
| 3330 ContainerNode::trace(visitor); | 3335 ContainerNode::trace(visitor); |
| 3331 } | 3336 } |
| 3332 | 3337 |
| 3333 } // namespace WebCore | 3338 } // namespace WebCore |
| OLD | NEW |