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

Side by Side Diff: sky/engine/core/dom/ElementRareData.h

Issue 878303002: Remove more scrolling code from Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « sky/engine/core/dom/Element.idl ('k') | sky/engine/core/dom/ElementRareData.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) 2008, 2009, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2008, 2009, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com> 3 * Copyright (C) 2008 David Smith <catfish.man@gmail.com>
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 return *m_shadow; 68 return *m_shadow;
69 } 69 }
70 70
71 RenderStyle* computedStyle() const { return m_computedStyle.get(); } 71 RenderStyle* computedStyle() const { return m_computedStyle.get(); }
72 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty le = computedStyle; } 72 void setComputedStyle(PassRefPtr<RenderStyle> computedStyle) { m_computedSty le = computedStyle; }
73 void clearComputedStyle() { m_computedStyle = nullptr; } 73 void clearComputedStyle() { m_computedStyle = nullptr; }
74 74
75 DOMTokenList* classList() const { return m_classList.get(); } 75 DOMTokenList* classList() const { return m_classList.get(); }
76 void setClassList(PassOwnPtr<DOMTokenList> classList) { m_classList = classL ist; } 76 void setClassList(PassOwnPtr<DOMTokenList> classList) { m_classList = classL ist; }
77 77
78 IntSize savedLayerScrollOffset() const { return m_savedLayerScrollOffset; }
79 void setSavedLayerScrollOffset(IntSize size) { m_savedLayerScrollOffset = si ze; }
80
81 ActiveAnimations* activeAnimations() { return m_activeAnimations.get(); } 78 ActiveAnimations* activeAnimations() { return m_activeAnimations.get(); }
82 void setActiveAnimations(PassOwnPtr<ActiveAnimations> activeAnimations) 79 void setActiveAnimations(PassOwnPtr<ActiveAnimations> activeAnimations)
83 { 80 {
84 m_activeAnimations = activeAnimations; 81 m_activeAnimations = activeAnimations;
85 } 82 }
86 83
87 private: 84 private:
88 unsigned m_tabindex : 16; 85 unsigned m_tabindex : 16;
89 unsigned m_hasTabIndex : 1; 86 unsigned m_hasTabIndex : 1;
90 87
91 IntSize m_savedLayerScrollOffset;
92
93 OwnPtr<DOMTokenList> m_classList; 88 OwnPtr<DOMTokenList> m_classList;
94 OwnPtr<ElementShadow> m_shadow; 89 OwnPtr<ElementShadow> m_shadow;
95 OwnPtr<ActiveAnimations> m_activeAnimations; 90 OwnPtr<ActiveAnimations> m_activeAnimations;
96 OwnPtr<InlineCSSStyleDeclaration> m_cssomWrapper; 91 OwnPtr<InlineCSSStyleDeclaration> m_cssomWrapper;
97 92
98 RefPtr<RenderStyle> m_computedStyle; 93 RefPtr<RenderStyle> m_computedStyle;
99 94
100 explicit ElementRareData(RenderObject*); 95 explicit ElementRareData(RenderObject*);
101 }; 96 };
102 97
103 inline ElementRareData::ElementRareData(RenderObject* renderer) 98 inline ElementRareData::ElementRareData(RenderObject* renderer)
104 : NodeRareData(renderer) 99 : NodeRareData(renderer)
105 , m_tabindex(0) 100 , m_tabindex(0)
106 , m_hasTabIndex(false) 101 , m_hasTabIndex(false)
107 { 102 {
108 m_isElementRareData = true; 103 m_isElementRareData = true;
109 } 104 }
110 105
111 inline ElementRareData::~ElementRareData() 106 inline ElementRareData::~ElementRareData()
112 { 107 {
113 #if !ENABLE(OILPAN) 108 #if !ENABLE(OILPAN)
114 ASSERT(!m_shadow); 109 ASSERT(!m_shadow);
115 #endif 110 #endif
116 } 111 }
117 112
118 } // namespace 113 } // namespace
119 114
120 #endif // SKY_ENGINE_CORE_DOM_ELEMENTRAREDATA_H_ 115 #endif // SKY_ENGINE_CORE_DOM_ELEMENTRAREDATA_H_
OLDNEW
« no previous file with comments | « sky/engine/core/dom/Element.idl ('k') | sky/engine/core/dom/ElementRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698