Bug 55850

Summary: Implement -hyphenate-limit-{before,after}
Product: WebKit Reporter: mitz
Component: CSSAssignee: mitz
Status: RESOLVED FIXED    
Severity: Normal CC: webkit.review.bot
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: Other   
OS: OS X 10.5   
Attachments:
Description Flags
Parse, apply and respect -webkit-hyphenate-limit-{before,after} oliver: review+

mitz
Reported 2011-03-06 14:11:29 PST
Implement -hyphenate-limit-{before,after}
Attachments
Parse, apply and respect -webkit-hyphenate-limit-{before,after} (65.44 KB, patch)
2011-03-06 14:20 PST, mitz
oliver: review+
mitz
Comment 1 2011-03-06 14:12:02 PST
mitz
Comment 2 2011-03-06 14:20:37 PST
Created attachment 84900 [details] Parse, apply and respect -webkit-hyphenate-limit-{before,after}
WebKit Review Bot
Comment 3 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.
Oliver Hunt
Comment 4 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
mitz
Comment 5 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!
mitz
Comment 6 2011-03-06 14:45:41 PST
Note You need to log in before you can comment on or make changes to this bug.