Bug 83000

Summary: REGRESSION(r80439): Crash in StylePropertySet::borderSpacingValue
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: CSSAssignee: Ryosuke Niwa <rniwa>
Status: RESOLVED FIXED    
Severity: Normal CC: bdakin, darin, dbates, hyatt, kling, macpherson, menard, mikelawther, sam, simon.fraser, webkit.review.bot
Priority: P1    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Description Ryosuke Niwa 2012-04-02 23:11:55 PDT
Reduction:

<!DOCTYPE html>
<body>
<script type="text/javascript">
a = document.createElement("a");
a.setAttribute("style", "-webkit-border-horizontal-spacing:1px;");
a.style.getPropertyValue('border-spacing');
</script>

http://crbug.com/121121
Comment 1 Ryosuke Niwa 2012-04-02 23:18:51 PDT
Should specifying -webkit-border-horizontal-spacing also set -webkit-border-vertical-spacing to be consistent with the standard border-spacing property? (border-spacing doesn't allow only vertical spacing to be specified).
Comment 2 Ryosuke Niwa 2012-04-02 23:48:39 PDT
I'm going to submit a patch assuming that the answer to my question in comment #2 is no (i.e. we want to allow websites specifying border-spacing-vertical without border-spacing-horizontal).
Comment 3 Ryosuke Niwa 2012-04-02 23:52:07 PDT
Created attachment 135282 [details]
Patch
Comment 4 Andreas Kling 2012-04-03 04:35:17 PDT
Comment on attachment 135282 [details]
Patch

Good find.
Comment 5 Andreas Kling 2012-04-03 04:36:16 PDT
(In reply to comment #2)
> I'm going to submit a patch assuming that the answer to my question in comment #2 is no (i.e. we want to allow websites specifying border-spacing-vertical without border-spacing-horizontal).

r=me as is to fix the crash. This question still needs an answer though.
Comment 6 Ryosuke Niwa 2012-04-03 09:26:27 PDT
I'm going to land this patch as is since we can always revert it if we want the other behavior instead.

(In reply to comment #5)
> (In reply to comment #2)
> > I'm going to submit a patch assuming that the answer to my question in comment #2 is no (i.e. we want to allow websites specifying border-spacing-vertical without border-spacing-horizontal).
> 
> r=me as is to fix the crash. This question still needs an answer though.

Yes, please someone answer my question...
Comment 7 WebKit Review Bot 2012-04-03 09:52:47 PDT
Comment on attachment 135282 [details]
Patch

Clearing flags on attachment: 135282

Committed r113049: <http://trac.webkit.org/changeset/113049>
Comment 8 WebKit Review Bot 2012-04-03 09:52:52 PDT
All reviewed patches have been landed.  Closing bug.