WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
142023
Implement <attachment> element appearance on Mac
https://bugs.webkit.org/show_bug.cgi?id=142023
Summary
Implement <attachment> element appearance on Mac
Tim Horton
Reported
2015-02-25 13:38:30 PST
Implement <attachment> element appearance on Mac
Attachments
Patch
(27.09 KB, patch)
2015-02-25 13:39 PST
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews101 for mac-mavericks
(590.81 KB, application/zip)
2015-02-25 13:57 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews104 for mac-mavericks-wk2
(709.54 KB, application/zip)
2015-02-25 14:35 PST
,
Build Bot
no flags
Details
Patch
(49.03 KB, patch)
2015-02-25 15:44 PST
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(26.77 KB, patch)
2015-02-25 17:58 PST
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Archive of layout-test-results from ews107 for mac-mavericks-wk2
(673.69 KB, application/zip)
2015-02-25 18:24 PST
,
Build Bot
no flags
Details
Archive of layout-test-results from ews101 for mac-mavericks
(524.80 KB, application/zip)
2015-02-25 18:46 PST
,
Build Bot
no flags
Details
Patch
(55.50 KB, patch)
2015-02-25 20:01 PST
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Patch
(54.81 KB, patch)
2015-02-26 14:44 PST
,
Tim Horton
no flags
Details
Formatted Diff
Diff
Show Obsolete
(8)
View All
Add attachment
proposed patch, testcase, etc.
Tim Horton
Comment 1
2015-02-25 13:39:06 PST
Created
attachment 247338
[details]
Patch
WebKit Commit Bot
Comment 2
2015-02-25 13:42:24 PST
Attachment 247338
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: The parameter name "allocator" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: The parameter name "URL" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: _LSBindingCreateWithURL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 3 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 3
2015-02-25 13:57:34 PST
Comment on
attachment 247338
[details]
Patch
Attachment 247338
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5561068952748032
New failing tests: fast/attachment/attachment-rendering.html
Build Bot
Comment 4
2015-02-25 13:57:38 PST
Created
attachment 247345
[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 5
2015-02-25 14:35:42 PST
Comment on
attachment 247338
[details]
Patch
Attachment 247338
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/6332820888748032
New failing tests: fast/attachment/attachment-rendering.html
Build Bot
Comment 6
2015-02-25 14:35:45 PST
Created
attachment 247348
[details]
Archive of layout-test-results from ews104 for mac-mavericks-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: ews104 Port: mac-mavericks-wk2 Platform: Mac OS X 10.9.5
Tim Horton
Comment 7
2015-02-25 15:44:24 PST
Created
attachment 247354
[details]
Patch
WebKit Commit Bot
Comment 8
2015-02-25 15:47:17 PST
Attachment 247354
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: The parameter name "allocator" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: The parameter name "URL" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: _LSBindingCreateWithURL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 3 in 15 files If any of these errors are false positives, please file a bug against check-webkit-style.
Tim Horton
Comment 9
2015-02-25 17:58:58 PST
Created
attachment 247376
[details]
Patch
WebKit Commit Bot
Comment 10
2015-02-25 18:01:29 PST
Attachment 247376
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: The parameter name "allocator" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: The parameter name "URL" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: _LSBindingCreateWithURL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 3 in 11 files If any of these errors are false positives, please file a bug against check-webkit-style.
Build Bot
Comment 11
2015-02-25 18:24:53 PST
Comment on
attachment 247376
[details]
Patch
Attachment 247376
[details]
did not pass mac-wk2-ews (mac-wk2): Output:
http://webkit-queues.appspot.com/results/6394601845817344
New failing tests: fast/attachment/attachment-rendering.html
Build Bot
Comment 12
2015-02-25 18:24:56 PST
Created
attachment 247383
[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
Build Bot
Comment 13
2015-02-25 18:46:11 PST
Comment on
attachment 247376
[details]
Patch
Attachment 247376
[details]
did not pass mac-ews (mac): Output:
http://webkit-queues.appspot.com/results/5695077837963264
New failing tests: fast/attachment/attachment-rendering.html
Build Bot
Comment 14
2015-02-25 18:46:14 PST
Created
attachment 247388
[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
Tim Horton
Comment 15
2015-02-25 20:01:23 PST
Created
attachment 247397
[details]
Patch
WebKit Commit Bot
Comment 16
2015-02-25 20:03:41 PST
Attachment 247397
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: The parameter name "allocator" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: The parameter name "URL" adds no information, so it should be removed. [readability/parameter_name] [5] ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: _LSBindingCreateWithURL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 3 in 22 files If any of these errors are false positives, please file a bug against check-webkit-style.
Enrica Casucci
Comment 17
2015-02-26 09:41:09 PST
Comment on
attachment 247397
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=247397&action=review
> Source/WebCore/css/CSSParser.cpp:811 > return true;
I think you need #if ENABLE(ATTACHMENT_ELEMENT)
> Source/WebCore/rendering/RenderThemeMac.h:174 > private:
You probably need #if ENABLE(ATTACHMENT_ELEMENT)
Enrica Casucci
Comment 18
2015-02-26 10:06:10 PST
Comment on
attachment 247397
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=247397&action=review
> Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34 > +LSBindingRef _LSBindingCreateWithURL(CFAllocatorRef allocator, CFURLRef URL);
No need for parameter names.
Tim Horton
Comment 19
2015-02-26 13:15:47 PST
Comment on
attachment 247397
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=247397&action=review
>> Source/WebCore/css/CSSParser.cpp:811 >> return true; > > I think you need #if ENABLE(ATTACHMENT_ELEMENT)
Annoying. I'll re-order the values so that this works.
Tim Horton
Comment 20
2015-02-26 14:44:26 PST
Created
attachment 247446
[details]
Patch
WebKit Commit Bot
Comment 21
2015-02-26 14:46:24 PST
Attachment 247446
[details]
did not pass style-queue: ERROR: Source/WebCore/platform/spi/mac/LaunchServicesSPI.h:34: _LSBindingCreateWithURL is incorrectly named. Don't use underscores in your identifier names. [readability/naming/underscores] [4] Total errors found: 1 in 21 files If any of these errors are false positives, please file a bug against check-webkit-style.
Enrica Casucci
Comment 22
2015-02-26 15:19:45 PST
Comment on
attachment 247446
[details]
Patch I don't feel qualified to review the RenderThemeMac.mm changes, The rest looks good to me.
Dean Jackson
Comment 23
2015-02-26 16:50:14 PST
Comment on
attachment 247446
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=247446&action=review
> Source/WebCore/rendering/RenderAttachment.cpp:68 > +bool RenderAttachment::isFocused() const > +{ > + return frame().selection().isFocusedAndActive() && document().focusedElement() == &attachmentElement(); > +} > + > +bool RenderAttachment::isSelectedOrFocused() const > +{ > + return isSelected() || isFocused(); > +}
Could these go in the header?
> Source/WebCore/rendering/RenderTheme.cpp:989 > +#if ENABLE(ATTACHMENT_ELEMENT) > +void RenderTheme::adjustAttachmentStyle(StyleResolver&, RenderStyle&, Element*) const > +{ > +}
What's the point of this?
Sam Weinig
Comment 24
2015-02-26 17:06:03 PST
Comment on
attachment 247446
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=247446&action=review
> Source/WebCore/html/HTMLAttachmentElement.cpp:83 > +const String HTMLAttachmentElement::filePath() const > +{ > + return m_file ? m_file->path() : String(); > +} > + > +const String HTMLAttachmentElement::fileName() const > +{ > + return m_file ? m_file->name() : String(); > }
I don't think these helpers are too helpful. Also, if you do keep it, remove the const from the "const String".
Tim Horton
Comment 25
2015-02-26 18:08:15 PST
http://trac.webkit.org/changeset/180720
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