X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fcore%2Fhtml%2FHTMLOptionElement.cpp;h=c2b1e9a6cae08bc49da644529c188fb8f7821145;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=cb091296df1c621b95022a4b34029736755339fa;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp b/src/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp index cb09129..c2b1e9a 100644 --- a/src/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp +++ b/src/third_party/WebKit/Source/core/html/HTMLOptionElement.cpp @@ -53,7 +53,6 @@ HTMLOptionElement::HTMLOptionElement(Document& document) , m_isSelected(false) { setHasCustomStyleCallbacks(); - ScriptWrappable::init(this); } HTMLOptionElement::~HTMLOptionElement() @@ -184,7 +183,8 @@ void HTMLOptionElement::parseAttribute(const QualifiedName& name, const AtomicSt bool oldDisabled = m_disabled; m_disabled = !value.isNull(); if (oldDisabled != m_disabled) { - didAffectSelector(AffectedSelectorDisabled | AffectedSelectorEnabled); + pseudoStateChanged(CSSSelector::PseudoDisabled); + pseudoStateChanged(CSSSelector::PseudoEnabled); if (renderer() && renderer()->style()->hasAppearance()) RenderTheme::theme().stateChanged(renderer(), EnabledControlState); } @@ -244,7 +244,7 @@ void HTMLOptionElement::setSelectedState(bool selected) return; m_isSelected = selected; - didAffectSelector(AffectedSelectorChecked); + pseudoStateChanged(CSSSelector::PseudoChecked); if (HTMLSelectElement* select = ownerSelectElement()) select->invalidateSelectedItems(); @@ -309,7 +309,7 @@ void HTMLOptionElement::didRecalcStyle(StyleRecalcChange change) // FIXME: We ask our owner select to repaint regardless of which property changed. if (HTMLSelectElement* select = ownerSelectElement()) { if (RenderObject* renderer = select->renderer()) - renderer->paintInvalidationForWholeRenderer(); + renderer->setShouldDoFullPaintInvalidation(true); } }