File chromium-120-emplace-struct.patch of Package chromium2
diff --git a/shared_image_backing.h b/shared_image_backing.h.new
index 97ebd0b..fc6179c 100644
--- a/gpu/command_buffer/service/shared_image/shared_image_backing.h
+++ b/gpu/command_buffer/service/shared_image/shared_image_backing.h
@@ -338,7 +338,7 @@ class GPU_GLES2_EXPORT SharedImageBacking {
private:
class ScopedWriteUMA {
public:
- ScopedWriteUMA() = default;
+ ScopedWriteUMA() : content_consumed_(false) {}
ScopedWriteUMA(const ScopedWriteUMA&) = delete;
ScopedWriteUMA& operator=(const ScopedWriteUMA&) = delete;
@@ -352,7 +352,7 @@ class GPU_GLES2_EXPORT SharedImageBacking {
void SetConsumed() { content_consumed_ = true; }
private:
- bool content_consumed_ = false;
+ bool content_consumed_;
};
const Mailbox mailbox_;
diff --git a/history_item.h b/history_item.h.new
index 15fea48..ba59305 100644
--- a/third_party/blink/renderer/core/loader/history_item.h
+++ b/third_party/blink/renderer/core/loader/history_item.h
@@ -77,13 +77,13 @@ class CORE_EXPORT HistoryItem final : public GarbageCollected<HistoryItem> {
DISALLOW_NEW();
public:
- ViewState() = default;
+ ViewState() : page_scale_factor_(0) {}
ViewState(const ViewState&) = default;
ViewState& operator=(const ViewState&) = default;
ScrollOffset visual_viewport_scroll_offset_;
ScrollOffset scroll_offset_;
- float page_scale_factor_ = 0;
+ float page_scale_factor_;
ScrollAnchorData scroll_anchor_data_;
};