Get rid of Node::createRareData
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2013 07:36:55 +0000 (07:36 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 16 Jan 2013 07:36:55 +0000 (07:36 +0000)
commit024750e6d33c06b67cb91719a39a9c4eec5fd3e7
tree111bf2ad66ff680529eedca6624814b1e8ebd977
parenta18329f9bd9a1ed38f50299392f875377e65f2ca
Get rid of Node::createRareData
https://bugs.webkit.org/show_bug.cgi?id=106981

Reviewed by Benjamin Poulain.

Deleted Node::createRareData. Node::ensureRareData() instantiates NodeRareData
or ElementRareData according to the node type. Also encapsulate new by create
functions in NodeRareData and ElementRareData.

* dom/Element.cpp:
(WebCore):
* dom/Element.h:
(Element):
* dom/ElementRareData.h:
(WebCore::ElementRareData::create):
(ElementRareData):
(WebCore::ElementRareData::ElementRareData):
* dom/Node.cpp:
(WebCore::Node::ensureRareData):
(WebCore):
* dom/Node.h:
(WebCore::NodeRareDataBase::NodeRareDataBase):
* dom/NodeRareData.h:
(NodeRareData):
(WebCore::NodeRareData::create):
(WebCore::NodeRareData::NodeRareData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139839 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/dom/Element.cpp
Source/WebCore/dom/Element.h
Source/WebCore/dom/ElementRareData.h
Source/WebCore/dom/Node.cpp
Source/WebCore/dom/Node.h
Source/WebCore/dom/NodeRareData.h