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

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

Issue 19266007: Web Animations: Introduce ActiveAnimations and AnimationStack (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Removed maps. Store ActiveAnimations in ElementRareData. Created 7 years, 5 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
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 19 matching lines...) Expand all
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/SpaceSplitString.h" 33 #include "core/dom/SpaceSplitString.h"
34 #include "core/html/CollectionType.h" 34 #include "core/html/CollectionType.h"
35 #include "core/platform/ScrollTypes.h" 35 #include "core/platform/ScrollTypes.h"
36 #include "core/rendering/RegionOversetState.h" 36 #include "core/rendering/RegionOversetState.h"
37 37
38 namespace WebCore { 38 namespace WebCore {
39 39
40 class Animation; 40 class ActiveAnimations;
41 class Attr; 41 class Attr;
42 class Attribute; 42 class Attribute;
43 class ClientRect; 43 class ClientRect;
44 class ClientRectList; 44 class ClientRectList;
45 class DOMStringMap; 45 class DOMStringMap;
46 class DOMTokenList; 46 class DOMTokenList;
47 class Element; 47 class Element;
48 class ElementRareData; 48 class ElementRareData;
49 class ElementShadow; 49 class ElementShadow;
50 class InputMethodContext; 50 class InputMethodContext;
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 618
619 bool hasID() const; 619 bool hasID() const;
620 bool hasClass() const; 620 bool hasClass() const;
621 const SpaceSplitString& classNames() const; 621 const SpaceSplitString& classNames() const;
622 622
623 IntSize savedLayerScrollOffset() const; 623 IntSize savedLayerScrollOffset() const;
624 void setSavedLayerScrollOffset(const IntSize&); 624 void setSavedLayerScrollOffset(const IntSize&);
625 625
626 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 626 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
627 627
628 void addActiveAnimation(Animation*); 628 ActiveAnimations* activeAnimations() const;
629 void removeActiveAnimation(Animation*); 629 ActiveAnimations* ensureActiveAnimations();
630 bool hasActiveAnimations() const; 630 bool hasActiveAnimations() const;
631 Vector<Animation*>* activeAnimations() const;
632 631
633 InputMethodContext* getInputContext(); 632 InputMethodContext* getInputContext();
634 633
635 protected: 634 protected:
636 Element(const QualifiedName& tagName, Document* document, ConstructionType t ype) 635 Element(const QualifiedName& tagName, Document* document, ConstructionType t ype)
637 : ContainerNode(document, type) 636 : ContainerNode(document, type)
638 , m_tagName(tagName) 637 , m_tagName(tagName)
639 { 638 {
640 ScriptWrappable::init(this); 639 ScriptWrappable::init(this);
641 } 640 }
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 1062
1064 inline const Attribute* ElementData::attributeItem(unsigned index) const 1063 inline const Attribute* ElementData::attributeItem(unsigned index) const
1065 { 1064 {
1066 RELEASE_ASSERT(index < length()); 1065 RELEASE_ASSERT(index < length());
1067 return attributeBase() + index; 1066 return attributeBase() + index;
1068 } 1067 }
1069 1068
1070 } // namespace 1069 } // namespace
1071 1070
1072 #endif 1071 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698