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

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

Issue 1046853002: Implement 'tabstop' as an HTML attribute (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: style nit for layout test. Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLAttributeNames.in » ('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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/html/HTMLAttributeNames.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698