Bug 141939 - [Mac] [iOS] Parsing support for -apple-trailing-word
Summary: [Mac] [iOS] Parsing support for -apple-trailing-word
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Myles C. Maxfield
URL:
Keywords: InRadar
Depends on: 141998 142000
Blocks:
  Show dependency treegraph
 
Reported: 2015-02-23 17:29 PST by Myles C. Maxfield
Modified: 2015-03-03 16:18 PST (History)
12 users (show)

See Also:


Attachments
Patch (51.12 KB, patch)
2015-02-23 17:38 PST, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (51.12 KB, patch)
2015-02-23 19:17 PST, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (51.27 KB, patch)
2015-02-23 19:22 PST, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Patch (51.28 KB, patch)
2015-02-23 19:25 PST, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews105 for mac-mavericks-wk2 (1.22 MB, application/zip)
2015-02-23 20:58 PST, Build Bot
no flags Details
Archive of layout-test-results from ews100 for mac-mavericks (1.23 MB, application/zip)
2015-02-23 21:51 PST, Build Bot
no flags Details
Patch (52.21 KB, patch)
2015-02-24 11:15 PST, Myles C. Maxfield
no flags Details | Formatted Diff | Diff
Archive of layout-test-results from ews106 for mac-mavericks-wk2 (1.27 MB, application/zip)
2015-02-24 12:37 PST, Build Bot
no flags Details
Archive of layout-test-results from ews100 for mac-mavericks (794.38 KB, application/zip)
2015-02-24 12:38 PST, Build Bot
no flags Details
Test list for failures (2.73 KB, text/plain)
2015-02-25 09:48 PST, Myles C. Maxfield
no flags Details
Patch (55.42 KB, patch)
2015-02-25 13:44 PST, Myles C. Maxfield
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Myles C. Maxfield 2015-02-23 17:29:34 PST
Parsing support for -webkit-trailing-word
Comment 1 Myles C. Maxfield 2015-02-23 17:38:04 PST
Created attachment 247174 [details]
Patch
Comment 2 Myles C. Maxfield 2015-02-23 19:17:48 PST
Created attachment 247185 [details]
Patch
Comment 3 Myles C. Maxfield 2015-02-23 19:22:39 PST
Created attachment 247186 [details]
Patch
Comment 4 Myles C. Maxfield 2015-02-23 19:25:08 PST
Created attachment 247188 [details]
Patch
Comment 5 Build Bot 2015-02-23 20:58:25 PST
Comment on attachment 247188 [details]
Patch

Attachment 247188 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/5599821268254720

New failing tests:
fast/forms/targeted-frame-submission.html
http/tests/misc/acid3.html
fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-roundtrip.html
tables/mozilla_expected_failures/bugs/bug2479-5.html
Comment 6 Build Bot 2015-02-23 20:58:29 PST
Created attachment 247197 [details]
Archive of layout-test-results from ews105 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews105  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 7 Build Bot 2015-02-23 21:51:44 PST
Comment on attachment 247188 [details]
Patch

Attachment 247188 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/4647036561391616

New failing tests:
fast/forms/targeted-frame-submission.html
fast/css3-text/css3-text-decoration/text-decoration-skip/text-decoration-skip-roundtrip.html
Comment 8 Build Bot 2015-02-23 21:51:47 PST
Created attachment 247203 [details]
Archive of layout-test-results from ews100 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 9 Myles C. Maxfield 2015-02-24 11:15:06 PST
Created attachment 247248 [details]
Patch
Comment 10 Andreas Kling 2015-02-24 11:46:30 PST
Comment on attachment 247248 [details]
Patch

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

This looks good, though I'd prefer we name the flag CSS_TRAILING_WORD to make it a bit more clear what this is about.
r=me

> Source/WebCore/css/CSSPrimitiveValueMappings.h:5259
> +    }

Maybe a default case here with ASSERT_NOT_REACHED to match operator TrailingWord()?

> Source/WebCore/rendering/style/RenderStyle.h:1653
> +    void setTrailingWord(TrailingWord v) { SET_VAR(rareInheritedData, trailingWord, static_cast<int>(v)); }

Shouldn't the static_cast be to <unsigned> here rather than <int>, given that StyleRareInheritedData::trailingWord is unsigned?
Comment 11 Build Bot 2015-02-24 12:37:17 PST
Comment on attachment 247248 [details]
Patch

Attachment 247248 [details] did not pass mac-wk2-ews (mac-wk2):
Output: http://webkit-queues.appspot.com/results/6589789755146240

New failing tests:
fast/forms/targeted-frame-submission.html
tables/mozilla/bugs/bug139524-2.html
Comment 12 Build Bot 2015-02-24 12:37:21 PST
Created attachment 247251 [details]
Archive of layout-test-results from ews106 for mac-mavericks-wk2

The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews.
Bot: ews106  Port: mac-mavericks-wk2  Platform: Mac OS X 10.9.5
Comment 13 Build Bot 2015-02-24 12:38:35 PST
Comment on attachment 247248 [details]
Patch

Attachment 247248 [details] did not pass mac-ews (mac):
Output: http://webkit-queues.appspot.com/results/5020605199941632

New failing tests:
editing/selection/designmode-no-caret.html
fast/forms/targeted-frame-submission.html
Comment 14 Build Bot 2015-02-24 12:38:38 PST
Created attachment 247252 [details]
Archive of layout-test-results from ews100 for mac-mavericks

The attached test failures were seen while running run-webkit-tests on the mac-ews.
Bot: ews100  Port: mac-mavericks  Platform: Mac OS X 10.9.5
Comment 15 Myles C. Maxfield 2015-02-24 17:17:57 PST
Committed r180599: <http://trac.webkit.org/changeset/180599>
Comment 16 WebKit Commit Bot 2015-02-24 19:42:04 PST
Re-opened since this is blocked by bug 141998
Comment 17 Myles C. Maxfield 2015-02-25 09:47:30 PST
This causes flakiness.
Comment 18 Myles C. Maxfield 2015-02-25 09:48:18 PST
Created attachment 247332 [details]
Test list for failures
Comment 19 Myles C. Maxfield 2015-02-25 11:04:37 PST
Comment on attachment 247248 [details]
Patch

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

> Source/WebCore/rendering/SimpleLineLayout.cpp:169
> +    if (style.trailingWord() != TrailingWord::Auto)
> +        return false;

This seems to have caused the flakiness....
Comment 20 Myles C. Maxfield 2015-02-25 13:44:08 PST
Created attachment 247340 [details]
Patch
Comment 21 Myles C. Maxfield 2015-02-25 13:44:52 PST
I wasn't initializing the new state in RenderStyle upon creation.
Comment 22 Myles C. Maxfield 2015-02-25 16:44:31 PST
Comment on attachment 247340 [details]
Patch

I'll commit this tomorrow.
Comment 23 Myles C. Maxfield 2015-02-26 11:39:29 PST
Committed r180689: <http://trac.webkit.org/changeset/180689>
Comment 24 Radar WebKit Bug Importer 2015-03-03 16:18:15 PST
<rdar://problem/20030571>