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

Side by Side Diff: Source/core/rendering/RenderTextControlSingleLine.cpp

Issue 16796004: REGRESSION(r147612): Double/triple click selection on input[type=search] doesn't paint selection co… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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, 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
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698