Skip to content
  • rniwa@webkit.org's avatar
    2010-08-11 Ryosuke Niwa <rniwa@webkit.org> · 8803f22a
    rniwa@webkit.org authored
            Reviewed by Kent Tamura.
    
            merge MarkupAccumulator and MarkupAccumulatorWrapper
            https://bugs.webkit.org/show_bug.cgi?id=43834
    
            Removed MarkupAccumulator and added serializeNodesWithNamespaces to use MarkupAccumulatorWrapper
            in both versions of createMarkup.  Accumulation of nodes done manually in serializeNodes is
            now done by MarkupAccumulatorWrapper as done in the original MarkupAccumulator.
    
            No new tests added since this is a cleanup.
    
            * editing/markup.cpp:
            (WebCore::MarkupAccumulatorWrapper::MarkupAccumulatorWrapper): Takes vector of nodes and set it to m_nodes.
            (WebCore::MarkupAccumulatorWrapper::insertOpenTag): Adds node to m_nodes.
            (WebCore::MarkupAccumulatorWrapper::wrapWithNode): Adds node to m_nodes.
            (WebCore::serializeNodes): Adding node to nodes is moved into MarkupAccumulatorWrapper.
            (WebCore::createMarkup): Instantiates MarkupAccumulatorWrapper.
            (WebCore::serializeNodesWithNamespaces): Renamed from MarkupAccumulator::appendMarkup.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@65265 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    8803f22a