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/FocusDirection.h" | 36 #include "core/page/FocusDirection.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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
500 bool isInTopLayer() const; | 492 bool isInTopLayer() const; |
501 void setIsInTopLayer(bool); | 493 void setIsInTopLayer(bool); |
502 | 494 |
503 void webkitRequestPointerLock(); | 495 void webkitRequestPointerLock(); |
504 | 496 |
505 bool isSpellCheckingEnabled() const; | 497 bool isSpellCheckingEnabled() const; |
506 | 498 |
507 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. | 499 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. |
508 PassRefPtr<RenderStyle> styleForRenderer(); | 500 PassRefPtr<RenderStyle> styleForRenderer(); |
509 | 501 |
510 RenderRegion* renderRegion() const; | |
511 const AtomicString& webkitRegionOverset() const; | |
512 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const; | |
513 | |
514 bool hasID() const; | 502 bool hasID() const; |
515 bool hasClass() const; | 503 bool hasClass() const; |
516 const SpaceSplitString& classNames() const; | 504 const SpaceSplitString& classNames() const; |
517 | 505 |
518 IntSize savedLayerScrollOffset() const; | 506 IntSize savedLayerScrollOffset() const; |
519 void setSavedLayerScrollOffset(const IntSize&); | 507 void setSavedLayerScrollOffset(const IntSize&); |
520 | 508 |
521 ActiveAnimations* activeAnimations() const; | 509 ActiveAnimations* activeAnimations() const; |
522 ActiveAnimations* ensureActiveAnimations(); | 510 ActiveAnimations* ensureActiveAnimations(); |
523 bool hasActiveAnimations() const; | 511 bool hasActiveAnimations() const; |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 bool rareDataChildrenAffectedByDirectAdjacentRules() const; | 649 bool rareDataChildrenAffectedByDirectAdjacentRules() const; |
662 bool rareDataChildrenAffectedByForwardPositionalRules() const; | 650 bool rareDataChildrenAffectedByForwardPositionalRules() const; |
663 bool rareDataChildrenAffectedByBackwardPositionalRules() const; | 651 bool rareDataChildrenAffectedByBackwardPositionalRules() const; |
664 unsigned rareDataChildIndex() const; | 652 unsigned rareDataChildIndex() const; |
665 | 653 |
666 SpellcheckAttributeState spellcheckAttributeState() const; | 654 SpellcheckAttributeState spellcheckAttributeState() const; |
667 | 655 |
668 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt
ring& newName); | 656 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt
ring& newName); |
669 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato
micString& newName); | 657 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato
micString& newName); |
670 | 658 |
671 void unregisterNamedFlowContentNode(); | |
672 | |
673 void createUniqueElementData(); | 659 void createUniqueElementData(); |
674 | 660 |
675 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); | 661 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const
QualifiedName&, const AtomicString&); |
676 | 662 |
677 ElementRareData* elementRareData() const; | 663 ElementRareData* elementRareData() const; |
678 ElementRareData& ensureElementRareData(); | 664 ElementRareData& ensureElementRareData(); |
679 | 665 |
680 void detachAllAttrNodesFromElement(); | 666 void detachAllAttrNodesFromElement(); |
681 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); | 667 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); |
682 void detachAttrNodeAtIndex(Attr*, size_t index); | 668 void detachAttrNodeAtIndex(Attr*, size_t index); |
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
890 } | 876 } |
891 | 877 |
892 inline bool isShadowHost(const Element* element) | 878 inline bool isShadowHost(const Element* element) |
893 { | 879 { |
894 return element && element->shadow(); | 880 return element && element->shadow(); |
895 } | 881 } |
896 | 882 |
897 } // namespace | 883 } // namespace |
898 | 884 |
899 #endif | 885 #endif |
OLD | NEW |