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. (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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 if (!size().isEmpty()) | 423 if (!size().isEmpty()) |
424 rects.append(LayoutRect(additionalOffset, size())); | 424 rects.append(LayoutRect(additionalOffset, size())); |
425 } | 425 } |
426 | 426 |
427 RenderObject* RenderTextControl::layoutSpecialExcludedChild(bool relayoutChildre
n) | 427 RenderObject* RenderTextControl::layoutSpecialExcludedChild(bool relayoutChildre
n) |
428 { | 428 { |
429 HTMLElement* placeholder = toTextFormControl(node())->placeholderElement(); | 429 HTMLElement* placeholder = toTextFormControl(node())->placeholderElement(); |
430 RenderObject* placeholderRenderer = placeholder ? placeholder->renderer() :
0; | 430 RenderObject* placeholderRenderer = placeholder ? placeholder->renderer() :
0; |
431 if (!placeholderRenderer) | 431 if (!placeholderRenderer) |
432 return 0; | 432 return 0; |
433 if (relayoutChildren) | 433 if (relayoutChildren) { |
434 placeholderRenderer->setNeedsLayout(true); | 434 // The markParents arguments should be false because this function is |
| 435 // called from layout() of the parent and the placeholder layout doesn't |
| 436 // affect the parent layout. |
| 437 placeholderRenderer->setChildNeedsLayout(true, false); |
| 438 } |
435 return placeholderRenderer; | 439 return placeholderRenderer; |
436 } | 440 } |
437 | 441 |
438 } // namespace WebCore | 442 } // namespace WebCore |
OLD | NEW |