| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 , m_desiredInnerEditorLogicalHeight(-1) | 46 , m_desiredInnerEditorLogicalHeight(-1) |
| 47 { | 47 { |
| 48 } | 48 } |
| 49 | 49 |
| 50 LayoutTextControlSingleLine::~LayoutTextControlSingleLine() | 50 LayoutTextControlSingleLine::~LayoutTextControlSingleLine() |
| 51 { | 51 { |
| 52 } | 52 } |
| 53 | 53 |
| 54 inline Element* LayoutTextControlSingleLine::containerElement() const | 54 inline Element* LayoutTextControlSingleLine::containerElement() const |
| 55 { | 55 { |
| 56 return inputElement()->userAgentShadowRoot()->getElementById(ShadowElementNa
mes::textFieldContainer()); | 56 return inputElement()->closedShadowRoot()->getElementById(ShadowElementNames
::textFieldContainer()); |
| 57 } | 57 } |
| 58 | 58 |
| 59 inline Element* LayoutTextControlSingleLine::editingViewPortElement() const | 59 inline Element* LayoutTextControlSingleLine::editingViewPortElement() const |
| 60 { | 60 { |
| 61 return inputElement()->userAgentShadowRoot()->getElementById(ShadowElementNa
mes::editingViewPort()); | 61 return inputElement()->closedShadowRoot()->getElementById(ShadowElementNames
::editingViewPort()); |
| 62 } | 62 } |
| 63 | 63 |
| 64 inline HTMLElement* LayoutTextControlSingleLine::innerSpinButtonElement() const | 64 inline HTMLElement* LayoutTextControlSingleLine::innerSpinButtonElement() const |
| 65 { | 65 { |
| 66 return toHTMLElement(inputElement()->userAgentShadowRoot()->getElementById(S
hadowElementNames::spinButton())); | 66 return toHTMLElement(inputElement()->closedShadowRoot()->getElementById(Shad
owElementNames::spinButton())); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void LayoutTextControlSingleLine::paint(const PaintInfo& paintInfo, const Layout
Point& paintOffset) | 69 void LayoutTextControlSingleLine::paint(const PaintInfo& paintInfo, const Layout
Point& paintOffset) |
| 70 { | 70 { |
| 71 LayoutTextControl::paint(paintInfo, paintOffset); | 71 LayoutTextControl::paint(paintInfo, paintOffset); |
| 72 | 72 |
| 73 if (paintInfo.phase == PaintPhaseBlockBackground && m_shouldDrawCapsLockIndi
cator) { | 73 if (paintInfo.phase == PaintPhaseBlockBackground && m_shouldDrawCapsLockIndi
cator) { |
| 74 LayoutRect contentsRect = contentBoxRect(); | 74 LayoutRect contentsRect = contentBoxRect(); |
| 75 | 75 |
| 76 // Center in the block progression direction. | 76 // Center in the block progression direction. |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 if (innerEditorElement()) | 422 if (innerEditorElement()) |
| 423 innerEditorElement()->setScrollTop(newTop); | 423 innerEditorElement()->setScrollTop(newTop); |
| 424 } | 424 } |
| 425 | 425 |
| 426 HTMLInputElement* LayoutTextControlSingleLine::inputElement() const | 426 HTMLInputElement* LayoutTextControlSingleLine::inputElement() const |
| 427 { | 427 { |
| 428 return toHTMLInputElement(node()); | 428 return toHTMLInputElement(node()); |
| 429 } | 429 } |
| 430 | 430 |
| 431 } | 431 } |
| OLD | NEW |