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

Side by Side Diff: Source/core/html/HTMLOptionElement.cpp

Issue 318803002: Rename Repaint to Paint Invalidation part 3 (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/forms/FileInputType.cpp » ('j') | 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 5 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2010 Apple Inc. All rights reserved.
7 * Copyright (C) 2010 Google Inc. All rights reserved. 7 * Copyright (C) 2010 Google Inc. All rights reserved.
8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved. 8 * Copyright (C) 2011 Motorola Mobility, Inc. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 } 299 }
300 300
301 void HTMLOptionElement::didRecalcStyle(StyleRecalcChange change) 301 void HTMLOptionElement::didRecalcStyle(StyleRecalcChange change)
302 { 302 {
303 if (change == NoChange) 303 if (change == NoChange)
304 return; 304 return;
305 305
306 // FIXME: We ask our owner select to repaint regardless of which property ch anged. 306 // FIXME: We ask our owner select to repaint regardless of which property ch anged.
307 if (HTMLSelectElement* select = ownerSelectElement()) { 307 if (HTMLSelectElement* select = ownerSelectElement()) {
308 if (RenderObject* renderer = select->renderer()) 308 if (RenderObject* renderer = select->renderer())
309 renderer->repaint(); 309 renderer->paintInvalidationForWholeRenderer();
310 } 310 }
311 } 311 }
312 312
313 String HTMLOptionElement::textIndentedToRespectGroupLabel() const 313 String HTMLOptionElement::textIndentedToRespectGroupLabel() const
314 { 314 {
315 ContainerNode* parent = parentNode(); 315 ContainerNode* parent = parentNode();
316 if (parent && isHTMLOptGroupElement(*parent)) 316 if (parent && isHTMLOptGroupElement(*parent))
317 return " " + text(); 317 return " " + text();
318 return text(); 318 return text();
319 } 319 }
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 // Check for parent optgroup having display NONE 372 // Check for parent optgroup having display NONE
373 if (parent && isHTMLOptGroupElement(*parent)) { 373 if (parent && isHTMLOptGroupElement(*parent)) {
374 if (toHTMLOptGroupElement(*parent).isDisplayNone()) 374 if (toHTMLOptGroupElement(*parent).isDisplayNone())
375 return true; 375 return true;
376 } 376 }
377 RenderStyle* style = nonRendererStyle(); 377 RenderStyle* style = nonRendererStyle();
378 return style && style->display() == NONE; 378 return style && style->display() == NONE;
379 } 379 }
380 380
381 } // namespace WebCore 381 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/html/HTMLMediaElement.cpp ('k') | Source/core/html/forms/FileInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698