RESOLVED FIXED 12490
Clean up canPlaceOnLine logic in bidi.cpp
https://bugs.webkit.org/show_bug.cgi?id=12490
Summary Clean up canPlaceOnLine logic in bidi.cpp
David Kilzer (:ddkilzer)
Reported 2007-01-30 21:46:28 PST
The logic for calculating canPlaceOnLine in bidi.cpp may be simplified. This is a follow-up to Bug 12423 Comment #21. A true table for your edification: auto Wrap Was will Ever Fit True On auto On [0] [1] [2] Line Wrap Line --- --- --- ---- ---- ------- T T T T T T T T T T T T (F) T T T T F T T T T T F F F F F F T T F F F F T T (F) T F F F F T T T T F F F [0] bool canFitOnLine = willFitOnLine || !autoWrap; [1] bool canFitOnLine = willFitOnLine || !autoWrap; if (!willFitOnLine && !autoWrap && autoWrapWasEverTrueOnLine) canFitOneLine = false; [2] bool canFitOnLine = willFitOnLine || !willFitOnLine && !autoWrapWasEverTrueOnLine;
Attachments
Patch v1 (1.35 KB, patch)
2007-01-30 21:49 PST, David Kilzer (:ddkilzer)
mitz: review+
David Kilzer (:ddkilzer)
Comment 1 2007-01-30 21:49:14 PST
Created attachment 12818 [details] Patch v1 Proposed change.
David Kilzer (:ddkilzer)
Comment 2 2007-01-30 21:50:13 PST
(In reply to comment #0) > A true table for your edification: TRUTH table, even!
mitz
Comment 3 2007-01-30 23:10:33 PST
Comment on attachment 12818 [details] Patch v1 r=me
David Kilzer (:ddkilzer)
Comment 4 2007-01-31 05:11:32 PST
Committed revision 19300.
mitz
Comment 5 2007-01-31 05:15:26 PST
(In reply to comment #4) > Committed revision 19300. Oops, I overlooked that the change log did not mention the bug URL. Dave, could you please add it?
David Kilzer (:ddkilzer)
Comment 6 2007-01-31 05:22:08 PST
(In reply to comment #5) > Oops, I overlooked that the change log did not mention the bug URL. Dave, could > you please add it? Good catch! You know, something didn't look right when I committed it, but I couldn't figure out what it was. Committed r19301.
Note You need to log in before you can comment on or make changes to this bug.