Bug 178271

Summary: Remove Editor::simplifyMarkup
Product: WebKit Reporter: Alex Christensen <achristensen>
Component: New BugsAssignee: Alex Christensen <achristensen>
Status: RESOLVED FIXED    
Severity: Normal CC: darin, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch wenson_hsieh: review+

Description Alex Christensen 2017-10-13 11:07:12 PDT
Remove Editor::simplifyMarkup
Comment 1 Alex Christensen 2017-10-13 11:08:33 PDT
Created attachment 323708 [details]
Patch
Comment 2 Alex Christensen 2017-10-13 11:13:04 PDT
This was used in Mountain Lion, Mavericks, and Yosemite, but not since then.
Comment 3 Wenson Hsieh 2017-10-13 11:20:11 PDT
Comment on attachment 323708 [details]
Patch

I think it would be good to mention <rdar://problem/10726177>, and the fact that Mail stopped using this SPI long ago, in the ChangeLog.
Comment 4 Alex Christensen 2017-10-13 11:23:28 PDT
http://trac.webkit.org/r223291
Comment 5 Radar WebKit Bug Importer 2017-10-13 11:24:17 PDT
<rdar://problem/34981927>
Comment 6 Darin Adler 2017-10-15 08:34:55 PDT
Comment on attachment 323708 [details]
Patch

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

> Source/WebKitLegacy/mac/WebView/WebView.mm:8535
>  - (void)_simplifyMarkup:(DOMNode *)startNode endNode:(DOMNode *)endNode
>  {
> -    Frame* coreFrame = core([self mainFrame]);
> -    if (!coreFrame || !startNode)
> -        return;
> -    Node* coreStartNode= core(startNode);
> -    if (&coreStartNode->document() != coreFrame->document())
> -        return;
> -    return coreFrame->editor().simplifyMarkup(coreStartNode, core(endNode));    
>  }

What is the plan here? When will we remove the method too and not just its implementation?
Comment 7 Alex Christensen 2017-10-31 17:41:27 PDT
(In reply to Darin Adler from comment #6)
> What is the plan here? When will we remove the method too and not just its
> implementation?
We reverted this change.  Dan wants to keep using this method.