[webkit-reviews] review denied: [Bug 87623] comparePositions in htmlediting should consider nested Shadow DOM. : [Attachment 144485] Patch
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue May 29 12:02:17 PDT 2012
Ryosuke Niwa <rniwa at webkit.org> has denied Shinya Kawanaka
<shinyak at chromium.org>'s request for review:
Bug 87623: comparePositions in htmlediting should consider nested Shadow DOM.
https://bugs.webkit.org/show_bug.cgi?id=87623
Attachment 144485: Patch
https://bugs.webkit.org/attachment.cgi?id=144485&action=review
------- Additional Comments from Ryosuke Niwa <rniwa at webkit.org>
View in context: https://bugs.webkit.org/attachment.cgi?id=144485&action=review
Please make sure your patch passes tests.
> Source/WebCore/editing/htmlediting.cpp:100
> + TreeScope* commonScope = commonTreeScope(a.deprecatedNode(),
b.deprecatedNode());
> +
> + ASSERT(commonScope);
> + if (!commonScope)
> + return 0;
> +
> Node* nodeA = a.deprecatedNode();
> ASSERT(nodeA);
> + int offsetA = a.deprecatedEditingOffset();
> + bool hasDescendentA = adjustPositionToTreeScope(commonScope, nodeA,
offsetA);
> +
> Node* nodeB = b.deprecatedNode();
> ASSERT(nodeB);
> - int offsetA = a.deprecatedEditingOffset();
> int offsetB = b.deprecatedEditingOffset();
I don't know how hard it is to start using containerNode() and
computeOffsetInContainerNode() here
but we should move toward that eventually.
More information about the webkit-reviews
mailing list