Bug 115776

Summary: REGRESSION(r149700): fast/css-generated-content/close-quote-negative-depth.html
Product: WebKit Reporter: Ryosuke Niwa <rniwa>
Component: Layout and RenderingAssignee: Darin Adler <darin>
Status: RESOLVED FIXED    
Severity: Normal CC: andersca, ap, benjamin, buildbot, cmarcelo, commit-queue, darin, eflews.bot, esprehn+autocc, glenn, gtk-ews, gyuyoung.kim, kling, philn, rniwa, roger_fong, webkit-ews, xan.lopez
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch
none
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2
none
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion
none
Patch none

Ryosuke Niwa
Reported 2013-05-07 23:59:16 PDT
Attachments
Patch (39.75 KB, patch)
2013-05-08 00:36 PDT, Darin Adler
no flags
Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 (511.34 KB, application/zip)
2013-05-08 04:55 PDT, Build Bot
no flags
Archive of layout-test-results from webkit-ews-04 for mac-mountainlion (583.79 KB, application/zip)
2013-05-08 07:55 PDT, Build Bot
no flags
Patch (6.20 KB, patch)
2013-05-08 09:17 PDT, Darin Adler
no flags
Ryosuke Niwa
Comment 1 2013-05-08 00:05:08 PDT
Added a test expectation in http://trac.webkit.org/changeset/149715. Please remove it when you land a fix.
Darin Adler
Comment 2 2013-05-08 00:22:00 PDT
I’m fixing this along with other RenderQuote changes.
Darin Adler
Comment 3 2013-05-08 00:36:25 PDT
Early Warning System Bot
Comment 4 2013-05-08 00:44:07 PDT
Early Warning System Bot
Comment 5 2013-05-08 00:45:21 PDT
Darin Adler
Comment 6 2013-05-08 00:45:42 PDT
Not sure why the lower_bound code is not compiling on Qt. Anyone have ideas?
EFL EWS Bot
Comment 7 2013-05-08 00:46:56 PDT
EFL EWS Bot
Comment 8 2013-05-08 00:50:07 PDT
Darin Adler
Comment 9 2013-05-08 00:50:52 PDT
(In reply to comment #6) > Not sure why the lower_bound code is not compiling on Qt. Anyone have ideas? This code seems to work on Mac clang and library, but not elsewhere with different versions of gcc and the library. Here are my theories so far about why: 1) Maybe the comparator needs to be a namespace level struct and can't be a struct inside a function. 2) Maybe the type of quoteTable needs to be a pointer, not an array. 3) Maybe the type of the buffer argument needs to be a pointer, not an array. I don't have any other ideas.
Darin Adler
Comment 10 2013-05-08 00:55:42 PDT
Anders, I’d really like your comments on this in at least two dimensions: 1) Should I split this patch up? The rework of depth that fixes the regression is fairly easily separable from the rework of the per-language quote lookup. 2) What do you think of the algorithms I chose? In particular, do you think it's OK to use lower_bound and strcmp like this or should I do something different? I’d like to land this soon, but it might need some work.
Darin Adler
Comment 11 2013-05-08 00:56:42 PDT
I should dump that QUOTES_LANG macro and just initialize the array without using macro.
kov's GTK+ EWS bot
Comment 12 2013-05-08 00:57:25 PDT
Ryosuke Niwa
Comment 13 2013-05-08 01:22:56 PDT
Can we split the fix? It seems quite risky to do another refactoring & a bug fix in one patch given that r149700 and r149707 have already been quite massive.
Build Bot
Comment 14 2013-05-08 04:55:52 PDT
Comment on attachment 201036 [details] Patch Attachment 201036 [details] did not pass mac-wk2-ews (mac-wk2): Output: http://webkit-queues.appspot.com/results/408360 New failing tests: fast/css/content/content-quotes-06.html
Build Bot
Comment 15 2013-05-08 04:55:56 PDT
Created attachment 201059 [details] Archive of layout-test-results from webkit-ews-12 for mac-mountainlion-wk2 The attached test failures were seen while running run-webkit-tests on the mac-wk2-ews. Bot: webkit-ews-12 Port: mac-mountainlion-wk2 Platform: Mac OS X 10.8.2
Darin Adler
Comment 16 2013-05-08 07:32:14 PDT
Yes, I’ll put up a new patch with just the bug fix shortly.
Anders Carlsson
Comment 17 2013-05-08 07:51:20 PDT
(In reply to comment #10) > Anders, I’d really like your comments on this in at least two dimensions: > > 1) Should I split this patch up? The rework of depth that fixes the regression is fairly easily separable from the rework of the per-language quote lookup. Sounds like a good idea (and I think you're doing this already). > > 2) What do you think of the algorithms I chose? In particular, do you think it's OK to use lower_bound and strcmp like this or should I do something different? My plan was to just use bsearch - no need to inline all that std::lower_bound code. How about we rename quoteCharacterString to stringForQuoteCharacter? Looks great otherwise!
Anders Carlsson
Comment 18 2013-05-08 07:53:52 PDT
Oh, one more thing: I think the #if around the checkNumberOfDistinctQuoteCharacters definition should be !ASSERT_DISABLED.
Build Bot
Comment 19 2013-05-08 07:55:55 PDT
Comment on attachment 201036 [details] Patch Attachment 201036 [details] did not pass mac-ews (mac): Output: http://webkit-queues.appspot.com/results/408399 New failing tests: fast/css/content/content-quotes-06.html
Build Bot
Comment 20 2013-05-08 07:55:59 PDT
Created attachment 201074 [details] Archive of layout-test-results from webkit-ews-04 for mac-mountainlion The attached test failures were seen while running run-webkit-tests on the mac-ews. Bot: webkit-ews-04 Port: mac-mountainlion Platform: Mac OS X 10.8.2
Darin Adler
Comment 21 2013-05-08 09:17:17 PDT
WebKit Commit Bot
Comment 22 2013-05-08 11:53:38 PDT
Comment on attachment 201080 [details] Patch Clearing flags on attachment: 201080 Committed r149754: <http://trac.webkit.org/changeset/149754>
WebKit Commit Bot
Comment 23 2013-05-08 11:53:42 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.