Bug 115776 - REGRESSION(r149700): fast/css-generated-content/close-quote-negative-depth.html
Summary: REGRESSION(r149700): fast/css-generated-content/close-quote-negative-depth.html
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Layout and Rendering (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-07 23:59 PDT by Ryosuke Niwa
Modified: 2013-05-08 11:53 PDT (History)
18 users (show)

See Also:


Attachments
Patch (39.75 KB, patch)
2013-05-08 00:36 PDT, Darin Adler
no flags Details | Formatted Diff | Diff
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 Details
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 Details
Patch (6.20 KB, patch)
2013-05-08 09:17 PDT, Darin Adler
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ryosuke Niwa 2013-05-07 23:59:16 PDT
fast/css-generated-content/close-quote-negative-depth.html is still failing:

http://webkit-test-results.appspot.com/dashboards/flakiness_dashboard.html#tests=fast%2Fcss-generated-content%2Fclose-quote-negative-depth.html
Comment 1 Ryosuke Niwa 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.
Comment 2 Darin Adler 2013-05-08 00:22:00 PDT
I’m fixing this along with other RenderQuote changes.
Comment 3 Darin Adler 2013-05-08 00:36:25 PDT
Created attachment 201036 [details]
Patch
Comment 4 Early Warning System Bot 2013-05-08 00:44:07 PDT
Comment on attachment 201036 [details]
Patch

Attachment 201036 [details] did not pass qt-ews (qt):
Output: http://webkit-queues.appspot.com/results/342064
Comment 5 Early Warning System Bot 2013-05-08 00:45:21 PDT
Comment on attachment 201036 [details]
Patch

Attachment 201036 [details] did not pass qt-wk2-ews (qt-wk2):
Output: http://webkit-queues.appspot.com/results/318291
Comment 6 Darin Adler 2013-05-08 00:45:42 PDT
Not sure why the lower_bound code is not compiling on Qt. Anyone have ideas?
Comment 7 EFL EWS Bot 2013-05-08 00:46:56 PDT
Comment on attachment 201036 [details]
Patch

Attachment 201036 [details] did not pass efl-wk2-ews (efl-wk2):
Output: http://webkit-queues.appspot.com/results/420241
Comment 8 EFL EWS Bot 2013-05-08 00:50:07 PDT
Comment on attachment 201036 [details]
Patch

Attachment 201036 [details] did not pass efl-ews (efl):
Output: http://webkit-queues.appspot.com/results/329069
Comment 9 Darin Adler 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.
Comment 10 Darin Adler 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.
Comment 11 Darin Adler 2013-05-08 00:56:42 PDT
I should dump that QUOTES_LANG macro and just initialize the array without using macro.
Comment 12 kov's GTK+ EWS bot 2013-05-08 00:57:25 PDT
Comment on attachment 201036 [details]
Patch

Attachment 201036 [details] did not pass gtk-ews (gtk):
Output: http://webkit-queues.appspot.com/results/266239
Comment 13 Ryosuke Niwa 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.
Comment 14 Build Bot 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
Comment 15 Build Bot 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
Comment 16 Darin Adler 2013-05-08 07:32:14 PDT
Yes, I’ll put up a new patch with just the bug fix shortly.
Comment 17 Anders Carlsson 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!
Comment 18 Anders Carlsson 2013-05-08 07:53:52 PDT
Oh, one more thing: I think the #if around the checkNumberOfDistinctQuoteCharacters definition should be !ASSERT_DISABLED.
Comment 19 Build Bot 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
Comment 20 Build Bot 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
Comment 21 Darin Adler 2013-05-08 09:17:17 PDT
Created attachment 201080 [details]
Patch
Comment 22 WebKit Commit Bot 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>
Comment 23 WebKit Commit Bot 2013-05-08 11:53:42 PDT
All reviewed patches have been landed.  Closing bug.