OLD | NEW |
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. | 3 * (C) 2008 Torch Mobile Inc. All rights reserved. |
4 * (http://www.torchmobile.com/) | 4 * (http://www.torchmobile.com/) |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 13 matching lines...) Expand all Loading... |
24 | 24 |
25 #include "core/html/HTMLTextAreaElement.h" | 25 #include "core/html/HTMLTextAreaElement.h" |
26 #include "core/layout/HitTestResult.h" | 26 #include "core/layout/HitTestResult.h" |
27 #include "core/layout/LayoutTheme.h" | 27 #include "core/layout/LayoutTheme.h" |
28 | 28 |
29 namespace blink { | 29 namespace blink { |
30 | 30 |
31 LayoutTextControlMultiLine::LayoutTextControlMultiLine( | 31 LayoutTextControlMultiLine::LayoutTextControlMultiLine( |
32 HTMLTextAreaElement* element) | 32 HTMLTextAreaElement* element) |
33 : LayoutTextControl(element) { | 33 : LayoutTextControl(element) { |
34 ASSERT(element); | 34 DCHECK(element); |
35 } | 35 } |
36 | 36 |
37 LayoutTextControlMultiLine::~LayoutTextControlMultiLine() {} | 37 LayoutTextControlMultiLine::~LayoutTextControlMultiLine() {} |
38 | 38 |
39 bool LayoutTextControlMultiLine::nodeAtPoint( | 39 bool LayoutTextControlMultiLine::nodeAtPoint( |
40 HitTestResult& result, | 40 HitTestResult& result, |
41 const HitTestLocation& locationInContainer, | 41 const HitTestLocation& locationInContainer, |
42 const LayoutPoint& accumulatedOffset, | 42 const LayoutPoint& accumulatedOffset, |
43 HitTestAction hitTestAction) { | 43 HitTestAction hitTestAction) { |
44 if (!LayoutTextControl::nodeAtPoint(result, locationInContainer, | 44 if (!LayoutTextControl::nodeAtPoint(result, locationInContainer, |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 placeholderBox->mutableStyleRef().setLogicalWidth(Length( | 112 placeholderBox->mutableStyleRef().setLogicalWidth(Length( |
113 contentLogicalWidth() - placeholderBox->borderAndPaddingLogicalWidth(), | 113 contentLogicalWidth() - placeholderBox->borderAndPaddingLogicalWidth(), |
114 Fixed)); | 114 Fixed)); |
115 placeholderBox->layoutIfNeeded(); | 115 placeholderBox->layoutIfNeeded(); |
116 placeholderBox->setX(borderLeft() + paddingLeft()); | 116 placeholderBox->setX(borderLeft() + paddingLeft()); |
117 placeholderBox->setY(borderTop() + paddingTop()); | 117 placeholderBox->setY(borderTop() + paddingTop()); |
118 return placeholderLayoutObject; | 118 return placeholderLayoutObject; |
119 } | 119 } |
120 | 120 |
121 } // namespace blink | 121 } // namespace blink |
OLD | NEW |