diff --git a/patches/helium/ui/fix-caption-button-tab-strip-align.patch b/patches/helium/ui/fix-caption-button-tab-strip-align.patch index 0591a2f5..2cd5362c 100644 --- a/patches/helium/ui/fix-caption-button-tab-strip-align.patch +++ b/patches/helium/ui/fix-caption-button-tab-strip-align.patch @@ -27,40 +27,3 @@ } return gfx::Rect(x, TopAreaHeight(false), std::max(0, end_x - x), tabstrip_minimum_size.height()); ---- a/chrome/browser/ui/views/frame/browser_frame_view_linux.cc -+++ b/chrome/browser/ui/views/frame/browser_frame_view_linux.cc -@@ -4,6 +4,7 @@ - - #include "chrome/browser/ui/views/frame/browser_frame_view_linux.h" - -+#include "chrome/browser/ui/layout_constants.h" - #include "chrome/browser/ui/views/chrome_layout_provider.h" - #include "chrome/browser/ui/views/frame/browser_frame_view_paint_utils_linux.h" - #include "chrome/browser/ui/views/frame/browser_native_widget_aura_linux.h" -@@ -142,5 +143,15 @@ int BrowserFrameViewLinux::GetTranslucen - return 0; - } - -+gfx::Rect BrowserFrameViewLinux::GetBoundsForTabStripRegion( -+ const gfx::Size& tabstrip_minimum_size) const { -+ gfx::Insets frame_insets = RestoredMirroredFrameBorderInsets(); -+ int x = frame_insets.left() + GetLayoutConstant(TOOLBAR_CORNER_RADIUS); -+ int inset_width = width() - x - frame_insets.right(); -+ -+ return gfx::Rect(x, frame_insets.top(), inset_width, -+ tabstrip_minimum_size.height()); -+} -+ - BEGIN_METADATA(BrowserFrameViewLinux) - END_METADATA ---- a/chrome/browser/ui/views/frame/browser_frame_view_linux.h -+++ b/chrome/browser/ui/views/frame/browser_frame_view_linux.h -@@ -38,6 +38,8 @@ class BrowserFrameViewLinux : public Opa - gfx::Insets GetInputInsets() const override; - SkRRect GetRestoredClipRegion() const override; - int GetTranslucentTopAreaHeight() const override; -+ gfx::Rect GetBoundsForTabStripRegion( -+ const gfx::Size& tabstrip_minimum_size) const override; - - // Gets the shadow metrics (radius, offset, and number of shadows). This will - // always return shadow values, even if shadows are not actually drawn.