Bug 173079

Summary: Add a borderless mode to <attachment>, and make it respect its layout size
Product: WebKit Reporter: Tim Horton <thorton>
Component: New BugsAssignee: Tim Horton <thorton>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch none

Tim Horton
Reported 2017-06-07 15:50:23 PDT
Add a borderless mode to <attachment>, and make it respect its layout size
Attachments
Patch (11.04 KB, patch)
2017-06-07 15:50 PDT, Tim Horton
no flags
Tim Horton
Comment 1 2017-06-07 15:50:43 PDT
Simon Fraser (smfr)
Comment 2 2017-06-07 17:13:51 PDT
Comment on attachment 312246 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312246&action=review > Source/WebCore/rendering/RenderAttachment.cpp:77 > + if (style().appearance() == BorderlessAttachmentPart) > + return false; > + return m_shouldDrawBorder; Can m_shouldDrawBorder just be set to false for this type of attachment?
Tim Horton
Comment 3 2017-06-08 10:37:15 PDT
Comment on attachment 312246 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=312246&action=review >> Source/WebCore/rendering/RenderAttachment.cpp:77 >> + return m_shouldDrawBorder; > > Can m_shouldDrawBorder just be set to false for this type of attachment? Currently DragController just smacks shouldDrawBorder with its own true/false (could be made a SetForScope). Also, I'm not totally sure where to do that (where to know when style is done resolving each time, in order to update this)? Thoughts?
WebKit Commit Bot
Comment 4 2017-06-08 11:08:52 PDT
Comment on attachment 312246 [details] Patch Clearing flags on attachment: 312246 Committed r217937: <http://trac.webkit.org/changeset/217937>
WebKit Commit Bot
Comment 5 2017-06-08 11:08:54 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.