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

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

Issue 2149393002: Rename ElementRareData::ensureComputedStyle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 ElementShadow& ensureShadow() 81 ElementShadow& ensureShadow()
82 { 82 {
83 if (!m_shadow) 83 if (!m_shadow)
84 m_shadow = ElementShadow::create(); 84 m_shadow = ElementShadow::create();
85 return *m_shadow; 85 return *m_shadow;
86 } 86 }
87 87
88 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); } 88 NamedNodeMap* attributeMap() const { return m_attributeMap.get(); }
89 void setAttributeMap(NamedNodeMap* attributeMap) { m_attributeMap = attribut eMap; } 89 void setAttributeMap(NamedNodeMap* attributeMap) { m_attributeMap = attribut eMap; }
90 90
91 ComputedStyle* ensureComputedStyle() const { return m_computedStyle.get(); } 91 ComputedStyle* computedStyle() const { return m_computedStyle.get(); }
92 void setComputedStyle(PassRefPtr<ComputedStyle> computedStyle) { m_computedS tyle = computedStyle; } 92 void setComputedStyle(PassRefPtr<ComputedStyle> computedStyle) { m_computedS tyle = computedStyle; }
93 void clearComputedStyle() { m_computedStyle = nullptr; } 93 void clearComputedStyle() { m_computedStyle = nullptr; }
94 94
95 ClassList* classList() const { return m_classList.get(); } 95 ClassList* classList() const { return m_classList.get(); }
96 void setClassList(ClassList* classList) { m_classList = classList; } 96 void setClassList(ClassList* classList) { m_classList = classList; }
97 void clearClassListValueForQuirksMode() 97 void clearClassListValueForQuirksMode()
98 { 98 {
99 if (!m_classList) 99 if (!m_classList)
100 return; 100 return;
101 m_classList->clearValueForQuirksMode(); 101 m_classList->clearValueForQuirksMode();
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet() 232 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet()
233 { 233 {
234 if (!m_proxiedProperties) 234 if (!m_proxiedProperties)
235 m_proxiedProperties = CompositorProxiedPropertySet::create(); 235 m_proxiedProperties = CompositorProxiedPropertySet::create();
236 return *m_proxiedProperties; 236 return *m_proxiedProperties;
237 } 237 }
238 238
239 } // namespace blink 239 } // namespace blink
240 240
241 #endif // ElementRareData_h 241 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698