| 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-2011, 2013, 2014 Apple Inc. All rights reserved. | 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 class ExceptionState; | 54 class ExceptionState; |
| 55 class Image; | 55 class Image; |
| 56 class InputMethodContext; | 56 class InputMethodContext; |
| 57 class IntSize; | 57 class IntSize; |
| 58 class Locale; | 58 class Locale; |
| 59 class MutableStylePropertySet; | 59 class MutableStylePropertySet; |
| 60 class PropertySetCSSStyleDeclaration; | 60 class PropertySetCSSStyleDeclaration; |
| 61 class PseudoElement; | 61 class PseudoElement; |
| 62 class ShadowRoot; | 62 class ShadowRoot; |
| 63 class StylePropertySet; | 63 class StylePropertySet; |
| 64 template <typename T> class WebVector; |
| 65 struct WebTeleportValue; |
| 64 | 66 |
| 65 enum SpellcheckAttributeState { | 67 enum SpellcheckAttributeState { |
| 66 SpellcheckAttributeTrue, | 68 SpellcheckAttributeTrue, |
| 67 SpellcheckAttributeFalse, | 69 SpellcheckAttributeFalse, |
| 68 SpellcheckAttributeDefault | 70 SpellcheckAttributeDefault |
| 69 }; | 71 }; |
| 70 | 72 |
| 71 enum ElementFlags { | 73 enum ElementFlags { |
| 72 TabIndexWasSetExplicitly = 1 << 0, | 74 TabIndexWasSetExplicitly = 1 << 0, |
| 73 StyleAffectedByEmpty = 1 << 1, | 75 StyleAffectedByEmpty = 1 << 1, |
| (...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 451 | 453 |
| 452 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } | 454 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS
creenElement); } |
| 453 void setContainsFullScreenElement(bool); | 455 void setContainsFullScreenElement(bool); |
| 454 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); | 456 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); |
| 455 | 457 |
| 456 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } | 458 bool isInTopLayer() const { return hasElementFlag(IsInTopLayer); } |
| 457 void setIsInTopLayer(bool); | 459 void setIsInTopLayer(bool); |
| 458 | 460 |
| 459 void requestPointerLock(); | 461 void requestPointerLock(); |
| 460 | 462 |
| 463 String bindAnimatedProperty(const String& propertyName, ExceptionState&); |
| 464 void unbindAnimatedProperty(const String& propertyName, ExceptionState&); |
| 465 |
| 466 static void updateBoundAnimatedPropertiesIfNeeded(); |
| 467 static void applyToBoundAnimatedProperties(const WebVector<WebTeleportValue>
&); |
| 468 |
| 469 bool getBoundAnimatedProperty(const String& propertyName, String& token) con
st; |
| 470 bool hasBoundAnimatedProperty() const; |
| 471 |
| 461 bool isSpellCheckingEnabled() const; | 472 bool isSpellCheckingEnabled() const; |
| 462 | 473 |
| 463 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. | 474 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. |
| 464 PassRefPtr<RenderStyle> styleForRenderer(); | 475 PassRefPtr<RenderStyle> styleForRenderer(); |
| 465 | 476 |
| 466 bool hasID() const; | 477 bool hasID() const; |
| 467 bool hasClass() const; | 478 bool hasClass() const; |
| 468 const SpaceSplitString& classNames() const; | 479 const SpaceSplitString& classNames() const; |
| 469 | 480 |
| 470 IntSize savedLayerScrollOffset() const; | 481 IntSize savedLayerScrollOffset() const; |
| (...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 853 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) | 864 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) |
| 854 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ | 865 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ |
| 855 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ | 866 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document&
document) \ |
| 856 { \ | 867 { \ |
| 857 return adoptRefWillBeNoop(new T(tagName, document)); \ | 868 return adoptRefWillBeNoop(new T(tagName, document)); \ |
| 858 } | 869 } |
| 859 | 870 |
| 860 } // namespace | 871 } // namespace |
| 861 | 872 |
| 862 #endif // Element_h | 873 #endif // Element_h |
| OLD | NEW |