Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutSearchField.h

Issue 2766943002: Do-not-commit: Count layout tree memory usage
Patch Set: Rebase, add object paint property counter Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRubyText.h ('k') | third_party/WebKit/Source/core/layout/LayoutSlider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698