WebKit-https.git
11 years ago2010-06-24 Leandro Pereira <leandro@profusion.mobi>
leandro@webkit.org [Thu, 24 Jun 2010 15:09:27 +0000 (15:09 +0000)]
2010-06-24  Leandro Pereira  <leandro@profusion.mobi>

        Unreviewed build fix.

        * CMakeLists.txt: Add JSParser.cpp.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61763 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoWindows build fix
aroben@apple.com [Thu, 24 Jun 2010 14:41:24 +0000 (14:41 +0000)]
Windows build fix

Fixes <http://webkit.org/b/41158>.

Reviewed by Anders Carlsson.

* Shared/win/UpdateChunk.cpp: Updated header name.

* UIProcess/Plugins/win/PluginInfoStoreWin.cpp: Added.
(WebKit::PluginInfoStore::pluginDirectories):
(WebKit::PluginInfoStore::pluginPathsInDirectory):
(WebKit::PluginInfoStore::getPluginInfo):
(WebKit::PluginInfoStore::shouldUsePlugin):
Stubbed these out.

* win/WebKit2.vcproj: Added UIProcess/Plugins to the include path for
all configurations. Added UIProcess/Plugins files to the project.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61762 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Thu, 24 Jun 2010 13:46:49 +0000 (13:46 +0000)]
2010-06-23  Stephen White  <senorblanco@chromium.org>

        Unreviewed; expectations fix.

        This updates the pixel test baselines after r61710, and removes
        them from test_expectations.txt.

        * platform/chromium-linux/css2.1/t090501-c414-flt-03-b-g-expected.checksum:
        * platform/chromium-linux/css2.1/t090501-c414-flt-03-b-g-expected.png:
        * platform/chromium-linux/css2.1/t090501-c5525-flt-l-00-b-g-expected.checksum:
        * platform/chromium-linux/css2.1/t090501-c5525-flt-l-00-b-g-expected.png:
        * platform/chromium-linux/css2.1/t090501-c5525-flt-r-00-b-g-expected.checksum:
        * platform/chromium-linux/css2.1/t090501-c5525-flt-r-00-b-g-expected.png:
        * platform/chromium-linux/fast/backgrounds/size/backgroundSize11-expected.checksum: Removed.
        * platform/chromium-linux/fast/backgrounds/size/backgroundSize15-expected.checksum:
        * platform/chromium-linux/fast/backgrounds/size/backgroundSize15-expected.png:
        * platform/chromium-linux/fast/backgrounds/size/backgroundSize16-expected.checksum:
        * platform/chromium-linux/fast/backgrounds/size/backgroundSize16-expected.png:
        * platform/chromium-linux/fast/backgrounds/size/backgroundSize19-expected.checksum: Removed.
        * platform/chromium-linux/fast/backgrounds/size/backgroundSize22-expected.checksum: Removed.
        * platform/chromium-linux/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.checksum: Added.
        * platform/chromium-linux/fast/css/value-list-out-of-bounds-crash-expected.checksum:
        * platform/chromium-linux/fast/events/pointer-events-2-expected.checksum:
        * platform/chromium-linux/fast/events/pointer-events-2-expected.png:
        * platform/chromium-linux/fast/forms/input-type-change-expected.checksum:
        * platform/chromium-linux/fast/forms/input-type-change-expected.png:
        * platform/chromium-linux/fast/replaced/absolute-image-sizing-expected.checksum:
        * platform/chromium-linux/fast/replaced/absolute-image-sizing-expected.png:
        * platform/chromium-linux/fast/replaced/image-sizing-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug101674-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug101674-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug11026-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug1188-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug1188-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug1296-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug1430-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug1430-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug14929-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug14929-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug15544-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug2981-2-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug2981-2-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug4093-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug4093-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug4284-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug4427-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug4427-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug56563-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug625-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug625-expected.png:
        * platform/chromium-linux/tables/mozilla/bugs/bug6404-expected.checksum:
        * platform/chromium-linux/tables/mozilla/bugs/bug6404-expected.png:
        * platform/chromium-linux/tables/mozilla/core/bloomberg-expected.checksum:
        * platform/chromium-linux/tables/mozilla/core/bloomberg-expected.png:
        * platform/chromium-linux/tables/mozilla/core/col_widths_auto_autoFix-expected.checksum:
        * platform/chromium-linux/tables/mozilla/core/misc-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tbody_valign_baseline-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tbody_valign_bottom-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tbody_valign_middle-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tbody_valign_top-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/td_valign_baseline-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/td_valign_bottom-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/td_valign_middle-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/td_valign_top-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tfoot_valign_baseline-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tfoot_valign_bottom-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tfoot_valign_middle-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tfoot_valign_top-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/th_valign_baseline-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/th_valign_bottom-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/th_valign_middle-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/th_valign_top-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/thead_valign_baseline-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/thead_valign_bottom-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/thead_valign_middle-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/thead_valign_top-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tr_valign_baseline-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tr_valign_bottom-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tr_valign_middle-expected.checksum:
        * platform/chromium-linux/tables/mozilla/marvin/tr_valign_top-expected.checksum:
        * platform/chromium-linux/tables/mozilla/other/cell_widths-expected.checksum:
        * platform/chromium-linux/tables/mozilla/other/cell_widths-expected.png:
        * platform/chromium-linux/tables/mozilla_expected_failures/bugs/97619-expected.checksum:
        * platform/chromium-linux/tables/mozilla_expected_failures/bugs/97619-expected.png:
        * platform/chromium-linux/tables/mozilla_expected_failures/bugs/bug6933-expected.checksum:
        * platform/chromium-win/css2.1/t090501-c414-flt-03-b-g-expected.checksum:
        * platform/chromium-win/css2.1/t090501-c414-flt-03-b-g-expected.png:
        * platform/chromium-win/css2.1/t090501-c5525-flt-l-00-b-g-expected.checksum:
        * platform/chromium-win/css2.1/t090501-c5525-flt-l-00-b-g-expected.png:
        * platform/chromium-win/css2.1/t090501-c5525-flt-r-00-b-g-expected.checksum:
        * platform/chromium-win/css2.1/t090501-c5525-flt-r-00-b-g-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize01-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize01-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize02-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize02-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize04-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize04-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize05-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize05-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize06-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize06-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize07-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize07-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize08-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize08-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize09-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize09-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize10-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize10-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize11-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize11-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize12-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize12-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize13-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize13-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize14-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize14-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize15-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize15-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize16-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize16-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize17-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize17-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize18-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize18-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize19-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize19-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize20-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize20-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize21-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize21-expected.png:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize22-expected.checksum:
        * platform/chromium-win/fast/backgrounds/size/backgroundSize22-expected.png:
        * platform/chromium-win/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.checksum:
        * platform/chromium-win/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.png:
        * platform/chromium-win/fast/css/value-list-out-of-bounds-crash-expected.checksum:
        * platform/chromium-win/fast/css/value-list-out-of-bounds-crash-expected.png:
        * platform/chromium-win/fast/events/pointer-events-2-expected.checksum:
        * platform/chromium-win/fast/events/pointer-events-2-expected.png:
        * platform/chromium-win/fast/forms/input-type-change-expected.checksum:
        * platform/chromium-win/fast/forms/input-type-change-expected.png:
        * platform/chromium-win/fast/replaced/absolute-image-sizing-expected.checksum:
        * platform/chromium-win/fast/replaced/absolute-image-sizing-expected.png:
        * platform/chromium-win/fast/replaced/image-sizing-expected.checksum:
        * platform/chromium-win/fast/replaced/image-sizing-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug101674-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug101674-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug11026-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug11026-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug1188-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug1188-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug1296-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug1296-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug1430-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug1430-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug14929-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug14929-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug15544-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug15544-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug2981-2-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug2981-2-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug4093-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug4093-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug4284-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug4284-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug4427-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug4427-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug56563-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug56563-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug625-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug625-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug6404-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug6404-expected.png:
        * platform/chromium-win/tables/mozilla/bugs/bug97383-expected.checksum:
        * platform/chromium-win/tables/mozilla/bugs/bug97383-expected.png:
        * platform/chromium-win/tables/mozilla/core/bloomberg-expected.checksum:
        * platform/chromium-win/tables/mozilla/core/bloomberg-expected.png:
        * platform/chromium-win/tables/mozilla/core/col_widths_auto_autoFix-expected.checksum:
        * platform/chromium-win/tables/mozilla/core/col_widths_auto_autoFix-expected.png:
        * platform/chromium-win/tables/mozilla/core/misc-expected.checksum:
        * platform/chromium-win/tables/mozilla/core/misc-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tbody_valign_baseline-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tbody_valign_baseline-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tbody_valign_bottom-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tbody_valign_bottom-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tbody_valign_middle-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tbody_valign_middle-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tbody_valign_top-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tbody_valign_top-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/td_valign_baseline-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/td_valign_baseline-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/td_valign_bottom-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/td_valign_bottom-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/td_valign_middle-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/td_valign_middle-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/td_valign_top-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/td_valign_top-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tfoot_valign_baseline-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tfoot_valign_baseline-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tfoot_valign_bottom-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tfoot_valign_bottom-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tfoot_valign_middle-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tfoot_valign_middle-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tfoot_valign_top-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tfoot_valign_top-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/th_valign_baseline-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/th_valign_baseline-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/th_valign_bottom-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/th_valign_bottom-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/th_valign_middle-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/th_valign_middle-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/th_valign_top-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/th_valign_top-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/thead_valign_baseline-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/thead_valign_baseline-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/thead_valign_bottom-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/thead_valign_bottom-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/thead_valign_middle-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/thead_valign_middle-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/thead_valign_top-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/thead_valign_top-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tr_valign_baseline-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tr_valign_baseline-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tr_valign_bottom-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tr_valign_bottom-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tr_valign_middle-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tr_valign_middle-expected.png:
        * platform/chromium-win/tables/mozilla/marvin/tr_valign_top-expected.checksum:
        * platform/chromium-win/tables/mozilla/marvin/tr_valign_top-expected.png:
        * platform/chromium-win/tables/mozilla/other/cell_widths-expected.checksum:
        * platform/chromium-win/tables/mozilla/other/cell_widths-expected.png:
        * platform/chromium-win/tables/mozilla_expected_failures/bugs/97619-expected.checksum:
        * platform/chromium-win/tables/mozilla_expected_failures/bugs/97619-expected.png:
        * platform/chromium-win/tables/mozilla_expected_failures/bugs/bug6933-expected.checksum:
        * platform/chromium-win/tables/mozilla_expected_failures/bugs/bug6933-expected.png:
        * platform/chromium/test_expectations.txt:
        * platform/mac/css2.1/t0804-c5510-padn-00-b-ag-expected.checksum:
        * platform/mac/css2.1/t0804-c5510-padn-00-b-ag-expected.png:
        * platform/mac/css2.1/t0905-c414-flt-01-d-g-expected.checksum:
        * platform/mac/css2.1/t0905-c414-flt-01-d-g-expected.png:
        * platform/mac/css2.1/t090501-c414-flt-02-d-g-expected.checksum:
        * platform/mac/css2.1/t090501-c414-flt-02-d-g-expected.png:
        * platform/mac/css2.1/t090501-c414-flt-03-b-g-expected.checksum:
        * platform/mac/css2.1/t090501-c414-flt-03-b-g-expected.png:
        * platform/mac/css2.1/t090501-c414-flt-ln-01-d-g-expected.checksum:
        * platform/mac/css2.1/t090501-c414-flt-ln-01-d-g-expected.png:
        * platform/mac/css2.1/t090501-c5525-flt-l-00-b-g-expected.checksum:
        * platform/mac/css2.1/t090501-c5525-flt-l-00-b-g-expected.png:
        * platform/mac/css2.1/t090501-c5525-flt-r-00-b-g-expected.checksum:
        * platform/mac/css2.1/t090501-c5525-flt-r-00-b-g-expected.png:
        * platform/mac/css2.1/t100304-c43-rpl-bbx-00-d-g-expected.checksum:
        * platform/mac/css2.1/t100304-c43-rpl-bbx-00-d-g-expected.png:
        * platform/mac/css2.1/t100304-c43-rpl-bbx-01-d-g-expected.checksum:
        * platform/mac/css2.1/t100304-c43-rpl-bbx-01-d-g-expected.png:
        * platform/mac/css2.1/t1004-c5524-width-00-b-g-expected.checksum:
        * platform/mac/css2.1/t1004-c5524-width-00-b-g-expected.png:
        * platform/mac/css2.1/t100801-c544-valgn-02-d-agi-expected.checksum:
        * platform/mac/css2.1/t100801-c544-valgn-02-d-agi-expected.png:
        * platform/mac/css2.1/t100801-c544-valgn-03-d-agi-expected.checksum:
        * platform/mac/css2.1/t100801-c544-valgn-03-d-agi-expected.png:
        * platform/mac/css2.1/t100801-c544-valgn-04-d-agi-expected.checksum:
        * platform/mac/css2.1/t100801-c544-valgn-04-d-agi-expected.png:
        * platform/mac/fast/backgrounds/repeat/mask-negative-offset-repeat-expected.checksum:
        * platform/mac/fast/backgrounds/repeat/mask-negative-offset-repeat-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize01-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize01-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize05-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize05-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize06-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize06-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize07-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize07-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize08-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize08-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize09-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize09-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize10-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize10-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize11-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize11-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize12-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize12-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize16-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize16-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize17-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize17-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize18-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize18-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize19-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize19-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize20-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize20-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize21-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize21-expected.png:
        * platform/mac/fast/backgrounds/size/backgroundSize22-expected.checksum:
        * platform/mac/fast/backgrounds/size/backgroundSize22-expected.png:
        * platform/mac/fast/backgrounds/size/zero-expected.checksum:
        * platform/mac/fast/backgrounds/size/zero-expected.png:
        * platform/mac/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.checksum:
        * platform/mac/fast/block/positioning/replaced-inside-fixed-top-bottom-expected.png:
        * platform/mac/fast/canvas/canvas-as-image-expected.checksum:
        * platform/mac/fast/canvas/canvas-as-image-expected.png:
        * platform/mac/fast/css/value-list-out-of-bounds-crash-expected.checksum:
        * platform/mac/fast/css/value-list-out-of-bounds-crash-expected.png:
        * platform/mac/fast/forms/input-type-change-expected.checksum:
        * platform/mac/fast/forms/input-type-change-expected.png:
        * platform/mac/fast/replaced/001-expected.checksum:
        * platform/mac/fast/replaced/001-expected.png:
        * platform/mac/fast/replaced/002-expected.checksum:
        * platform/mac/fast/replaced/002-expected.png:
        * platform/mac/fast/replaced/003-expected.checksum:
        * platform/mac/fast/replaced/003-expected.png:
        * platform/mac/fast/replaced/absolute-image-sizing-expected.checksum:
        * platform/mac/fast/replaced/absolute-image-sizing-expected.png:
        * platform/mac/fast/replaced/image-sizing-expected.checksum:
        * platform/mac/fast/replaced/image-sizing-expected.png:
        * platform/mac/tables/mozilla/bugs/bug11026-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug11026-expected.png:
        * platform/mac/tables/mozilla/bugs/bug1188-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug1188-expected.png:
        * platform/mac/tables/mozilla/bugs/bug1296-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug1296-expected.png:
        * platform/mac/tables/mozilla/bugs/bug1430-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug1430-expected.png:
        * platform/mac/tables/mozilla/bugs/bug14929-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug14929-expected.png:
        * platform/mac/tables/mozilla/bugs/bug15544-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug15544-expected.png:
        * platform/mac/tables/mozilla/bugs/bug23235-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug23235-expected.png:
        * platform/mac/tables/mozilla/bugs/bug2981-2-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug2981-2-expected.png:
        * platform/mac/tables/mozilla/bugs/bug4093-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug4093-expected.png:
        * platform/mac/tables/mozilla/bugs/bug4284-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug4284-expected.png:
        * platform/mac/tables/mozilla/bugs/bug4427-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug4427-expected.png:
        * platform/mac/tables/mozilla/bugs/bug4523-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug4523-expected.png:
        * platform/mac/tables/mozilla/bugs/bug56563-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug56563-expected.png:
        * platform/mac/tables/mozilla/bugs/bug6404-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug6404-expected.png:
        * platform/mac/tables/mozilla/bugs/bug86708-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug86708-expected.png:
        * platform/mac/tables/mozilla/bugs/bug97383-expected.checksum:
        * platform/mac/tables/mozilla/bugs/bug97383-expected.png:
        * platform/mac/tables/mozilla/core/col_widths_auto_autoFix-expected.checksum:
        * platform/mac/tables/mozilla/core/col_widths_auto_autoFix-expected.png:
        * platform/mac/tables/mozilla/core/misc-expected.checksum:
        * platform/mac/tables/mozilla/core/misc-expected.png:
        * platform/mac/tables/mozilla/marvin/tbody_valign_baseline-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tbody_valign_baseline-expected.png:
        * platform/mac/tables/mozilla/marvin/tbody_valign_bottom-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tbody_valign_bottom-expected.png:
        * platform/mac/tables/mozilla/marvin/tbody_valign_middle-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tbody_valign_middle-expected.png:
        * platform/mac/tables/mozilla/marvin/tbody_valign_top-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tbody_valign_top-expected.png:
        * platform/mac/tables/mozilla/marvin/td_valign_baseline-expected.checksum:
        * platform/mac/tables/mozilla/marvin/td_valign_baseline-expected.png:
        * platform/mac/tables/mozilla/marvin/td_valign_bottom-expected.checksum:
        * platform/mac/tables/mozilla/marvin/td_valign_bottom-expected.png:
        * platform/mac/tables/mozilla/marvin/td_valign_middle-expected.checksum:
        * platform/mac/tables/mozilla/marvin/td_valign_middle-expected.png:
        * platform/mac/tables/mozilla/marvin/td_valign_top-expected.checksum:
        * platform/mac/tables/mozilla/marvin/td_valign_top-expected.png:
        * platform/mac/tables/mozilla/marvin/tfoot_valign_baseline-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tfoot_valign_baseline-expected.png:
        * platform/mac/tables/mozilla/marvin/tfoot_valign_bottom-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tfoot_valign_bottom-expected.png:
        * platform/mac/tables/mozilla/marvin/tfoot_valign_middle-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tfoot_valign_middle-expected.png:
        * platform/mac/tables/mozilla/marvin/tfoot_valign_top-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tfoot_valign_top-expected.png:
        * platform/mac/tables/mozilla/marvin/th_valign_baseline-expected.checksum:
        * platform/mac/tables/mozilla/marvin/th_valign_baseline-expected.png:
        * platform/mac/tables/mozilla/marvin/th_valign_bottom-expected.checksum:
        * platform/mac/tables/mozilla/marvin/th_valign_bottom-expected.png:
        * platform/mac/tables/mozilla/marvin/th_valign_middle-expected.checksum:
        * platform/mac/tables/mozilla/marvin/th_valign_middle-expected.png:
        * platform/mac/tables/mozilla/marvin/th_valign_top-expected.checksum:
        * platform/mac/tables/mozilla/marvin/th_valign_top-expected.png:
        * platform/mac/tables/mozilla/marvin/thead_valign_baseline-expected.checksum:
        * platform/mac/tables/mozilla/marvin/thead_valign_baseline-expected.png:
        * platform/mac/tables/mozilla/marvin/thead_valign_bottom-expected.checksum:
        * platform/mac/tables/mozilla/marvin/thead_valign_bottom-expected.png:
        * platform/mac/tables/mozilla/marvin/thead_valign_middle-expected.checksum:
        * platform/mac/tables/mozilla/marvin/thead_valign_middle-expected.png:
        * platform/mac/tables/mozilla/marvin/thead_valign_top-expected.checksum:
        * platform/mac/tables/mozilla/marvin/thead_valign_top-expected.png:
        * platform/mac/tables/mozilla/marvin/tr_valign_baseline-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tr_valign_baseline-expected.png:
        * platform/mac/tables/mozilla/marvin/tr_valign_bottom-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tr_valign_bottom-expected.png:
        * platform/mac/tables/mozilla/marvin/tr_valign_middle-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tr_valign_middle-expected.png:
        * platform/mac/tables/mozilla/marvin/tr_valign_top-expected.checksum:
        * platform/mac/tables/mozilla/marvin/tr_valign_top-expected.png:
        * platform/mac/tables/mozilla_expected_failures/bugs/97619-expected.checksum:
        * platform/mac/tables/mozilla_expected_failures/bugs/97619-expected.png:
        * platform/mac/tables/mozilla_expected_failures/bugs/bug6933-expected.checksum:
        * platform/mac/tables/mozilla_expected_failures/bugs/bug6933-expected.png:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61761 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed. Build fix for Tiger.
