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

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

Issue 899163003: Move rendering/RenderObject to layout/LayoutObject. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/FirstLetterPseudoElement.h » ('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 24 matching lines...) Expand all
35 #include "core/rendering/style/StyleInheritedData.h" 35 #include "core/rendering/style/StyleInheritedData.h"
36 #include "platform/heap/Handle.h" 36 #include "platform/heap/Handle.h"
37 #include "wtf/OwnPtr.h" 37 #include "wtf/OwnPtr.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 class HTMLElement; 41 class HTMLElement;
42 42
43 class ElementRareData : public NodeRareData { 43 class ElementRareData : public NodeRareData {
44 public: 44 public:
45 static ElementRareData* create(RenderObject* renderer) 45 static ElementRareData* create(LayoutObject* renderer)
46 { 46 {
47 return new ElementRareData(renderer); 47 return new ElementRareData(renderer);
48 } 48 }
49 49
50 ~ElementRareData(); 50 ~ElementRareData();
51 51
52 void setPseudoElement(PseudoId, PassRefPtrWillBeRawPtr<PseudoElement>); 52 void setPseudoElement(PseudoId, PassRefPtrWillBeRawPtr<PseudoElement>);
53 PseudoElement* pseudoElement(PseudoId) const; 53 PseudoElement* pseudoElement(PseudoId) const;
54 54
55 short tabIndex() const { return m_tabindex; } 55 short tabIndex() const { return m_tabindex; }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper; 144 OwnPtrWillBeMember<InlineCSSStyleDeclaration> m_cssomWrapper;
145 145
146 RefPtr<RenderStyle> m_computedStyle; 146 RefPtr<RenderStyle> m_computedStyle;
147 RefPtrWillBeMember<CustomElementDefinition> m_customElementDefinition; 147 RefPtrWillBeMember<CustomElementDefinition> m_customElementDefinition;
148 148
149 RefPtrWillBeMember<PseudoElement> m_generatedBefore; 149 RefPtrWillBeMember<PseudoElement> m_generatedBefore;
150 RefPtrWillBeMember<PseudoElement> m_generatedAfter; 150 RefPtrWillBeMember<PseudoElement> m_generatedAfter;
151 RefPtrWillBeMember<PseudoElement> m_generatedFirstLetter; 151 RefPtrWillBeMember<PseudoElement> m_generatedFirstLetter;
152 RefPtrWillBeMember<PseudoElement> m_backdrop; 152 RefPtrWillBeMember<PseudoElement> m_backdrop;
153 153
154 explicit ElementRareData(RenderObject*); 154 explicit ElementRareData(LayoutObject*);
155 }; 155 };
156 156
157 inline LayoutSize defaultMinimumSizeForResizing() 157 inline LayoutSize defaultMinimumSizeForResizing()
158 { 158 {
159 return LayoutSize(LayoutUnit::max(), LayoutUnit::max()); 159 return LayoutSize(LayoutUnit::max(), LayoutUnit::max());
160 } 160 }
161 161
162 inline ElementRareData::ElementRareData(RenderObject* renderer) 162 inline ElementRareData::ElementRareData(LayoutObject* renderer)
163 : NodeRareData(renderer) 163 : NodeRareData(renderer)
164 , m_tabindex(0) 164 , m_tabindex(0)
165 , m_minimumSizeForResizing(defaultMinimumSizeForResizing()) 165 , m_minimumSizeForResizing(defaultMinimumSizeForResizing())
166 { 166 {
167 m_isElementRareData = true; 167 m_isElementRareData = true;
168 } 168 }
169 169
170 inline ElementRareData::~ElementRareData() 170 inline ElementRareData::~ElementRareData()
171 { 171 {
172 #if !ENABLE(OILPAN) 172 #if !ENABLE(OILPAN)
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 case FIRST_LETTER: 231 case FIRST_LETTER:
232 return m_generatedFirstLetter.get(); 232 return m_generatedFirstLetter.get();
233 default: 233 default:
234 return 0; 234 return 0;
235 } 235 }
236 } 236 }
237 237
238 } // namespace 238 } // namespace
239 239
240 #endif // ElementRareData_h 240 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/dom/FirstLetterPseudoElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698