| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. | 3 * Copyright (C) 2008 Torch Mobile Inc. All rights reserved. |
| 4 * (http://www.torchmobile.com/) | 4 * (http://www.torchmobile.com/) |
| 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 6 * | 6 * |
| 7 * This library is free software; you can redistribute it and/or | 7 * This library is free software; you can redistribute it and/or |
| 8 * modify it under the terms of the GNU Library General Public | 8 * modify it under the terms of the GNU Library General Public |
| 9 * License as published by the Free Software Foundation; either | 9 * License as published by the Free Software Foundation; either |
| 10 * version 2 of the License, or (at your option) any later version. | 10 * version 2 of the License, or (at your option) any later version. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 #include "core/layout/LayoutTextControlSingleLine.h" | 27 #include "core/layout/LayoutTextControlSingleLine.h" |
| 28 | 28 |
| 29 namespace blink { | 29 namespace blink { |
| 30 | 30 |
| 31 class HTMLInputElement; | 31 class HTMLInputElement; |
| 32 | 32 |
| 33 class LayoutSearchField final : public LayoutTextControlSingleLine { | 33 class LayoutSearchField final : public LayoutTextControlSingleLine { |
| 34 public: | 34 public: |
| 35 LayoutSearchField(HTMLInputElement*); | 35 LayoutSearchField(HTMLInputElement*); |
| 36 ~LayoutSearchField() override; | 36 ~LayoutSearchField() override; |
| 37 char objectSize() const override { return sizeof(this); } |
| 37 | 38 |
| 38 private: | 39 private: |
| 39 LayoutUnit computeControlLogicalHeight( | 40 LayoutUnit computeControlLogicalHeight( |
| 40 LayoutUnit lineHeight, | 41 LayoutUnit lineHeight, |
| 41 LayoutUnit nonContentHeight) const override; | 42 LayoutUnit nonContentHeight) const override; |
| 42 | 43 |
| 43 Element* searchDecorationElement() const; | 44 Element* searchDecorationElement() const; |
| 44 Element* cancelButtonElement() const; | 45 Element* cancelButtonElement() const; |
| 45 }; | 46 }; |
| 46 | 47 |
| 47 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSearchField, isTextField()); | 48 DEFINE_LAYOUT_OBJECT_TYPE_CASTS(LayoutSearchField, isTextField()); |
| 48 | 49 |
| 49 } // namespace blink | 50 } // namespace blink |
| 50 | 51 |
| 51 #endif // LayoutSearchField_h | 52 #endif // LayoutSearchField_h |
| OLD | NEW |