-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
1,595 additions
and
4 deletions.
There are no files selected for viewing
19 changes: 19 additions & 0 deletions
19
common-files/chromium-patches/add-missing-typename-8/6167.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- a/base/functional/bind_internal.h | ||
+++ b/base/functional/bind_internal.h | ||
@@ -1533,12 +1533,12 @@ | ||
typename Param> | ||
struct ParamCanBeBound { | ||
private: | ||
- using UnwrappedParam = BindArgument<i>::template ForwardedAs< | ||
+ using UnwrappedParam = typename BindArgument<i>::template ForwardedAs< | ||
Unwrapped>::template ToParamWithType<Param>; | ||
- using ParamStorage = BindArgument<i>::template ToParamWithType< | ||
+ using ParamStorage = typename BindArgument<i>::template ToParamWithType< | ||
Param>::template StoredAs<Storage>; | ||
- using BoundStorage = | ||
- BindArgument<i>::template BoundAs<Arg>::template StoredAs<Storage>; | ||
+ using BoundStorage = typename BindArgument<i>::template BoundAs< | ||
+ Arg>::template StoredAs<Storage>; | ||
|
||
// We forbid callbacks from using raw_ptr as a parameter. However, we allow | ||
// `MayBeDangling<T>` iff the callback argument was created using |
11 changes: 11 additions & 0 deletions
11
common-files/chromium-patches/add-missing-typename-9/6167.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- a/mojo/public/cpp/bindings/array_traits.h | ||
+++ b/mojo/public/cpp/bindings/array_traits.h | ||
@@ -90,7 +90,7 @@ | ||
{ c[i] } -> std::same_as<typename Container::reference>; | ||
} | ||
struct ArrayTraits<Container> { | ||
- using Element = Container::value_type; | ||
+ using Element = typename Container::value_type; | ||
|
||
// vector-like containers have no built-in null. | ||
static bool IsNull(const Container& c) { return false; } |
122 changes: 122 additions & 0 deletions
122
common-files/chromium-patches/blink-fix-structured-binding-declaration/6167.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
--- a/third_party/blink/renderer/core/layout/grid/grid_layout_algorithm.cc | ||
+++ b/third_party/blink/renderer/core/layout/grid/grid_layout_algorithm.cc | ||
@@ -691,8 +691,9 @@ | ||
|
||
if (const auto* layout_subtree = | ||
GetConstraintSpace().GetGridLayoutSubtree()) { | ||
- auto& [grid_items, layout_data, subtree_size] = | ||
- sizing_tree.CreateSizingData(); | ||
+ auto& sizing_data = sizing_tree.CreateSizingData(); | ||
+ auto& grid_items = sizing_data.grid_items; | ||
+ auto& layout_data = sizing_data.layout_data; | ||
|
||
const auto& node = Node(); | ||
grid_items = | ||
@@ -730,8 +731,9 @@ | ||
const auto& track_collection = (track_direction == kForColumns) | ||
? layout_data.Columns() | ||
: layout_data.Rows(); | ||
- const auto& [begin_set_index, end_set_index] = | ||
- grid_item.SetIndices(track_direction); | ||
+ const auto& set_indices = grid_item.SetIndices(track_direction); | ||
+ const auto& begin_set_index = set_indices.begin; | ||
+ const auto& end_set_index = set_indices.end; | ||
|
||
return (grid_item.BaselineGroup(track_direction) == BaselineGroup::kMajor) | ||
? track_collection.MajorBaseline(begin_set_index) | ||
@@ -1043,8 +1045,9 @@ | ||
const auto& track_collection = (track_direction == kForColumns) | ||
? subgridded_item.Columns(writing_mode) | ||
: subgridded_item.Rows(writing_mode); | ||
- const auto& [begin_set_index, end_set_index] = | ||
- subgridded_item->SetIndices(track_collection.Direction()); | ||
+ const auto& set_indices = subgridded_item->SetIndices(track_collection.Direction()); | ||
+ const auto& begin_set_index = set_indices.begin; | ||
+ const auto& end_set_index = set_indices.end; | ||
|
||
const LayoutUnit extra_margin = | ||
(subgridded_item->BaselineGroup(track_direction) == BaselineGroup::kMajor) | ||
@@ -1236,8 +1239,9 @@ | ||
: subgridded_item.Rows(writing_mode); | ||
|
||
const auto margins = ComputeMarginsFor(space, item_style, constraint_space); | ||
- const auto& [begin_set_index, end_set_index] = | ||
- subgridded_item->SetIndices(track_collection.Direction()); | ||
+ const auto& set_indices = subgridded_item->SetIndices(track_collection.Direction()); | ||
+ const auto& begin_set_index = set_indices.begin; | ||
+ const auto& end_set_index = set_indices.end; | ||
|
||
const auto margin_sum = | ||
(is_for_columns ? margins.InlineSum() : margins.BlockSum()) + | ||
@@ -1656,8 +1660,10 @@ | ||
// in first/last baseline alignment within its start-most/end-most shared | ||
// alignment context along that axis" | ||
// https://www.w3.org/TR/css-align-3/#baseline-sharing-group | ||
- const auto& [begin_set_index, end_set_index] = | ||
- grid_item.SetIndices(track_direction); | ||
+ const auto& set_indices = grid_item.SetIndices(track_direction); | ||
+ const auto& begin_set_index = set_indices.begin; | ||
+ const auto& end_set_index = set_indices.end; | ||
+ | ||
if (grid_item.BaselineGroup(track_direction) == BaselineGroup::kMajor) { | ||
track_collection.SetMajorBaseline(begin_set_index, baseline); | ||
} else { | ||
@@ -1917,8 +1923,9 @@ | ||
bool* opt_needs_additional_pass) const { | ||
DCHECK(sizing_subtree); | ||
|
||
- auto& [grid_items, layout_data, subtree_size] = | ||
- sizing_subtree.SubtreeRootData(); | ||
+ auto& sizing_data = sizing_subtree.SubtreeRootData(); | ||
+ auto& grid_items = sizing_data.grid_items; | ||
+ auto& layout_data = sizing_data.layout_data; | ||
|
||
const bool is_for_columns = track_direction == kForColumns; | ||
const bool has_non_definite_track = | ||
@@ -2062,8 +2069,10 @@ | ||
const GridSizingSubtree& sizing_subtree, | ||
const CallbackFunc& callback_func, | ||
bool should_compute_min_max_sizes) const { | ||
- auto& [grid_items, layout_data, subtree_size] = | ||
- sizing_subtree.SubtreeRootData(); | ||
+ auto& sizing_data = sizing_subtree.SubtreeRootData(); | ||
+ auto& grid_items = sizing_data.grid_items; | ||
+ auto& layout_data = sizing_data.layout_data; | ||
+ auto& subtree_size = sizing_data.subtree_size; | ||
|
||
// If we know this subtree doesn't have nested subgrids we can exit early | ||
// instead of iterating over every grid item looking for them. | ||
@@ -3527,7 +3536,9 @@ | ||
DCHECK(out_row_break_between); | ||
|
||
const auto& container_space = GetConstraintSpace(); | ||
- const auto& [grid_items, layout_data, tree_size] = sizing_tree.TreeRootData(); | ||
+ const auto& sizing_data = sizing_tree.TreeRootData(); | ||
+ const auto& grid_items = sizing_data.grid_items; | ||
+ const auto& layout_data = sizing_data.layout_data; | ||
|
||
const auto* cached_layout_subtree = container_space.GetGridLayoutSubtree(); | ||
const auto container_writing_direction = | ||
@@ -3691,7 +3702,9 @@ | ||
|
||
// TODO(ikilpatrick): Update |SetHasSeenAllChildren| and early exit if true. | ||
const auto& constraint_space = GetConstraintSpace(); | ||
- const auto& [grid_items, layout_data, tree_size] = sizing_tree.TreeRootData(); | ||
+ const auto& sizing_data = sizing_tree.TreeRootData(); | ||
+ const auto& grid_items = sizing_data.grid_items; | ||
+ const auto& layout_data = sizing_data.layout_data; | ||
|
||
const auto* cached_layout_subtree = constraint_space.GetGridLayoutSubtree(); | ||
const auto container_writing_direction = | ||
@@ -4395,8 +4408,9 @@ | ||
DCHECK(!grid_item.IsOutOfFlow()); | ||
DCHECK(!grid_item.is_subgridded_to_parent_grid); | ||
|
||
- const auto& [begin_set_index, end_set_index] = | ||
- grid_item.SetIndices(track_collection.Direction()); | ||
+ const auto& set_indices = grid_item.SetIndices(track_collection.Direction()); | ||
+ const auto& begin_set_index = set_indices.begin; | ||
+ const auto& end_set_index = set_indices.end; | ||
|
||
if (start_offset) { | ||
*start_offset = track_collection.GetSetOffset(begin_set_index); |
31 changes: 31 additions & 0 deletions
31
common-files/chromium-patches/compiler-remove-unsupported-flags/6167.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
--- a/build/config/compiler/BUILD.gn | ||
+++ b/build/config/compiler/BUILD.gn | ||
@@ -1861,28 +1861,6 @@ | ||
# TODO(thakis): Only for no_chromium_code? http://crbug.com/912662 | ||
"-Wno-ignored-pragma-optimize", | ||
] | ||
- | ||
- if (!is_nacl) { | ||
- cflags += [ | ||
- # TODO(crbug.com/1343975) Evaluate and possibly enable. | ||
- "-Wno-deprecated-builtins", | ||
- | ||
- # TODO(crbug.com/1352183) Evaluate and possibly enable. | ||
- "-Wno-bitfield-constant-conversion", | ||
- | ||
- # TODO(crbug.com/1412713) Evaluate and possibly enable. | ||
- "-Wno-deprecated-this-capture", | ||
- | ||
- # TODO(https://crbug.com/1491833): Fix and re-enable. | ||
- "-Wno-invalid-offsetof", | ||
- | ||
- # TODO(crbug.com/1494809): Evaluate and possibly enable. | ||
- "-Wno-vla-extension", | ||
- | ||
- # TODO(https://crbug.com/1490607): Fix and re-enable. | ||
- "-Wno-thread-safety-reference-return", | ||
- ] | ||
- } | ||
} | ||
|
||
# Some builders, such as Cronet, use a different version of Clang than |
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
36 changes: 36 additions & 0 deletions
36
common-files/chromium-patches/remove-usage-vector-three_way_compare/6167.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
In libcxx, three-way comparison operator <=> in std::vector is implemented since commit [1], | ||
which is not landed in NDK r26, so remove this usage. | ||
|
||
This reverts https://github.com/chromium/chromium/commit/0e55c3c70e8f492a83faa85e1af5053986c3167f. | ||
|
||
[1]: https://github.com/llvm/llvm-project/commit/55ec808a889726e0547b7e2f0aa12bc197f6d163 | ||
|
||
--- a/base/containers/flat_tree.h | ||
+++ b/base/containers/flat_tree.h | ||
@@ -350,8 +350,24 @@ | ||
return lhs.body_ == rhs.body_; | ||
} | ||
|
||
- friend auto operator<=>(const flat_tree& lhs, const flat_tree& rhs) { | ||
- return lhs.body_ <=> rhs.body_; | ||
+ friend bool operator!=(const flat_tree& lhs, const flat_tree& rhs) { | ||
+ return !(lhs == rhs); | ||
+ } | ||
+ | ||
+ friend bool operator<(const flat_tree& lhs, const flat_tree& rhs) { | ||
+ return lhs.body_ < rhs.body_; | ||
+ } | ||
+ | ||
+ friend bool operator>(const flat_tree& lhs, const flat_tree& rhs) { | ||
+ return rhs < lhs; | ||
+ } | ||
+ | ||
+ friend bool operator>=(const flat_tree& lhs, const flat_tree& rhs) { | ||
+ return !(lhs < rhs); | ||
+ } | ||
+ | ||
+ friend bool operator<=(const flat_tree& lhs, const flat_tree& rhs) { | ||
+ return !(lhs > rhs); | ||
} | ||
|
||
friend void swap(flat_tree& lhs, flat_tree& rhs) noexcept { lhs.swap(rhs); } |
12 changes: 12 additions & 0 deletions
12
common-files/chromium-patches/remove-xorg-from-build-deps/6167.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
https://github.com/chromium/chromium/commit/062769f739bb91aedbeeb396e5db9d92dbcc7c0e | ||
|
||
--- a/build/install-build-deps.py | ||
+++ b/build/install-build-deps.py | ||
@@ -374,7 +374,6 @@ def lib_list(): | ||
"libxrender1", | ||
"libxtst6", | ||
"x11-utils", | ||
- "xorg", # TODO(crbug.com/1417069): Experimental. | ||
"xvfb", | ||
"zlib1g", | ||
] |
14 changes: 14 additions & 0 deletions
14
...chromium-patches/resource_attribution-query_params-no-constexpr-operator-equal/6167.patch
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
error: defaulted definition of equality comparison operator cannot be declared constexpr because it invokes a non-constexpr comparison function | ||
|
||
--- a/components/performance_manager/resource_attribution/query_params.h | ||
+++ b/components/performance_manager/resource_attribution/query_params.h | ||
@@ -27,8 +27,7 @@ | ||
QueryParams(const QueryParams& other); | ||
QueryParams& operator=(const QueryParams& other); | ||
|
||
- friend constexpr bool operator==(const QueryParams&, | ||
- const QueryParams&) = default; | ||
+ friend bool operator==(const QueryParams&, const QueryParams&) = default; | ||
|
||
// Individual resource contexts to measure. | ||
std::set<ResourceContext> resource_contexts; |
Oops, something went wrong.