build: move libcc patches to electron repo (#14104)
In the GN build, libchromiumcontent is no longer a distinct library, but merely a container for a set of scripts and patches. Maintaining those patches in a separate repository is tedious and error-prone, so merge them into the main repo. Once this is merged and GN is the default way to build Electron, the libchromiumcontent repository can be archived.
This commit is contained in:
parent
9e85bdb02c
commit
76c5f5cc8a
147 changed files with 86931 additions and 6 deletions
44
patches/common/icu/no_inline_default_constructor.patch
Normal file
44
patches/common/icu/no_inline_default_constructor.patch
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
diff --git a/source/common/unicode/unistr.h b/source/common/unicode/unistr.h
|
||||
index e0ab0b9e..fe4c673b 100644
|
||||
--- a/source/common/unicode/unistr.h
|
||||
+++ b/source/common/unicode/unistr.h
|
||||
@@ -2957,7 +2957,7 @@ public:
|
||||
/** Construct an empty UnicodeString.
|
||||
* @stable ICU 2.0
|
||||
*/
|
||||
- inline UnicodeString();
|
||||
+ UnicodeString();
|
||||
|
||||
/**
|
||||
* Construct a UnicodeString with capacity to hold <TT>capacity</TT> char16_ts
|
||||
@@ -3915,15 +3915,6 @@ UnicodeString::getArrayStart() const {
|
||||
fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
|
||||
}
|
||||
|
||||
-//========================================
|
||||
-// Default constructor
|
||||
-//========================================
|
||||
-
|
||||
-inline
|
||||
-UnicodeString::UnicodeString() {
|
||||
- fUnion.fStackFields.fLengthAndFlags=kShortString;
|
||||
-}
|
||||
-
|
||||
inline UnicodeString::UnicodeString(const std::nullptr_t /*text*/) {
|
||||
fUnion.fStackFields.fLengthAndFlags=kShortString;
|
||||
}
|
||||
diff --git a/source/common/unistr.cpp b/source/common/unistr.cpp
|
||||
index 1bfb71aa..5495ee91 100644
|
||||
--- a/source/common/unistr.cpp
|
||||
+++ b/source/common/unistr.cpp
|
||||
@@ -146,7 +146,9 @@ UnicodeString::releaseArray() {
|
||||
// Constructors
|
||||
//========================================
|
||||
|
||||
-// The default constructor is inline in unistr.h.
|
||||
+UnicodeString::UnicodeString() {
|
||||
+ fUnion.fStackFields.fLengthAndFlags=kShortString;
|
||||
+}
|
||||
|
||||
UnicodeString::UnicodeString(int32_t capacity, UChar32 c, int32_t count) {
|
||||
fUnion.fFields.fLengthAndFlags = 0;
|
||||
Loading…
Add table
Add a link
Reference in a new issue