| OLD | NEW |
| 1 /** | 1 /** |
| 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2010 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 * Copyright (C) 2010 Google Inc. All rights reserved. | 4 * Copyright (C) 2010 Google Inc. All rights reserved. |
| 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 29 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 namespace WebCore { | 41 namespace WebCore { |
| 42 | 42 |
| 43 using namespace HTMLNames; | 43 using namespace HTMLNames; |
| 44 | 44 |
| 45 RenderTextControlSingleLine::RenderTextControlSingleLine(HTMLInputElement* eleme
nt) | 45 RenderTextControlSingleLine::RenderTextControlSingleLine(HTMLInputElement* eleme
nt) |
| 46 : RenderTextControl(element) | 46 : RenderTextControl(element) |
| 47 , m_shouldDrawCapsLockIndicator(false) | 47 , m_shouldDrawCapsLockIndicator(false) |
| 48 , m_desiredInnerTextLogicalHeight(-1) | 48 , m_desiredInnerTextLogicalHeight(-1) |
| 49 { | 49 { |
| 50 ASSERT(element->hasTagName(inputTag)); | |
| 51 } | 50 } |
| 52 | 51 |
| 53 RenderTextControlSingleLine::~RenderTextControlSingleLine() | 52 RenderTextControlSingleLine::~RenderTextControlSingleLine() |
| 54 { | 53 { |
| 55 } | 54 } |
| 56 | 55 |
| 57 inline Element* RenderTextControlSingleLine::containerElement() const | 56 inline Element* RenderTextControlSingleLine::containerElement() const |
| 58 { | 57 { |
| 59 return inputElement()->userAgentShadowRoot()->getElementById(ShadowElementNa
mes::textFieldContainer()); | 58 return inputElement()->userAgentShadowRoot()->getElementById(ShadowElementNa
mes::textFieldContainer()); |
| 60 } | 59 } |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 435 if (innerTextElement()) | 434 if (innerTextElement()) |
| 436 innerTextElement()->setScrollTop(newTop); | 435 innerTextElement()->setScrollTop(newTop); |
| 437 } | 436 } |
| 438 | 437 |
| 439 HTMLInputElement* RenderTextControlSingleLine::inputElement() const | 438 HTMLInputElement* RenderTextControlSingleLine::inputElement() const |
| 440 { | 439 { |
| 441 return toHTMLInputElement(node()); | 440 return toHTMLInputElement(node()); |
| 442 } | 441 } |
| 443 | 442 |
| 444 } | 443 } |
| OLD | NEW |