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

Issue 1982903002: Fix 'border' serialization to fail in cssText when it is invalid (Closed)

Created:
4 years, 7 months ago by Timothy Loh
Modified:
4 years, 7 months ago
CC:
darktears, apavlov+blink_chromium.org, blink-reviews, blink-reviews-css, blink-reviews-style_chromium.org, chromium-reviews, dglazkov+blink, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix 'border' serialization to fail in cssText when it is invalid Currently we serialize 'border' correctly in e.style.border, but when reading cssText (which serializes an entire declaration) we sometimes get this wrong. Since the 'border' shorthand always sets the four (top bottom left right) longhands for each type (color style width) to the same value, if any of the types have unequal longhands then seialization should fail. The goal here is to make cssText serialization do the same thing as the other serialization, so we can make it just call getPropertyValue and have generic checks (e.g. for 'initial') in that function. This patch makes us match Firefox in behaviour. BUG=612363 Committed: https://crrev.com/5cf5e5234ad01ef8e22f10f25f674232a2ae7d2e Cr-Commit-Position: refs/heads/master@{#394409}

Patch Set 1 #

Total comments: 1

Messages

Total messages: 24 (12 generated)
Timothy Loh
https://codereview.chromium.org/1982903002/diff/1/third_party/WebKit/LayoutTests/fast/dom/css-shorthand-common-value.html File third_party/WebKit/LayoutTests/fast/dom/css-shorthand-common-value.html (right): https://codereview.chromium.org/1982903002/diff/1/third_party/WebKit/LayoutTests/fast/dom/css-shorthand-common-value.html#newcode8 third_party/WebKit/LayoutTests/fast/dom/css-shorthand-common-value.html:8: <p>getPropertyValue('border') should not return a value for any property ...
4 years, 7 months ago (2016-05-17 01:53:53 UTC) #4
nainar
lgtm
4 years, 7 months ago (2016-05-17 23:55:17 UTC) #5
alancutter (OOO until 2018)
lgtm
4 years, 7 months ago (2016-05-18 01:58:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982903002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982903002/1
4 years, 7 months ago (2016-05-18 02:18:15 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/192075)
4 years, 7 months ago (2016-05-18 04:24:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982903002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982903002/1
4 years, 7 months ago (2016-05-18 04:26:28 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/192165)
4 years, 7 months ago (2016-05-18 05:27:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982903002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982903002/1
4 years, 7 months ago (2016-05-18 07:29:07 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/192281)
4 years, 7 months ago (2016-05-18 08:22:46 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1982903002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1982903002/1
4 years, 7 months ago (2016-05-18 12:55:35 UTC) #20
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 7 months ago (2016-05-18 13:58:11 UTC) #22
commit-bot: I haz the power
4 years, 7 months ago (2016-05-18 13:59:29 UTC) #24
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5cf5e5234ad01ef8e22f10f25f674232a2ae7d2e
Cr-Commit-Position: refs/heads/master@{#394409}

Powered by Google App Engine
This is Rietveld 408576698