Chromium Code Reviews| Index: Source/core/dom/Element.cpp |
| diff --git a/Source/core/dom/Element.cpp b/Source/core/dom/Element.cpp |
| index 02cc1eeb642396e3c642d3dca102972a857b3fdf..e720c12096330ec4b8d01079014a8d87c6980a53 100644 |
| --- a/Source/core/dom/Element.cpp |
| +++ b/Source/core/dom/Element.cpp |
| @@ -3117,7 +3117,7 @@ void Element::cloneAttributesFromElement(const Element& other) |
| if (other.m_elementData->isUnique() |
| && !ownerDocumentsHaveDifferentCaseSensitivity |
| && !other.m_elementData->presentationAttributeStyle()) |
| - const_cast<Element&>(other).m_elementData = static_cast<const UniqueElementData*>(other.m_elementData.get())->makeShareableCopy(); |
| + const_cast<Element&>(other).m_elementData = toUniqueElementData(other.m_elementData.get())->makeShareableCopy(); |
|
Inactive
2014/07/21 12:14:00
nit: Do we still need the .get() here? I am thinki
gyuyoung-inactive
2014/07/21 13:04:08
yes, right. I missed to remove it. It will be fixe
|
| if (!other.m_elementData->isUnique() && !ownerDocumentsHaveDifferentCaseSensitivity && !needsURLResolutionForInlineStyle(other, other.document(), document())) |
| m_elementData = other.m_elementData; |
| @@ -3142,7 +3142,7 @@ void Element::createUniqueElementData() |
| m_elementData = UniqueElementData::create(); |
| else { |
| ASSERT(!m_elementData->isUnique()); |
| - m_elementData = static_cast<ShareableElementData*>(m_elementData.get())->makeUniqueCopy(); |
| + m_elementData = toShareableElementData(m_elementData.get())->makeUniqueCopy(); |
| } |
| } |