Bug 47734

Summary: Move MarkupAccumulator from markup.cpp to its own file
Product: WebKit Reporter: Adam Barth <abarth>
Component: New BugsAssignee: Adam Barth <abarth>
Status: RESOLVED FIXED    
Severity: Normal CC: eric, rniwa, tony
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Patch none

Description Adam Barth 2010-10-15 12:54:59 PDT
Move MarkupAccumulator from markup.cpp to its own file
Comment 1 Adam Barth 2010-10-15 13:06:57 PDT
Created attachment 70890 [details]
Patch
Comment 2 Eric Seidel (no email) 2010-10-15 13:48:52 PDT
Comment on attachment 70890 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=70890&action=review

If you're just moving code, rs=me.

> WebCore/editing/EditingAllInOne.cpp:51
> +#include <MarkupAccumulator.cpp>

Huh?  Why are these all <>.  That makes no sense to me.  They shoudl be "".  Obviously another patch.
Comment 3 Ryosuke Niwa 2010-10-15 13:49:45 PDT
View in context: https://bugs.webkit.org/attachment.cgi?id=70890&action=review

Thanks for doing this!

> WebCore/WebCore.xcodeproj/project.pbxproj:-21138
> -			developmentRegion = English;

You should revert this change.

> WebCore/editing/MarkupAccumulator.cpp:2
> + * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.

Maybe add Google as well since we've done considerable work cleaning the code up?

> WebCore/editing/markup.h:61
> +
> +    // FIXME: Should this be better encapulated somewhere?
> +    bool elementCannotHaveEndTag(const Node*);

I think you can move this into MarkupAccumulator once you make the serializeNodes a member function of MarkupAccumulator.
Comment 4 Adam Barth 2010-10-15 14:34:38 PDT
> > WebCore/editing/MarkupAccumulator.cpp:2
> > + * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
> 
> Maybe add Google as well since we've done considerable work cleaning the code up?

I didn't change the copyright since this patch doesn't do anything that impacts the copyright on the file.  Feel free to change it in a future patch.
Comment 5 Adam Barth 2010-10-15 14:35:06 PDT
Committed r69880: <http://trac.webkit.org/changeset/69880>
Comment 6 Ryosuke Niwa 2011-02-06 22:14:39 PST
Comment on attachment 70890 [details]
Patch

Cleared review & cq flags so that this patch won't appear on the review queue.