Bug 178271 - Remove Editor::simplifyMarkup
Summary: Remove Editor::simplifyMarkup
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Alex Christensen
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2017-10-13 11:07 PDT by Alex Christensen
Modified: 2017-10-31 17:41 PDT (History)
3 users (show)

See Also:


Attachments
Patch (13.25 KB, patch)
2017-10-13 11:08 PDT, Alex Christensen
wenson_hsieh: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.