Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge r182378 - UserScript, UserStyleSheet constructors should take i…
…n Vector<String> rvalue references https://bugs.webkit.org/show_bug.cgi?id=143411 Reviewed by Darin Adler. Have the UserScript and UserStyleSheet constructors take in Vector<String> rvalue references for the whitelist and blacklist parameters. Both classes store these Vector<String> objects, so the referenced objects can simply be moved into the member variable. Because the constructor is now demanding an rvalue, it's up to the caller to move in the desired object if possible, or create an explicit copy otherwise. * page/UserScript.h: (WebCore::UserScript::UserScript): * page/UserStyleSheet.h: (WebCore::UserStyleSheet::UserStyleSheet): Source/WebKit2: UserScript, UserStyleSheet constructors should take in Vector<String> rvalues https://bugs.webkit.org/show_bug.cgi?id=143411 Reviewed by Darin Adler. Move the whitelist and blacklist Vector<String> objects into the UserScript and UserStyleSheet constructors in ArgumentCoder<T>::decode functions. * Shared/WebCoreArgumentCoders.cpp: (IPC::ArgumentCoder<UserStyleSheet>::decode): (IPC::ArgumentCoder<UserScript>::decode):
- Loading branch information
1 parent
19325f7
commit df12bd4
Showing
5 changed files
with
44 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters