| 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 2635 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2646 double Element::getFloatingPointAttribute(const QualifiedName& attributeName, do
uble fallbackValue) const | 2646 double Element::getFloatingPointAttribute(const QualifiedName& attributeName, do
uble fallbackValue) const |
| 2647 { | 2647 { |
| 2648 return parseToDoubleForNumberType(getAttribute(attributeName), fallbackValue
); | 2648 return parseToDoubleForNumberType(getAttribute(attributeName), fallbackValue
); |
| 2649 } | 2649 } |
| 2650 | 2650 |
| 2651 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
le value) | 2651 void Element::setFloatingPointAttribute(const QualifiedName& attributeName, doub
le value) |
| 2652 { | 2652 { |
| 2653 setAttribute(attributeName, AtomicString::number(value)); | 2653 setAttribute(attributeName, AtomicString::number(value)); |
| 2654 } | 2654 } |
| 2655 | 2655 |
| 2656 void Element::webkitRequestFullscreen() | |
| 2657 { | |
| 2658 FullscreenElementStack::from(document()).requestFullscreen(*this, Fullscreen
ElementStack::PrefixedRequest); | |
| 2659 } | |
| 2660 | |
| 2661 void Element::webkitRequestFullScreen(unsigned short flags) | |
| 2662 { | |
| 2663 FullscreenElementStack::RequestType requestType; | |
| 2664 if (flags & ALLOW_KEYBOARD_INPUT) | |
| 2665 requestType = FullscreenElementStack::PrefixedMozillaAllowKeyboardInputR
equest; | |
| 2666 else | |
| 2667 requestType = FullscreenElementStack::PrefixedMozillaRequest; | |
| 2668 FullscreenElementStack::from(document()).requestFullscreen(*this, requestTyp
e); | |
| 2669 } | |
| 2670 | |
| 2671 void Element::setContainsFullScreenElement(bool flag) | 2656 void Element::setContainsFullScreenElement(bool flag) |
| 2672 { | 2657 { |
| 2673 setElementFlag(ContainsFullScreenElement, flag); | 2658 setElementFlag(ContainsFullScreenElement, flag); |
| 2674 setNeedsStyleRecalc(SubtreeStyleChange); | 2659 setNeedsStyleRecalc(SubtreeStyleChange); |
| 2675 } | 2660 } |
| 2676 | 2661 |
| 2677 static Element* parentCrossingFrameBoundaries(Element* element) | 2662 static Element* parentCrossingFrameBoundaries(Element* element) |
| 2678 { | 2663 { |
| 2679 ASSERT(element); | 2664 ASSERT(element); |
| 2680 return element->parentElement() ? element->parentElement() : element->docume
nt().ownerElement(); | 2665 return element->parentElement() ? element->parentElement() : element->docume
nt().ownerElement(); |
| (...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3260 { | 3245 { |
| 3261 #if ENABLE(OILPAN) | 3246 #if ENABLE(OILPAN) |
| 3262 if (hasRareData()) | 3247 if (hasRareData()) |
| 3263 visitor->trace(elementRareData()); | 3248 visitor->trace(elementRareData()); |
| 3264 visitor->trace(m_elementData); | 3249 visitor->trace(m_elementData); |
| 3265 #endif | 3250 #endif |
| 3266 ContainerNode::trace(visitor); | 3251 ContainerNode::trace(visitor); |
| 3267 } | 3252 } |
| 3268 | 3253 |
| 3269 } // namespace blink | 3254 } // namespace blink |
| OLD | NEW |