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

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

Issue 1876843002: Introduce few const getters for dom classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 setElementFlag(TabIndexWasSetExplicitly, true); 63 setElementFlag(TabIndexWasSetExplicitly, true);
64 } 64 }
65 65
66 void clearTabIndexExplicitly() 66 void clearTabIndexExplicitly()
67 { 67 {
68 m_tabindex = 0; 68 m_tabindex = 0;
69 clearElementFlag(TabIndexWasSetExplicitly); 69 clearElementFlag(TabIndexWasSetExplicitly);
70 } 70 }
71 71
72 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); 72 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement);
73 CSSStyleDeclaration* inlineCSSStyleDeclaration() const;
73 74
74 void clearShadow() { m_shadow = nullptr; } 75 void clearShadow() { m_shadow = nullptr; }
75 ElementShadow* shadow() const { return m_shadow.get(); } 76 ElementShadow* shadow() const { return m_shadow.get(); }
76 ElementShadow& ensureShadow() 77 ElementShadow& ensureShadow()
77 { 78 {
78 if (!m_shadow) 79 if (!m_shadow)
79 m_shadow = ElementShadow::create(); 80 m_shadow = ElementShadow::create();
80 return *m_shadow; 81 return *m_shadow;
81 } 82 }
82 83
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet() 268 inline CompositorProxiedPropertySet& ElementRareData::ensureCompositorProxiedPro pertySet()
268 { 269 {
269 if (!m_proxiedProperties) 270 if (!m_proxiedProperties)
270 m_proxiedProperties = CompositorProxiedPropertySet::create(); 271 m_proxiedProperties = CompositorProxiedPropertySet::create();
271 return *m_proxiedProperties; 272 return *m_proxiedProperties;
272 } 273 }
273 274
274 } // namespace blink 275 } // namespace blink
275 276
276 #endif // ElementRareData_h 277 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/dom/Element.cpp ('k') | third_party/WebKit/Source/core/dom/ElementRareData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698