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

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

Issue 2830583002: Rename NodeLayoutData -> NodeRenderingData (Closed)
Patch Set: Rebase Created 3 years, 8 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 | « no previous file | third_party/WebKit/Source/core/dom/Node.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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "platform/wtf/HashSet.h" 43 #include "platform/wtf/HashSet.h"
44 44
45 namespace blink { 45 namespace blink {
46 46
47 class CompositorProxiedPropertySet; 47 class CompositorProxiedPropertySet;
48 class ResizeObservation; 48 class ResizeObservation;
49 class ResizeObserver; 49 class ResizeObserver;
50 50
51 class ElementRareData : public NodeRareData { 51 class ElementRareData : public NodeRareData {
52 public: 52 public:
53 static ElementRareData* Create(NodeLayoutData* node_layout_data) { 53 static ElementRareData* Create(NodeRenderingData* node_layout_data) {
54 return new ElementRareData(node_layout_data); 54 return new ElementRareData(node_layout_data);
55 } 55 }
56 56
57 ~ElementRareData(); 57 ~ElementRareData();
58 58
59 void SetPseudoElement(PseudoId, PseudoElement*); 59 void SetPseudoElement(PseudoId, PseudoElement*);
60 PseudoElement* GetPseudoElement(PseudoId) const; 60 PseudoElement* GetPseudoElement(PseudoId) const;
61 61
62 void SetTabIndexExplicitly() { 62 void SetTabIndexExplicitly() {
63 SetElementFlag(kTabIndexWasSetExplicitly, true); 63 SetElementFlag(kTabIndexWasSetExplicitly, true);
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 218
219 RefPtr<ComputedStyle> computed_style_; 219 RefPtr<ComputedStyle> computed_style_;
220 // TODO(davaajav):remove this field when v0 custom elements are deprecated 220 // TODO(davaajav):remove this field when v0 custom elements are deprecated
221 Member<V0CustomElementDefinition> v0_custom_element_definition_; 221 Member<V0CustomElementDefinition> v0_custom_element_definition_;
222 Member<CustomElementDefinition> custom_element_definition_; 222 Member<CustomElementDefinition> custom_element_definition_;
223 223
224 Member<PseudoElementData> pseudo_element_data_; 224 Member<PseudoElementData> pseudo_element_data_;
225 225
226 Member<AccessibleNode> accessible_node_; 226 Member<AccessibleNode> accessible_node_;
227 227
228 explicit ElementRareData(NodeLayoutData*); 228 explicit ElementRareData(NodeRenderingData*);
229 }; 229 };
230 DEFINE_TRAIT_FOR_TRACE_WRAPPERS(ElementRareData); 230 DEFINE_TRAIT_FOR_TRACE_WRAPPERS(ElementRareData);
231 231
232 inline LayoutSize DefaultMinimumSizeForResizing() { 232 inline LayoutSize DefaultMinimumSizeForResizing() {
233 return LayoutSize(LayoutUnit::Max(), LayoutUnit::Max()); 233 return LayoutSize(LayoutUnit::Max(), LayoutUnit::Max());
234 } 234 }
235 235
236 inline ElementRareData::ElementRareData(NodeLayoutData* node_layout_data) 236 inline ElementRareData::ElementRareData(NodeRenderingData* node_layout_data)
237 : NodeRareData(node_layout_data), 237 : NodeRareData(node_layout_data),
238 minimum_size_for_resizing_(DefaultMinimumSizeForResizing()), 238 minimum_size_for_resizing_(DefaultMinimumSizeForResizing()),
239 class_list_(nullptr) { 239 class_list_(nullptr) {
240 is_element_rare_data_ = true; 240 is_element_rare_data_ = true;
241 } 241 }
242 242
243 inline ElementRareData::~ElementRareData() { 243 inline ElementRareData::~ElementRareData() {
244 DCHECK(!pseudo_element_data_); 244 DCHECK(!pseudo_element_data_);
245 } 245 }
246 246
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 inline CompositorProxiedPropertySet& 284 inline CompositorProxiedPropertySet&
285 ElementRareData::EnsureCompositorProxiedPropertySet() { 285 ElementRareData::EnsureCompositorProxiedPropertySet() {
286 if (!proxied_properties_) 286 if (!proxied_properties_)
287 proxied_properties_ = CompositorProxiedPropertySet::Create(); 287 proxied_properties_ = CompositorProxiedPropertySet::Create();
288 return *proxied_properties_; 288 return *proxied_properties_;
289 } 289 }
290 290
291 } // namespace blink 291 } // namespace blink
292 292
293 #endif // ElementRareData_h 293 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Node.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698