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

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

Issue 558333002: Don't clear StyleAffectedByEmpty before recalc. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 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 | « 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 static ElementRareData* create(RenderObject* renderer) 45 static ElementRareData* create(RenderObject* 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 void resetStyleState();
56
57 short tabIndex() const { return m_tabindex; } 55 short tabIndex() const { return m_tabindex; }
58 56
59 void setTabIndexExplicitly(short index) 57 void setTabIndexExplicitly(short index)
60 { 58 {
61 m_tabindex = index; 59 m_tabindex = index;
62 setElementFlag(TabIndexWasSetExplicitly, true); 60 setElementFlag(TabIndexWasSetExplicitly, true);
63 } 61 }
64 62
65 void clearTabIndexExplicitly() 63 void clearTabIndexExplicitly()
66 { 64 {
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 return m_generatedBefore.get(); 218 return m_generatedBefore.get();
221 case AFTER: 219 case AFTER:
222 return m_generatedAfter.get(); 220 return m_generatedAfter.get();
223 case BACKDROP: 221 case BACKDROP:
224 return m_backdrop.get(); 222 return m_backdrop.get();
225 default: 223 default:
226 return 0; 224 return 0;
227 } 225 }
228 } 226 }
229 227
230 inline void ElementRareData::resetStyleState()
231 {
232 clearElementFlag(StyleAffectedByEmpty);
233 }
234
235 } // namespace 228 } // namespace
236 229
237 #endif // ElementRareData_h 230 #endif // ElementRareData_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698