Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(135)

Side by Side Diff: Source/WebCore/rendering/RenderTextControl.cpp

Issue 7797001: Merge 93802 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/835/
Patch Set: Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « LayoutTests/fast/forms/textarea-placeholder-relayout-assertion-expected.txt ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « LayoutTests/fast/forms/textarea-placeholder-relayout-assertion-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698