tkent@chromium.org [Thu, 24 Jun 2010 12:57:11 +0000 (12:57 +0000)]
Unreviewed. Build fix for Tiger.

* platform/mac/ThemeMac.mm:
(WebCore::setControlSize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61760 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-24 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Thu, 24 Jun 2010 12:38:03 +0000 (12:38 +0000)]
2010-06-24  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Dirk Schulze.

        Inspector & SVG Text have problems, kids of RenderSVGText are not properly placed.
        https://bugs.webkit.org/show_bug.cgi?id=41143

        Simplify code path taken for SVG text in InspectorController, take the code path currently only used for RenderInline,
        that just calls absoluteQuads(), and displays the result. Refactored code that all SVG renderers (except RenderSVGRoot)
        take this code path -> highlighting now works as expected.

        Don't use absoluteClippedOverlowRect() in the various RenderSVG*::absoluteQuads() methods, as we're loosing floating-point precision.
        Instead use localToAbsoluteQuad(strokeBoundingBox()) in order to highlight the unclipped, unfiltered, etc.. region that this renderer would paint.

        No new tests, as this is only manual testable - at least I didn't find any Inspector-Highlighting tests, if someone knows please mail me.

        * inspector/InspectorController.cpp:
        (WebCore::drawHighlightForLineBoxesOrSVGRenderer):
        (WebCore::InspectorController::drawNodeHighlight):
        * rendering/RenderSVGBlock.cpp:
        (WebCore::RenderSVGBlock::absoluteRects): ASSERT_NOT_REACHED() here. SVG should only be inspected through absoluteQuads().
        * rendering/RenderSVGBlock.h: Add absoluteRects() in this base class for RenderForeignObject/RenderSVGText.
        * rendering/RenderSVGHiddenContainer.cpp: Remove absoluteRects() - RenderSVGModelObject already has it.
        * rendering/RenderSVGHiddenContainer.h: Ditto.
        * rendering/RenderSVGImage.cpp:
        (WebCore::RenderSVGImage::absoluteRects): ASSERT_NOT_REACHED() here.
        (WebCore::RenderSVGImage::absoluteQuads): Don't use absoluteClippedOverlowRect() but localToAbsoluteQuad(repaintRectInLocalCoordinates()).
        * rendering/RenderSVGImage.h:
        (WebCore::RenderSVGImage::objectBoundingBox): Inlined
        * rendering/RenderSVGInline.cpp:
        (WebCore::RenderSVGInline::absoluteQuads): Take RenderSVGText translation into account, allows inspecting <tspan>/<tref> etc.
        * rendering/RenderSVGInline.h:
        * rendering/RenderSVGModelObject.cpp:
        (WebCore::RenderSVGModelObject::absoluteRects): ASSERT_NOT_REACHED() here.
        (WebCore::RenderSVGModelObject::absoluteQuads): Don't use absoluteClippedOverlowRect() but localToAbsoluteQuad(repaintRectInLocalCoordinates()).
        * rendering/RenderSVGModelObject.h:
        * rendering/RenderSVGRoot.cpp: Fix typo in license s/aint/along. Need to touch this file in order to let Mac build.
        * rendering/RenderSVGText.cpp:
        (WebCore::RenderSVGText::mapLocalToContainer): Remove hack, which moved the transformState by x()/y(). Not needed anymore.
        (WebCore::RenderSVGText::absoluteQuads): Proper implementation, respecting x/y translation.
        * rendering/RenderSVGText.h: Reorder some functions.
        * rendering/SVGRenderSupport.h: Removed last virtual function strokeBoundingBox().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61759 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-24 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Thu, 24 Jun 2010 12:36:18 +0000 (12:36 +0000)]
2010-06-24  Kent Tamura  <tkent@chromium.org>

        Unreviewed. Build fix for Tiger.

        * platform/mac/ThemeMac.mm:
        (WebCore::setControlSize):
        (WebCore::ThemeMac::inflateControlPaintRect):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61758 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed typo fix after r61754.
ossy@webkit.org [Thu, 24 Jun 2010 12:24:29 +0000 (12:24 +0000)]
Unreviewed typo fix after r61754.

* platform/qt/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61757 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-24 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Thu, 24 Jun 2010 12:02:37 +0000 (12:02 +0000)]
2010-06-24  Kent Tamura  <tkent@chromium.org>

        Unreviewed.  Build fix for Chromium Mac.

        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::isSpeechEnabled):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61756 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed Symbian build fix.
hausmann@webkit.org [Thu, 24 Jun 2010 12:00:25 +0000 (12:00 +0000)]
Unreviewed Symbian build fix.

The QML WebKit integration needs to be part of QtWebKit.sis

WebCore:

* WebCore.pro: Deploy qmlwebkitplugin.dll.

WebKit/qt:

* declarative/declarative.pro: Removed non-working deployment.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61755 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[Qt] Regression(r61749): inspector/debugger-pause-on-debugger-statement.html fails
ossy@webkit.org [Thu, 24 Jun 2010 11:46:03 +0000 (11:46 +0000)]
[Qt] Regression(r61749): inspector/debugger-pause-on-debugger-statement.html fails
https://bugs.webkit.org/show_bug.cgi?id=41147

* platform/qt/Skipped: inspector/debugger-pause-on-debugger-statement.html skipped.
* platform/qt-linux/Skipped: revert last change, because we only use the general platform/qt/Skipped list.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61754 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-24 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Thu, 24 Jun 2010 11:32:51 +0000 (11:32 +0000)]
2010-06-24  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed: disable new inspector test on Qt linux.

        * platform/qt-linux/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61753 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-24 Satish Sampath <satish@chromium.org>
jorlow@chromium.org [Thu, 24 Jun 2010 10:40:28 +0000 (10:40 +0000)]
2010-06-24  Satish Sampath  <satish@chromium.org>

        Reviewed by Kent Tamura.

        Add a speech button to input elements, no rendering or actions yet.

        Speech Input: Add a speech button to text input element (no rendering or actions yet)
        https://bugs.webkit.org/show_bug.cgi?id=40925

        No new tests. Will create a layout test in a subsequent patch.

        * css/CSSPrimitiveValueMappings.h:
        (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
        * css/CSSSelector.cpp:
        (WebCore::CSSSelector::pseudoId):
        (WebCore::nameToPseudoTypeMap):
        (WebCore::CSSSelector::extractPseudoType):
        * css/CSSSelector.h:
        (WebCore::CSSSelector::):
        * css/CSSValueKeywords.in:
        * css/html.css:
        (input::-webkit-input-speech-button):
        * dom/InputElement.h:
        * html/HTMLAttributeNames.in:
        * html/HTMLInputElement.cpp:
        (WebCore::HTMLInputElement::isSpeechEnabled):
        * html/HTMLInputElement.h:
        * platform/ThemeTypes.h:
        (WebCore::):
        * rendering/RenderTextControlSingleLine.cpp:
        (WebCore::RenderTextControlSingleLine::nodeAtPoint):
        (WebCore::RenderTextControlSingleLine::forwardEvent):
        (WebCore::RenderTextControlSingleLine::styleDidChange):
        (WebCore::RenderTextControlSingleLine::hasControlClip):
        (WebCore::RenderTextControlSingleLine::controlClipRect):
        (WebCore::RenderTextControlSingleLine::textBlockWidth):
        (WebCore::RenderTextControlSingleLine::preferredContentWidth):
        (WebCore::RenderTextControlSingleLine::adjustControlHeightBasedOnLineHeight):
        (WebCore::RenderTextControlSingleLine::createSubtreeIfNeeded):
        (WebCore::RenderTextControlSingleLine::createSpeechButtonStyle):
        (WebCore::RenderTextControlSingleLine::clientPaddingRight):
        * rendering/RenderTextControlSingleLine.h:
        * rendering/RenderTheme.cpp:
        (WebCore::RenderTheme::adjustStyle):
        (WebCore::RenderTheme::paint):
        (WebCore::RenderTheme::paintBorderOnly):
        (WebCore::RenderTheme::paintDecorations):
        * rendering/TextControlInnerElements.cpp:
        (WebCore::InputFieldSpeechButtonElement::InputFieldSpeechButtonElement):
        (WebCore::InputFieldSpeechButtonElement::create):
        (WebCore::InputFieldSpeechButtonElement::defaultEventHandler):
        * rendering/TextControlInnerElements.h:
        * rendering/style/RenderStyleConstants.h:
        (WebCore::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61752 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[Mac] The upper button of <input type=number> has no visual effect on click
tkent@chromium.org [Thu, 24 Jun 2010 10:07:53 +0000 (10:07 +0000)]
[Mac] The upper button of <input type=number> has no visual effect on click
https://bugs.webkit.org/show_bug.cgi?id=38380

Reviewed by Adam Barth.

WebCore:

Because we have no ways to draw an NSStepperCell with its up button
highlighted, use HIThemeDrawButton() instead.

Test: platform/mac/fast/forms/input-appearance-spinbutton-up.html

* platform/mac/ThemeMac.mm:
(WebCore::controlSizeFromPixelSize):
  New function. Made from a part of setControlSize().
(WebCore::setControlSize):
(WebCore::convertControlStatesToThemeDrawState):
(WebCore::paintStepper): Use HITheme API instead of NSStepperCell.
(WebCore::ThemeMac::inflateControlPaintRect):
  Use controlSizeFromPixelSize().

LayoutTests:

* platform/mac/fast/forms/input-appearance-spinbutton-expected.checksum:
* platform/mac/fast/forms/input-appearance-spinbutton-expected.png:
* platform/mac/fast/forms/input-appearance-spinbutton-up-expected.checksum: Added.
* platform/mac/fast/forms/input-appearance-spinbutton-up-expected.png: Added.
* platform/mac/fast/forms/input-appearance-spinbutton-up-expected.txt: Added.
* platform/mac/fast/forms/input-appearance-spinbutton-up.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61751 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoSingle character string replacement may replace too many characters
oliver@apple.com [Thu, 24 Jun 2010 09:11:04 +0000 (09:11 +0000)]
Single character string replacement may replace too many characters
https://bugs.webkit.org/show_bug.cgi?id=41138
<rdar://problem/8097496>

Reviewed by Maciej Stachowiak.

Simple fix to stop the rope path of single character replacement
once the first replacement occurs.

* runtime/JSString.cpp:
(JSC::JSString::replaceCharacter):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61750 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-24 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Thu, 24 Jun 2010 09:01:11 +0000 (09:01 +0000)]
2010-06-24  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: implement layout tests for debugger
        https://bugs.webkit.org/show_bug.cgi?id=40774

        * http/tests/inspector/inspector-test.js:
        (notifyDone):
        (frontend_showPanel):
        (frontend_addSniffer.receiver.methodName):
        (frontend_addSniffer):
        (frontend_createKeyEvent):
        (frontend_evaluateInConsole):
        * inspector/debugger-pause-on-debugger-statement-expected.txt: Added.
        * inspector/debugger-pause-on-debugger-statement.html: Added.
2010-06-24  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: implement layout tests for debugger
        https://bugs.webkit.org/show_bug.cgi?id=40774

        Test: inspector/debugger-pause-on-debugger-statement.html

        * bindings/js/ScriptDebugServer.cpp: remove unused obsolete code that deals with global listeners.
        (WebCore::ScriptDebugServer::ScriptDebugServer):
        (WebCore::ScriptDebugServer::removeListener):
        (WebCore::ScriptDebugServer::dispatchFunctionToListeners):
        (WebCore::ScriptDebugServer::pauseIfNeeded):
        (WebCore::ScriptDebugServer::didAddListener):
        (WebCore::ScriptDebugServer::didRemoveListener):
        * bindings/js/ScriptDebugServer.h:
        * platform/mac/EventLoopMac.mm:
        (WebCore::EventLoop::cycle): wait at most 10ms for new event, otherwise layout tests would
        hang because in their case there may be no events ever.
2010-06-24  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: implement layout tests for debugger
        https://bugs.webkit.org/show_bug.cgi?id=40774

        * src/WebDevToolsFrontendImpl.cpp:
        (WebKit::WebDevToolsFrontendImpl::WebDevToolsFrontendImpl):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61749 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-24 Andrey Kosyakov <caseq@chromium.org>
yurys@chromium.org [Thu, 24 Jun 2010 08:57:02 +0000 (08:57 +0000)]
2010-06-24  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        Added tests for representation of various JS values in console log.
        https://bugs.webkit.org/show_bug.cgi?id=40980

        * inspector/console-log-native-funcs-expected.txt: Added.
        * inspector/console-tests-expected.txt:
        * inspector/console-tests.html:
        * platform/chromium/inspector: Added.
        * platform/chromium/inspector/console-log-native-funcs-expected.txt: Added.
2010-06-24  Andrey Kosyakov  <caseq@chromium.org>

        Reviewed by Yury Semikhatsky.

        Fixed evaluation & logging of null values in console.
        Changed handling of null and undefined in ScriptValue::toString()
        to match JSC bindings (i.e. "null" and "undefined" instead of "").
        https://bugs.webkit.org/show_bug.cgi?id=40980

        * bindings/v8/ScriptValue.cpp:
        (WebCore::ScriptValue::toString):
        * inspector/front-end/InjectedScript.js:
        (injectedScriptConstructor):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61748 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-24 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Thu, 24 Jun 2010 08:52:24 +0000 (08:52 +0000)]
2010-06-24  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: live edit doesn't work when resource tracking is off
        https://bugs.webkit.org/show_bug.cgi?id=41076

        * inspector/front-end/ScriptView.js:
        (WebInspector.ScriptView.prototype._sourceIDForLine): implement this method for ScriptView,
        it's needed for editLine to work.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61747 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUpdate test results for IDL hidden attribute
