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 Apple Inc. All rights
reserved. | 7 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 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 1840 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1851 { | 1851 { |
1852 // Only create renderers for SVG elements whose parents are SVG elements, or
for proper <svg xmlns="svgNS"> subdocuments. | 1852 // Only create renderers for SVG elements whose parents are SVG elements, or
for proper <svg xmlns="svgNS"> subdocuments. |
1853 if (childContext.node()->isSVGElement()) | 1853 if (childContext.node()->isSVGElement()) |
1854 return childContext.node()->hasTagName(SVGNames::svgTag) || isSVGElement
(); | 1854 return childContext.node()->hasTagName(SVGNames::svgTag) || isSVGElement
(); |
1855 | 1855 |
1856 return Node::childShouldCreateRenderer(childContext); | 1856 return Node::childShouldCreateRenderer(childContext); |
1857 } | 1857 } |
1858 #endif | 1858 #endif |
1859 | 1859 |
1860 #if ENABLE(FULLSCREEN_API) | 1860 #if ENABLE(FULLSCREEN_API) |
1861 void Element::webkitRequestFullscreen() | |
1862 { | |
1863 document()->requestFullScreenForElement(this, ALLOW_KEYBOARD_INPUT, Document
::EnforceIFrameAllowFulScreenRequirement); | |
1864 } | |
1865 | |
1866 void Element::webkitRequestFullScreen(unsigned short flags) | 1861 void Element::webkitRequestFullScreen(unsigned short flags) |
1867 { | 1862 { |
1868 document()->requestFullScreenForElement(this, (flags | LEGACY_MOZILLA_REQUES
T), Document::EnforceIFrameAllowFulScreenRequirement); | 1863 document()->requestFullScreenForElement(this, flags, Document::EnforceIFrame
AllowFulScreenRequirement); |
1869 } | 1864 } |
1870 | 1865 |
1871 bool Element::containsFullScreenElement() const | 1866 bool Element::containsFullScreenElement() const |
1872 { | 1867 { |
1873 return hasRareData() ? rareData()->m_containsFullScreenElement : false; | 1868 return hasRareData() ? rareData()->m_containsFullScreenElement : false; |
1874 } | 1869 } |
1875 | 1870 |
1876 void Element::setContainsFullScreenElement(bool flag) | 1871 void Element::setContainsFullScreenElement(bool flag) |
1877 { | 1872 { |
1878 ensureRareData()->m_containsFullScreenElement = flag; | 1873 ensureRareData()->m_containsFullScreenElement = flag; |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2062 if (!newId.isEmpty()) | 2057 if (!newId.isEmpty()) |
2063 static_cast<HTMLDocument*>(document())->addExtraNamedItem(newId); | 2058 static_cast<HTMLDocument*>(document())->addExtraNamedItem(newId); |
2064 } | 2059 } |
2065 | 2060 |
2066 HTMLCollection* Element::ensureCachedHTMLCollection(CollectionType type) | 2061 HTMLCollection* Element::ensureCachedHTMLCollection(CollectionType type) |
2067 { | 2062 { |
2068 return ensureRareData()->ensureCachedHTMLCollection(this, type); | 2063 return ensureRareData()->ensureCachedHTMLCollection(this, type); |
2069 } | 2064 } |
2070 | 2065 |
2071 } // namespace WebCore | 2066 } // namespace WebCore |
OLD | NEW |