| 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 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. | 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl
e Inc. All rights reserved. |
| 7 * | 7 * |
| 8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
| 9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
| 10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 | 401 |
| 402 virtual const AtomicString& shadowPseudoId() const; | 402 virtual const AtomicString& shadowPseudoId() const; |
| 403 void setShadowPseudoId(const AtomicString&); | 403 void setShadowPseudoId(const AtomicString&); |
| 404 | 404 |
| 405 LayoutSize minimumSizeForResizing() const; | 405 LayoutSize minimumSizeForResizing() const; |
| 406 void setMinimumSizeForResizing(const LayoutSize&); | 406 void setMinimumSizeForResizing(const LayoutSize&); |
| 407 | 407 |
| 408 virtual void didBecomeFullscreenElement() { } | 408 virtual void didBecomeFullscreenElement() { } |
| 409 virtual void willStopBeingFullscreenElement() { } | 409 virtual void willStopBeingFullscreenElement() { } |
| 410 | 410 |
| 411 // Called by the parser when this element's attributes have all been added. |
| 412 // This is needed for <audio>/<video>, where the muted content attribute |
| 413 // should have an effect only if it is present when the element is created. |
| 414 virtual void finishParsingAttributes() { } |
| 415 |
| 411 // Called by the parser when this element's close tag is reached, | 416 // Called by the parser when this element's close tag is reached, |
| 412 // signaling that all child tags have been parsed and added. | 417 // signaling that all child tags have been parsed and added. |
| 413 // This is needed for <applet> and <object> elements, which can't lay themse
lves out | 418 // This is needed for <applet> and <object> elements, which can't lay themse
lves out |
| 414 // until they know all of their nested <param>s. [Radar 3603191, 4040848]. | 419 // until they know all of their nested <param>s. [Radar 3603191, 4040848]. |
| 415 // Also used for script elements and some SVG elements for similar purposes, | 420 // Also used for script elements and some SVG elements for similar purposes, |
| 416 // but making parsing a special case in this respect should be avoided if po
ssible. | 421 // but making parsing a special case in this respect should be avoided if po
ssible. |
| 417 virtual void finishParsingChildren(); | 422 virtual void finishParsingChildren(); |
| 418 | 423 |
| 419 void beginParsingChildren() { setIsFinishedParsingChildren(false); } | 424 void beginParsingChildren() { setIsFinishedParsingChildren(false); } |
| 420 | 425 |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 881 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ | 886 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return element.predicate; } \ |
| 882 DEFINE_NODE_TYPE_CASTS(thisType, predicate) | 887 DEFINE_NODE_TYPE_CASTS(thisType, predicate) |
| 883 | 888 |
| 884 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ | 889 #define DEFINE_ELEMENT_TYPE_CASTS_WITH_FUNCTION(thisType) \ |
| 885 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ | 890 template <> inline bool isElementOfType<const thisType>(const Element& eleme
nt) { return is##thisType(element); } \ |
| 886 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) | 891 DEFINE_NODE_TYPE_CASTS_WITH_FUNCTION(thisType) |
| 887 | 892 |
| 888 } // namespace | 893 } // namespace |
| 889 | 894 |
| 890 #endif | 895 #endif |
| OLD | NEW |