WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
127236
Modernize HTML parser code
https://bugs.webkit.org/show_bug.cgi?id=127236
Summary
Modernize HTML parser code
Anders Carlsson
Reported
2014-01-18 14:27:41 PST
Modernize HTML parser code
Attachments
Patch
(37.67 KB, patch)
2014-01-18 14:28 PST
,
Anders Carlsson
kling
: review+
Details
Formatted Diff
Diff
View All
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2014-01-18 14:28:25 PST
Created
attachment 221571
[details]
Patch
Andreas Kling
Comment 2
2014-01-18 14:35:48 PST
Comment on
attachment 221571
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=221571&action=review
r=me
> Source/WebCore/html/parser/CSSPreloadScanner.cpp:214 > - OwnPtr<PreloadRequest> request = PreloadRequest::create("css", url, baseElementURL, CachedResource::CSSStyleSheet); > + > + auto request = std::make_unique<PreloadRequest>("css", url, baseElementURL, CachedResource::CSSStyleSheet, String()); > // FIXME: Should this be including the charset in the preload request? > - m_requests->append(request.release()); > + m_requests->append(std::move(request));
I'd lose the temporary.
> Source/WebCore/html/parser/HTMLDocumentParser.cpp:388 > - m_insertionPreloadScanner = adoptPtr(new HTMLPreloadScanner(m_options, document()->url(), document()->deviceScaleFactor())); > + m_insertionPreloadScanner = std::make_unique< HTMLPreloadScanner>(m_options, document()->url(), document()->deviceScaleFactor());
Extra space after < here.
> Source/WebCore/html/parser/HTMLResourcePreloader.cpp:66 > void HTMLResourcePreloader::takeAndPreload(PreloadRequestStream& r) > { > - PreloadRequestStream requests; > - requests.swap(r); > + PreloadRequestStream requests = std::move(r);
This is a bit awkward.
Anders Carlsson
Comment 3
2014-01-18 14:44:29 PST
Committed
r162275
: <
http://trac.webkit.org/changeset/162275
>
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