| 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 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 #include "CSSPropertyNames.h" | 28 #include "CSSPropertyNames.h" |
| 29 #include "HTMLNames.h" | 29 #include "HTMLNames.h" |
| 30 #include "core/css/CSSPrimitiveValue.h" | 30 #include "core/css/CSSPrimitiveValue.h" |
| 31 #include "core/dom/Attribute.h" | 31 #include "core/dom/Attribute.h" |
| 32 #include "core/dom/Document.h" | 32 #include "core/dom/Document.h" |
| 33 #include "core/dom/ElementData.h" | 33 #include "core/dom/ElementData.h" |
| 34 #include "core/dom/SpaceSplitString.h" | 34 #include "core/dom/SpaceSplitString.h" |
| 35 #include "core/html/CollectionType.h" | 35 #include "core/html/CollectionType.h" |
| 36 #include "core/page/FocusType.h" | 36 #include "core/page/FocusType.h" |
| 37 #include "core/rendering/RegionOversetState.h" | |
| 38 #include "platform/scroll/ScrollTypes.h" | 37 #include "platform/scroll/ScrollTypes.h" |
| 39 | 38 |
| 40 namespace WebCore { | 39 namespace WebCore { |
| 41 | 40 |
| 42 class ActiveAnimations; | 41 class ActiveAnimations; |
| 43 class Attr; | 42 class Attr; |
| 44 class Attribute; | 43 class Attribute; |
| 45 class ClientRect; | 44 class ClientRect; |
| 46 class ClientRectList; | 45 class ClientRectList; |
| 47 class DOMStringMap; | 46 class DOMStringMap; |
| 48 class DOMTokenList; | 47 class DOMTokenList; |
| 49 class ElementRareData; | 48 class ElementRareData; |
| 50 class ElementShadow; | 49 class ElementShadow; |
| 51 class ExceptionState; | 50 class ExceptionState; |
| 52 class Image; | 51 class Image; |
| 53 class InputMethodContext; | 52 class InputMethodContext; |
| 54 class IntSize; | 53 class IntSize; |
| 55 class Locale; | 54 class Locale; |
| 56 class MutableStylePropertySet; | 55 class MutableStylePropertySet; |
| 57 class PropertySetCSSStyleDeclaration; | 56 class PropertySetCSSStyleDeclaration; |
| 58 class PseudoElement; | 57 class PseudoElement; |
| 59 class RenderRegion; | |
| 60 class ShadowRoot; | 58 class ShadowRoot; |
| 61 class StylePropertySet; | 59 class StylePropertySet; |
| 62 | 60 |
| 63 enum AffectedSelectorType { | 61 enum AffectedSelectorType { |
| 64 AffectedSelectorChecked = 1, | 62 AffectedSelectorChecked = 1, |
| 65 AffectedSelectorEnabled = 1 << 1, | 63 AffectedSelectorEnabled = 1 << 1, |
| 66 AffectedSelectorDisabled = 1 << 2, | 64 AffectedSelectorDisabled = 1 << 2, |
| 67 AffectedSelectorIndeterminate = 1 << 3, | 65 AffectedSelectorIndeterminate = 1 << 3, |
| 68 AffectedSelectorLink = 1 << 4, | 66 AffectedSelectorLink = 1 << 4, |
| 69 AffectedSelectorTarget = 1 << 5, | 67 AffectedSelectorTarget = 1 << 5, |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 void setChildrenAffectedByForwardPositionalRules(); | 350 void setChildrenAffectedByForwardPositionalRules(); |
| 353 void setChildrenAffectedByBackwardPositionalRules(); | 351 void setChildrenAffectedByBackwardPositionalRules(); |
| 354 void setChildIndex(unsigned); | 352 void setChildIndex(unsigned); |
| 355 | 353 |
| 356 void setIsInCanvasSubtree(bool); | 354 void setIsInCanvasSubtree(bool); |
| 357 bool isInCanvasSubtree() const; | 355 bool isInCanvasSubtree() const; |
| 358 | 356 |
| 359 bool isUpgradedCustomElement() { return customElementState() == Upgraded; } | 357 bool isUpgradedCustomElement() { return customElementState() == Upgraded; } |
| 360 bool isUnresolvedCustomElement() { return customElementState() == WaitingFor
Upgrade; } | 358 bool isUnresolvedCustomElement() { return customElementState() == WaitingFor
Upgrade; } |
| 361 | 359 |
| 362 void setIsInsideRegion(bool); | |
| 363 bool isInsideRegion() const; | |
| 364 | |
| 365 void setRegionOversetState(RegionOversetState); | |
| 366 RegionOversetState regionOversetState() const; | |
| 367 | |
| 368 AtomicString computeInheritedLanguage() const; | 360 AtomicString computeInheritedLanguage() const; |
| 369 Locale& locale() const; | 361 Locale& locale() const; |
| 370 | 362 |
| 371 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } | 363 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } |
| 372 | 364 |
| 373 virtual bool isURLAttribute(const Attribute&) const { return false; } | 365 virtual bool isURLAttribute(const Attribute&) const { return false; } |
| 374 virtual bool isHTMLContentAttribute(const Attribute&) const { return false;
} | 366 virtual bool isHTMLContentAttribute(const Attribute&) const { return false;
} |
| 375 | 367 |
| 376 KURL getURLAttribute(const QualifiedName&) const; | 368 KURL getURLAttribute(const QualifiedName&) const; |
| 377 KURL getNonEmptyURLAttribute(const QualifiedName&) const; | 369 KURL getNonEmptyURLAttribute(const QualifiedName&) const; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 bool isInTopLayer() const; | 488 bool isInTopLayer() const; |
| 497 void setIsInTopLayer(bool); | 489 void setIsInTopLayer(bool); |
| 498 | 490 |
| 499 void webkitRequestPointerLock(); | 491 void webkitRequestPointerLock(); |
| 500 | 492 |
| 501 bool isSpellCheckingEnabled() const; | 493 bool isSpellCheckingEnabled() const; |
| 502 | 494 |
| 503 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. | 495 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. |
| 504 PassRefPtr<RenderStyle> styleForRenderer(); | 496 PassRefPtr<RenderStyle> styleForRenderer(); |
| 505 | 497 |
| 506 RenderRegion* renderRegion() const; | |
| 507 const AtomicString& webkitRegionOverset() const; | |
| 508 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const; | |
| 509 | |
| 510 bool hasID() const; | 498 bool hasID() const; |
| 511 bool hasClass() const; | 499 bool hasClass() const; |
| 512 const SpaceSplitString& classNames() const; | 500 const SpaceSplitString& classNames() const; |
| 513 | 501 |
| 514 IntSize savedLayerScrollOffset() const; | 502 IntSize savedLayerScrollOffset() const; |
| 515 void setSavedLayerScrollOffset(const IntSize&); | 503 void setSavedLayerScrollOffset(const IntSize&); |
| 516 | 504 |
| 517 ActiveAnimations* activeAnimations() const; | 505 ActiveAnimations* activeAnimations() const; |
| 518 ActiveAnimations* ensureActiveAnimations(); | 506 ActiveAnimations* ensureActiveAnimations(); |
| 519 bool hasActiveAnimations() const; | 507 bool hasActiveAnimations() const; |
| (...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 657 bool rareDataChildrenAffectedByDirectAdjacentRules() const; | 645 bool rareDataChildrenAffectedByDirectAdjacentRules() const; |
| 658 bool rareDataChildrenAffectedByForwardPositionalRules() const; | 646 bool rareDataChildrenAffectedByForwardPositionalRules() const; |
| 659 bool rareDataChildrenAffectedByBackwardPositionalRules() const; | 647 bool rareDataChildrenAffectedByBackwardPositionalRules() const; |
| 660 unsigned rareDataChildIndex() const; | 648 unsigned rareDataChildIndex() const; |
| 661 | 649 |
| 662 SpellcheckAttributeState spellcheckAttributeState() const; | 650 SpellcheckAttributeState spellcheckAttributeState() const; |
| 663 | 651 |
| 664 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt
ring& newName); | 652 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt
ring& newName); |
| 665 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato
micString& newName); | 653 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato
micString& newName); |
| 666 | 654 |
| 667 void unregisterNamedFlowContentNode(); | |
| 668 | |
| 669 void createUniqueElementData(); | 655 void createUniqueElementData(); |
| 670 | 656 |
| 671 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); | 657 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); |
| 672 | 658 |
| 673 ElementRareData* elementRareData() const; | 659 ElementRareData* elementRareData() const; |
| 674 ElementRareData& ensureElementRareData(); | 660 ElementRareData& ensureElementRareData(); |
| 675 | 661 |
| 676 void detachAllAttrNodesFromElement(); | 662 void detachAllAttrNodesFromElement(); |
| 677 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 663 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
| 678 void detachAttrNodeAtIndex(Attr*, size_t index); | 664 void detachAttrNodeAtIndex(Attr*, size_t index); |
| (...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 } | 856 } |
| 871 | 857 |
| 872 inline bool isShadowHost(const Element* element) | 858 inline bool isShadowHost(const Element* element) |
| 873 { | 859 { |
| 874 return element && element->shadow(); | 860 return element && element->shadow(); |
| 875 } | 861 } |
| 876 | 862 |
| 877 } // namespace | 863 } // namespace |
| 878 | 864 |
| 879 #endif | 865 #endif |
| OLD | NEW |