Bug 171795

Summary: Move 'style' from Element to HTMLElement / SVGElement and make it settable
Product: WebKit Reporter: Chris Dumez <cdumez>
Component: CSSAssignee: Chris Dumez <cdumez>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, buildbot, darin, ggaren, sam, simon.fraser
Priority: P2 Keywords: WebExposed
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
URL: https://drafts.csswg.org/cssom/#the-elementcssinlinestyle-interface
See Also: https://bugs.webkit.org/show_bug.cgi?id=164537
Attachments:
Description Flags
WIP patch
none
WIP patch
none
Patch
none
Patch
none
Patch
none
Patch
none
Patch none

Description Chris Dumez 2017-05-07 16:44:17 PDT
Move 'style' from Element to HTMLElement / SVGElement and make it settable, as per:
- https://drafts.csswg.org/cssom/#the-elementcssinlinestyle-interface

Both Firefox and Chrome already follow the specification.
Comment 1 Chris Dumez 2017-05-07 17:59:50 PDT
Created attachment 309335 [details]
WIP patch
Comment 2 Build Bot 2017-05-07 18:02:11 PDT
Attachment 309335 [details] did not pass style-queue:


ERROR: Source/WebCore/inspector/InspectorCSSAgent.h:138:  The parameter name "element" adds no information, so it should be removed.  [readability/parameter_name] [5]
Total errors found: 1 in 22 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Chris Dumez 2017-05-07 18:30:00 PDT
Created attachment 309336 [details]
WIP patch
Comment 4 Chris Dumez 2017-05-07 18:42:47 PDT
Created attachment 309337 [details]
Patch
Comment 5 Chris Dumez 2017-05-07 19:30:34 PDT
Created attachment 309339 [details]
Patch
Comment 6 Chris Dumez 2017-05-07 19:32:46 PDT
Created attachment 309340 [details]
Patch
Comment 7 Chris Dumez 2017-05-07 21:35:35 PDT
Created attachment 309343 [details]
Patch
Comment 8 Alex Christensen 2017-05-08 04:44:40 PDT
Comment on attachment 309343 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=309343&action=review

> Source/WebCore/css/StyleProperties.cpp:1335
>      m_cssomWrapper = std::make_unique<PropertySetCSSStyleDeclaration>(this);

*this
Comment 9 Chris Dumez 2017-05-08 08:48:09 PDT
Created attachment 309362 [details]
Patch
Comment 10 Chris Dumez 2017-05-08 09:50:50 PDT
Comment on attachment 309362 [details]
Patch

Clearing flags on attachment: 309362

Committed r216426: <http://trac.webkit.org/changeset/216426>
Comment 11 Chris Dumez 2017-05-08 09:50:52 PDT
All reviewed patches have been landed.  Closing bug.