| Index: third_party/WebKit/Source/core/dom/ElementRareData.h
|
| diff --git a/third_party/WebKit/Source/core/dom/ElementRareData.h b/third_party/WebKit/Source/core/dom/ElementRareData.h
|
| index 665b59a57c2b98af2757cc2eb417ce6ddaf7980b..ffd2c455c1643819aee59269587dc069688a2e60 100644
|
| --- a/third_party/WebKit/Source/core/dom/ElementRareData.h
|
| +++ b/third_party/WebKit/Source/core/dom/ElementRareData.h
|
| @@ -92,25 +92,9 @@ public:
|
| NamedNodeMap* attributeMap() const { return m_attributeMap.get(); }
|
| void setAttributeMap(NamedNodeMap* attributeMap) { m_attributeMap = attributeMap; }
|
|
|
| - ComputedStyle* computedStyle() const
|
| - {
|
| - DCHECK(!(layoutObject() && m_computedStyle));
|
| - if (layoutObject())
|
| - return layoutObject()->mutableStyle();
|
| - return m_computedStyle.get();
|
| - }
|
| - void setComputedStyle(PassRefPtr<ComputedStyle> computedStyle)
|
| - {
|
| - if (layoutObject())
|
| - layoutObject()->setStyleInternal(std::move(computedStyle));
|
| - else
|
| - m_computedStyle = computedStyle;
|
| - }
|
| - void clearComputedStyleIfNoLayoutObject()
|
| - {
|
| - DCHECK(!(layoutObject() && m_computedStyle));
|
| - m_computedStyle = nullptr;
|
| - }
|
| + ComputedStyle* computedStyle() const { return m_computedStyle.get(); }
|
| + void setComputedStyle(PassRefPtr<ComputedStyle> computedStyle) { m_computedStyle = computedStyle; }
|
| + void clearComputedStyle() { m_computedStyle = nullptr; }
|
|
|
| ClassList* classList() const { return m_classList.get(); }
|
| void setClassList(ClassList* classList) { m_classList = classList; }
|
|
|