| OLD | NEW |
| 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 Loading... |
| 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->invalidatePaint(); |
| 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 Loading... |
| 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 |
| OLD | NEW |