Bug 75955

Summary: Web Inspector: add "free flow DOM editing" experiment.
Product: WebKit Reporter: Pavel Feldman <pfeldman>
Component: Web Inspector (Deprecated)Assignee: Pavel Feldman <pfeldman>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, jberlin, joepeck, keishi, loislo, pfeldman, pmuellr, rakuco, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch yurys: review+

Pavel Feldman
Reported 2012-01-10 05:36:31 PST
This change enables HTML editing from Resources panel.
Attachments
Patch (28.93 KB, patch)
2012-01-10 05:43 PST, Pavel Feldman
yurys: review+
Pavel Feldman
Comment 1 2012-01-10 05:43:58 PST
Alexander Pavlov (apavlov)
Comment 2 2012-01-10 06:42:34 PST
Comment on attachment 121836 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121836&action=review > Source/WebCore/inspector/DOMEditor.cpp:75 > + OwnPtr<NodeDigest> oInfo = createNodeDigest(oldElement); We don't use abbreviations in WebKit > Source/WebCore/inspector/DOMEditor.cpp:76 > + OwnPtr<NodeDigest> nInfo = createNodeDigest(newElement); ditto > Source/WebCore/inspector/DOMEditor.cpp:127 > + // Trim tail Period at the end. > Source/WebCore/inspector/DOMEditor.cpp:135 > + // Trim head Period at the end. > Source/WebCore/inspector/DOMEditor.cpp:167 > + if (nit->second.size() != 1) newIt? > Source/WebCore/inspector/DOMEditor.cpp:170 > + DiffTable::iterator oit = oldTable.find(nit->first); oldIt? > Source/WebCore/inspector/DOMEditor.cpp:184 > + newMap[i + 1] = std::make_pair(newList[i + 1].get(), j); The standard way is using namespace std; at the beginning (I've been pointed at it a couple times - kling et al.) > Source/WebCore/inspector/InspectorDOMAgent.cpp:649 > + *errorString = "Editing detached nodes is not supported"; ... of detached nodes...
Yury Semikhatsky
Comment 3 2012-01-10 08:48:33 PST
Comment on attachment 121836 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=121836&action=review > Source/WebCore/inspector/DOMEditor.cpp:228 > + RefPtr<Node> adoptedNode = oldParent->ownerDocument()->adoptNode(node, ec); doesn't insertBefore do adoptNode? > Source/WebCore/inspector/DOMEditor.h:50 > + DOMEditor(Document*); explicit > Source/WebCore/inspector/DOMEditor.h:56 > + struct NodeDigest { Forward declaration should be enough. > Source/WebCore/inspector/DOMEditor.h:57 > + NodeDigest(Node*); explicit
Pavel Feldman
Comment 4 2012-01-10 09:01:22 PST
Note You need to log in before you can comment on or make changes to this bug.