WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
75955
Web Inspector: add "free flow DOM editing" experiment.
https://bugs.webkit.org/show_bug.cgi?id=75955
Summary
Web Inspector: add "free flow DOM editing" experiment.
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+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Pavel Feldman
Comment 1
2012-01-10 05:43:58 PST
Created
attachment 121836
[details]
Patch
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
Committed
r104586
: <
http://trac.webkit.org/changeset/104586
>
Jessie Berlin
Comment 5
2012-01-10 09:39:37 PST
(In reply to
comment #4
)
> Committed
r104586
: <
http://trac.webkit.org/changeset/104586
>
This broke the build:
http://build.webkit.org/builders/Lion%20Intel%20Debug%20%28Build%29/builds/5430/steps/compile-webkit/logs/stdio
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug