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 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
236 innerBlockRenderer->style()->setHeight(Length()); | 236 innerBlockRenderer->style()->setHeight(Length()); |
237 innerBlockRenderer->style()->setWidth(Length()); | 237 innerBlockRenderer->style()->setWidth(Length()); |
238 } | 238 } |
239 HTMLElement* container = containerElement(); | 239 HTMLElement* container = containerElement(); |
240 if (RenderObject* containerRenderer = container ? container->renderer() : 0)
{ | 240 if (RenderObject* containerRenderer = container ? container->renderer() : 0)
{ |
241 containerRenderer->style()->setHeight(Length()); | 241 containerRenderer->style()->setHeight(Length()); |
242 containerRenderer->style()->setWidth(Length()); | 242 containerRenderer->style()->setWidth(Length()); |
243 } | 243 } |
244 RenderObject* innerTextRenderer = innerTextElement()->renderer(); | 244 RenderObject* innerTextRenderer = innerTextElement()->renderer(); |
245 if (innerTextRenderer && diff == StyleDifferenceLayout) | 245 if (innerTextRenderer && diff == StyleDifferenceLayout) |
246 innerTextRenderer->setNeedsLayout(true, MarkOnlyThis); | 246 innerTextRenderer->setNeedsLayout(true, MarkContainingBlockChain); |
247 if (HTMLElement* placeholder = inputElement()->placeholderElement()) | 247 if (HTMLElement* placeholder = inputElement()->placeholderElement()) |
248 placeholder->setInlineStyleProperty(CSSPropertyTextOverflow, textShouldB
eTruncated() ? CSSValueEllipsis : CSSValueClip); | 248 placeholder->setInlineStyleProperty(CSSPropertyTextOverflow, textShouldB
eTruncated() ? CSSValueEllipsis : CSSValueClip); |
249 setHasOverflowClip(false); | 249 setHasOverflowClip(false); |
250 } | 250 } |
251 | 251 |
252 void RenderTextControlSingleLine::capsLockStateMayHaveChanged() | 252 void RenderTextControlSingleLine::capsLockStateMayHaveChanged() |
253 { | 253 { |
254 if (!node() || !document()) | 254 if (!node() || !document()) |
255 return; | 255 return; |
256 | 256 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
463 return true; | 463 return true; |
464 return RenderBlock::logicalScroll(direction, granularity, multiplier, stopNo
de); | 464 return RenderBlock::logicalScroll(direction, granularity, multiplier, stopNo
de); |
465 } | 465 } |
466 | 466 |
467 HTMLInputElement* RenderTextControlSingleLine::inputElement() const | 467 HTMLInputElement* RenderTextControlSingleLine::inputElement() const |
468 { | 468 { |
469 return toHTMLInputElement(node()); | 469 return toHTMLInputElement(node()); |
470 } | 470 } |
471 | 471 |
472 } | 472 } |
OLD | NEW |