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, A
LLOW_KEYBOARD_INPUT, FullscreenElementStack::EnforceIFrameAllowFullScreenRequire
ment); | 2669 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
ALLOW_KEYBOARD_INPUT, FullscreenElementStack::EnforceIFrameAllowFullScreenRequir
ement); |
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::EnforceIFrameAllowFullS
creenRequirement); | 2674 FullscreenElementStack::from(document()).requestFullScreenForElement(*this,
(flags | LEGACY_MOZILLA_REQUEST), FullscreenElementStack::EnforceIFrameAllowFull
ScreenRequirement); |
2675 } | 2675 } |
2676 | 2676 |
2677 void Element::setContainsFullScreenElement(bool flag) | 2677 void Element::setContainsFullScreenElement(bool flag) |
2678 { | 2678 { |
2679 setElementFlag(ContainsFullScreenElement, flag); | 2679 setElementFlag(ContainsFullScreenElement, flag); |
2680 setNeedsStyleRecalc(SubtreeStyleChange); | 2680 setNeedsStyleRecalc(SubtreeStyleChange); |
2681 } | 2681 } |
2682 | 2682 |
2683 static Element* parentCrossingFrameBoundaries(Element* element) | 2683 static Element* parentCrossingFrameBoundaries(Element* element) |
2684 { | 2684 { |
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3310 return false; | 3310 return false; |
3311 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. | 3311 // Turn off style sharing for elements that can gain layers for reasons outs
ide of the style system. |
3312 // See comments in RenderObject::setStyle(). | 3312 // See comments in RenderObject::setStyle(). |
3313 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? | 3313 // FIXME: Why does gaining a layer from outside the style system require dis
abling sharing? |
3314 if (isHTMLFrameElementBase(*this) | 3314 if (isHTMLFrameElementBase(*this) |
3315 || isHTMLEmbedElement(*this) | 3315 || isHTMLEmbedElement(*this) |
3316 || isHTMLObjectElement(*this) | 3316 || isHTMLObjectElement(*this) |
3317 || isHTMLAppletElement(*this) | 3317 || isHTMLAppletElement(*this) |
3318 || isHTMLCanvasElement(*this)) | 3318 || isHTMLCanvasElement(*this)) |
3319 return false; | 3319 return false; |
3320 if (FullscreenElementStack::isActiveFullScreenElement(this)) | 3320 if (FullscreenElementStack::isActiveFullScreenElement(*this)) |
3321 return false; | 3321 return false; |
3322 return true; | 3322 return true; |
3323 } | 3323 } |
3324 | 3324 |
3325 void Element::trace(Visitor* visitor) | 3325 void Element::trace(Visitor* visitor) |
3326 { | 3326 { |
3327 if (hasRareData()) | 3327 if (hasRareData()) |
3328 visitor->trace(elementRareData()); | 3328 visitor->trace(elementRareData()); |
3329 | 3329 |
3330 ContainerNode::trace(visitor); | 3330 ContainerNode::trace(visitor); |
3331 } | 3331 } |
3332 | 3332 |
3333 } // namespace WebCore | 3333 } // namespace WebCore |
OLD | NEW |