Bug 55850 - Implement -hyphenate-limit-{before,after}
Summary: Implement -hyphenate-limit-{before,after}
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other OS X 10.5
: P2 Normal
Assignee: mitz
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2011-03-06 14:11 PST by mitz
Modified: 2011-03-06 14:45 PST (History)
1 user (show)

See Also:


Attachments
Parse, apply and respect -webkit-hyphenate-limit-{before,after} (65.44 KB, patch)
2011-03-06 14:20 PST, mitz
oliver: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mitz 2011-03-06 14:11:29 PST
Implement -hyphenate-limit-{before,after}
Comment 1 mitz 2011-03-06 14:12:02 PST
<rdar://problem/9093327>
Comment 2 mitz 2011-03-06 14:20:37 PST
Created attachment 84900 [details]
Parse, apply and respect -webkit-hyphenate-limit-{before,after}
Comment 3 WebKit Review Bot 2011-03-06 14:22:44 PST
Attachment 84900 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'LayoutTests/ChangeLog', u'LayoutTests/fast..." exit_code: 1

Source/WebCore/rendering/style/RenderStyle.cpp:408:  Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side.  [whitespace/operators] [4]
Source/WebCore/rendering/style/RenderStyle.cpp:409:  Boolean expressions that span multiple lines should have their operators on the left side of the line instead of the right side.  [whitespace/operators] [4]
Total errors found: 2 in 18 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 4 Oliver Hunt 2011-03-06 14:29:06 PST
Comment on attachment 84900 [details]
Parse, apply and respect -webkit-hyphenate-limit-{before,after}

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

r=me, but consider the short suggestion

> Source/WebCore/rendering/style/StyleRareInheritedData.h:90
> +    int hyphenationLimitBefore;
> +    int hyphenationLimitAfter;

It seems reasonable to just use shorts here -- i can't imagine needing a hyphenation limit > 8192, and we can save a word off of rare data
Comment 5 mitz 2011-03-06 14:30:58 PST
(In reply to comment #4)
> (From update of attachment 84900 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=84900&action=review
> 
> r=me, but consider the short suggestion
> 
> > Source/WebCore/rendering/style/StyleRareInheritedData.h:90
> > +    int hyphenationLimitBefore;
> > +    int hyphenationLimitAfter;
> 
> It seems reasonable to just use shorts here -- i can't imagine needing a hyphenation limit > 8192, and we can save a word off of rare data

Good idea. Just need to figure out the clamping. Thanks for the review!
Comment 6 mitz 2011-03-06 14:45:41 PST
Committed r80438.
<http://trac.webkit.org/changeset/80438>