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

Unified Diff: Source/core/dom/ElementRareData.h

Issue 245103004: Remove dead code from childIndex optimization (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementRareData.h
diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h
index 213f906d7ec85b78b3512d56b0dfd6c22df0c0be..cfac411cdf7a11a154f307a361b6dec7143ff2f6 100644
--- a/Source/core/dom/ElementRareData.h
+++ b/Source/core/dom/ElementRareData.h
@@ -63,9 +63,6 @@ public:
clearElementFlag(TabIndexWasSetExplicitly);
}
- unsigned childIndex() const { return m_childIndex; }
- void setChildIndex(unsigned index) { m_childIndex = index; }
-
CSSStyleDeclaration& ensureInlineCSSStyleDeclaration(Element* ownerElement);
void clearShadow() { m_shadow = nullptr; }
@@ -124,7 +121,6 @@ public:
private:
short m_tabindex;
- unsigned short m_childIndex;
LayoutSize m_minimumSizeForResizing;
IntSize m_savedLayerScrollOffset;
@@ -155,7 +151,6 @@ inline IntSize defaultMinimumSizeForResizing()
inline ElementRareData::ElementRareData(RenderObject* renderer)
: NodeRareData(renderer)
, m_tabindex(0)
- , m_childIndex(0)
, m_minimumSizeForResizing(defaultMinimumSizeForResizing())
{
}
@@ -220,7 +215,6 @@ inline PseudoElement* ElementRareData::pseudoElement(PseudoId pseudoId) const
inline void ElementRareData::resetStyleState()
{
clearElementFlag(StyleAffectedByEmpty);
- setChildIndex(0);
}
} // namespace
« 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