mjs@apple.com [Thu, 24 Jun 2010 07:51:24 +0000 (07:51 +0000)]
Update test results for IDL hidden attribute
(added for https://bugs.webkit.org/show_bug.cgi?id=41039)

Reviewed by Oliver.

* fast/dom/domListEnumeration.html: Update some counts since the HTMLFormElement
and HTMLSelectElement interfaces now inherit the new hidden IDL attribute.
* fast/dom/domListEnumeration-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61746 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoFix the length of instruction stream controlled by constant pool
loki@webkit.org [Thu, 24 Jun 2010 07:48:37 +0000 (07:48 +0000)]
Fix the length of instruction stream controlled by constant pool
https://bugs.webkit.org/show_bug.cgi?id=40293

Reviewed by Gavin Barraclough.

The initial/maximum length of instruction stream (m_maxDistance) should
be set when the first constant arrives to the constant pool. Otherwise
the constant pool could be placed into an uninterrupted sequence.

* assembler/AssemblerBufferWithConstantPool.h:
(JSC::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61745 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoAdd additional tests for beforeload events.
aestes@apple.com [Thu, 24 Jun 2010 07:31:03 +0000 (07:31 +0000)]
Add additional tests for beforeload events.
https://bugs.webkit.org/show_bug.cgi?id=41132

Reviewed by Alexey Proskuryakov.

Add tests to verify that the following elements can be removed from the
DOM during beforeload:
    * <object type="application/x-shockwave-flash">
    * <iframe>
    * <img>
    * <script src=""> (non-inline)
    * <video>

* fast/dom/beforeload/remove-flash-in-beforeload-listener-expected.txt: Added.
* fast/dom/beforeload/remove-flash-in-beforeload-listener.html: Added.
* fast/dom/beforeload/remove-frame-in-beforeload-listener-expected.txt: Added.
* fast/dom/beforeload/remove-frame-in-beforeload-listener.html: Added.
* fast/dom/beforeload/remove-image-in-beforeload-listener-expected.txt: Added.
* fast/dom/beforeload/remove-image-in-beforeload-listener.html: Added.
* fast/dom/beforeload/remove-script-in-beforeload-listener-expected.txt: Added.
* fast/dom/beforeload/remove-script-in-beforeload-listener.html: Added.
* fast/dom/beforeload/remove-video-in-beforeload-listener-expected.txt: Added.
* fast/dom/beforeload/remove-video-in-beforeload-listener.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61744 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoFix layout test failure
oliver@apple.com [Thu, 24 Jun 2010 07:24:56 +0000 (07:24 +0000)]
Fix layout test failure

Reviewed by Gavin Barraclough.

We assume bytecodeOffset will always return a value > 1,
so we adjust the failure case to return 1 instead of 0.

* bytecode/CodeBlock.h:
(JSC::CodeBlock::bytecodeOffset):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61743 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 24 Jun 2010 06:52:42 +0000 (06:52 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Sketch out InitialMode of HTML5 tree builder
        https://bugs.webkit.org/show_bug.cgi?id=41126

        Transliterated from the spec.  Currently doesn't do anything.  Mostly
        an experiment to see where this goes.

        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::processToken):
        (WebCore::HTMLTreeBuilder::insertDoctype):
        (WebCore::HTMLTreeBuilder::insertComment):
        * html/HTMLTreeBuilder.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61742 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoRefactor beforeload layout tests to share a common implementation of
aestes@apple.com [Thu, 24 Jun 2010 06:50:13 +0000 (06:50 +0000)]
Refactor beforeload layout tests to share a common implementation of
print() located in fast/dom/beforeload/resources/.
https://bugs.webkit.org/show_bug.cgi?id=41127

Reviewed by Joseph Pecoraro.

* fast/dom/beforeload/flash-before-load.html:
* fast/dom/beforeload/frame-before-load.html:
* fast/dom/beforeload/image-before-load.html:
* fast/dom/beforeload/link-before-load.html:
* fast/dom/beforeload/pi-before-load.xhtml:
* fast/dom/beforeload/remove-link-in-beforeload-listener.html:
* fast/dom/beforeload/script-before-load-dynamic.html:
* fast/dom/beforeload/script-before-load-xhtml.xhtml:
* fast/dom/beforeload/script-before-load.html:
* fast/dom/beforeload/video-before-load.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61741 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Thu, 24 Jun 2010 06:41:56 +0000 (06:41 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Add all the HTML5 tree builder insertion modes
        https://bugs.webkit.org/show_bug.cgi?id=41124

        These are just copied verbatim from the spec.  No tests because these
        don't do anything yet.

        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
        (WebCore::HTMLTreeBuilder::passTokenToLegacyParser):
        * html/HTMLTreeBuilder.h:
        (WebCore::HTMLTreeBuilder::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61740 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 24 Jun 2010 06:30:30 +0000 (06:30 +0000)]
2010-06-23  Eric Seidel  <eric@webkit.org>

        Unreviewed.  Fix namespace indent.  Just whitespace changes.

        * dom/DocumentParser.h:
        (WebCore::DocumentParser::~DocumentParser):
        (WebCore::DocumentParser::isExecutingScript):
        (WebCore::DocumentParser::stopParsing):
        (WebCore::DocumentParser::processingData):
        (WebCore::DocumentParser::wantsRawData):
        (WebCore::DocumentParser::writeRawData):
        (WebCore::DocumentParser::wellFormed):
        (WebCore::DocumentParser::lineNumber):
        (WebCore::DocumentParser::columnNumber):
        (WebCore::DocumentParser::executeScriptsWaitingForStylesheets):
        (WebCore::DocumentParser::htmlTreeBuilder):
        (WebCore::DocumentParser::asHTMLDocumentParser):
        (WebCore::DocumentParser::inViewSourceMode):
        (WebCore::DocumentParser::setInViewSourceMode):
        (WebCore::DocumentParser::document):
        (WebCore::DocumentParser::xssAuditor):
        (WebCore::DocumentParser::setXSSAuditor):
        (WebCore::DocumentParser::DocumentParser):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61739 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 24 Jun 2010 06:27:57 +0000 (06:27 +0000)]
2010-06-23  Eric Seidel  <eric@webkit.org>

        Unreviewed.  Speculative build fix for Qt.

        Move Document* down onto DocumentParser, since every DocumentParser needs one.
        https://bugs.webkit.org/show_bug.cgi?id=41117

        XMLDocumentParserQt is a huge pile of donkey barf.
        I can't believe I ever r+'d the creation of this pile of
        copy/paste code.

        I clearly missed removing m_doc from this code as well and thus
        broke Qt.

        We really need to fix both XMLDocumentParserLibxml2 and
        XMLDocumentParserQt not to be so poorly abstracted so
        that if we're going to have two of them they can at least
        share some code.

        * dom/XMLDocumentParserQt.cpp:
        (WebCore::XMLDocumentParser::XMLDocumentParser):
        (WebCore::XMLDocumentParser::~XMLDocumentParser):
        (WebCore::XMLDocumentParser::doWrite):
        (WebCore::XMLDocumentParser::doEnd):
        (WebCore::XMLDocumentParser::parse):
        (WebCore::XMLDocumentParser::startDocument):
        (WebCore::XMLDocumentParser::parseStartElement):
        (WebCore::XMLDocumentParser::parseEndElement):
        (WebCore::XMLDocumentParser::parseProcessingInstruction):
        (WebCore::XMLDocumentParser::parseCdata):
        (WebCore::XMLDocumentParser::parseComment):
        (WebCore::XMLDocumentParser::parseDtd):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61738 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 24 Jun 2010 06:17:23 +0000 (06:17 +0000)]
2010-06-23  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Move Document* down onto DocumentParser, since every DocumentParser needs one.
        https://bugs.webkit.org/show_bug.cgi?id=41117

        This eliminated the need for document() on HTMLDocumentParser.
        This paves the way for more code sharing between various
        DocumentParser subclasses.

        * dom/DocumentParser.h:
        (WebCore::DocumentParser::inViewSourceMode):
        (WebCore::DocumentParser::setInViewSourceMode):
        (WebCore::DocumentParser::document):
        (WebCore::DocumentParser::DocumentParser):
        * dom/XMLDocumentParser.cpp:
        (WebCore::XMLDocumentParser::isWMLDocument):
        (WebCore::XMLDocumentParser::pushCurrentNode):
        (WebCore::XMLDocumentParser::popCurrentNode):
        (WebCore::XMLDocumentParser::clearCurrentNodeStack):
        (WebCore::XMLDocumentParser::enterText):
        (WebCore::XMLDocumentParser::end):
        (WebCore::XMLDocumentParser::insertErrorMessageBlock):
        * dom/XMLDocumentParser.h:
        * dom/XMLDocumentParserLibxml2.cpp:
        (WebCore::XMLDocumentParser::XMLDocumentParser):
        (WebCore::XMLDocumentParser::~XMLDocumentParser):
        (WebCore::XMLDocumentParser::doWrite):
        (WebCore::XMLDocumentParser::startElementNs):
        (WebCore::XMLDocumentParser::endElementNs):
        (WebCore::XMLDocumentParser::processingInstruction):
        (WebCore::XMLDocumentParser::cdataBlock):
        (WebCore::XMLDocumentParser::comment):
        (WebCore::XMLDocumentParser::startDocument):
        (WebCore::XMLDocumentParser::internalSubset):
        (WebCore::XMLDocumentParser::initializeParserContext):
        (WebCore::XMLDocumentParser::doEnd):
        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::HTMLDocumentParser):
        * html/HTMLDocumentParser.h:
        * html/LegacyHTMLDocumentParser.cpp:
        (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser):
        (WebCore::LegacyHTMLDocumentParser::begin):
        (WebCore::LegacyHTMLDocumentParser::scriptHandler):
        (WebCore::LegacyHTMLDocumentParser::scriptExecution):
        (WebCore::LegacyHTMLDocumentParser::parseTag):
        (WebCore::LegacyHTMLDocumentParser::continueProcessing):
        (WebCore::LegacyHTMLDocumentParser::willWriteHTML):
        (WebCore::LegacyHTMLDocumentParser::didWriteHTML):
        (WebCore::LegacyHTMLDocumentParser::write):
        (WebCore::LegacyHTMLDocumentParser::stopParsing):
        (WebCore::LegacyHTMLDocumentParser::timerFired):
        (WebCore::LegacyHTMLDocumentParser::end):
        (WebCore::LegacyHTMLDocumentParser::processToken):
        (WebCore::LegacyHTMLDocumentParser::processDoctypeToken):
        (WebCore::LegacyHTMLDocumentParser::executeScriptsWaitingForStylesheets):
        (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsIfReady):
        (WebCore::LegacyHTMLDocumentParser::executeExternalScriptsTimerFired):
        * html/LegacyHTMLDocumentParser.h:
        * loader/ImageDocument.cpp:
        (WebCore::ImageDocumentParser::ImageDocumentParser):
        (WebCore::ImageDocumentParser::imageDocument):
        (WebCore::ImageDocumentParser::write):
        (WebCore::ImageDocumentParser::writeRawData):
        (WebCore::ImageDocumentParser::finish):
        (WebCore::ImageDocumentParser::finishWasCalled):
        (WebCore::ImageDocumentParser::isWaitingForScripts):
        (WebCore::ImageDocument::createParser):
        * loader/MediaDocument.cpp:
        (WebCore::MediaDocumentParser::MediaDocumentParser):
        (WebCore::MediaDocumentParser::createDocumentStructure):
        (WebCore::MediaDocumentParser::finish):
        (WebCore::MediaDocumentParser::finishWasCalled):
        * loader/PluginDocument.cpp:
        (WebCore::PluginDocumentParser::PluginDocumentParser):
        (WebCore::PluginDocumentParser::createDocumentStructure):
        (WebCore::PluginDocumentParser::writeRawData):
        (WebCore::PluginDocumentParser::finish):
        (WebCore::PluginDocumentParser::finishWasCalled):
        * loader/SinkDocument.cpp:
        (WebCore::SinkDocumentParser::SinkDocumentParser):
        * loader/TextDocument.cpp:
        (WebCore::TextDocumentParser::TextDocumentParser):
        (WebCore::TextDocumentParser::write):
        (WebCore::TextDocumentParser::finish):
        (WebCore::TextDocumentParser::finishWasCalled):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61737 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Eric Seidel <eric@webkit.org>
eric@webkit.org [Thu, 24 Jun 2010 06:14:27 +0000 (06:14 +0000)]
2010-06-23  Eric Seidel  <eric@webkit.org>

        Reviewed by Adam Barth.

        Start to clean up DocumentParser interface
        https://bugs.webkit.org/show_bug.cgi?id=41114

        The first of many cleanups needed to the DocumentParser
        interface.  Rename executingScript() to isExecutingScript()
        and make it return a bool instead of an int.  Also added a
        FIXME to XMLDocumentParser about implementing it and did
        some minor other cleanup to the XMLDocumentParser header.

        No functional change, thus no tests.

        * dom/Document.cpp:
        (WebCore::Document::open):
        * dom/DocumentParser.h:
        (WebCore::DocumentParser::isExecutingScript):
        * dom/XMLDocumentParser.h:
        (WebCore::XMLDocumentParser::wellFormed):
        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::attemptToEnd):
        (WebCore::HTMLDocumentParser::endIfDelayed):
        (WebCore::HTMLDocumentParser::isExecutingScript):
        * html/HTMLDocumentParser.h:
        * html/LegacyHTMLDocumentParser.h:
        (WebCore::LegacyHTMLDocumentParser::isExecutingScript):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61736 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoFix testcase.
oliver@apple.com [Thu, 24 Jun 2010 05:50:23 +0000 (05:50 +0000)]
Fix testcase.

Reviewed by Maciej Stachowiak.

Make the reparsing test use syntax that is actually valid.
The old parser had a bug that would lead to it accepting
invalid code in some cases.

* fast/js/script-tests/reparsing-semicolon-insertion.js:
(commaTest):
(varCommaTest):
(constCommaTest):
(commaParenTest):
(commaParenThrowTest):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61735 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-22 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Thu, 24 Jun 2010 05:43:32 +0000 (05:43 +0000)]
2010-06-22  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Simon Fraser.

        Implement IDL attribute for HTML5 hidden
        https://bugs.webkit.org/show_bug.cgi?id=41039

        Test: fast/html/hidden-attr-dom.html

        * html/HTMLElement.idl: Just add to the IDL file. [Reflect] takes
        care of the rest.
2010-06-22  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Simon Fraser.

        Implement IDL attribute for HTML5 hidden
        https://bugs.webkit.org/show_bug.cgi?id=41039

        Test cases.

        * fast/html/hidden-attr-dom.html: Added.
        * fast/html/hidden-attr-dom-expected.txt: Added.
        * fast/html/script-tests/hidden-attr-dom.js: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61734 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Leandro Pereira <leandro@profusion.mobi>
commit-queue@webkit.org [Thu, 24 Jun 2010 04:22:20 +0000 (04:22 +0000)]
2010-06-23  Leandro Pereira  <leandro@profusion.mobi>

        Reviewed by Gustavo Noronha Silva.

        [EFL] Add Libs.private to ewebkit.pc when building with SHARED_CORE.
        https://bugs.webkit.org/show_bug.cgi?id=40862

        * CMakeListsEfl.txt:
        * efl/ewebkit.pc.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61733 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Thu, 24 Jun 2010 04:19:32 +0000 (04:19 +0000)]
