Chromium Code Reviews| Index: Source/core/dom/ElementRareData.h |
| diff --git a/Source/core/dom/ElementRareData.h b/Source/core/dom/ElementRareData.h |
| index bcd739cf05d7d796782502e1998914bdb2390157..8f215d553a24564a6f81be8d38bfa5536397128c 100644 |
| --- a/Source/core/dom/ElementRareData.h |
| +++ b/Source/core/dom/ElementRareData.h |
| @@ -31,6 +31,7 @@ |
| #include "core/dom/custom/CustomElementDefinition.h" |
| #include "core/dom/shadow/ElementShadow.h" |
| #include "core/html/ClassList.h" |
| +#include "core/page/scrolling/ScrollStateCallback.h" |
| #include "core/style/StyleInheritedData.h" |
| #include "platform/heap/Handle.h" |
| #include "wtf/OwnPtr.h" |
| @@ -121,6 +122,14 @@ public: |
| void setCustomElementDefinition(PassRefPtrWillBeRawPtr<CustomElementDefinition> definition) { m_customElementDefinition = definition; } |
| CustomElementDefinition* customElementDefinition() const { return m_customElementDefinition.get(); } |
| + void setDistributeScroll(ScrollStateCallback* scrollStateCallback) { m_distributeScroll = scrollStateCallback; } |
| + |
| + ScrollStateCallback* getDistributeScroll() { return m_distributeScroll.get(); } |
|
haraken
2015/06/30 07:08:30
Nit: Blink normally doesn't use a "get" prefix.
|
| + |
| + void setApplyScroll(ScrollStateCallback* scrollStateCallback) { m_applyScroll = scrollStateCallback; } |
| + |
| + ScrollStateCallback* getApplyScroll() { return m_applyScroll.get(); } |
|
haraken
2015/06/30 07:08:30
Ditto.
|
| + |
| AttrNodeList& ensureAttrNodeList(); |
| AttrNodeList* attrNodeList() { return m_attrNodeList.get(); } |
| void removeAttrNodeList() { m_attrNodeList.clear(); } |
| @@ -152,6 +161,9 @@ private: |
| RefPtrWillBeMember<PseudoElement> m_generatedFirstLetter; |
| RefPtrWillBeMember<PseudoElement> m_backdrop; |
| + PersistentWillBeMember<ScrollStateCallback> m_applyScroll; |
| + PersistentWillBeMember<ScrollStateCallback> m_distributeScroll; |
| + |
| explicit ElementRareData(LayoutObject*); |
| }; |