OLD | NEW |
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; } |
56 | 56 |
57 void setTabIndexExplicitly(short index) | 57 void setTabIndexExplicitly(short index) |
58 { | 58 { |
59 m_tabindex = index; | 59 m_tabindex = index; |
60 // tabStop is overridden by setting tabindex. | |
61 m_tabStop = (m_tabindex >= 0); | |
62 setElementFlag(TabIndexWasSetExplicitly, true); | 60 setElementFlag(TabIndexWasSetExplicitly, true); |
63 } | 61 } |
64 | 62 |
65 void clearTabIndexExplicitly() | 63 void clearTabIndexExplicitly() |
66 { | 64 { |
67 m_tabindex = 0; | 65 m_tabindex = 0; |
68 m_tabStop = true; | |
69 clearElementFlag(TabIndexWasSetExplicitly); | 66 clearElementFlag(TabIndexWasSetExplicitly); |
70 } | 67 } |
71 | 68 |
72 bool tabStop() const { return m_tabStop; } | 69 bool tabStop() const { return m_tabStop; } |
73 | 70 |
74 void setTabStop(bool flag) { m_tabStop = flag; } | 71 void setTabStop(bool flag) { m_tabStop = flag; } |
75 | 72 |
76 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); | 73 CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement); |
77 | 74 |
78 void clearShadow() { m_shadow = nullptr; } | 75 void clearShadow() { m_shadow = nullptr; } |
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 case FIRST_LETTER: | 237 case FIRST_LETTER: |
241 return m_generatedFirstLetter.get(); | 238 return m_generatedFirstLetter.get(); |
242 default: | 239 default: |
243 return 0; | 240 return 0; |
244 } | 241 } |
245 } | 242 } |
246 | 243 |
247 } // namespace | 244 } // namespace |
248 | 245 |
249 #endif // ElementRareData_h | 246 #endif // ElementRareData_h |
OLD | NEW |