2010-06-23  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough.

        Custom-written JavaScript parser
        https://bugs.webkit.org/show_bug.cgi?id=34019

        Implement a recursive descent parser similar to that used by V8 and
        SpiderMonkey.  Greater than 2x improvement in SunSpider parsing tests.

        The parser consists of a JSParser class that uses a TreeBuilder to actually
        build the AST.  There are currently two builders -- the ASTBuilder and
        SyntaxChecker which separate the job of building an AST for code generation
        and simply checking syntactic correctness.

        There's still some less than ideal code remaining in the parser to allow
        us to retain the existing lexing code with minimal changes.  We'll tidy
        this up at a later date.

        * GNUmakefile.am:
        * JavaScriptCore.gypi:
        * JavaScriptCore.pro:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        * parser/ASTBuilder.h: Added.
        (JSC::ASTBuilder::BinaryOpInfo::BinaryOpInfo):
        (JSC::ASTBuilder::AssignmentInfo::AssignmentInfo):
        (JSC::ASTBuilder::ASTBuilder):
        (JSC::ASTBuilder::createSourceElements):
        (JSC::ASTBuilder::varDeclarations):
        (JSC::ASTBuilder::funcDeclarations):
        (JSC::ASTBuilder::features):
        (JSC::ASTBuilder::numConstants):
        (JSC::ASTBuilder::appendToComma):
        (JSC::ASTBuilder::createCommaExpr):
        (JSC::ASTBuilder::createLogicalNot):
        (JSC::ASTBuilder::createUnaryPlus):
        (JSC::ASTBuilder::createVoid):
        (JSC::ASTBuilder::thisExpr):
        (JSC::ASTBuilder::createResolve):
        (JSC::ASTBuilder::createObjectLiteral):
        (JSC::ASTBuilder::createArray):
        (JSC::ASTBuilder::createNumberExpr):
        (JSC::ASTBuilder::createString):
        (JSC::ASTBuilder::createBoolean):
        (JSC::ASTBuilder::createNull):
        (JSC::ASTBuilder::createBracketAccess):
        (JSC::ASTBuilder::createDotAccess):
        (JSC::ASTBuilder::createRegex):
        (JSC::ASTBuilder::createNewExpr):
        (JSC::ASTBuilder::createConditionalExpr):
        (JSC::ASTBuilder::createAssignResolve):
        (JSC::ASTBuilder::createFunctionExpr):
        (JSC::ASTBuilder::createFunctionBody):
        (JSC::ASTBuilder::createGetterOrSetterProperty):
        (JSC::ASTBuilder::createArguments):
        (JSC::ASTBuilder::createArgumentsList):
        (JSC::ASTBuilder::createProperty):
        (JSC::ASTBuilder::createPropertyList):
        (JSC::ASTBuilder::createElementList):
        (JSC::ASTBuilder::createFormalParameterList):
        (JSC::ASTBuilder::createClause):
        (JSC::ASTBuilder::createClauseList):
        (JSC::ASTBuilder::setUsesArguments):
        (JSC::ASTBuilder::createFuncDeclStatement):
        (JSC::ASTBuilder::createBlockStatement):
        (JSC::ASTBuilder::createExprStatement):
        (JSC::ASTBuilder::createIfStatement):
        (JSC::ASTBuilder::createForLoop):
        (JSC::ASTBuilder::createForInLoop):
        (JSC::ASTBuilder::createEmptyStatement):
        (JSC::ASTBuilder::createVarStatement):
        (JSC::ASTBuilder::createReturnStatement):
        (JSC::ASTBuilder::createBreakStatement):
        (JSC::ASTBuilder::createContinueStatement):
        (JSC::ASTBuilder::createTryStatement):
        (JSC::ASTBuilder::createSwitchStatement):
        (JSC::ASTBuilder::createWhileStatement):
        (JSC::ASTBuilder::createDoWhileStatement):
        (JSC::ASTBuilder::createLabelStatement):
        (JSC::ASTBuilder::createWithStatement):
        (JSC::ASTBuilder::createThrowStatement):
        (JSC::ASTBuilder::createDebugger):
        (JSC::ASTBuilder::createConstStatement):
        (JSC::ASTBuilder::appendConstDecl):
        (JSC::ASTBuilder::appendStatement):
        (JSC::ASTBuilder::addVar):
        (JSC::ASTBuilder::combineCommaNodes):
        (JSC::ASTBuilder::evalCount):
        (JSC::ASTBuilder::appendBinaryExpressionInfo):
        (JSC::ASTBuilder::operatorStackPop):
        (JSC::ASTBuilder::operatorStackHasHigherPrecedence):
        (JSC::ASTBuilder::getFromOperandStack):
        (JSC::ASTBuilder::shrinkOperandStackBy):
        (JSC::ASTBuilder::appendBinaryOperation):
        (JSC::ASTBuilder::operatorStackAppend):
        (JSC::ASTBuilder::popOperandStack):
        (JSC::ASTBuilder::appendUnaryToken):
        (JSC::ASTBuilder::unaryTokenStackLastType):
        (JSC::ASTBuilder::unaryTokenStackLastStart):
        (JSC::ASTBuilder::unaryTokenStackRemoveLast):
        (JSC::ASTBuilder::assignmentStackAppend):
        (JSC::ASTBuilder::createAssignment):
        (JSC::ASTBuilder::Scope::Scope):
        (JSC::ASTBuilder::setExceptionLocation):
        (JSC::ASTBuilder::incConstants):
        (JSC::ASTBuilder::usesThis):
        (JSC::ASTBuilder::usesCatch):
        (JSC::ASTBuilder::usesClosures):
        (JSC::ASTBuilder::usesArguments):
        (JSC::ASTBuilder::usesAssignment):
        (JSC::ASTBuilder::usesWith):
        (JSC::ASTBuilder::usesEval):
        (JSC::ASTBuilder::createNumber):
        (JSC::ASTBuilder::makeTypeOfNode):
        (JSC::ASTBuilder::makeDeleteNode):
        (JSC::ASTBuilder::makeNegateNode):
        (JSC::ASTBuilder::makeBitwiseNotNode):
        (JSC::ASTBuilder::makeMultNode):
        (JSC::ASTBuilder::makeDivNode):
        (JSC::ASTBuilder::makeAddNode):
        (JSC::ASTBuilder::makeSubNode):
        (JSC::ASTBuilder::makeLeftShiftNode):
        (JSC::ASTBuilder::makeRightShiftNode):
        (JSC::ASTBuilder::makeFunctionCallNode):
        (JSC::ASTBuilder::makeBinaryNode):
        (JSC::ASTBuilder::makeAssignNode):
        (JSC::ASTBuilder::makePrefixNode):
        (JSC::ASTBuilder::makePostfixNode):
        * parser/JSParser.cpp: Added.
        (JSC::JSParser::AllowInOverride::AllowInOverride):
        (JSC::JSParser::AllowInOverride::~AllowInOverride):
        (JSC::JSParser::token):
        (JSC::JSParser::next):
        (JSC::JSParser::consume):
        (JSC::JSParser::match):
        (JSC::JSParser::tokenStart):
        (JSC::JSParser::tokenLine):
        (JSC::JSParser::tokenEnd):
        (JSC::JSParser::):
        (JSC::JSParser::autoSemiColon):
        (JSC::JSParser::canRecurse):
        (JSC::JSParser::lastTokenEnd):
        (JSC::jsParse):
        (JSC::JSParser::JSParser):
        (JSC::JSParser::parseProgram):
        (JSC::JSParser::allowAutomaticSemicolon):
        (JSC::JSParser::parseSourceElements):
        (JSC::JSParser::parseVarDeclaration):
        (JSC::JSParser::parseConstDeclaration):
        (JSC::JSParser::parseDoWhileStatement):
        (JSC::JSParser::parseWhileStatement):
        (JSC::JSParser::parseVarDeclarationList):
        (JSC::JSParser::parseConstDeclarationList):
        (JSC::JSParser::parseForStatement):
        (JSC::JSParser::parseBreakStatement):
        (JSC::JSParser::parseContinueStatement):
        (JSC::JSParser::parseReturnStatement):
        (JSC::JSParser::parseThrowStatement):
        (JSC::JSParser::parseWithStatement):
        (JSC::JSParser::parseSwitchStatement):
        (JSC::JSParser::parseSwitchClauses):
        (JSC::JSParser::parseSwitchDefaultClause):
        (JSC::JSParser::parseTryStatement):
        (JSC::JSParser::parseDebuggerStatement):
        (JSC::JSParser::parseBlockStatement):
        (JSC::JSParser::parseStatement):
        (JSC::JSParser::parseFormalParameters):
        (JSC::JSParser::parseFunctionBody):
        (JSC::JSParser::parseFunctionInfo):
        (JSC::JSParser::parseFunctionDeclaration):
        (JSC::JSParser::parseExpressionOrLabelStatement):
        (JSC::JSParser::parseExpressionStatement):
        (JSC::JSParser::parseIfStatement):
        (JSC::JSParser::parseExpression):
        (JSC::JSParser::parseAssignmentExpression):
        (JSC::JSParser::parseConditionalExpression):
        (JSC::isUnaryOp):
        (JSC::JSParser::isBinaryOperator):
        (JSC::JSParser::parseBinaryExpression):
        (JSC::JSParser::parseProperty):
        (JSC::JSParser::parseObjectLiteral):
        (JSC::JSParser::parseArrayLiteral):
        (JSC::JSParser::parsePrimaryExpression):
        (JSC::JSParser::parseArguments):
        (JSC::JSParser::parseMemberExpression):
        (JSC::JSParser::parseUnaryExpression):
        * parser/JSParser.h: Added.
        (JSC::):
        (JSC::JSTokenInfo::JSTokenInfo):
        * parser/Lexer.cpp:
        (JSC::Lexer::lex):
        * parser/Lexer.h:
        (JSC::Lexer::setLastLineNumber):
        (JSC::Lexer::lastLineNumber):
        * parser/NodeConstructors.h:
        (JSC::Node::Node):
        * parser/Parser.cpp:
        (JSC::Parser::parse):
        * parser/SyntaxChecker.h: Added.
        (JSC::SyntaxChecker::SyntaxChecker):
        (JSC::SyntaxChecker::createSourceElements):
        (JSC::SyntaxChecker::makeFunctionCallNode):
        (JSC::SyntaxChecker::appendToComma):
        (JSC::SyntaxChecker::createCommaExpr):
        (JSC::SyntaxChecker::makeAssignNode):
        (JSC::SyntaxChecker::makePrefixNode):
        (JSC::SyntaxChecker::makePostfixNode):
        (JSC::SyntaxChecker::makeTypeOfNode):
        (JSC::SyntaxChecker::makeDeleteNode):
        (JSC::SyntaxChecker::makeNegateNode):
        (JSC::SyntaxChecker::makeBitwiseNotNode):
        (JSC::SyntaxChecker::createLogicalNot):
        (JSC::SyntaxChecker::createUnaryPlus):
        (JSC::SyntaxChecker::createVoid):
        (JSC::SyntaxChecker::thisExpr):
        (JSC::SyntaxChecker::createResolve):
        (JSC::SyntaxChecker::createObjectLiteral):
        (JSC::SyntaxChecker::createArray):
        (JSC::SyntaxChecker::createNumberExpr):
        (JSC::SyntaxChecker::createString):
        (JSC::SyntaxChecker::createBoolean):
        (JSC::SyntaxChecker::createNull):
        (JSC::SyntaxChecker::createBracketAccess):
        (JSC::SyntaxChecker::createDotAccess):
        (JSC::SyntaxChecker::createRegex):
        (JSC::SyntaxChecker::createNewExpr):
        (JSC::SyntaxChecker::createConditionalExpr):
        (JSC::SyntaxChecker::createAssignResolve):
        (JSC::SyntaxChecker::createFunctionExpr):
        (JSC::SyntaxChecker::createFunctionBody):
        (JSC::SyntaxChecker::createArguments):
        (JSC::SyntaxChecker::createArgumentsList):
        (JSC::SyntaxChecker::createProperty):
        (JSC::SyntaxChecker::createPropertyList):
        (JSC::SyntaxChecker::createElementList):
        (JSC::SyntaxChecker::createFormalParameterList):
        (JSC::SyntaxChecker::createClause):
        (JSC::SyntaxChecker::createClauseList):
        (JSC::SyntaxChecker::setUsesArguments):
        (JSC::SyntaxChecker::createFuncDeclStatement):
        (JSC::SyntaxChecker::createBlockStatement):
        (JSC::SyntaxChecker::createExprStatement):
        (JSC::SyntaxChecker::createIfStatement):
        (JSC::SyntaxChecker::createForLoop):
        (JSC::SyntaxChecker::createForInLoop):
        (JSC::SyntaxChecker::createEmptyStatement):
        (JSC::SyntaxChecker::createVarStatement):
        (JSC::SyntaxChecker::createReturnStatement):
        (JSC::SyntaxChecker::createBreakStatement):
        (JSC::SyntaxChecker::createContinueStatement):
        (JSC::SyntaxChecker::createTryStatement):
        (JSC::SyntaxChecker::createSwitchStatement):
        (JSC::SyntaxChecker::createWhileStatement):
        (JSC::SyntaxChecker::createWithStatement):
        (JSC::SyntaxChecker::createDoWhileStatement):
        (JSC::SyntaxChecker::createLabelStatement):
        (JSC::SyntaxChecker::createThrowStatement):
        (JSC::SyntaxChecker::createDebugger):
        (JSC::SyntaxChecker::createConstStatement):
        (JSC::SyntaxChecker::appendConstDecl):
        (JSC::SyntaxChecker::createGetterOrSetterProperty):
        (JSC::SyntaxChecker::appendStatement):
        (JSC::SyntaxChecker::addVar):
        (JSC::SyntaxChecker::combineCommaNodes):
        (JSC::SyntaxChecker::evalCount):
        (JSC::SyntaxChecker::appendBinaryExpressionInfo):
        (JSC::SyntaxChecker::operatorStackPop):
        * runtime/JSGlobalData.h:
        * wtf/Platform.h:
        * wtf/ThreadSpecific.h:
        (WTF::T):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61732 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Tony Chang <tony@chromium.org>
tony@chromium.org [Thu, 24 Jun 2010 03:25:54 +0000 (03:25 +0000)]
2010-06-23  Tony Chang  <tony@chromium.org>

        Not reviewed, fixing gtk/qt tests

        skip http/tests/multipart/policy-ignore-crash.php on qt and gtk
        https://bugs.webkit.org/show_bug.cgi?id=41128

        Their network libraries appear to be more strict about identifying
        multipart boundaries.

        * platform/gtk/Skipped:
        * platform/qt/Skipped:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61731 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Mario Sanchez Prada <msanchez@igalia.com>
commit-queue@webkit.org [Thu, 24 Jun 2010 03:18:17 +0000 (03:18 +0000)]
2010-06-23  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [Gtk] nameFromChildren is obsolete
        https://bugs.webkit.org/show_bug.cgi?id=36128

        Added new tests, based on a previous patch by Joanmarie Diggs.

        * platform/gtk/accessibility/name-from-label-expected.txt: Added.
        * platform/gtk/accessibility/name-from-label.html: Added.
2010-06-23  Joanmarie Diggs  <joanmarie.diggs@gmail.com>

        Reviewed by Chris Fleizach.

        [Gtk] nameFromChildren is obsolete
        https://bugs.webkit.org/show_bug.cgi?id=36128

        Look to the AtkText interface implemented by the objects in
        question.

        Test: platform/gtk/accessibility/name-from-label.html

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (webkit_accessible_get_name):
        (webkit_accessible_table_get_column_description):
        (webkit_accessible_table_get_row_description):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61730 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Kwang Yul Seo <skyul@company100.net>
commit-queue@webkit.org [Thu, 24 Jun 2010 02:55:41 +0000 (02:55 +0000)]
2010-06-23  Kwang Yul Seo  <skyul@company100.net>

        Reviewed by Kent Tamura.

        [BREWMP] Port FileSystem
        https://bugs.webkit.org/show_bug.cgi?id=34323

        Port FileSystem with IFileMgr interface.

        * platform/FileSystem.h:
        * platform/brew/FileSystemBrew.cpp: Added.
        (WebCore::getFileSize):
        (WebCore::getFileModificationTime):
        (WebCore::fileExists):
        (WebCore::deleteFile):
        (WebCore::deleteEmptyDirectory):
        (WebCore::pathByAppendingComponent):
        (WebCore::fileSystemRepresentation):
        (WebCore::canonicalPath):
        (WebCore::makeAllDirectories):
        (WebCore::homeDirectoryPath):
        (WebCore::pathGetFileName):
        (WebCore::directoryName):
        (WebCore::openTemporaryFile):
        (WebCore::closeFile):
        (WebCore::writeToFile):
        (WebCore::unloadModule):
        (WebCore::listDirectory):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61729 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Tony Chang <tony@chromium.org>
tony@chromium.org [Thu, 24 Jun 2010 02:54:20 +0000 (02:54 +0000)]
2010-06-23  Tony Chang  <tony@chromium.org>

        Reviewed by Darin Fisher.

        layout test for a crash in chromium multipart request handling
        https://bugs.webkit.org/show_bug.cgi?id=41050

        * http/tests/multipart/policy-ignore-crash-expected.txt: Copied from LayoutTests/editing/pasteboard/copy-crash-with-extraneous-attribute-expected.txt.
        * http/tests/multipart/policy-ignore-crash.php: Added.
        * platform/mac/Skipped:
2010-06-23  Tony Chang  <tony@chromium.org>

        Reviewed by Darin Fisher.

        layout test for a crash in chromium multipart request handling
        https://bugs.webkit.org/show_bug.cgi?id=41050

        Also roll DEPS to pick up the crash fix.

        * DEPS:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61728 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Laszlo Gombos <laszlo.1.gombos@nokia.com>
laszlo.1.gombos@nokia.com [Thu, 24 Jun 2010 02:21:48 +0000 (02:21 +0000)]
2010-06-23  Laszlo Gombos  <laszlo.1.gombos@nokia.com>

        Unreviewed, Symbian build fix.

        [Qt] Update the def file after r61478.

        * symbian/eabi/QtWebKitu.def:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61727 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Jedrzej Nowacki <jedrzej.nowacki@nokia.com>
commit-queue@webkit.org [Thu, 24 Jun 2010 01:49:17 +0000 (01:49 +0000)]
2010-06-23  Jedrzej Nowacki  <jedrzej.nowacki@nokia.com>

        Reviewed by Simon Hausmann.

        Optimization of the QScriptValuePrivate.

        Patch change only internals of the QScriptValuePrivate.
        Most of the QScriptValuePrivate's attributes were moved
        into an union.

        [Qt] Optimization of the QScriptVAluePrivate.
        https://bugs.webkit.org/show_bug.cgi?id=40415

        * qt/api/qscriptengine_p.cpp:
        (QScriptEnginePrivate::globalObject):
        * qt/api/qscriptvalue_p.h:
        (QScriptValuePrivate::):
        (QScriptValuePrivate::~QScriptValuePrivate):
        (QScriptValuePrivate::QScriptValuePrivate):
        (QScriptValuePrivate::toString):
        (QScriptValuePrivate::toNumber):
        (QScriptValuePrivate::toBool):
        (QScriptValuePrivate::toObject):
        (QScriptValuePrivate::equals):
        (QScriptValuePrivate::strictlyEquals):
        (QScriptValuePrivate::assignEngine):
        (QScriptValuePrivate::operator JSValueRef):
        (QScriptValuePrivate::operator JSObjectRef):
        (QScriptValuePrivate::refinedJSValue):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61726 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 24 Jun 2010 01:39:39 +0000 (01:39 +0000)]
2010-06-23  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Have the UI process compute the plug-in data
        https://bugs.webkit.org/show_bug.cgi?id=41118

        * Shared/CoreIPCSupport/WebProcessProxyMessageKinds.h:
        (WebProcessProxyMessage::):
        Add GetPlugin message kind.

        * Shared/WebCoreArgumentCoders.h:
        Add argument coders for PluginInfo and MimeClassInfo.

        * UIProcess/Plugins/mac/PluginInfoStoreMac.mm:
        (WebKit::safeCreateCFString):
        (WebKit::PluginInfoStore::pluginPathsInDirectory):
        (WebKit::PluginInfoStore::getPluginInfo):
        Use safeCreateCFString.

        * UIProcess/WebProcessProxy.cpp:
        (WebKit::WebProcessProxy::getPlugins):
        Ask the plug-in info store for the plug-in list.

        (WebKit::WebProcessProxy::didReceiveSyncMessage):
        Handle GetPlugins.

        * UIProcess/WebProcessProxy.h:
        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
        (WebKit::WebFrameLoaderClient::objectContentType):
        Implement.

        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::WebPlatformStrategies::populatePluginCache):
        Send a sync GetPlugins message.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61725 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Alexendar Pavlov <apavlov@chromium.org>
