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

Side by Side Diff: Source/core/layout/LayoutTextControl.h

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutTextCombine.cpp ('k') | Source/core/layout/LayoutTextControl.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007 Apple Inc. All rights reserved.
3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * 4 *
5 * This library is free software; you can redistribute it and/or 5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public 6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either 7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version. 8 * version 2 of the License, or (at your option) any later version.
9 * 9 *
10 * This library is distributed in the hope that it will be useful, 10 * This library is distributed in the hope that it will be useful,
(...skipping 17 matching lines...) Expand all
28 28
29 namespace blink { 29 namespace blink {
30 30
31 class HTMLTextFormControlElement; 31 class HTMLTextFormControlElement;
32 32
33 class CORE_EXPORT LayoutTextControl : public LayoutBlockFlow { 33 class CORE_EXPORT LayoutTextControl : public LayoutBlockFlow {
34 public: 34 public:
35 virtual ~LayoutTextControl(); 35 virtual ~LayoutTextControl();
36 36
37 HTMLTextFormControlElement* textFormControlElement() const; 37 HTMLTextFormControlElement* textFormControlElement() const;
38 virtual PassRefPtr<LayoutStyle> createInnerEditorStyle(const LayoutStyle& st artStyle) const = 0; 38 virtual PassRefPtr<ComputedStyle> createInnerEditorStyle(const ComputedStyle & startStyle) const = 0;
39 39
40 virtual const char* name() const override { return "LayoutTextControl"; } 40 virtual const char* name() const override { return "LayoutTextControl"; }
41 41
42 protected: 42 protected:
43 LayoutTextControl(HTMLTextFormControlElement*); 43 LayoutTextControl(HTMLTextFormControlElement*);
44 44
45 // This convenience function should not be made public because 45 // This convenience function should not be made public because
46 // innerEditorElement may outlive the render tree. 46 // innerEditorElement may outlive the render tree.
47 HTMLElement* innerEditorElement() const; 47 HTMLElement* innerEditorElement() const;
48 48
49 int scrollbarThickness() const; 49 int scrollbarThickness() const;
50 void adjustInnerEditorStyle(LayoutStyle& textBlockStyle) const; 50 void adjustInnerEditorStyle(ComputedStyle& textBlockStyle) const;
51 51
52 virtual void styleDidChange(StyleDifference, const LayoutStyle* oldStyle) ov erride; 52 virtual void styleDidChange(StyleDifference, const ComputedStyle* oldStyle) override;
53 53
54 void hitInnerEditorElement(HitTestResult&, const LayoutPoint& pointInContain er, const LayoutPoint& accumulatedOffset); 54 void hitInnerEditorElement(HitTestResult&, const LayoutPoint& pointInContain er, const LayoutPoint& accumulatedOffset);
55 55
56 int textBlockLogicalWidth() const; 56 int textBlockLogicalWidth() const;
57 int textBlockLogicalHeight() const; 57 int textBlockLogicalHeight() const;
58 58
59 float scaleEmToUnits(int x) const; 59 float scaleEmToUnits(int x) const;
60 60
61 static bool hasValidAvgCharWidth(AtomicString family); 61 static bool hasValidAvgCharWidth(AtomicString family);
62 virtual float getAvgCharWidth(AtomicString family); 62 virtual float getAvgCharWidth(AtomicString family);
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 return LayoutBlock::baselinePosition(baseline, firstLine, direction, pos ition); 106 return LayoutBlock::baselinePosition(baseline, firstLine, direction, pos ition);
107 } 107 }
108 virtual int firstLineBoxBaseline() const override { return LayoutBlock::firs tLineBoxBaseline(); } 108 virtual int firstLineBoxBaseline() const override { return LayoutBlock::firs tLineBoxBaseline(); }
109 virtual int inlineBlockBaseline(LineDirectionMode direction) const override { return lastLineBoxBaseline(direction); } 109 virtual int inlineBlockBaseline(LineDirectionMode direction) const override { return lastLineBoxBaseline(direction); }
110 }; 110 };
111 111
112 112
113 } // namespace blink 113 } // namespace blink
114 114
115 #endif // LayoutTextControl_h 115 #endif // LayoutTextControl_h
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutTextCombine.cpp ('k') | Source/core/layout/LayoutTextControl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698