summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/rendering/RenderRubyRun.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/rendering/RenderRubyRun.cpp')
-rw-r--r--Source/WebCore/rendering/RenderRubyRun.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/Source/WebCore/rendering/RenderRubyRun.cpp b/Source/WebCore/rendering/RenderRubyRun.cpp
index c12e543..f2e30eb 100644
--- a/Source/WebCore/rendering/RenderRubyRun.cpp
+++ b/Source/WebCore/rendering/RenderRubyRun.cpp
@@ -42,7 +42,6 @@ namespace WebCore {
RenderRubyRun::RenderRubyRun(Node* node)
: RenderBlock(node)
- , m_beingDestroyed(false)
{
setReplaced(true);
setInline(true);
@@ -52,13 +51,6 @@ RenderRubyRun::~RenderRubyRun()
{
}
-void RenderRubyRun::destroy()
-{
- // Mark if the run is being destroyed to avoid trouble in removeChild().
- m_beingDestroyed = true;
- RenderBlock::destroy();
-}
-
bool RenderRubyRun::hasRubyText() const
{
// The only place where a ruby text can be is in the first position
@@ -165,7 +157,7 @@ void RenderRubyRun::removeChild(RenderObject* child)
{
// If the child is a ruby text, then merge the ruby base with the base of
// the right sibling run, if possible.
- if (!m_beingDestroyed && !documentBeingDestroyed() && child->isRubyText()) {
+ if (!beingDestroyed() && !documentBeingDestroyed() && child->isRubyText()) {
RenderRubyBase* base = rubyBase();
RenderObject* rightNeighbour = nextSibling();
if (base && rightNeighbour && rightNeighbour->isRubyRun()) {
@@ -184,7 +176,7 @@ void RenderRubyRun::removeChild(RenderObject* child)
RenderBlock::removeChild(child);
- if (!m_beingDestroyed && !documentBeingDestroyed()) {
+ if (!beingDestroyed() && !documentBeingDestroyed()) {
// Check if our base (if any) is now empty. If so, destroy it.
RenderBlock* base = rubyBase();
if (base && !base->firstChild()) {