commit-queue@webkit.org [Thu, 24 Jun 2010 01:33:22 +0000 (01:33 +0000)]
2010-06-23  Alexendar Pavlov  <apavlov@chromium.org>

        Reviewed by David Hyatt.

        Swap checks in Position::isCandidate so that the less expensive
        nodeIsUserSelectNode  (node && node->renderer() &&
        node->renderer()->style()->userSelect() == SELECT_NONE) came first.

        (Was Web Inspector: Hangup when expanding elements with enormous
        text node content in Elements panel).

        https://bugs.webkit.org/show_bug.cgi?id=35926

        * dom/Position.cpp:
        (WebCore::Position::isCandidate):
        * dom/PositionIterator.cpp:
        (WebCore::PositionIterator::isCandidate):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61724 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[wx] Build fix, adding new LayoutTestController methods and enabling SVG_FOREIGN_OBJECT.
kevino@webkit.org [Thu, 24 Jun 2010 01:02:27 +0000 (01:02 +0000)]
[wx] Build fix, adding new LayoutTestController methods and enabling SVG_FOREIGN_OBJECT.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61723 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Kwang Yul Seo <skyul@company100.net>
commit-queue@webkit.org [Thu, 24 Jun 2010 00:33:17 +0000 (00:33 +0000)]
2010-06-23  Kwang Yul Seo  <skyul@company100.net>

        Reviewed by Kent Tamura.

        [BREWMP] Add PopupMenu implementation
        https://bugs.webkit.org/show_bug.cgi?id=40226

        Delegate PopupMenu handling to ChromeClientBrew.

        * page/brew/ChromeClientBrew.h: Added.
        * platform/PopupMenu.h:
        * platform/brew/PopupMenuBrew.cpp: Added.
        (WebCore::PopupMenu::PopupMenu):
        (WebCore::PopupMenu::~PopupMenu):
        (WebCore::PopupMenu::show):
        (WebCore::PopupMenu::hide):
        (WebCore::PopupMenu::updateFromElement):
        (WebCore::PopupMenu::itemWritingDirectionIsNatural):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61722 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago<rdar://problem/8107855> Test that removing an object element with an
aestes@apple.com [Thu, 24 Jun 2010 00:29:17 +0000 (00:29 +0000)]
<rdar://problem/8107855> Test that removing an object element with an
invalid data URL in a listener to its beforeload event does not crash
WebCore.
https://bugs.webkit.org/show_bug.cgi?id=41054

Reviewed by Alexey Proskuryakov.

* fast/dom/beforeload/remove-bad-object-in-beforeload-listener-expected.txt: Added.
* fast/dom/beforeload/remove-bad-object-in-beforeload-listener.html: Added.
* fast/dom/beforeload/resources/print.js: Added.
(print):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61721 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoAdd ArgumentCoder for vectors.
andersca@apple.com [Thu, 24 Jun 2010 00:23:04 +0000 (00:23 +0000)]
Add ArgumentCoder for vectors.

Reviewed by Dan Bernstein.

* Platform/CoreIPC/ArgumentCoders.h:
(CoreIPC::):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61720 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoRename WebCoreTypeArgumentMarshalling.h to WebCoreArgumentCoders.h
andersca@apple.com [Thu, 24 Jun 2010 00:18:50 +0000 (00:18 +0000)]
Rename WebCoreTypeArgumentMarshalling.h to WebCoreArgumentCoders.h

Reviewed by Dan Bernstein.

* Shared/WebCoreArgumentCoders.h: Copied from Shared/WebCoreTypeArgumentMarshalling.h.
* Shared/WebCoreTypeArgumentMarshalling.h: Removed.
* Shared/WebEvent.h:
* Shared/WebNavigationDataStore.h:
* Shared/WebPreferencesStore.h:
* Shared/mac/UpdateChunk.cpp:
* UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
* UIProcess/WebContext.cpp:
* UIProcess/WebPageProxy.cpp:
* WebKit2.xcodeproj/project.pbxproj:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
* WebProcess/WebCoreSupport/WebChromeClient.cpp:
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
* WebProcess/WebPage/ChunkedUpdateDrawingArea.cpp:
* WebProcess/WebPage/WebPage.cpp:
* WebProcess/WebProcess.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61719 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Thu, 24 Jun 2010 00:12:24 +0000 (00:12 +0000)]
2010-06-23  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        MessageIDs should always have the most significant bit zeroed out
        https://bugs.webkit.org/show_bug.cgi?id=41112

        The most significant bit is used by the Mac implementation of CoreIPC, and
        should always be zero in MessageID objects.

        * Platform/CoreIPC/Connection.cpp:
        (CoreIPC::Connection::waitForMessage):
        * Platform/CoreIPC/MessageID.h:
        (CoreIPC::MessageID::):
        (CoreIPC::MessageID::MessageID):
        (CoreIPC::MessageID::operator==):
        (CoreIPC::MessageID::fromInt):
        (CoreIPC::MessageID::isSync):
        (CoreIPC::MessageID::stripMostSignificantBit):
        * Platform/CoreIPC/mac/ConnectionMac.cpp:
        (CoreIPC::Connection::sendOutgoingMessage):
        (CoreIPC::createArgumentDecoder):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61718 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago* mac/WebKit2.exp:
sullivan@apple.com [Wed, 23 Jun 2010 23:29:08 +0000 (23:29 +0000)]
* mac/WebKit2.exp:
Added yet another symbol needed by Mac clients.

Rubber-stamped by Anders Carlsson.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61717 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago* mac/WebKit2.exp:
sullivan@apple.com [Wed, 23 Jun 2010 23:25:11 +0000 (23:25 +0000)]
* mac/WebKit2.exp:
Added another symbol needed by Mac clients.

Rubber-stamped by Anders Carlsson.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61716 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Kenneth Russell <kbr@google.com>
kbr@google.com [Wed, 23 Jun 2010 23:22:39 +0000 (23:22 +0000)]
2010-06-23  Kenneth Russell  <kbr@google.com>

        Reviewed by Dimitri Glazkov.

        Implement format conversions in texImage2D and texSubImage2D taking HTML data
        https://bugs.webkit.org/show_bug.cgi?id=40319

        Generalized code supporting premultiplication of alpha and
        vertical flip to pack texture data into requested format and type.
        Handled incoming image data of various formats, RGBA and BGRA in
        particular, both to reduce the number of temporary copies during
        texture upload and to support premultiplying alpha for the
        texImage2D and texSubImage2D entry points taking ArrayBufferView
        in a subsequent bug. Added test case exercising all combinations
        of format/type combinations, premultiplication of alpha, and
        Image/ImageData upload. (Incorporated pnglib.js under
        fast/canvas/webgl/resources/ to be able to generate Image elements
        programmatically.) Tested in Safari on Mac OS X and in Chromium on
        Mac OS X, Windows and Linux.

        Test: fast/canvas/webgl/tex-image-with-format-and-type.html

        * html/canvas/WebGLRenderingContext.cpp:
        (WebCore::WebGLRenderingContext::readPixels):
        (WebCore::WebGLRenderingContext::texImage2DImpl):
        (WebCore::WebGLRenderingContext::texImage2D):
        (WebCore::WebGLRenderingContext::texSubImage2DImpl):
        (WebCore::WebGLRenderingContext::texSubImage2D):
        (WebCore::WebGLRenderingContext::validateTexFuncFormatAndType):
        (WebCore::WebGLRenderingContext::validateTexFuncParameters):
        * platform/graphics/GraphicsContext3D.cpp:
        (WebCore::GraphicsContext3D::computeFormatAndTypeParameters):
        (WebCore::GraphicsContext3D::extractImageData):
        (WebCore::GraphicsContext3D::flipVertically):
        (WebCore::doUnpackingAndPacking):
        (WebCore::doPacking):
        (WebCore::GraphicsContext3D::packPixels):
        * platform/graphics/GraphicsContext3D.h:
        (WebCore::GraphicsContext3D::):
        * platform/graphics/cg/GraphicsContext3DCG.cpp:
        (WebCore::GraphicsContext3D::getImageData):
        * platform/graphics/mac/GraphicsContext3DMac.mm:
        (WebCore::narrowInternalFormat):
        (WebCore::GraphicsContext3D::texImage2D):
        * platform/graphics/qt/GraphicsContext3DQt.cpp:
        (WebCore::GraphicsContext3D::getImageData):
        * platform/graphics/skia/GraphicsContext3DSkia.cpp:
        (WebCore::GraphicsContext3D::getImageData):
2010-06-23  Kenneth Russell  <kbr@google.com>

        Reviewed by Dimitri Glazkov.

        Implement format conversions in texImage2D and texSubImage2D taking HTML data
        https://bugs.webkit.org/show_bug.cgi?id=40319

        Generalized code supporting premultiplication of alpha and
        vertical flip to pack texture data into requested format and type.
        Handled incoming image data of various formats, RGBA and BGRA in
        particular, both to reduce the number of temporary copies during
        texture upload and to support premultiplying alpha for the
        texImage2D and texSubImage2D entry points taking ArrayBufferView
        in a subsequent bug. Added test case exercising all combinations
        of format/type combinations, premultiplication of alpha, and
        Image/ImageData upload. (Incorporated pnglib.js under
        fast/canvas/webgl/resources/ to be able to generate Image elements
        programmatically.) Tested in Safari on Mac OS X and in Chromium on
        Mac OS X, Windows and Linux.

        Test: fast/canvas/webgl/tex-image-with-format-and-type.html

        * fast/canvas/webgl/resources/pnglib.js: Added.
        ():
        (.):
        * fast/canvas/webgl/tex-image-with-format-and-type-expected.txt: Added.
        * fast/canvas/webgl/tex-image-with-format-and-type.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61715 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Wed, 23 Jun 2010 23:19:48 +0000 (23:19 +0000)]
2010-06-23  Stephen White  <senorblanco@chromium.org>

        Unreviewed; correcting bad patch.

        In my haste to land r61710, I mistakenly landed the wrong version, in
        which a chunk of code was moved.  This patch moves that chunk of code
        to where it was in the patch that was reviewed.  Mea culpa.

        * rendering/RenderBoxModelObject.cpp:
        (WebCore::ImageQualityController::shouldPaintAtLowQuality):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61714 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed. Build fix.
hclam@chromium.org [Wed, 23 Jun 2010 23:14:36 +0000 (23:14 +0000)]
Unreviewed. Build fix.

Adding test expectation since a test introduced r61607 has not test results.

* platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61713 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Kwang Yul Seo <skyul@company100.net>
commit-queue@webkit.org [Wed, 23 Jun 2010 22:27:59 +0000 (22:27 +0000)]
2010-06-23  Kwang Yul Seo  <skyul@company100.net>

        Reviewed by Oliver Hunt.

        [GTK] Implement ThreadSpecific with glib
        https://bugs.webkit.org/show_bug.cgi?id=39829

        Implement ThreadSpecific with glib's GStaticPrivate.
        This patch makes it possible to build GTK port without pthread.

        * wtf/ThreadSpecific.h:
        (WTF::::ThreadSpecific):
        (WTF::::~ThreadSpecific):
        (WTF::::get):
        (WTF::::set):
        (WTF::::destroy):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61712 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed, fixing ChangeLog entry for http://trac.webkit.org/changeset/61709
jschuh@chromium.org [Wed, 23 Jun 2010 22:18:50 +0000 (22:18 +0000)]
Unreviewed, fixing ChangeLog entry for trac.webkit.org/changeset/61709

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61711 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Wed, 23 Jun 2010 21:52:30 +0000 (21:52 +0000)]
2010-06-23  Stephen White  <senorblanco@chromium.org>

        Reviewed by David Hyatt.

        This is a tweak to the resize algorithm introduced in r61341, and
        is a fix for the regression described in
        https://bugs.webkit.org/show_bug.cgi?id=41036

        The goal is to bring back the some of old behaviour, without regressing
        too much of the performance gains in r61341.

        The old algorithm was:
        - on first resize, draw in high quality and record the paint time
        - if we've already drawn at this size, use the same quality as last time
        - on subsequent resizes, if the resize occurs within X ms of the
          previous one, draw at low quality and set a timer (one timer per
          image).
        - when each timer expires, draw that image at high quality

        The r61341 algorithm was:
        - on first resize, draw the image in low quality, add it to a list of
          resized images, and set a timer (one timer for all images)
        - when the timer expires, redraw all resized images in high quality

        The new algorithm is:
        - on first resize, if no other animated resizes are outstanding, draw in
          high quality and set the timer (one timer for all images)
        - if any images have been resized to two different sizes in the last
          X ms, draw all resized images in low quality and kick the timer
          forward
        - when the timer expires, if any animated resizes occured, redraw all
          resized images in high quality, and reset the flag

        This should cause GUIMark and the IE9 demos to have good performance
        after the first frame, while other pages with only static resizes
        should be unaffected.

        * rendering/RenderBoxModelObject.cpp:
        Change the LastPaintTimeMap to a LastPaintSizeMap:  we now record the
        last size an image was resized to, rather than the time it was painted
        (the time actually became redundant in r61341 when I added the
        check for m_timer.isActive():  we only care if anything is resizing
        while the timer is active).
        (WebCore::ImageQualityController::ImageQualityController):
        Add an initializer for the m_animatedResizeIsActive flag.
        (WebCore::ImageQualityController::objectDestroyed):
        Reset the m_animatedResizeIsActive flag if this was the last object
        in the list.
        (WebCore::ImageQualityController::highQualityRepaintTimerFired):
        Only repaint all the images if there was an animated resize (otherwise,
        everything is already high quality).
        (WebCore::ImageQualityController::shouldPaintAtLowQuality):
        Implement the above algorithm.
2010-06-23  Stephen White  <senorblanco@chromium.org>

        Reviewed by David Hyatt.

        Temporarily put the tests broken by the resize change into
        test_expectations.txt.
        https://bugs.webkit.org/show_bug.cgi?id=41036

        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61710 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Abhishek Arya <inferno@chromium.org>
jschuh@chromium.org [Wed, 23 Jun 2010 21:34:59 +0000 (21:34 +0000)]
2010-06-23  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Kenneth Rohde Christiansen.

        Firing the onchange event on select which changes its size > 1 causes the select
        object to change from a menulist to a listbox. However, when propogating the events,
        we do a bad cast assuming the object will remain a menulist. Added proper checks to
        make sure we check the renderer after the onchange is fired and propogate the event
        based on correct object type.
        https://bugs.webkit.org/show_bug.cgi?id=40828

        Test: fast/events/select-onchange-crash.html

        * dom/SelectElement.cpp:
        (WebCore::SelectElement::setSelectedIndex):
2010-06-23  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Kenneth Rohde Christiansen.

        Tests that we do not crash when onchange handler changes the select from a menu list to a list box.
        https://bugs.webkit.org/show_bug.cgi?id=40828

        * fast/events/select-onchange-crash-expected.txt: Added.
        * fast/events/select-onchange-crash.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61709 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Leandro Pereira <leandro@profusion.mobi>
leandro@webkit.org [Wed, 23 Jun 2010 20:07:10 +0000 (20:07 +0000)]
2010-06-23  Leandro Pereira  <leandro@profusion.mobi>

        Reviewed by Kenneth Rohde Christiansen.

        [EFL] Add support to CPack (to generate source tarballs)
        https://bugs.webkit.org/show_bug.cgi?id=41009

        * CMakeLists.txt:
        * cmake/OptionsEfl.cmake: Define the default source generator for
        the EFL port.
        * cmake/WebKitPackaging.cmake: Added. This file filters the source
        files so that only files relevant to the selected port are included
        in the source tarball. See comments for details.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61708 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago<rdar://problem/8107855> Prevent a crash in WebCore when removing an
aestes@apple.com [Wed, 23 Jun 2010 20:03:40 +0000 (20:03 +0000)]
<rdar://problem/8107855> Prevent a crash in WebCore when removing an
object element with an invalid data URL in in a listener to its
beforeload event.
https://bugs.webkit.org/show_bug.cgi?id=41054

Reviewed by Alexey Proskuryakov.

Tests: fast/dom/beforeload/remove-bad-object-in-beforeload-listener.html

* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::renderFallbackContent): Exit early if the
object element is not in the document.
* rendering/RenderEmbeddedObject.cpp:
(WebCore::RenderEmbeddedObject::updateWidget): If RenderWidget::destroy()
was called during processing of onbeforeload, do not proceed with loading
the object.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61707 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Lucas De Marchi <lucas.demarchi@profusion.mobi>
leandro@webkit.org [Wed, 23 Jun 2010 19:39:54 +0000 (19:39 +0000)]
2010-06-23  Lucas De Marchi  <lucas.demarchi@profusion.mobi>

        Reviewed by Gustavo Noronha Silva.

        Add implementaion of new windows for EFL port. Both cases of a link
        with target="_blank" and a javascript that does window.open() are
        treated, delegating to browser the role of actually creating the
        window (or blocking it).
        https://bugs.webkit.org/show_bug.cgi?id=40930

        * CMakeListsEfl.txt: add new file that wraps the WindowFeatures struct
        * efl/WebCoreSupport/ChromeClientEfl.cpp:
        (WebCore::ChromeClientEfl::createWindow): implement method for
        creating new window by delegating to browser its creation. Browser
        might decide to continue on the same window by returning the same
        view object.
        * efl/WebCoreSupport/FrameLoaderClientEfl.cpp:
        (WebCore::FrameLoaderClientEfl::dispatchCreatePage): implement method
        for creating new window when its creation is done by a javascript
        script.
        * efl/ewk/EWebKit.h: new header for WindowFeatures.
        * efl/ewk/ewk_private.h:
        * efl/ewk/ewk_view.cpp:
        (ewk_view_window_create): call the method implemented by browser.
        * efl/ewk/ewk_view.h:
        * efl/ewk/ewk_window_features.cpp: Added.
        (ewk_window_features_unref):
        (ewk_window_features_ref):
        (ewk_window_features_bool_property_get):
        (ewk_window_features_int_property_get):
        (ewk_window_features_new_from_core): create and wrapped struct
        containing the core struct.
        * efl/ewk/ewk_window_features.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61706 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoRename SimpleArgumentCoder.h to ArgumentCoders.h
andersca@apple.com [Wed, 23 Jun 2010 19:32:31 +0000 (19:32 +0000)]
Rename SimpleArgumentCoder.h to ArgumentCoders.h

Reviewed by Sam Weinig.

* Platform/CoreIPC/ArgumentCoders.h: Copied from Platform/CoreIPC/SimpleArgumentCoder.h.
* Platform/CoreIPC/SimpleArgumentCoder.h: Removed.
* Shared/WebCoreTypeArgumentMarshalling.h:
* WebKit2.xcodeproj/project.pbxproj:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61705 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago Reviewed by Eric Seidel.
ap@apple.com [Wed, 23 Jun 2010 19:08:21 +0000 (19:08 +0000)]
    Reviewed by Eric Seidel.

        https://bugs.webkit.org/show_bug.cgi?id=41083
        fast/parser/broken-comments-vs-parsing mode no linger tests for what it used to test

        * fast/parser/broken-comments-vs-parsing-mode.html: Moved broken comment to a place where
        it doesn't affect output.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61704 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Wed, 23 Jun 2010 18:42:19 +0000 (18:42 +0000)]
2010-06-23  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        [gtk] web fonts not loaded properly in scribd html5 reader
        https://bugs.webkit.org/show_bug.cgi?id=38758

        Drop filling the pattern with default values, because this
        restricts the matching more than we want.

        * platform/graphics/cairo/FontCacheCairo.cpp:
        (WebCore::FontCache::createFontPlatformData):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61703 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Wed, 23 Jun 2010 18:41:22 +0000 (18:41 +0000)]
2010-06-23  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Add a plug-in info cache to WebPlatformStrategies
        https://bugs.webkit.org/show_bug.cgi?id=41087

        This is in preparation for proxying the getPlugins call over to the UI process.

        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp:
        (WebKit::WebPlatformStrategies::WebPlatformStrategies):
        (WebKit::WebPlatformStrategies::populatePluginCache):
        (WebKit::WebPlatformStrategies::refreshPlugins):
        (WebKit::WebPlatformStrategies::getPluginInfo):
        * WebProcess/WebCoreSupport/WebPlatformStrategies.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61702 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Gustavo Noronha Silva <gustavo.noronha@collabora.co.uk>
kov@webkit.org [Wed, 23 Jun 2010 18:23:28 +0000 (18:23 +0000)]
2010-06-23  Gustavo Noronha Silva  <gustavo.noronha@collabora.co.uk>

        Reviewed by Xan Lopez.

        [gtk] web fonts not loaded properly in scribd html5 reader
        https://bugs.webkit.org/show_bug.cgi?id=38758

        Also special-case `sans' amd `mono', which are aliases commonly
        used in GTK+ applications.

        * platform/graphics/cairo/FontCacheCairo.cpp:
        (WebCore::isWellKnownFontName):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61701 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoStop silently ignoring crashes.
weinig@apple.com [Wed, 23 Jun 2010 18:17:17 +0000 (18:17 +0000)]
Stop silently ignoring crashes.

Reviewed by John Sullivan.

* WebProcess/Launching/mac/WebProcessMain.mm:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61700 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Justin Schuh <jschuh@chromium.org>
jschuh@chromium.org [Wed, 23 Jun 2010 17:58:12 +0000 (17:58 +0000)]
2010-06-23  Justin Schuh  <jschuh@chromium.org>

        Unreviewed, rolling out r61695.
        http://trac.webkit.org/changeset/61695
        https://bugs.webkit.org/show_bug.cgi?id=40798

        61695 broke all the Linux builds.

        * platform/image-decoders/png/PNGImageDecoder.cpp:
        (WebCore::PNGImageDecoder::rowAvailable):
2010-06-23  Justin Schuh  <jschuh@chromium.org>

        Unreviewed, rolling out r61695.
        http://trac.webkit.org/changeset/61695
        https://bugs.webkit.org/show_bug.cgi?id=40798

        61695 broke all the Linux builds

        * fast/images/png-extra-row-crash-expected.txt: Removed.
        * fast/images/png-extra-row-crash.html: Removed.
        * fast/images/resources/png-extra-row-crash.png: Removed.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61699 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoAdd missing include to WKRetainPtr.
weinig@apple.com [Wed, 23 Jun 2010 17:53:22 +0000 (17:53 +0000)]
Add missing include to WKRetainPtr.

Reviewed by Anders Carlsson.

* UIProcess/API/cpp/WKRetainPtr.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61698 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoReviewed by Darin Adler.
kevino@webkit.org [Wed, 23 Jun 2010 17:52:09 +0000 (17:52 +0000)]
Reviewed by Darin Adler.

Fix PluginViewNone.cpp compilation for ports that also compile PluginView.cpp
https://bugs.webkit.org/show_bug.cgi?id=37939

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61697 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 James Robinson <jamesr@chromium.org>
jamesr@google.com [Wed, 23 Jun 2010 17:51:04 +0000 (17:51 +0000)]
2010-06-23  James Robinson  <jamesr@chromium.org>

        Unreviewed.  Add qt baseline due to port specific formatting differences for SVG rects
        https://bugs.webkit.org/show_bug.cgi?id=40366

        * platform/qt/fast/repaint/svg-layout-root-style-attr-update-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61696 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Cris Neckar <cdn@chromium.org>
jschuh@chromium.org [Wed, 23 Jun 2010 17:25:35 +0000 (17:25 +0000)]
2010-06-23  Cris Neckar  <cdn@chromium.org>

        Reviewed by Darin Fisher.

        [Chromium] Out of bounds write in WebCore::PNGImageDecoder::rowAvailable
        https://bugs.webkit.org/show_bug.cgi?id=40798

        Catches error in row callback for libPNG when extra rows are returned.

        Test: fast/images/png-extra-row-crash.html

        * platform/image-decoders/png/PNGImageDecoder.cpp:
        (WebCore::PNGImageDecoder::rowAvailable):
2010-06-23  Cris Neckar  <cdn@chromium.org>

        Reviewed by Darin Fisher.

        [Chromium] Out of bounds write in WebCore::PNGImageDecoder::rowAvailable
        https://bugs.webkit.org/show_bug.cgi?id=40798

        Tests a PNG with an extra row.

        * fast/images/png-extra-row-crash-expected.txt: Added.
        * fast/images/png-extra-row-crash.html: Added.
        * fast/images/resources/png-extra-row-crash.png: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61695 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 James Robinson <jamesr@chromium.org>
jamesr@google.com [Wed, 23 Jun 2010 17:21:54 +0000 (17:21 +0000)]
2010-06-23  James Robinson  <jamesr@chromium.org>

        Unreviewed.  Add my IRC handle to committers.py so the sheriffbot can yell at me.

        * Scripts/webkitpy/common/config/committers.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61694 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 James Robinson <jamesr@chromium.org>
jamesr@google.com [Wed, 23 Jun 2010 16:56:13 +0000 (16:56 +0000)]
2010-06-23  James Robinson  <jamesr@chromium.org>

        Reviewed by Dan Bernstein.

        Do not set needsLayout when the style attribute changes on an SVG element
        https://bugs.webkit.org/show_bug.cgi?id=40366

        SVGSVGElement::svgAttributeChanged was incorrectly calling renderer()->setNeedsLayout(true)
        whenever the styleAttr changed on its element.  This could happen during layout in some
        circumstances due to lazy style attribute synchronization.  When it did, it could cause the
        layout flags to become inconsistent.  See the test case for details.

        Changes to an element's style attribute always mark an element as needing layout anyway so
        this call was redundant.

        Test: fast/repaint/svg-layout-root-style-attr-update.html

        * svg/SVGStyledElement.cpp:
        (WebCore::SVGStyledElement::isKnownAttribute):
2010-06-23  James Robinson  <jamesr@chromium.org>

        Reviewed by Dan Bernstein.

        Do not set needsLayout when the style attribute changes on an SVG element
        https://bugs.webkit.org/show_bug.cgi?id=40366

        Tests that setting the style attribute on an SVG element does not cause
        the render tree's layout flags to go haywire.  The details are involved,
        please see the bug and test case for details.

        * fast/repaint/svg-layout-root-style-attr-update-expected.checksum: Added.
        * fast/repaint/svg-layout-root-style-attr-update-expected.png: Added.
        * fast/repaint/svg-layout-root-style-attr-update-expected.txt: Added.
        * fast/repaint/svg-layout-root-style-attr-update.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61693 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Wed, 23 Jun 2010 16:18:53 +0000 (16:18 +0000)]
2010-06-23  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        r61215 broke Acid3
        https://bugs.webkit.org/show_bug.cgi?id=41034

        The code added in r61215, which tests whether the root renderer will fill
        the entire viewport, should not run for subframes. So bail from
        RenderView::paintBoxDecorations() if document()->ownerElement() is not null.
        The old code was trying to do this by checking 'elt', but that ends up as
        null after the for loop above.

        We can also bail early if the is no FrameView().

        Test: fast/frames/paint-iframe-background.html

        * rendering/RenderView.cpp:
        (WebCore::RenderView::paintBoxDecorations):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61692 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Wed, 23 Jun 2010 16:17:04 +0000 (16:17 +0000)]
2010-06-23  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: do not reset profiles panel on navigation.

        https://bugs.webkit.org/show_bug.cgi?id=41068

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::didCommitLoad):
        * inspector/InspectorFrontend.cpp:
        (WebCore::InspectorFrontend::resetProfilesPanel):
        * inspector/InspectorFrontend.h:
        * inspector/front-end/ProfilesPanel.js:
        (WebInspector.ProfilesPanel):
        (WebInspector.ProfilesPanel.prototype.populateInterface):
        (WebInspector.ProfilesPanel.prototype.profilerWasDisabled):
        (WebInspector.ProfilesPanel.prototype._reset):
        (WebInspector.ProfilesPanel.prototype._clearProfiles):
        * inspector/front-end/inspector.js:
        (WebInspector.resetProfilesPanel):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61691 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Wed, 23 Jun 2010 16:11:21 +0000 (16:11 +0000)]
2010-06-23  Kent Tamura  <tkent@chromium.org>

        Reviewed by Dimitri Glazkov.

        Correct Chromium test configuration
        https://bugs.webkit.org/show_bug.cgi?id=41057

        * BuildSlaveSupport/build.webkit.org-config/master.cfg:
         - Add "--use-drt" option for NRWT. It is required for Chromium and
           ignored for other platforms.
         - Skip JSC test on Chromium
        * BuildSlaveSupport/test-result-archive:
          Add Chromium support.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61690 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoFix for https://bugs.webkit.org/show_bug.cgi?id=41073
weinig@apple.com [Wed, 23 Jun 2010 16:06:33 +0000 (16:06 +0000)]
Fix for https://bugs.webkit.org/show_bug.cgi?id=41073
WebKit2: Flesh out more of the InjectedBundle client API

Reviewed by Anders Carlsson.

WebKit2:

* WebProcess/InjectedBundle/API/c/WKBundle.h:
* WebProcess/InjectedBundle/API/c/WKBundlePage.h:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::willDestroyPage):
* WebProcess/InjectedBundle/InjectedBundle.h:
* WebProcess/InjectedBundle/InjectedBundlePageClient.cpp:
(WebKit::InjectedBundlePageClient::didStartProvisionalLoadForFrame):
(WebKit::InjectedBundlePageClient::didReceiveServerRedirectForProvisionalLoadForFrame):
(WebKit::InjectedBundlePageClient::didFailProvisionalLoadWithErrorForFrame):
(WebKit::InjectedBundlePageClient::didCommitLoadForFrame):
(WebKit::InjectedBundlePageClient::didFinishLoadForFrame):
(WebKit::InjectedBundlePageClient::didFailLoadWithErrorForFrame):
(WebKit::InjectedBundlePageClient::didReceiveTitleForFrame):
* WebProcess/InjectedBundle/InjectedBundlePageClient.h:
* WebProcess/InjectedBundle/mac/InjectedBundleMac.cpp:
(WebKit::InjectedBundle::load): Add some error logging on failure to load the bundle.
* WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
(WebKit::WebFrameLoaderClient::dispatchDidReceiveServerRedirectForProvisionalLoad):
(WebKit::WebFrameLoaderClient::dispatchDidStartProvisionalLoad):
(WebKit::WebFrameLoaderClient::dispatchDidReceiveTitle):
(WebKit::WebFrameLoaderClient::dispatchDidCommitLoad):
(WebKit::WebFrameLoaderClient::dispatchDidFailProvisionalLoad):
(WebKit::WebFrameLoaderClient::dispatchDidFailLoad):
(WebKit::WebFrameLoaderClient::dispatchDidFinishLoad):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::close):
* mac/WebKit2.exp:

WebKitTools:

* MiniBrowser/mac/WebBundle/WebBundleMain.m:
(_didStartProvisionalLoadForFrame):
(_didReceiveServerRedirectForProvisionalLoadForFrame):
(_didFailProvisionalLoadWithErrorForFrame):
(_didCommitLoadForFrame):
(_didFinishLoadForFrame):
(_didFailLoadWithErrorForFrame):
(_didReceiveTitleForFrame):
(_didClearWindowForFrame):
(_didCreatePage):
(_willDestroyPage):
(WKBundleInitialize):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61689 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Wed, 23 Jun 2010 15:34:08 +0000 (15:34 +0000)]
2010-06-23  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: InspectorController should be added only once as ScriptDebugListener to
        ScriptDebugServer.
        https://bugs.webkit.org/show_bug.cgi?id=41070

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::connectFrontend):
        (WebCore::InspectorController::disconnectFrontend):
        (WebCore::InspectorController::enableDebuggerFromFrontend):
        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel): don't call InspectorBackend.enableDebugger if debugger is always enabled,
        InspectorController will do this on its side when the front end is connected.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61688 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Pavel Podivilov <podivilov@chromium.org>
yurys@chromium.org [Wed, 23 Jun 2010 15:01:06 +0000 (15:01 +0000)]
2010-06-23  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Clear breakpoints before restoring them, not after.
        https://bugs.webkit.org/show_bug.cgi?id=41071

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::enableDebuggerFromFrontend):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61687 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoDo not render the full frame when there is some elements with fixed positioning
benjamin.poulain@nokia.com [Wed, 23 Jun 2010 14:11:26 +0000 (14:11 +0000)]
Do not render the full frame when there is some elements with fixed positioning
https://bugs.webkit.org/show_bug.cgi?id=33150

Reviewed by Kenneth Rohde Christiansen.

Do not render the full frame when there is some elements with fixed positioning
https://bugs.webkit.org/show_bug.cgi?id=33150

The frame view take into acount the list of fixed object when scrolling
the view. If the number of object is lower than a certain threshold, the pixel
are blitted, and the invalidated area updated.

* page/FrameView.cpp:
(WebCore::FrameView::addFixedObject):
(WebCore::FrameView::removeFixedObject):
(WebCore::FrameView::scrollContentsFastPath):
* page/FrameView.h:
* platform/ScrollView.cpp:
(WebCore::ScrollView::scrollContents):
(WebCore::ScrollView::scrollContentsFastPath):
* platform/ScrollView.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::repaintRectIncludingDescendants):
* rendering/RenderLayer.h:
* rendering/RenderObject.cpp:
(WebCore::RenderObject::styleWillChange):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61686 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Leandro Pereira <leandro@profusion.mobi>
leandro@webkit.org [Wed, 23 Jun 2010 14:01:17 +0000 (14:01 +0000)]
2010-06-23  Leandro Pereira  <leandro@profusion.mobi>

        Unreviewed build fix.

        * CMakeLists.txt: Add runtime/RegExpCache.cpp.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61685 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[Qt] Doc: Fixed documentation errors.
hausmann@webkit.org [Wed, 23 Jun 2010 13:33:02 +0000 (13:33 +0000)]
[Qt] Doc: Fixed documentation errors.

Patch by David Boddie <dboddie@trolltech.com> on 2010-06-23
Reviewed by Simon Hausmann.

* docs/qtwebkit-bridge.qdoc:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61684 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago[Qt] Provide the Webkit Qml plugin with a UID3 on Symbian
hausmann@webkit.org [Wed, 23 Jun 2010 13:19:36 +0000 (13:19 +0000)]
[Qt] Provide the Webkit Qml plugin with a UID3 on Symbian

Patch by Alessandro Portale <alessandro.portale@nokia.com> on 2010-06-23
Reviewed by Simon Hausmann.

...otherwise we cannot Symbian sign it.

* declarative/declarative.pro:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61683 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Mikhail Naganov <mnaganov@chromium.org>
mnaganov@chromium.org [Wed, 23 Jun 2010 12:14:44 +0000 (12:14 +0000)]
2010-06-23  Mikhail Naganov  <mnaganov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: Fix displaying of several CPU profiles with the same name.

        https://bugs.webkit.org/show_bug.cgi?id=40992

        * inspector/front-end/ProfilesPanel.js:
        (WebInspector.ProfileGroupSidebarTreeElement.prototype.onselect):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61682 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed Qt package build fix.
hausmann@webkit.org [Wed, 23 Jun 2010 10:36:19 +0000 (10:36 +0000)]
Unreviewed Qt package build fix.

When building without build-webkit, set OUTPUT_DIR if necessary, like
in the other .pro files.

* declarative/declarative.pro:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61681 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Yuzo Fujishima <yuzo@google.com>
yuzo@google.com [Wed, 23 Jun 2010 10:29:36 +0000 (10:29 +0000)]
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Make page format data methods accessible from Chromium
        https://bugs.webkit.org/show_bug.cgi?id=41056

        * public/WebFrame.h:
        * src/WebFrameImpl.cpp:
        (WebKit::WebFrameImpl::isPageBoxVisible):
        (WebKit::WebFrameImpl::pageAreaRectInPixels):
        (WebKit::WebFrameImpl::preferredPageSizeInPixels):
        * src/WebFrameImpl.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61680 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 23 Jun 2010 09:37:34 +0000 (09:37 +0000)]
2010-06-23  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Forgot to update result of fast/xpath/namespace-vs-predicate.html after the SVG renderer creation changes.

        * fast/xpath/namespace-vs-predicate-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61679 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 09:21:08 +0000 (09:21 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Unreviewed.  clean-header-guards that were made dirty by recent
        renames.

        * html/HTMLDocumentParser.h:
        * html/HTMLPreloadScanner.h:
        * html/HTMLTokenizer.h:
        * html/HTMLTreeBuilder.h:
        * html/LegacyHTMLDocumentParser.h:
        * html/LegacyHTMLTreeBuilder.h:
        * html/LegacyPreloadScanner.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61678 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 09:03:47 +0000 (09:03 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename LegacyHTMLTreeConstructor to LegacyHTMLTreeBuilder
        https://bugs.webkit.org/show_bug.cgi?id=41053

        There was some debate about whether to call this class (and the
        non-legacy version) "tree builder" or "tree constructor".  Maciej
        pointed out that other implementations (including Mozilla and HTML5Lib)
        call it a tree builder.  The path of least resistance seems to be call
        it that for now.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * dom/Document.cpp:
        * dom/DocumentParser.h:
        (WebCore::DocumentParser::htmlTreeConstructor):
        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::htmlTreeConstructor):
        * html/HTMLDocumentParser.h:
        * html/HTMLFormControlElement.cpp:
        (WebCore::HTMLFormControlElement::removedFromTree):
        * html/HTMLInputElement.cpp:
        * html/HTMLMeterElement.cpp:
        * html/HTMLProgressElement.cpp:
        * html/HTMLTreeBuilder.cpp:
        (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
        * html/HTMLTreeBuilder.h:
        (WebCore::HTMLTreeBuilder::legacyTreeConstructor):
        * html/LegacyHTMLDocumentParser.cpp:
        (WebCore::LegacyHTMLDocumentParser::LegacyHTMLDocumentParser):
        * html/LegacyHTMLDocumentParser.h:
        (WebCore::LegacyHTMLDocumentParser::htmlTreeConstructor):
        * html/LegacyHTMLTreeBuilder.cpp: Copied from WebCore/html/LegacyHTMLTreeConstructor.cpp.
        (WebCore::LegacyHTMLTreeBuilder::LegacyHTMLTreeBuilder):
        (WebCore::LegacyHTMLTreeBuilder::~LegacyHTMLTreeBuilder):
        (WebCore::LegacyHTMLTreeBuilder::reset):
        (WebCore::LegacyHTMLTreeBuilder::setCurrent):
        (WebCore::LegacyHTMLTreeBuilder::limitDepth):
        (WebCore::LegacyHTMLTreeBuilder::insertNodeAfterLimitDepth):
        (WebCore::LegacyHTMLTreeBuilder::parseToken):
        (WebCore::LegacyHTMLTreeBuilder::parseDoctypeToken):
        (WebCore::LegacyHTMLTreeBuilder::insertNode):
        (WebCore::LegacyHTMLTreeBuilder::handleError):
        (WebCore::LegacyHTMLTreeBuilder::textCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::commentCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::headCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::bodyCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::framesetCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::formCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::isindexCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::selectCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::ddCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::dtCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::rpCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::rtCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::nestedCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::nestedPCloserCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::nestedStyleCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::tableCellCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::tableSectionCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::noembedCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::noframesCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::noscriptCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::pCloserCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::pCloserStrictCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::mapCreateErrorCheck):
        (WebCore::LegacyHTMLTreeBuilder::getNode):
        (WebCore::LegacyHTMLTreeBuilder::allowNestedRedundantTag):
        (WebCore::LegacyHTMLTreeBuilder::processCloseTag):
        (WebCore::LegacyHTMLTreeBuilder::isHeadingTag):
        (WebCore::LegacyHTMLTreeBuilder::isInline):
        (WebCore::LegacyHTMLTreeBuilder::isResidualStyleTag):
        (WebCore::LegacyHTMLTreeBuilder::isAffectedByResidualStyle):
        (WebCore::LegacyHTMLTreeBuilder::handleResidualStyleCloseTagAcrossBlocks):
        (WebCore::LegacyHTMLTreeBuilder::reopenResidualStyleTags):
        (WebCore::LegacyHTMLTreeBuilder::pushBlock):
        (WebCore::LegacyHTMLTreeBuilder::popBlock):
        (WebCore::LegacyHTMLTreeBuilder::popOneBlockCommon):
        (WebCore::LegacyHTMLTreeBuilder::popOneBlock):
        (WebCore::LegacyHTMLTreeBuilder::moveOneBlockToStack):
        (WebCore::LegacyHTMLTreeBuilder::checkIfHasPElementInScope):
        (WebCore::LegacyHTMLTreeBuilder::popInlineBlocks):
        (WebCore::LegacyHTMLTreeBuilder::freeBlock):
        (WebCore::LegacyHTMLTreeBuilder::createHead):
        (WebCore::LegacyHTMLTreeBuilder::handleIsindex):
        (WebCore::LegacyHTMLTreeBuilder::startBody):
        (WebCore::LegacyHTMLTreeBuilder::finished):
        (WebCore::LegacyHTMLTreeBuilder::reportErrorToConsole):
        * html/LegacyHTMLTreeBuilder.h: Copied from WebCore/html/LegacyHTMLTreeConstructor.h.
        * html/LegacyHTMLTreeConstructor.cpp: Removed.
        * html/LegacyHTMLTreeConstructor.h: Removed.
        * html/StepRange.cpp:
        * html/ValidityState.cpp:
        * rendering/RenderSlider.cpp:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61677 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Wed, 23 Jun 2010 08:50:44 +0000 (08:50 +0000)]
2010-06-23  Kent Tamura  <tkent@chromium.org>

        Unreviewed, test expectation update.

        Add expectations for r61667 and r61669.

        * platform/chromium-linux/svg/custom/bug45331-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject: Added.
        * platform/chromium-linux/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject/svg-document-as-direct-child-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject/svg-document-in-html-document-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject/text-tref-02-b-expected.checksum: Added.
        * platform/chromium-linux/svg/foreignObject/text-tref-02-b-expected.png: Added.
        * platform/chromium-win/svg/custom/bug45331-expected.checksum: Added.
        * platform/chromium-win/svg/custom/bug45331-expected.png: Added.
        * platform/chromium-win/svg/custom/bug45331-expected.txt: Added.
        * platform/chromium-win/svg/foreignObject: Added.
        * platform/chromium-win/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.checksum: Added.
        * platform/chromium-win/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.png: Added.
        * platform/chromium-win/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.txt: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-as-direct-child-expected.checksum: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-as-direct-child-expected.png: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-as-direct-child-expected.txt: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-in-html-document-expected.checksum: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-in-html-document-expected.png: Added.
        * platform/chromium-win/svg/foreignObject/svg-document-in-html-document-expected.txt: Added.
        * platform/chromium-win/svg/foreignObject/text-tref-02-b-expected.checksum: Added.
        * platform/chromium-win/svg/foreignObject/text-tref-02-b-expected.png: Added.
        * platform/chromium-win/svg/foreignObject/text-tref-02-b-expected.txt: Added.
        * platform/chromium/test_expectations.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61676 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 08:44:01 +0000 (08:44 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename the preload scanners
        https://bugs.webkit.org/show_bug.cgi?id=41052

        Renames PreloadScanner to LegacyPreloadScanner because this code is now
        off by default.  Also, rename HTML5PreloadScanner to
        HTMLPreloadScanner.  We're not calling it PreloadScanner because we've
        factored out the CSSPreloadScanner and the HTMLPreloadScanner from the
        original PreloadScanner.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTML5PreloadScanner.cpp: Removed.
        * html/HTML5PreloadScanner.h: Removed.
        * html/HTMLDocumentParser.cpp:
        (WebCore::HTMLDocumentParser::pumpTokenizer):
        * html/HTMLDocumentParser.h:
        * html/HTMLPreloadScanner.cpp: Copied from WebCore/html/HTML5PreloadScanner.cpp.
        (WebCore::HTMLPreloadScanner::HTMLPreloadScanner):
        (WebCore::HTMLPreloadScanner::appendToEnd):
        (WebCore::HTMLPreloadScanner::scan):
        (WebCore::HTMLPreloadScanner::processToken):
        (WebCore::HTMLPreloadScanner::scanningBody):
        * html/HTMLPreloadScanner.h: Copied from WebCore/html/HTML5PreloadScanner.h.
        * html/LegacyHTMLDocumentParser.cpp:
        (WebCore::LegacyHTMLDocumentParser::scriptHandler):
        (WebCore::LegacyHTMLDocumentParser::scriptExecution):
        * html/LegacyHTMLDocumentParser.h:
        * html/LegacyPreloadScanner.cpp: Copied from WebCore/html/PreloadScanner.cpp.
        (WebCore::LegacyPreloadScanner::LegacyPreloadScanner):
        (WebCore::LegacyPreloadScanner::~LegacyPreloadScanner):
        (WebCore::LegacyPreloadScanner::begin):
        (WebCore::LegacyPreloadScanner::end):
        (WebCore::LegacyPreloadScanner::reset):
        (WebCore::LegacyPreloadScanner::scanningBody):
        (WebCore::LegacyPreloadScanner::write):
        (WebCore::LegacyPreloadScanner::clearLastCharacters):
        (WebCore::LegacyPreloadScanner::rememberCharacter):
        (WebCore::LegacyPreloadScanner::lastCharactersMatch):
        (WebCore::LegacyPreloadScanner::consumeEntity):
        (WebCore::LegacyPreloadScanner::tokenize):
        (WebCore::LegacyPreloadScanner::processAttribute):
        (WebCore::LegacyPreloadScanner::emitCharacter):
        (WebCore::LegacyPreloadScanner::tokenizeCSS):
        (WebCore::LegacyPreloadScanner::emitTag):
        (WebCore::LegacyPreloadScanner::emitCSSRule):
        * html/LegacyPreloadScanner.h: Copied from WebCore/html/PreloadScanner.h.
        * html/PreloadScanner.cpp: Removed.
        * html/PreloadScanner.h: Removed.
        * page/XSSAuditor.cpp:
        (WebCore::XSSAuditor::decodeHTMLEntities):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61675 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 08:33:34 +0000 (08:33 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Yet more HTML5 => HTML renames
        https://bugs.webkit.org/show_bug.cgi?id=41051

        This patch renames HTML5DocumentParser to HTMLDocumentParser and
        HTML5TreeBuilder to HTMLTreeBuilder.  There was some discussion about
        whether to use the name HTMLTreeBuilder or HTMLTreeConstructor, but
        tree builder seems to be the dominate name in other implementations.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * dom/DocumentFragment.cpp:
        (WebCore::DocumentFragment::parseHTML):
        * html/HTML5DocumentParser.cpp: Removed.
        * html/HTML5DocumentParser.h: Removed.
        * html/HTML5PreloadScanner.cpp:
        (WebCore::HTML5PreloadScanner::scan):
        (WebCore::HTML5PreloadScanner::processToken):
        * html/HTML5TreeBuilder.cpp: Removed.
        * html/HTML5TreeBuilder.h: Removed.
        * html/HTMLDocument.cpp:
        (WebCore::HTMLDocument::createParser):
        * html/HTMLDocumentParser.cpp: Copied from WebCore/html/HTML5DocumentParser.cpp.
        (WebCore::HTMLDocumentParser::HTMLDocumentParser):
        (WebCore::HTMLDocumentParser::~HTMLDocumentParser):
        (WebCore::HTMLDocumentParser::begin):
        (WebCore::HTMLDocumentParser::stopParsing):
        (WebCore::HTMLDocumentParser::processingData):
        (WebCore::HTMLDocumentParser::pumpTokenizerIfPossible):
        (WebCore::HTMLDocumentParser::isScheduledForResume):
        (WebCore::HTMLDocumentParser::resumeParsingAfterYield):
        (WebCore::HTMLDocumentParser::runScriptsForPausedTreeConstructor):
        (WebCore::HTMLDocumentParser::pumpTokenizer):
        (WebCore::HTMLDocumentParser::willPumpLexer):
        (WebCore::HTMLDocumentParser::didPumpLexer):
        (WebCore::HTMLDocumentParser::write):
        (WebCore::HTMLDocumentParser::end):
        (WebCore::HTMLDocumentParser::attemptToEnd):
        (WebCore::HTMLDocumentParser::endIfDelayed):
        (WebCore::HTMLDocumentParser::finish):
        (WebCore::HTMLDocumentParser::finishWasCalled):
        (WebCore::HTMLDocumentParser::executingScript):
        (WebCore::HTMLDocumentParser::inScriptExecution):
        (WebCore::HTMLDocumentParser::lineNumber):
        (WebCore::HTMLDocumentParser::columnNumber):
        (WebCore::HTMLDocumentParser::htmlTreeConstructor):
        (WebCore::HTMLDocumentParser::isWaitingForScripts):
        (WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):
        (WebCore::HTMLDocumentParser::watchForLoad):
        (WebCore::HTMLDocumentParser::stopWatchingForLoad):
        (WebCore::HTMLDocumentParser::shouldLoadExternalScriptFromSrc):
        (WebCore::HTMLDocumentParser::notifyFinished):
        (WebCore::HTMLDocumentParser::executeScriptsWaitingForStylesheets):
        (WebCore::HTMLDocumentParser::script):
        * html/HTMLDocumentParser.h: Copied from WebCore/html/HTML5DocumentParser.h.
        * html/HTMLParserScheduler.cpp:
        (WebCore::HTMLParserScheduler::HTMLParserScheduler):
        * html/HTMLParserScheduler.h:
        * html/HTMLTreeBuilder.cpp: Copied from WebCore/html/HTML5TreeBuilder.cpp.
        (WebCore::HTMLTreeBuilder::HTMLTreeBuilder):
        (WebCore::HTMLTreeBuilder::~HTMLTreeBuilder):
        (WebCore::HTMLTreeBuilder::handleScriptStartTag):
        (WebCore::HTMLTreeBuilder::handleScriptEndTag):
        (WebCore::HTMLTreeBuilder::takeScriptToProcess):
        (WebCore::HTMLTreeBuilder::adjustedLexerState):
        (WebCore::HTMLTreeBuilder::passTokenToLegacyParser):
        (WebCore::HTMLTreeBuilder::constructTreeFromToken):
        (WebCore::HTMLTreeBuilder::processToken):
        (WebCore::HTMLTreeBuilder::finished):
        (WebCore::HTMLTreeBuilder::isScriptingFlagEnabled):
        * html/HTMLTreeBuilder.h: Copied from WebCore/html/HTML5TreeBuilder.h.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61674 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 08:18:31 +0000 (08:18 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        More HTML5 => HTML renames
        https://bugs.webkit.org/show_bug.cgi?id=41049

        This patch renames HTML5ScriptRunner, HTML5ScriptRunnerHost, and
        HTML5Token to remove the "5" from their names.  These clases aren't
        specific to HTML5 and will be used going forward.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/CSSPreloadScanner.cpp:
        (WebCore::CSSPreloadScanner::scan):
        * html/CSSPreloadScanner.h:
        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::HTML5DocumentParser):
        (WebCore::HTML5DocumentParser::notifyFinished):
        * html/HTML5DocumentParser.h:
        * html/HTML5PreloadScanner.cpp:
        (WebCore::HTMLNames::PreloadTask::PreloadTask):
        (WebCore::HTMLNames::PreloadTask::processAttributes):
        (WebCore::HTML5PreloadScanner::processToken):
        * html/HTML5PreloadScanner.h:
        * html/HTML5ScriptRunner.cpp: Removed.
        * html/HTML5ScriptRunner.h: Removed.
        * html/HTML5ScriptRunnerHost.h: Removed.
        * html/HTML5Token.h: Removed.
        * html/HTML5TreeBuilder.cpp:
        (WebCore::convertToOldStyle):
        (WebCore::HTML5TreeBuilder::handleScriptEndTag):
        (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
        (WebCore::HTML5TreeBuilder::constructTreeFromToken):
        (WebCore::HTML5TreeBuilder::processToken):
        * html/HTML5TreeBuilder.h:
        * html/HTMLScriptRunner.cpp: Copied from WebCore/html/HTML5ScriptRunner.cpp.
        (WebCore::HTMLScriptRunner::HTMLScriptRunner):
        (WebCore::HTMLScriptRunner::~HTMLScriptRunner):
        (WebCore::HTMLScriptRunner::sourceFromPendingScript):
        (WebCore::HTMLScriptRunner::isPendingScriptReady):
        (WebCore::HTMLScriptRunner::executePendingScript):
        (WebCore::HTMLScriptRunner::executeScript):
        (WebCore::HTMLScriptRunner::hasScriptsWaitingForLoad):
        (WebCore::HTMLScriptRunner::watchForLoad):
        (WebCore::HTMLScriptRunner::stopWatchingForLoad):
        (WebCore::HTMLScriptRunner::execute):
        (WebCore::HTMLScriptRunner::haveParsingBlockingScript):
        (WebCore::HTMLScriptRunner::executeParsingBlockingScripts):
        (WebCore::HTMLScriptRunner::executeScriptsWaitingForLoad):
        (WebCore::HTMLScriptRunner::executeScriptsWaitingForStylesheets):
        (WebCore::HTMLScriptRunner::requestScript):
        (WebCore::HTMLScriptRunner::runScript):
        * html/HTMLScriptRunner.h: Copied from WebCore/html/HTML5ScriptRunner.h.
        * html/HTMLScriptRunnerHost.h: Copied from WebCore/html/HTML5ScriptRunnerHost.h.
        (WebCore::HTMLScriptRunnerHost::~HTMLScriptRunnerHost):
        * html/HTMLToken.h: Copied from WebCore/html/HTML5Token.h.
        (WebCore::HTMLToken::HTMLToken):
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::nextToken):
        (WebCore::HTMLTokenizer::emitCharacter):
        (WebCore::HTMLTokenizer::emitCurrentToken):
        (WebCore::HTMLTokenizer::shouldEmitBufferedCharacterToken):
        * html/HTMLTokenizer.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61673 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 07:49:07 +0000 (07:49 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename HTML5EntityParser to HTMLEntityParser
        https://bugs.webkit.org/show_bug.cgi?id=41048

        Mostly the result of do-webcore-rename, but I tweaked the header guard
        and the name of the free function.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTML5EntityParser.cpp: Removed.
        * html/HTML5EntityParser.h: Removed.
        * html/HTMLEntityParser.cpp: Copied from WebCore/html/HTML5EntityParser.cpp.
        (WebCore::consumeHTMLEntity):
        * html/HTMLEntityParser.h: Copied from WebCore/html/HTML5EntityParser.h.
        * html/HTMLTokenizer.cpp:
        (WebCore::HTMLTokenizer::processEntity):
        (WebCore::HTMLTokenizer::nextToken):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61672 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-22 Yuta Kitamura <yutak@chromium.org>
morrita@google.com [Wed, 23 Jun 2010 07:37:50 +0000 (07:37 +0000)]
2010-06-22  Yuta Kitamura  <yutak@chromium.org>

        Reviewed by Alexey Proskuryakov.

        Add a new class that stores information about WebSocket handshake response.

        In the future, instances of the new class will be passed to the Web Inspector
        so that it will be able to display information about WebSocket handshake
        response.

        WebSocket: Add WebSocketHandshakeResponse
        https://bugs.webkit.org/show_bug.cgi?id=38728

        Test: websocket/tests/handshake-fail-by-no-cr.html

        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * websockets/WebSocketHandshake.cpp:
        (WebCore::trimConsoleMessage):
        (WebCore::WebSocketHandshake::readServerHandshake):
        (WebCore::WebSocketHandshake::serverHandshakeResponse):
        (WebCore::WebSocketHandshake::readStatusLine): Moved from extractResponseCode.
        Add more error checks and make error messages more descriptive.
        (WebCore::WebSocketHandshake::readHTTPHeaders):
        (WebCore::WebSocketHandshake::processHeaders):
        * websockets/WebSocketHandshake.h:
        * websockets/WebSocketHandshakeResponse.cpp: Added.
        (WebCore::WebSocketHandshakeResponse::ChallengeResponse::ChallengeResponse):
        (WebCore::WebSocketHandshakeResponse::ChallengeResponse::set):
        (WebCore::WebSocketHandshakeResponse::WebSocketHandshakeResponse):
        (WebCore::WebSocketHandshakeResponse::~WebSocketHandshakeResponse):
        (WebCore::WebSocketHandshakeResponse::statusCode):
        (WebCore::WebSocketHandshakeResponse::setStatusCode):
        (WebCore::WebSocketHandshakeResponse::statusText):
        (WebCore::WebSocketHandshakeResponse::setStatusText):
        (WebCore::WebSocketHandshakeResponse::headerFields):
        (WebCore::WebSocketHandshakeResponse::addHeaderField):
        (WebCore::WebSocketHandshakeResponse::clearHeaderFields):
        (WebCore::WebSocketHandshakeResponse::challengeResponse):
        (WebCore::WebSocketHandshakeResponse::setChallengeResponse):
        * websockets/WebSocketHandshakeResponse.h: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61671 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Yuzo Fujishima <yuzo@google.com>
yuzo@google.com [Wed, 23 Jun 2010 07:30:04 +0000 (07:30 +0000)]
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Implement page format data programming interface.
        https://bugs.webkit.org/show_bug.cgi?id=37538

        * platform/chromium/test_expectations.txt:
        * platform/gtk/Skipped:
        * platform/qt/Skipped:
        * platform/win/Skipped:
        * printing/page-format-data-expected.txt: Added.
        * printing/page-format-data.html: Added.
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Implement page format data programming interface.
        The final goal is to implement CSS Paged Media Module Level 3 (http://dev.w3.org/csswg/css3-page/).
        To begin with, this change adds methods to know:
        - if page box is visible,
        - the page area rectangle, and
        - preferred page size.

        https://bugs.webkit.org/show_bug.cgi?id=37538

        Test: printing/page-format-data.html

        * WebCore.base.exp:
        * css/CSSParser.cpp:
        (WebCore::CSSParser::parseSizeParameter):
        * css/CSSStyleSelector.cpp:
        (WebCore::CSSStyleSelector::applyProperty):
        (WebCore::CSSStyleSelector::applyPageSizeProperty):
        (WebCore::CSSStyleSelector::pageSizeFromName):
        (WebCore::CSSStyleSelector::mmLength):
        (WebCore::CSSStyleSelector::inchLength):
        * css/CSSStyleSelector.h:
        * css/html.css:
        (@page):
        * dom/Document.cpp:
        (WebCore::Document::isPageBoxVisible):
        (WebCore::Document::pageAreaRectInPixels):
        (WebCore::Document::preferredPageSizeInPixels):
        * dom/Document.h:
        * page/PrintContext.cpp:
        (WebCore::PrintContext::isPageBoxVisible):
        (WebCore::PrintContext::pageAreaRectInPixels):
        (WebCore::PrintContext::preferredPageSizeInPixels):
        * page/PrintContext.h:
        * rendering/style/RenderStyle.h:
        (WebCore::InheritedFlags::pageSize):
        (WebCore::InheritedFlags::setPageSize):
        * rendering/style/StyleRareNonInheritedData.h:
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Implement page format data programming interface.
        Add methods for testing.
        https://bugs.webkit.org/show_bug.cgi?id=37538

        * Misc/WebCoreStatistics.h:
        * Misc/WebCoreStatistics.mm:
        (-[WebFrame isPageBoxVisible:]):
        (-[WebFrame pageAreaRectInPixels:]):
        (-[WebFrame preferredPageSizeInPixels:]):
2010-06-23  Yuzo Fujishima  <yuzo@google.com>

        Reviewed by Shinichiro Hamaji.

        Implement page format data programming interface.
        Add methods for testing.
        https://bugs.webkit.org/show_bug.cgi?id=37538

        * DumpRenderTree/LayoutTestController.cpp:
        (parsePageNumber):
        (isPageBoxVisibleCallback):
        (pageAreaRectInPixelsCallback):
        (preferredPageSizeInPixelsCallback):
        (LayoutTestController::staticFunctions):
        * DumpRenderTree/LayoutTestController.h:
        * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
        (LayoutTestController::isPageBoxVisible):
        (LayoutTestController::pageAreaRectInPixels):
        (LayoutTestController::preferredPageSizeInPixels):
        * DumpRenderTree/mac/LayoutTestControllerMac.mm:
        (LayoutTestController::isPageBoxVisible):
        (LayoutTestController::pageAreaRectInPixels):
        (LayoutTestController::preferredPageSizeInPixels):
        * DumpRenderTree/win/LayoutTestControllerWin.cpp:
        (LayoutTestController::isPageBoxVisible):
        (LayoutTestController::pageAreaRectInPixels):
        (LayoutTestController::preferredPageSizeInPixels):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61670 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 23 Jun 2010 07:19:44 +0000 (07:19 +0000)]
2010-06-23  Nikolas Zimmermann  <nzimmermann@rim.com>

        Not reviewed. Forgot to include four files in the last commit.

        * platform/mac/svg/custom/bug45331-expected.checksum: Added.
        * platform/mac/svg/custom/bug45331-expected.png: Added.
        * platform/mac/svg/custom/bug45331-expected.txt: Added.
        * svg/custom/bug45331.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61669 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 07:16:51 +0000 (07:16 +0000)]
2010-06-23  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename lexer and m_lexer to tokenizer and m_tokenizer, respectively
        https://bugs.webkit.org/show_bug.cgi?id=41046

        This is a follow up to the recent HTML5Lexer => HTMLTokenizer rename.

        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::HTML5DocumentParser):
        (WebCore::HTML5DocumentParser::begin):
        (WebCore::HTML5DocumentParser::pumpLexer):
        (WebCore::HTML5DocumentParser::willPumpLexer):
        (WebCore::HTML5DocumentParser::didPumpLexer):
        (WebCore::HTML5DocumentParser::lineNumber):
        (WebCore::HTML5DocumentParser::columnNumber):
        * html/HTML5DocumentParser.h:
        * html/HTML5PreloadScanner.cpp:
        (WebCore::HTML5PreloadScanner::scan):
        (WebCore::HTML5PreloadScanner::processToken):
        * html/HTML5PreloadScanner.h:
        * html/HTML5TreeBuilder.cpp:
        (WebCore::HTML5TreeBuilder::HTML5TreeBuilder):
        (WebCore::HTML5TreeBuilder::handleScriptStartTag):
        (WebCore::HTML5TreeBuilder::passTokenToLegacyParser):
        * html/HTML5TreeBuilder.h:
        * html/HTMLTokenizer.h:
        * html/LegacyHTMLDocumentParser.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61668 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Nikolas Zimmermann <nzimmermann@rim.com>
zimmermann@webkit.org [Wed, 23 Jun 2010 07:11:19 +0000 (07:11 +0000)]
2010-06-23  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Eric Seidel.

        Reproducible crash in com.apple.WebCore 0x01ed3784 WebCore::RenderLineBoxList::appendLineBox(WebCore::InlineFlowBox*) + 36
        https://bugs.webkit.org/show_bug.cgi?id=40953

        REGRESSION (r58209-58231): Memory corruption with invalid SVG
        https://bugs.webkit.org/show_bug.cgi?id=40173

        Fix several crashes, all related to <foreignObject> and/or invalid SVG documents.
        - Only allow <svg> nodes, as direct children of a <foreignObject>, not any other "partial" SVG content.
        - Assure to create RenderSVGRoot objects for <svg> nodes in <foreignObject>, treat them as "outermost SVG elements".
        - Never allow any partial SVG content to appear in any document. Only <svg> elements are allowed.

        Tests: svg/custom/bug45331.svg
               svg/foreignObject/disallowed-svg-nodes-as-direct-children.svg
               svg/foreignObject/no-crash-with-svg-content-in-html-document.svg
               svg/foreignObject/svg-document-as-direct-child.svg
               svg/foreignObject/svg-document-in-html-document.svg
               svg/foreignObject/text-tref-02-b.svg

        * dom/Element.cpp: Added childShouldCreateRenderer, with ENABLE(SVG) guards.
        (WebCore::Element::childShouldCreateRenderer): Only create a renderer for a SVG child, if we're a SVG element, or if the child is a <svg> element.
        * dom/Element.h: Added childShouldCreateRenderer, with ENABLE(SVG) guards.
        * svg/SVGForeignObjectElement.cpp:
        (WebCore::SVGForeignObjectElement::childShouldCreateRenderer): Disallow arbitary SVG content, only <svg> elements are allowed as direct children of a <foreignObject>
        * svg/SVGSVGElement.cpp:
        (WebCore::SVGSVGElement::isOutermostSVG): Be sure to create RenderSVGRoot objects for <svg> elements inside <foreignObject>

2010-06-23  Nikolas Zimmermann  <nzimmermann@rim.com>

        Reviewed by Eric Seidel.

        Reproducible crash in com.apple.WebCore 0x01ed3784 WebCore::RenderLineBoxList::appendLineBox(WebCore::InlineFlowBox*) + 36
        https://bugs.webkit.org/show_bug.cgi?id=40953

        REGRESSION (r58209-58231): Memory corruption with invalid SVG
        https://bugs.webkit.org/show_bug.cgi?id=40173

        Added several new layout tests covering the crashes with <foreignObject> and/or invalid SVG documents.

        * platform/mac/svg/custom/bug45331-expected.checksum: Added.
        * platform/mac/svg/custom/bug45331-expected.png: Added.
        * platform/mac/svg/custom/bug45331-expected.txt: Added.
        * platform/mac/svg/foreignObject: Added.
        * platform/mac/svg/foreignObject/disallowed-svg-nodes-as-direct-children-expected.checksum: Added.
        * platform/mac/svg/foreignObject/disallowed-svg-nodes-as-direct-children-expected.png: Added.
        * platform/mac/svg/foreignObject/disallowed-svg-nodes-as-direct-children-expected.txt: Added.
        * platform/mac/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.checksum: Added.
        * platform/mac/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.png: Added.
        * platform/mac/svg/foreignObject/no-crash-with-svg-content-in-html-document-expected.txt: Added.
        * platform/mac/svg/foreignObject/svg-document-as-direct-child-expected.checksum: Added.
        * platform/mac/svg/foreignObject/svg-document-as-direct-child-expected.png: Added.
        * platform/mac/svg/foreignObject/svg-document-as-direct-child-expected.txt: Added.
        * platform/mac/svg/foreignObject/svg-document-in-html-document-expected.checksum: Added.
        * platform/mac/svg/foreignObject/svg-document-in-html-document-expected.png: Added.
        * platform/mac/svg/foreignObject/svg-document-in-html-document-expected.txt: Added.
        * platform/mac/svg/foreignObject/text-tref-02-b-expected.checksum: Added.
        * platform/mac/svg/foreignObject/text-tref-02-b-expected.png: Added.
        * platform/mac/svg/foreignObject/text-tref-02-b-expected.txt: Added.
        * svg/custom/bug45331.svg: Added.
        * svg/foreignObject: Added.
        * svg/foreignObject/disallowed-svg-nodes-as-direct-children.svg: Added.
        * svg/foreignObject/no-crash-with-svg-content-in-html-document.svg: Added.
        * svg/foreignObject/svg-document-as-direct-child.svg: Added.
        * svg/foreignObject/svg-document-in-html-document.svg: Added.
        * svg/foreignObject/text-tref-02-b.svg: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61667 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-23 Sam Magnuson <smagnuson@netflix.com>
hamaji@chromium.org [Wed, 23 Jun 2010 07:11:11 +0000 (07:11 +0000)]
2010-06-23  Sam Magnuson  <smagnuson@netflix.com>

        Reviewed by Shinichiro Hamaji.

        Follow proper convention for if/switch/while as I've discovered
        them to be through my review processes.
        https://bugs.webkit.org/show_bug.cgi?id=40723

        Modified test so that if( foo ) is not allowed as it appears not
        to be the accepted convention.

        * Scripts/webkitpy/style/checkers/cpp.py:
        * Scripts/webkitpy/style/checkers/cpp_unittest.py:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61666 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years ago2010-06-22 Adam Barth <abarth@webkit.org>
abarth@webkit.org [Wed, 23 Jun 2010 07:02:56 +0000 (07:02 +0000)]
2010-06-22  Adam Barth  <abarth@webkit.org>

        Reviewed by Eric Seidel.

        Rename HTML5Lexer to HTMLTokenizer
        https://bugs.webkit.org/show_bug.cgi?id=41045

        This might be slightly confusing given that the old class was called
        HTMLTokenizer, but it matches the terminology in the HTML5 spec.

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * WebCore.gypi:
        * WebCore.pro:
        * WebCore.vcproj/WebCore.vcproj:
        * WebCore.xcodeproj/project.pbxproj:
        * html/HTML5DocumentParser.cpp:
        (WebCore::HTML5DocumentParser::HTML5DocumentParser):
        (WebCore::HTML5DocumentParser::pumpLexer):
        * html/HTML5DocumentParser.h:
        * html/HTML5Lexer.cpp: Removed.
        * html/HTML5Lexer.h: Removed.
        * html/HTML5PreloadScanner.cpp:
        (WebCore::HTML5PreloadScanner::processToken):
        * html/HTML5PreloadScanner.h:
        * html/HTML5TreeBuilder.cpp:
        (WebCore::HTML5TreeBuilder::HTML5TreeBuilder):
        (WebCore::HTML5TreeBuilder::handleScriptStartTag):
        (WebCore::HTML5TreeBuilder::adjustedLexerState):
        * html/HTML5TreeBuilder.h:
        * html/HTMLTokenizer.cpp: Copied from WebCore/html/HTML5Lexer.cpp.
        (WebCore::HTMLNames::isEndTagBufferingState):
        (WebCore::HTMLTokenizer::HTMLTokenizer):
        (WebCore::HTMLTokenizer::~HTMLTokenizer):
        (WebCore::HTMLTokenizer::reset):
        (WebCore::HTMLTokenizer::processEntity):
        (WebCore::HTMLTokenizer::nextToken):
        (WebCore::HTMLTokenizer::temporaryBufferIs):
        (WebCore::HTMLTokenizer::addToPossibleEndTag):
        (WebCore::HTMLTokenizer::isAppropriateEndTag):
        (WebCore::HTMLTokenizer::emitCharacter):
        (WebCore::HTMLTokenizer::emitCodePoint):
        (WebCore::HTMLTokenizer::emitParseError):
        (WebCore::HTMLTokenizer::emitCurrentToken):
        (WebCore::HTMLTokenizer::shouldEmitBufferedCharacterToken):
        * html/HTMLTokenizer.h: Copied from WebCore/html/HTML5Lexer.h.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61665 268f45cc-cd09-0410-ab3c-d52691b4dbfc

11 years agoUnreviewed Qt/Symbian build fix.
hausmann@webkit.org [Wed, 23 Jun 2010 06:54:14 +0000 (06:54 +0000)]
Unreviewed Qt/Symbian build fix.

Fix "make clean" to not try to execute clean commands for
the extra targets we use to simulate "make install".

* WebCore.pro: Use no_clean in CONFIG of extra compilers.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@61664 268f45cc-cd09-0410-ab3c-d52691b4dbfc