CSSStyleDeclaration::setProperty should override important style
commit4c6b1ca0b35bbcfeac4da104e714d1973c32074d
authorsashab@chromium.org <sashab@chromium.org>
Mon, 27 Apr 2015 00:35:11 +0000 (27 00:35 +0000)
committersashab@chromium.org <sashab@chromium.org>
Mon, 27 Apr 2015 00:35:11 +0000 (27 00:35 +0000)
treeb940b4e869c01fba6c1a148c87645039389a7fd1
parent57f5f26c1ce013460bb86d59c2c5aed9a200a417
CSSStyleDeclaration::setProperty should override important style

This patch changes CSSStyleDeclaration::setProperty to override
any styles set with !important, and clear the !important flag if not
set for that property in the inline style.

BUG=331236

Review URL: https://codereview.chromium.org/1094003002

git-svn-id: svn://svn.chromium.org/blink/trunk@194469 bbb929c8-8fbe-4397-9dbb-9b2b20218538
third_party/WebKit/LayoutTests/fast/css/important-js-override-expected.txt [deleted file]
third_party/WebKit/LayoutTests/fast/css/important-js-override.html
third_party/WebKit/Source/core/css/StylePropertySet.cpp
third_party/WebKit/Source/core/css/StylePropertySet.h
third_party/WebKit/Source/core/css/parser/CSSParser.cpp
third_party/WebKit/Source/core/css/resolver/ViewportStyleResolver.cpp
third_party/WebKit/Source/core/editing/EditingStyle.cpp