Commit 8afd43ee authored by Mason Freed's avatar Mason Freed Committed by Commit Bot

Remove LayoutThemeMac and ThemePainterMac

These two were used only for pre-FormControlsRefresh, and are no
longer needed. This CL renames the prior LayoutThemeMacRefresh,
which is the replacement, over to LayoutThemeMac.

This CL removes ~2700 lines of dead code. :-)

Fixed: 846357
Change-Id: If8f463c66c4366b66334ed0a7cb7660395139fb7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2360314
Auto-Submit: Mason Freed <masonfreed@chromium.org>
Reviewed-by: default avatarIan Kilpatrick <ikilpatrick@chromium.org>
Commit-Queue: Mason Freed <masonfreed@chromium.org>
Cr-Commit-Position: refs/heads/master@{#799191}
parent d5699bb4
......@@ -260,8 +260,6 @@ blink_core_sources("paint") {
"theme_painter.h",
"theme_painter_default.cc",
"theme_painter_default.h",
"theme_painter_mac.h",
"theme_painter_mac.mm",
"url_metadata_utils.cc",
"url_metadata_utils.h",
"video_painter.cc",
......
/*
* This file is part of the theme implementation for form controls in WebCore.
*
* Copyright (C) 2005 Apple Computer, Inc.
* Copyright (C) 2008, 2009 Google, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public License
* along with this library; see the file COPYING.LIB. If not, write to
* the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
* Boston, MA 02110-1301, USA.
*
*/
#ifndef THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_THEME_PAINTER_MAC_H_
#define THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_THEME_PAINTER_MAC_H_
#import "third_party/blink/renderer/core/paint/theme_painter.h"
namespace blink {
class LayoutThemeMac;
class ThemePainterMac final : public ThemePainter {
public:
ThemePainterMac(LayoutThemeMac&);
private:
bool PaintButton(const Node*,
const Document&,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintCheckbox(const Node*,
const Document&,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintCapsLockIndicator(const LayoutObject&,
const PaintInfo&,
const IntRect&) override;
bool PaintInnerSpinButton(const Node*,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintMenuList(const Node*,
const Document&,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintMenuListButton(const Node*,
const Document&,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintProgressBar(const LayoutObject&,
const PaintInfo&,
const IntRect&) override;
bool PaintRadio(const Node*,
const Document&,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintSliderThumb(const Node*,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintSliderTrack(const LayoutObject&,
const PaintInfo&,
const IntRect&) override;
bool PaintSearchField(const Node*,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintSearchFieldCancelButton(const LayoutObject&,
const PaintInfo&,
const IntRect&) override;
bool PaintTextArea(const Node*,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
bool PaintTextField(const Node*,
const ComputedStyle&,
const PaintInfo&,
const IntRect&) override;
LayoutThemeMac& layout_theme_;
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_CORE_PAINT_THEME_PAINTER_MAC_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment