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

Side by Side Diff: Source/core/rendering/RenderTextControl.h

Issue 18601002: Add infrastructure for partial layouts (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: define RenderObject::frameView in the header Created 7 years, 3 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/rendering/RenderTableCell.h ('k') | Source/core/rendering/RenderTextTrackCue.h » ('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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, Layout Unit nonContentHeight) const = 0; 60 virtual LayoutUnit computeControlLogicalHeight(LayoutUnit lineHeight, Layout Unit nonContentHeight) const = 0;
61 virtual RenderStyle* textBaseStyle() const = 0; 61 virtual RenderStyle* textBaseStyle() const = 0;
62 62
63 virtual void updateFromElement(); 63 virtual void updateFromElement();
64 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE; 64 virtual void computeLogicalHeight(LayoutUnit logicalHeight, LayoutUnit logic alTop, LogicalExtentComputedValues&) const OVERRIDE;
65 virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren, Subt reeLayoutScope&); 65 virtual RenderObject* layoutSpecialExcludedChild(bool relayoutChildren, Subt reeLayoutScope&);
66 66
67 private: 67 private:
68 virtual const char* renderName() const { return "RenderTextControl"; } 68 virtual const char* renderName() const { return "RenderTextControl"; }
69 virtual bool isTextControl() const { return true; } 69 virtual bool isTextControl() const { return true; }
70 virtual bool supportsPartialLayout() const OVERRIDE { return false; }
70 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE; 71 virtual void computeIntrinsicLogicalWidths(LayoutUnit& minLogicalWidth, Layo utUnit& maxLogicalWidth) const OVERRIDE;
71 virtual void computePreferredLogicalWidths() OVERRIDE; 72 virtual void computePreferredLogicalWidths() OVERRIDE;
72 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { } 73 virtual void removeLeftoverAnonymousBlock(RenderBlock*) { }
73 virtual bool avoidsFloats() const { return true; } 74 virtual bool avoidsFloats() const { return true; }
74 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; } 75 virtual bool canHaveGeneratedChildren() const OVERRIDE { return false; }
75 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE; 76 virtual bool canBeReplacedWithInlineRunIn() const OVERRIDE;
76 77
77 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE FINAL; 78 virtual void addChild(RenderObject* newChild, RenderObject* beforeChild = 0) OVERRIDE FINAL;
78 79
79 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE; 80 virtual void addFocusRingRects(Vector<IntRect>&, const LayoutPoint& addition alOffset, const RenderLayerModelObject* paintContainer = 0) OVERRIDE;
(...skipping 28 matching lines...) Expand all
108 : RenderFlexibleBox(element) 109 : RenderFlexibleBox(element)
109 { } 110 { }
110 virtual ~RenderTextControlInnerContainer() { } 111 virtual ~RenderTextControlInnerContainer() { }
111 112
112 virtual int baselinePosition(FontBaseline baseline, bool firstLine, LineDire ctionMode direction, LinePositionMode position) const OVERRIDE 113 virtual int baselinePosition(FontBaseline baseline, bool firstLine, LineDire ctionMode direction, LinePositionMode position) const OVERRIDE
113 { 114 {
114 return RenderBlock::baselinePosition(baseline, firstLine, direction, pos ition); 115 return RenderBlock::baselinePosition(baseline, firstLine, direction, pos ition);
115 } 116 }
116 virtual int firstLineBoxBaseline() const OVERRIDE { return RenderBlock::firs tLineBoxBaseline(); } 117 virtual int firstLineBoxBaseline() const OVERRIDE { return RenderBlock::firs tLineBoxBaseline(); }
117 virtual int inlineBlockBaseline(LineDirectionMode direction) const OVERRIDE { return lastLineBoxBaseline(direction); } 118 virtual int inlineBlockBaseline(LineDirectionMode direction) const OVERRIDE { return lastLineBoxBaseline(direction); }
118 119 virtual bool supportsPartialLayout() const OVERRIDE { return false; }
119 }; 120 };
120 121
121 122
122 } // namespace WebCore 123 } // namespace WebCore
123 124
124 #endif // RenderTextControl_h 125 #endif // RenderTextControl_h
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderTableCell.h ('k') | Source/core/rendering/RenderTextTrackCue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698