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

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: 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;
41 class Attr; 40 class Attr;
42 class Attribute; 41 class Attribute;
43 class ClientRect; 42 class ClientRect;
44 class ClientRectList; 43 class ClientRectList;
45 class DOMStringMap; 44 class DOMStringMap;
46 class DOMTokenList; 45 class DOMTokenList;
47 class Element; 46 class Element;
48 class ElementRareData; 47 class ElementRareData;
49 class ElementShadow; 48 class ElementShadow;
50 class InputMethodContext; 49 class InputMethodContext;
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after
618 617
619 bool hasID() const; 618 bool hasID() const;
620 bool hasClass() const; 619 bool hasClass() const;
621 const SpaceSplitString& classNames() const; 620 const SpaceSplitString& classNames() const;
622 621
623 IntSize savedLayerScrollOffset() const; 622 IntSize savedLayerScrollOffset() const;
624 void setSavedLayerScrollOffset(const IntSize&); 623 void setSavedLayerScrollOffset(const IntSize&);
625 624
626 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE; 625 virtual void reportMemoryUsage(MemoryObjectInfo*) const OVERRIDE;
627 626
628 void addActiveAnimation(Animation*);
629 void removeActiveAnimation(Animation*);
630 bool hasActiveAnimations() const; 627 bool hasActiveAnimations() const;
631 Vector<Animation*>* activeAnimations() const;
632 628
633 InputMethodContext* getInputContext(); 629 InputMethodContext* getInputContext();
634 630
635 protected: 631 protected:
636 Element(const QualifiedName& tagName, Document* document, ConstructionType t ype) 632 Element(const QualifiedName& tagName, Document* document, ConstructionType t ype)
637 : ContainerNode(document, type) 633 : ContainerNode(document, type)
638 , m_tagName(tagName) 634 , m_tagName(tagName)
639 { 635 {
640 ScriptWrappable::init(this); 636 ScriptWrappable::init(this);
641 } 637 }
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after
1063 1059
1064 inline const Attribute* ElementData::attributeItem(unsigned index) const 1060 inline const Attribute* ElementData::attributeItem(unsigned index) const
1065 { 1061 {
1066 RELEASE_ASSERT(index < length()); 1062 RELEASE_ASSERT(index < length());
1067 return attributeBase() + index; 1063 return attributeBase() + index;
1068 } 1064 }
1069 1065
1070 } // namespace 1066 } // namespace
1071 1067
1072 #endif 1068 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698