Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: Source/core/dom/Element.h

Issue 143323014: *** DO NOT LAND *** Attempt to understand Regions complexity Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 bool isInTopLayer() const; 493 bool isInTopLayer() const;
502 void setIsInTopLayer(bool); 494 void setIsInTopLayer(bool);
503 495
504 void webkitRequestPointerLock(); 496 void webkitRequestPointerLock();
505 497
506 bool isSpellCheckingEnabled() const; 498 bool isSpellCheckingEnabled() const;
507 499
508 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though. 500 // FIXME: public for RenderTreeBuilder, we shouldn't expose this though.
509 PassRefPtr<RenderStyle> styleForRenderer(); 501 PassRefPtr<RenderStyle> styleForRenderer();
510 502
511 RenderRegion* renderRegion() const;
512 const AtomicString& webkitRegionOverset() const;
513 Vector<RefPtr<Range> > webkitGetRegionFlowRanges() const;
514
515 bool hasID() const; 503 bool hasID() const;
516 bool hasClass() const; 504 bool hasClass() const;
517 const SpaceSplitString& classNames() const; 505 const SpaceSplitString& classNames() const;
518 506
519 IntSize savedLayerScrollOffset() const; 507 IntSize savedLayerScrollOffset() const;
520 void setSavedLayerScrollOffset(const IntSize&); 508 void setSavedLayerScrollOffset(const IntSize&);
521 509
522 ActiveAnimations* activeAnimations() const; 510 ActiveAnimations* activeAnimations() const;
523 ActiveAnimations* ensureActiveAnimations(); 511 ActiveAnimations* ensureActiveAnimations();
524 bool hasActiveAnimations() const; 512 bool hasActiveAnimations() const;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
666 bool rareDataChildrenAffectedByDirectAdjacentRules() const; 654 bool rareDataChildrenAffectedByDirectAdjacentRules() const;
667 bool rareDataChildrenAffectedByForwardPositionalRules() const; 655 bool rareDataChildrenAffectedByForwardPositionalRules() const;
668 bool rareDataChildrenAffectedByBackwardPositionalRules() const; 656 bool rareDataChildrenAffectedByBackwardPositionalRules() const;
669 unsigned rareDataChildIndex() const; 657 unsigned rareDataChildIndex() const;
670 658
671 SpellcheckAttributeState spellcheckAttributeState() const; 659 SpellcheckAttributeState spellcheckAttributeState() const;
672 660
673 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName); 661 void updateNamedItemRegistration(const AtomicString& oldName, const AtomicSt ring& newName);
674 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName); 662 void updateExtraNamedItemRegistration(const AtomicString& oldName, const Ato micString& newName);
675 663
676 void unregisterNamedFlowContentNode();
677
678 void createUniqueElementData(); 664 void createUniqueElementData();
679 665
680 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&); 666 bool shouldInvalidateDistributionWhenAttributeChanged(ElementShadow*, const QualifiedName&, const AtomicString&);
681 667
682 ElementRareData* elementRareData() const; 668 ElementRareData* elementRareData() const;
683 ElementRareData& ensureElementRareData(); 669 ElementRareData& ensureElementRareData();
684 670
685 void detachAllAttrNodesFromElement(); 671 void detachAllAttrNodesFromElement();
686 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value); 672 void detachAttrNodeFromElementWithValue(Attr*, const AtomicString& value);
687 void detachAttrNodeAtIndex(Attr*, size_t index); 673 void detachAttrNodeAtIndex(Attr*, size_t index);
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
895 } 881 }
896 882
897 inline bool isShadowHost(const Element* element) 883 inline bool isShadowHost(const Element* element)
898 { 884 {
899 return element && element->shadow(); 885 return element && element->shadow();
900 } 886 }
901 887
902 } // namespace 888 } // namespace
903 889
904 #endif 890 #endif
OLDNEW
« no previous file with comments | « Source/core/dom/Document.idl ('k') | Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698