WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
142261
<attachment> should show the file size as detail text below the icon
https://bugs.webkit.org/show_bug.cgi?id=142261
Summary
<attachment> should show the file size as detail text below the icon
Tim Horton
Reported
2015-03-03 22:54:28 PST
<attachment> should show the file size as detail text below the icon
Attachments
Patch
(40.11 KB, patch)
2015-03-03 22:55 PST
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-mavericks
(518.38 KB, application/zip)
2015-03-03 23:57 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews107 for mac-mavericks-wk2
(665.19 KB, application/zip)
2015-03-04 00:04 PST
,
Build Bot
no flags
Details
Patch
(40.81 KB, patch)
2015-03-04 11:54 PST
,
Tim Horton
dino
: review+
Details
Formatted Diff
Diff
Show Obsolete
(3)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2015-03-03 22:55:45 PST
Created
attachment 247841
[details]
Patch
Build Bot
Comment 2
2015-03-03 23:57:32 PST
Comment on
attachment 247841
[details]
Patch
Attachment 247841
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5700911208857600
New failing tests: fast/attachment/attachment-subtitle.html
Build Bot
Comment 3
2015-03-03 23:57:36 PST
Created
attachment 247848
[details]
Archive of layout-test-results from ews101 for mac-mavericks The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: ews101 Port: mac-mavericks Platform: Mac OS X 10.9.5
Build Bot
Comment 4
2015-03-04 00:04:05 PST
Comment on
attachment 247841
[details]
Patch
Attachment 247841
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/4926638127054848
New failing tests: fast/attachment/attachment-subtitle.html
Build Bot
Comment 5
2015-03-04 00:04:10 PST
Created
attachment 247849
[details]
Archive of layout-test-results from ews107 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews107 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Tim Horton
Comment 6
2015-03-04 00:06:24 PST
Need to land those results for Mavericks.
Tim Horton
Comment 7
2015-03-04 11:54:44 PST
Created
attachment 247877
[details]
Patch
Dean Jackson
Comment 8
2015-03-04 17:35:29 PST
Comment on
attachment 247877
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=247877&action=review
> Source/WebCore/rendering/RenderThemeMac.mm:2237 > + // FIXME: What attribute should we use? > + String subtitleText = attachment.attachmentElement().fastGetAttribute(subtitleAttr); > +
I don't understand the FIXME
> Source/WebCore/rendering/RenderThemeMac.mm:2261 > + CGRect lineBounds = CTLineGetBoundsWithOptions(subtitleLine.get(), 0); > + > + // Center the line relative to the icon. > + CGFloat xOffset = (attachmentIconBackgroundSize / 2) - (lineBounds.size.width / 2); > + CGFloat yOffset = 0; > + > + if (!lines.isEmpty()) > + yOffset = lines.last().backgroundRect.maxY(); > + else > + yOffset = attachmentIconBackgroundSize + attachmentIconToTitleMargin; > + > + LabelLine labelLine; > + subtitleTextRect = FloatRect(xOffset, yOffset, lineBounds.size.width, lineBounds.size.height);
Again, would be easier to do this in the shadow document :|
Tim Horton
Comment 9
2015-03-04 17:40:08 PST
http://trac.webkit.org/changeset/181056
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug