Bug 41496

Summary: Computed style is not implemented for padding-start, padding-end, margin-start, margin-end
Product: WebKit Reporter: Erik Arvidsson <arv>
Component: CSSAssignee: Erik Arvidsson <arv>
Status: RESOLVED FIXED    
Severity: Minor CC: bdakin, commit-queue, dglazkov, hamaji, hyatt, mitz, ojan
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Bug Depends on: 25761    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch for landing none

Description Erik Arvidsson 2010-07-01 17:44:55 PDT
I'm adding support for padding-end and margin-end in bug 25761 and I noticed that computed style is not implemented for these properties. I'll implement this after bug 25761 has landed.
Comment 1 Erik Arvidsson 2010-07-08 19:56:01 PDT
Created attachment 60999 [details]
Patch
Comment 2 Erik Arvidsson 2010-07-08 20:00:48 PDT
I wasn't sure where to put the helper function, resolveDirectionAwareProperty. Suggestions welcome.
Comment 3 Darin Adler 2010-07-09 15:33:32 PDT
Comment on attachment 60999 [details]
Patch

I’m a little worried that the serialized form of all CSS properties will include redundant values and that will be some sort of problems. THe same value as both margin-left and margin-start, for example. Clearly when getting one particular property this is right.

WebCore/ChangeLog:9
 +          (WebCore::):
Please avoid adding lines like this to ChangeLog.
Comment 4 Erik Arvidsson 2010-07-09 15:47:42 PDT
(In reply to comment #3)
> (From update of attachment 60999 [details])
> I’m a little worried that the serialized form of all CSS properties will include redundant values and that will be some sort of problems. THe same value as both margin-left and margin-start, for example. Clearly when getting one particular property this is right.

Fair point. I also see that we do not include shorthands in this list. I'll remove the direction aware properties from computedProperties.
Comment 5 Erik Arvidsson 2010-07-09 16:45:24 PDT
Created attachment 61113 [details]
Patch for landing
Comment 6 WebKit Commit Bot 2010-07-09 21:08:43 PDT
Comment on attachment 61113 [details]
Patch for landing

Clearing flags on attachment: 61113

Committed r63038: <http://trac.webkit.org/changeset/63038>
Comment 7 WebKit Commit Bot 2010-07-09 21:08:49 PDT
All reviewed patches have been landed.  Closing bug.