GTK+ and Qt build fix after r139833.
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2013 06:52:40 +0000 (06:52 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2013 06:52:40 +0000 (06:52 +0000)
Explicitly cast NodeRareDataBase to NodeRareData before deleting it.

* dom/Node.cpp:
(WebCore::Node::clearRareData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139838 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/dom/Node.cpp

index 4a1929b1ce3f90d812c473700d079fe60769a8a9..515d9ef4298ff801f97075d8a8323383fcccd09a 100644 (file)
@@ -1,3 +1,11 @@
+2013-01-15  Ryosuke Niwa  <rniwa@webkit.org>
+
+        GTK+ and Qt build fix after r139833.
+        Explicitly cast NodeRareDataBase to NodeRareData before deleting it.
+
+        * dom/Node.cpp:
+        (WebCore::Node::clearRareData):
+
 2013-01-15  Qiankun Miao  <qiankun.miao@intel.com>
 
         Remove extra space in CustomFilterRenderer.h
index ffab27b2be5e89d33b3c865c16884aafed50ed13..a0d1fef35bf81282da9bb92fd0db8d6fc7feda3c 100644 (file)
@@ -474,7 +474,7 @@ void Node::clearRareData()
     if (isElementNode())
         delete static_cast<ElementRareData*>(m_data.m_rareData);
     else
-        delete m_data.m_rareData;
+        delete static_cast<NodeRareData*>(m_data.m_rareData);
     m_data.m_renderer = renderer;
     clearFlag(HasRareDataFlag);
 }