Bug 181104

Summary: Minor cleanup in WebContentReaderCocoa after r226213
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: HTML EditingAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: thorton, webkit-bug-importer, wenson_hsieh
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Cleanup wenson_hsieh: review+

Ryosuke Niwa
Reported 2017-12-21 14:15:09 PST
Use more early exit to make the logic clear.
Attachments
Cleanup (8.23 KB, patch)
2017-12-21 14:17 PST, Ryosuke Niwa
wenson_hsieh: review+
Ryosuke Niwa
Comment 1 2017-12-21 14:17:12 PST
Wenson Hsieh
Comment 2 2017-12-21 14:22:48 PST
Comment on attachment 330067 [details] Cleanup View in context: https://bugs.webkit.org/attachment.cgi?id=330067&action=review > Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm:345 > +static String markupForFragmentToInDocument(Ref<DocumentFragment>&& fragment, Document& document) Did you mean markupForFragmentInDocument?
Ryosuke Niwa
Comment 3 2017-12-21 14:23:34 PST
(In reply to Wenson Hsieh from comment #2) > Comment on attachment 330067 [details] > Cleanup > > View in context: > https://bugs.webkit.org/attachment.cgi?id=330067&action=review > > > Source/WebCore/editing/cocoa/WebContentReaderCocoa.mm:345 > > +static String markupForFragmentToInDocument(Ref<DocumentFragment>&& fragment, Document& document) > > Did you mean markupForFragmentInDocument? Oops, yes. Will fix.
Ryosuke Niwa
Comment 4 2017-12-21 14:32:16 PST
Radar WebKit Bug Importer
Comment 5 2017-12-21 14:36:07 PST
Note You need to log in before you can comment on or make changes to this bug.