Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.0:Update
chromium.9165
chromium-gcc8-constexpr.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File chromium-gcc8-constexpr.patch of Package chromium.9165
From 87902b3202f81d689dd314c17006ffc907fe12a1 Mon Sep 17 00:00:00 2001 From: Wang Qing <wangqing-hf@loongson.cn> Date: Mon, 3 Sep 2018 02:41:08 +0000 Subject: [PATCH] Fix build error for blink. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This CLs fixed the error of constexpr function call to non-constexpr function. Bug: 878202 Change-Id: I6ad217a687e62a9a384980d852743a56479de3a9 Reviewed-on: https://chromium-review.googlesource.com/1192467 Commit-Queue: 汪 清 <wangqing-hf@loongson.cn> Reviewed-by: Eric Willigers <ericwilligers@chromium.org> Cr-Commit-Position: refs/heads/master@{#588316} --- .../core/animation/animation_time_delta.cc | 22 ++++++++++++++ .../core/animation/animation_time_delta.h | 30 +++++++------------ 2 files changed, 32 insertions(+), 20 deletions(-) diff --git a/third_party/blink/renderer/core/animation/animation_time_delta.cc b/third_party/blink/renderer/core/animation/animation_time_delta.cc index 1b25469c7f2f5..2e30a18890dab 100644 --- a/third_party/blink/renderer/core/animation/animation_time_delta.cc +++ b/third_party/blink/renderer/core/animation/animation_time_delta.cc @@ -7,6 +7,28 @@ namespace blink { #if !defined(BLINK_ANIMATION_USE_TIME_DELTA) +// Comparison operators on AnimationTimeDelta. +bool CORE_EXPORT operator==(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs) { + return lhs.InSecondsF() == rhs.InSecondsF(); +} +bool CORE_EXPORT operator!=(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs) { + return lhs.InSecondsF() != rhs.InSecondsF(); +} +bool CORE_EXPORT operator>(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs) { + return lhs.InSecondsF() > rhs.InSecondsF(); +} +bool CORE_EXPORT operator>=(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs) { + return lhs.InSecondsF() >= rhs.InSecondsF(); +} +bool CORE_EXPORT operator<=(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs) { + return lhs.InSecondsF() <= rhs.InSecondsF(); +} + std::ostream& operator<<(std::ostream& os, AnimationTimeDelta time) { return os << time.InSecondsF() << " s"; } diff --git a/third_party/blink/renderer/core/animation/animation_time_delta.h b/third_party/blink/renderer/core/animation/animation_time_delta.h index 1903c1150d3ec..95d218466d90a 100644 --- a/third_party/blink/renderer/core/animation/animation_time_delta.h +++ b/third_party/blink/renderer/core/animation/animation_time_delta.h @@ -90,26 +90,16 @@ AnimationTimeDelta operator*(T a, AnimationTimeDelta td) { } // Comparison operators on AnimationTimeDelta. -constexpr bool CORE_EXPORT operator==(const AnimationTimeDelta& lhs, - const AnimationTimeDelta& rhs) { - return lhs.InSecondsF() == rhs.InSecondsF(); -} -constexpr bool CORE_EXPORT operator!=(const AnimationTimeDelta& lhs, - const AnimationTimeDelta& rhs) { - return lhs.InSecondsF() != rhs.InSecondsF(); -} -constexpr bool CORE_EXPORT operator>(const AnimationTimeDelta& lhs, - const AnimationTimeDelta& rhs) { - return lhs.InSecondsF() > rhs.InSecondsF(); -} -constexpr bool CORE_EXPORT operator>=(const AnimationTimeDelta& lhs, - const AnimationTimeDelta& rhs) { - return lhs.InSecondsF() >= rhs.InSecondsF(); -} -constexpr bool CORE_EXPORT operator<=(const AnimationTimeDelta& lhs, - const AnimationTimeDelta& rhs) { - return lhs.InSecondsF() <= rhs.InSecondsF(); -} +bool CORE_EXPORT operator==(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs); +bool CORE_EXPORT operator!=(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs); +bool CORE_EXPORT operator>(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs); +bool CORE_EXPORT operator>=(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs); +bool CORE_EXPORT operator<=(const AnimationTimeDelta& lhs, + const AnimationTimeDelta& rhs); // Defined to allow DCHECK_EQ/etc to work with the class. CORE_EXPORT std::ostream& operator<<(std::ostream& os, AnimationTimeDelta time); commit cbdb8bd6567c8143dc8c1e5e86a21a8ea064eea4 Author: Maksim Sisov <msisov@igalia.com> Date: Fri Sep 7 18:57:42 2018 +0000 OmniboxTextView: fix gcc error for structure initialization It looks like there is bug in GCC 6, which cannot go through structure initialization normally. Thus, instead of a default initialization of one of the members, explicitly initialize it to a default value. Change-Id: Ia55cc6658e6b6b2f8a80c2582dd28f001c9e648c Reviewed-on: https://chromium-review.googlesource.com/1213181 Reviewed-by: Scott Violet <sky@chromium.org> Commit-Queue: Maksim Sisov <msisov@igalia.com> Cr-Commit-Position: refs/heads/master@{#589614} diff --git a/chrome/browser/ui/views/omnibox/omnibox_text_view.cc b/chrome/browser/ui/views/omnibox/omnibox_text_view.cc index f0a8083dc930..9021284f166d 100644 --- a/chrome/browser/ui/views/omnibox/omnibox_text_view.cc +++ b/chrome/browser/ui/views/omnibox/omnibox_text_view.cc @@ -175,7 +175,8 @@ void ApplyTextStyleForType(SuggestionAnswer::TextStyle text_style, style = {part_color, .baseline = gfx::SUPERIOR}; break; case SuggestionAnswer::TextStyle::BOLD: - style = {part_color, .weight = gfx::Font::Weight::BOLD}; + style = {part_color, .baseline = gfx::NORMAL_BASELINE, + .weight = gfx::Font::Weight::BOLD}; break; case SuggestionAnswer::TextStyle::NORMAL: case SuggestionAnswer::TextStyle::NORMAL_DIM:
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor