profile/ivi/webkit-efl.git
12 years agoAnother build fix attempt after r105543.
rniwa@webkit.org [Tue, 24 Jan 2012 19:01:36 +0000 (19:01 +0000)]
Another build fix attempt after r105543.

* Scripts/webkitpy/common/net/file_uploader.py:
(FileUploader.upload_as_multipart_form_data):

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

12 years agoWeb Inspector: incorrect highlight position when searching in console
vsevik@chromium.org [Tue, 24 Jan 2012 18:55:52 +0000 (18:55 +0000)]
Web Inspector: incorrect highlight position when searching in console
https://bugs.webkit.org/show_bug.cgi?id=76837

Reviewed by Yury Semikhatsky.

* inspector/front-end/ConsoleMessage.js:
(WebInspector.ConsoleMessageImpl.prototype._formatMessage):
(WebInspector.ConsoleMessageImpl.prototype.clearHighlight):
(WebInspector.ConsoleMessageImpl.prototype.highlightSearchResults):
(WebInspector.ConsoleMessageImpl.prototype._highlightSearchResultsInElement):
(WebInspector.ConsoleMessageImpl.prototype.matchesRegex):

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

12 years agoShow layer borders for scrollbar layers
simon.fraser@apple.com [Tue, 24 Jan 2012 18:54:43 +0000 (18:54 +0000)]
Show layer borders for scrollbar layers
https://bugs.webkit.org/show_bug.cgi?id=76888

Source/WebCore:

Reviewed by Beth Dakin.

When compositing layer borders are showing, show the borders
for scrollbars layers. This reduces confusion about whether scrollbars
are rendering into their own layers.

Requires a new parameter to two GraphicsLayerClient methods.

* platform/graphics/GraphicsLayer.h:
(WebCore::GraphicsLayer::showDebugBorders):
(WebCore::GraphicsLayer::showRepaintCounter):
* platform/graphics/GraphicsLayerClient.h:
* rendering/RenderLayerBacking.cpp:
(WebCore::RenderLayerBacking::showDebugBorders):
(WebCore::RenderLayerBacking::showRepaintCounter):
* rendering/RenderLayerBacking.h:
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::showDebugBorders):
(WebCore::RenderLayerCompositor::showRepaintCounter):
* rendering/RenderLayerCompositor.h:

Source/WebKit/chromium:

Reviewed by Beth Dakin.

Update for new signature of GraphicsLayerClient::showDebugBorders()
and GraphicsLayerClient::showRepaintCounter().

* src/NonCompositedContentHost.cpp:
(WebKit::NonCompositedContentHost::showDebugBorders):
(WebKit::NonCompositedContentHost::showRepaintCounter):
* src/NonCompositedContentHost.h:
* src/PageOverlay.cpp:
(WebKit::OverlayGraphicsLayerClientImpl::showDebugBorders):
(WebKit::OverlayGraphicsLayerClientImpl::showRepaintCounter):
* tests/ImageLayerChromiumTest.cpp:
(WebCore::MockGraphicsLayerClient::showDebugBorders):
(WebCore::MockGraphicsLayerClient::showRepaintCounter):

Source/WebKit/win:

Reviewed by Beth Dakin.

Update for new signature of GraphicsLayerClient::showDebugBorders()
and GraphicsLayerClient::showRepaintCounter().

* WebView.cpp:
(WebView::showDebugBorders):
(WebView::showRepaintCounter):
* WebView.h:

Source/WebKit2:

Reviewed by Beth Dakin.

Update for new signatures of GraphicsLayerClient::showDebugBorders()
and GraphicsLayerClient::showRepaintCounter().

* UIProcess/LayerTreeHostProxy.h:
(WebKit::LayerTreeHostProxy::showDebugBorders):
(WebKit::LayerTreeHostProxy::showRepaintCounter):
* WebProcess/WebPage/ca/LayerTreeHostCA.cpp:
(WebKit::LayerTreeHostCA::showDebugBorders):
(WebKit::LayerTreeHostCA::showRepaintCounter):
* WebProcess/WebPage/ca/LayerTreeHostCA.h:
* WebProcess/WebPage/qt/LayerTreeHostQt.h:

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

12 years ago[windows] Convert usage of GetDC to HWndDC Part 3.
levin@chromium.org [Tue, 24 Jan 2012 18:51:50 +0000 (18:51 +0000)]
[windows] Convert usage of GetDC to HWndDC Part 3.
https://bugs.webkit.org/show_bug.cgi?id=76889

Reviewed by Adam Roben.

Source/WebCore:

No new functionality so no new tests.

* platform/graphics/win/UniscribeController.cpp:
(WebCore::UniscribeController::shapeAndPlaceItem): Simple replacement.
(WebCore::UniscribeController::shape): Use the delayed allocation.
* platform/win/PopupMenuWin.cpp:
(WebCore::PopupMenuWin::paint): Fix a dc leak and use the dellayed allocation.

Source/WebKit2:

* UIProcess/win/WebPopupMenuProxyWin.cpp:
(WebKit::WebPopupMenuProxyWin::paint): Fix a dc leak and use the dellayed allocation.

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

12 years agoUpdate Chromium-specific baselines that used to use Apple Mac results
abarth@webkit.org [Tue, 24 Jan 2012 18:49:22 +0000 (18:49 +0000)]
Update Chromium-specific baselines that used to use Apple Mac results
before http://trac.webkit.org/changeset/105744.

* platform/chromium-mac-snowleopard/compositing/reflections/become-simple-composited-reflection-expected.png: Added.
* platform/chromium-mac-snowleopard/compositing/scrollbar-painting-expected.png: Added.
* platform/chromium-mac-snowleopard/compositing/visibility/visibility-composited-expected.png: Added.
* platform/chromium-mac-snowleopard/css2.1/t1202-counters-09-b-expected.png: Added.
* platform/chromium-win-xp/css2.1/t1202-counters-09-b-expected.png: Removed.

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 18:48:50 +0000 (18:48 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

Fix coding style in the ATK AccessibilityObject wrapper.

* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp:
(webkitAccessibleGetName):
(webkitAccessibleGetDescription):
(webkitAccessibleGetParent):
(webkitAccessibleGetNChildren):
(webkitAccessibleRefChild):
(webkitAccessibleGetIndexInParent):
(webkitAccessibleGetAttributes):
(atkRole):
(webkitAccessibleGetRole):
(setAtkStateSetFromCoreObject):
(webkitAccessibleRefStateSet):
(webkitAccessibleRefRelationSet):
(webkitAccessibleInit):
(webkitAccessibleFinalize):
(webkit_accessible_class_init):

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

12 years agoUpdate Snow Leopard image test expectations
leviw@chromium.org [Tue, 24 Jan 2012 18:41:15 +0000 (18:41 +0000)]
Update Snow Leopard image test expectations
https://bugs.webkit.org/show_bug.cgi?id=76869

Rubber stamped by Simon Fraser.

Addingmore SnowLeopard image expectations for tests failing due to subtle differences in rendering
between SnowLeopard and Lion. Also fixing those that hadn't been updated to the new mock scrollbars.

* platform/mac-snowleopard/css3/filters: Added.
* platform/mac-snowleopard/css3/filters/add-filter-rendering-expected.png: Added.
* platform/mac-snowleopard/css3/filters/crash-filter-change-expected.png: Added.
* platform/mac-snowleopard/css3/filters/crash-hw-sw-switch-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-blur-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-blur-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-brightness-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-brightness-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-combined-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-combined-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-contrast-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-contrast-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-custom-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-custom-parameters-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-drop-shadow-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-drop-shadow-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-grayscale-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-grayscale-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-hue-rotate-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-hue-rotate-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-invert-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-invert-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-opacity-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-opacity-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-saturate-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-saturate-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-sepia-expected.png: Added.
* platform/mac-snowleopard/css3/filters/effect-sepia-hw-expected.png: Added.
* platform/mac-snowleopard/css3/filters/filter-empty-element-crash-expected.png: Added.
* platform/mac-snowleopard/css3/filters/filter-region-expected.png: Added.
* platform/mac-snowleopard/css3/filters/filter-repaint-expected.png: Added.
* platform/mac-snowleopard/css3/filters/filter-with-transform-expected.png: Added.
* platform/mac-snowleopard/css3/filters/filtered-compositing-descendant-expected.png: Added.
* platform/mac-snowleopard/css3/filters/nested-filter-expected.png: Added.
* platform/mac-snowleopard/css3/filters/regions-expanding-expected.png: Added.
* platform/mac-snowleopard/css3/filters/simple-filter-rendering-expected.png: Added.
* platform/mac-snowleopard/css3/images: Added.
* platform/mac-snowleopard/css3/images/cross-fade-background-size-expected.png: Added.
* platform/mac-snowleopard/css3/images/cross-fade-blending-expected.png: Added.
* platform/mac-snowleopard/css3/images/cross-fade-invalidation-expected.png: Added.
* platform/mac-snowleopard/css3/images/cross-fade-simple-expected.png: Added.
* platform/mac-snowleopard/css3/images/cross-fade-sizing-expected.png: Added.
* platform/mac-snowleopard/css3/images/cross-fade-tiled-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3: Added.
* platform/mac-snowleopard/css3/selectors3/html: Added.
* platform/mac-snowleopard/css3/selectors3/html/css3-modsel-19b-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/html/css3-modsel-39-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/html/css3-modsel-39b-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/html/css3-modsel-39c-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xhtml: Added.
* platform/mac-snowleopard/css3/selectors3/xhtml/css3-modsel-19b-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xhtml/css3-modsel-39-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xhtml/css3-modsel-39a-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xhtml/css3-modsel-39b-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xhtml/css3-modsel-39c-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xml: Added.
* platform/mac-snowleopard/css3/selectors3/xml/css3-modsel-19b-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xml/css3-modsel-39-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xml/css3-modsel-39a-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xml/css3-modsel-39b-expected.png: Added.
* platform/mac-snowleopard/css3/selectors3/xml/css3-modsel-39c-expected.png: Added.
* platform/mac-snowleopard/editing/inserting: Added.
* platform/mac-snowleopard/editing/inserting/typing-at-end-of-line-expected.png: Added.
* platform/mac-snowleopard/editing/pasteboard: Added.
* platform/mac-snowleopard/editing/pasteboard/drag-image-to-contenteditable-in-iframe-expected.png: Added.
* platform/mac-snowleopard/editing/pasteboard/paste-TIFF-expected.png: Added.
* platform/mac-snowleopard/editing/selection: Added.
* platform/mac-snowleopard/editing/selection/drag-to-contenteditable-iframe-expected.png: Added.
* platform/mac-snowleopard/editing/selection/unrendered-002-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content: Added.
* platform/mac-snowleopard/editing/unsupported-content/list-delete-001-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content/list-delete-003-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content/list-type-after-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content/list-type-before-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content/table-delete-001-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content/table-delete-002-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content/table-delete-003-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content/table-type-after-expected.png: Added.
* platform/mac-snowleopard/editing/unsupported-content/table-type-before-expected.png: Added.
* platform/mac-snowleopard/fast/backgrounds: Added.
* platform/mac-snowleopard/fast/backgrounds/repeat: Added.
* platform/mac-snowleopard/fast/backgrounds/repeat/negative-offset-repeat-expected.png: Added.
* platform/mac-snowleopard/fast/backgrounds/repeat/negative-offset-repeat-transformed-expected.png: Added.
* platform/mac-snowleopard/fast/backgrounds/size: Added.
* platform/mac-snowleopard/fast/backgrounds/size/backgroundSize18-expected.png: Added.
* platform/mac-snowleopard/fast/backgrounds/size/backgroundSize19-expected.png: Added.
* platform/mac-snowleopard/fast/backgrounds/size/backgroundSize21-expected.png: Added.
* platform/mac-snowleopard/fast/backgrounds/size/backgroundSize22-expected.png: Added.
* platform/mac-snowleopard/fast/backgrounds/size/contain-and-cover-zoomed-expected.png: Added.
* platform/mac-snowleopard/fast/block/basic: Added.
* platform/mac-snowleopard/fast/block/basic/truncation-rtl-expected.png: Added.
* platform/mac-snowleopard/fast/block/float: Added.
* platform/mac-snowleopard/fast/block/float/020-expected.png: Added.
* platform/mac-snowleopard/fast/block/float/float-avoidance-expected.png: Added.
* platform/mac-snowleopard/fast/block/margin-collapse/103-expected.png:
* platform/mac-snowleopard/fast/block/positioning: Added.
* platform/mac-snowleopard/fast/block/positioning/028-expected.png: Added.
* platform/mac-snowleopard/fast/block/positioning/031-expected.png: Added.
* platform/mac-snowleopard/fast/borders: Added.
* platform/mac-snowleopard/fast/borders/border-image-massive-scale-expected.png: Added.
* platform/mac-snowleopard/fast/borders/border-image-outset-expected.png: Added.
* platform/mac-snowleopard/fast/borders/border-image-outset-in-shorthand-expected.png: Added.
* platform/mac-snowleopard/fast/borders/border-image-outset-split-inline-vertical-lr-expected.png: Added.
* platform/mac-snowleopard/fast/borders/border-image-rotate-transform-expected.png: Added.
* platform/mac-snowleopard/fast/borders/border-image-scale-transform-expected.png: Added.
* platform/mac-snowleopard/fast/borders/border-image-scaled-expected.png: Added.
* platform/mac-snowleopard/fast/borders/border-image-slice-constrained-expected.png: Added.
* platform/mac-snowleopard/fast/borders/inline-mask-overlay-image-expected.png: Added.
* platform/mac-snowleopard/fast/borders/rtl-border-01-expected.png: Added.
* platform/mac-snowleopard/fast/borders/rtl-border-02-expected.png: Added.
* platform/mac-snowleopard/fast/borders/rtl-border-03-expected.png: Added.
* platform/mac-snowleopard/fast/canvas: Added.
* platform/mac-snowleopard/fast/canvas/canvas-composite-fill-repaint-expected.png: Added.
* platform/mac-snowleopard/fast/canvas/canvas-incremental-repaint-expected.png: Added.
* platform/mac-snowleopard/fast/canvas/shadow-offset-7-expected.png: Added.
* platform/mac-snowleopard/fast/css/absolute-child-with-percent-height-inside-relative-parent-expected.png: Added.
* platform/mac-snowleopard/fast/css/background-shorthand-invalid-url-expected.png: Added.
* platform/mac-snowleopard/fast/css/child-style-can-override-visited-style-expected.png: Added.
* platform/mac-snowleopard/fast/css/color-correction-backgrounds-and-text-expected.png: Added.
* platform/mac-snowleopard/fast/css/color-correction-on-background-image-expected.png: Added.
* platform/mac-snowleopard/fast/css/continuationCrash-expected.png: Added.
* platform/mac-snowleopard/fast/css/font-family-pictograph-expected.png: Added.
* platform/mac-snowleopard/fast/css/margin-top-bottom-dynamic-expected.png: Added.
* platform/mac-snowleopard/fast/css/outline-narrowLine-expected.png: Added.
* platform/mac-snowleopard/fast/css/text-overflow-input-expected.png: Added.
* platform/mac-snowleopard/fast/css/text-transform-select-expected.png: Added.
* platform/mac-snowleopard/fast/css/transform-default-parameter-expected.png: Added.
* platform/mac-snowleopard/fast/css/value-list-out-of-bounds-crash-expected.png: Added.
* platform/mac-snowleopard/fast/dom/52776-expected.png:
* platform/mac-snowleopard/fast/dom/rtl-scroll-to-leftmost-and-resize-expected.png:
* platform/mac-snowleopard/fast/encoding: Added.
* platform/mac-snowleopard/fast/encoding/utf-16-big-endian-expected.png: Added.
* platform/mac-snowleopard/fast/encoding/utf-16-little-endian-expected.png: Added.
* platform/mac-snowleopard/fast/forms/basic-textareas-expected.png:
* platform/mac-snowleopard/fast/forms/basic-textareas-quirks-expected.png:
* platform/mac-snowleopard/fast/forms/fieldset-align-expected.png:
* platform/mac-snowleopard/fast/forms/form-element-geometry-expected.png:
* platform/mac-snowleopard/fast/forms/form-hides-table-expected.png:
* platform/mac-snowleopard/fast/forms/input-table-expected.png:
* platform/mac-snowleopard/fast/forms/listbox-bidi-align-expected.png: Added.
* platform/mac-snowleopard/fast/forms/textAreaLineHeight-expected.png:
* platform/mac-snowleopard/fast/forms/textarea-scroll-height-expected.png:
* platform/mac-snowleopard/fast/gradients: Added.
* platform/mac-snowleopard/fast/gradients/crash-on-zero-radius-expected.png: Added.
* platform/mac-snowleopard/fast/gradients/css3-radial-gradients-expected.png: Added.
* platform/mac-snowleopard/fast/gradients/generated-gradients-expected.png: Added.
* platform/mac-snowleopard/fast/gradients/gradient-after-transparent-border-expected.png: Added.
* platform/mac-snowleopard/fast/gradients/simple-gradients-expected.png: Added.
* platform/mac-snowleopard/fast/images: Added.
* platform/mac-snowleopard/fast/images/color-jpeg-with-color-profile-expected.png: Added.
* platform/mac-snowleopard/fast/images/gray-scale-jpeg-with-color-profile-expected.png: Added.
* platform/mac-snowleopard/fast/images/gray-scale-png-with-color-profile-expected.png: Added.
* platform/mac-snowleopard/fast/images/image-css3-content-data-expected.png: Added.
* platform/mac-snowleopard/fast/images/pdf-as-background-expected.png: Added.
* platform/mac-snowleopard/fast/images/pdf-as-image-expected.png: Added.
* platform/mac-snowleopard/fast/images/ycbcr-with-cmyk-color-profile-expected.png: Added.
* platform/mac-snowleopard/fast/inline: Added.
* platform/mac-snowleopard/fast/inline/inline-borders-with-bidi-override-expected.png: Added.
* platform/mac-snowleopard/fast/inline/inline-box-background-long-image-expected.png: Added.
* platform/mac-snowleopard/fast/inline/left-right-center-inline-alignment-in-ltr-and-rtl-blocks-expected.png: Added.
* platform/mac-snowleopard/fast/lists: Added.
* platform/mac-snowleopard/fast/lists/003-expected.png: Added.
* platform/mac-snowleopard/fast/media: Added.
* platform/mac-snowleopard/fast/media/mq-min-pixel-ratio-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/block-axis-horizontal-bt-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/block-axis-horizontal-tb-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/column-rules-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/column-rules-stacking-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/columns-shorthand-parsing-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/flipped-blocks-border-after-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/float-avoidance-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/float-multicol-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/float-paginate-complex-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/layers-in-multicol-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/nested-columns-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/overflow-across-columns-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/overflow-across-columns-percent-height-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/positioned-with-constrained-height-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/positive-leading-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/scrolling-overflow-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/shadow-breaking-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/single-line-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span: Added.
* platform/mac-snowleopard/fast/multicol/span/anonymous-style-inheritance-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-immediate-child-complex-splitting-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-immediate-child-generated-content-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-immediate-child-property-removal-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-immediate-columns-child-dynamic-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-immediate-columns-child-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-immediate-columns-child-removal-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-nested-columns-child-dynamic-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-nested-columns-child-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-as-nested-inline-block-child-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/span/span-margin-collapsing-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/vertical-lr/rules-with-border-before-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/vertical-rl/rule-style-expected.png: Added.
* platform/mac-snowleopard/fast/multicol/vertical-rl/rules-with-border-before-expected.png: Added.
* platform/mac-snowleopard/fast/overflow/006-expected.png: Added.
* platform/mac-snowleopard/fast/overflow/overflow-focus-ring-expected.png: Added.
* platform/mac-snowleopard/fast/overflow/overflow-x-y-expected.png:
* platform/mac-snowleopard/fast/parser: Added.
* platform/mac-snowleopard/fast/parser/document-write-option-expected.png: Added.
* platform/mac-snowleopard/fast/reflections: Added.
* platform/mac-snowleopard/fast/reflections/reflection-direction-expected.png: Added.
* platform/mac-snowleopard/fast/reflections/reflection-masks-expected.png: Added.
* platform/mac-snowleopard/fast/reflections/reflection-masks-opacity-expected.png: Added.
* platform/mac-snowleopard/fast/reflections/reflection-masks-outset-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/line-flow-with-floats-2-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/line-flow-with-floats-8-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/line-flow-with-floats-9-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/overflow-auto-in-overflow-auto-scrolled-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/overflow-scroll-in-overflow-scroll-scrolled-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/scale-page-shrink-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/scroll-inside-table-cell-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/scroll-relative-table-inside-table-cell-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/table-overflow-auto-in-overflow-auto-scrolled-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/table-overflow-hidden-in-overflow-hidden-scrolled-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/table-overflow-scroll-in-overflow-scroll-scrolled-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/text-shadow-expected.png: Added.
* platform/mac-snowleopard/fast/repaint/text-shadow-horizontal-expected.png: Added.
* platform/mac-snowleopard/fast/replaced: Added.
* platform/mac-snowleopard/fast/replaced/replaced-breaking-expected.png: Added.
* platform/mac-snowleopard/fast/replaced/width100percent-button-expected.png: Added.
* platform/mac-snowleopard/fast/ruby: Added.
* platform/mac-snowleopard/fast/ruby/ruby-base-merge-block-children-crash-expected.png: Added.
* platform/mac-snowleopard/fast/selectors: Added.
* platform/mac-snowleopard/fast/selectors/166-expected.png: Added.
* platform/mac-snowleopard/fast/selectors/visited-descendant-expected.png: Added.
* platform/mac-snowleopard/fast/table: Added.
* platform/mac-snowleopard/fast/table/auto-100-percent-width-expected.png: Added.
* platform/mac-snowleopard/fast/table/dynamic-caption-add-before-child-expected.png: Added.
* platform/mac-snowleopard/fast/table/frame-and-rules-expected.png: Added.
* platform/mac-snowleopard/fast/table/height-percent-test-vertical-expected.png: Added.
* platform/mac-snowleopard/fast/table/multiple-captions-display-expected.png: Added.
* platform/mac-snowleopard/fast/text/backslash-to-yen-sign-euc-expected.png: Added.
* platform/mac-snowleopard/fast/text/capitalize-boundaries-expected.png:
* platform/mac-snowleopard/fast/text/fallback-traits-fixup-expected.png: Added.
* platform/mac-snowleopard/fast/text/hyphenate-character-expected.png: Added.
* platform/mac-snowleopard/fast/text/hyphenate-limit-lines-expected.png: Added.
* platform/mac-snowleopard/fast/text/hyphens-expected.png: Added.
* platform/mac-snowleopard/fast/text/international/bidi-menulist-expected.png: Added.
* platform/mac-snowleopard/fast/text/international/bidi-neutral-run-expected.png:
* platform/mac-snowleopard/fast/text/international/hebrew-vowels-expected.png: Added.
* platform/mac-snowleopard/fast/text/international/pop-up-button-text-alignment-and-direction-expected.png: Added.
* platform/mac-snowleopard/fast/text/justify-ideograph-leading-expansion-expected.png: Added.
* platform/mac-snowleopard/fast/text/midword-break-after-breakable-char-expected.png: Added.
* platform/mac-snowleopard/fast/text/midword-break-before-surrogate-pair-2-expected.png: Added.
* platform/mac-snowleopard/fast/text/stroking-decorations-expected.png: Added.
* platform/mac-snowleopard/fast/text/stroking-expected.png: Added.
* platform/mac-snowleopard/fast/text/text-letter-spacing-expected.png: Added.
* platform/mac-snowleopard/fast/text/unicode-variation-selector-expected.png: Added.
* platform/mac-snowleopard/fast/text/wbr-expected.png: Added.
* platform/mac-snowleopard/fast/text/whitespace: Added.
* platform/mac-snowleopard/fast/text/whitespace/normal-after-nowrap-breaking-expected.png: Added.
* platform/mac-snowleopard/fast/writing-mode: Added.
* platform/mac-snowleopard/fast/writing-mode/border-image-horizontal-bt-expected.png: Added.
* platform/mac-snowleopard/fast/writing-mode/border-image-vertical-lr-expected.png: Added.
* platform/mac-snowleopard/fast/writing-mode/border-image-vertical-rl-expected.png: Added.
* platform/mac-snowleopard/fast/writing-mode/fallback-orientation-expected.png: Added.
* platform/mac-snowleopard/fast/writing-mode/japanese-rl-text-with-broken-font-expected.png: Added.
* platform/mac-snowleopard/fonts: Added.
* platform/mac-snowleopard/fonts/cursive-expected.png: Added.
* platform/mac-snowleopard/fonts/default-expected.png: Added.
* platform/mac-snowleopard/fonts/fantasy-expected.png: Added.
* platform/mac-snowleopard/fonts/monospace-expected.png: Added.
* platform/mac-snowleopard/fonts/sans-serif-expected.png: Added.
* platform/mac-snowleopard/fonts/serif-expected.png: Added.
* platform/mac-snowleopard/fullscreen: Added.
* platform/mac-snowleopard/fullscreen/full-screen-stacking-context-expected.png: Added.
* platform/mac-snowleopard/http/tests/media: Added.
* platform/mac-snowleopard/http/tests/media/video-buffering-repaints-controls-expected.png: Added.
* platform/mac-snowleopard/http/tests/media/video-buffering-repaints-controls-expected.txt: Added.
* platform/mac-snowleopard/http/tests/security: Added.
* platform/mac-snowleopard/http/tests/security/contentSecurityPolicy: Added.
* platform/mac-snowleopard/http/tests/security/contentSecurityPolicy/xsl-blocked-expected.png: Added.
* platform/mac-snowleopard/media/controls-layout-direction-expected.png: Added.
* platform/mac-snowleopard/media/controls-without-preload-expected.txt: Added.
* platform/mac-snowleopard/media/media-document-audio-repaint-expected.png: Added.
* platform/mac-snowleopard/media/video-aspect-ratio-expected.png: Added.
* platform/mac-snowleopard/media/video-canvas-alpha-expected.png: Added.
* platform/mac-snowleopard/media/video-colorspace-yuv420-expected.png: Added.
* platform/mac-snowleopard/media/video-colorspace-yuv422-expected.png: Added.
* platform/mac-snowleopard/media/video-frame-accurate-seek-expected.png: Added.
* platform/mac-snowleopard/media/video-layer-crash-expected.png:
* platform/mac-snowleopard/media/video-playing-and-pause-expected.png: Added.
* platform/mac-snowleopard/media/video-zoom-expected.png: Added.
* platform/mac-snowleopard/platform/mac/editing: Added.
* platform/mac-snowleopard/platform/mac/editing/selection: Added.
* platform/mac-snowleopard/platform/mac/editing/selection/25228-expected.png: Added.
* platform/mac-snowleopard/platform/mac/fast/text/combining-character-sequence-fallback-expected.png: Added.
* platform/mac-snowleopard/platform/mac/fast/text/international/Geeza-Pro-vertical-metrics-adjustment-expected.png: Added.
* platform/mac-snowleopard/platform/mac/fast/text/line-break-locale-expected.png: Added.
* platform/mac-snowleopard/platform/mac/scrollbars: Added.
* platform/mac-snowleopard/platform/mac/scrollbars/key-window-not-first-responder-expected.png: Added.
* platform/mac-snowleopard/plugins: Added.
* platform/mac-snowleopard/plugins/application-plugin-plugins-disabled-expected.png: Added.
* platform/mac-snowleopard/plugins/mouse-click-plugin-clears-selection-expected.png: Added.
* platform/mac-snowleopard/printing: Added.
* platform/mac-snowleopard/printing/compositing-layer-printing-expected.png: Added.
* platform/mac-snowleopard/printing/media-queries-print-expected.png: Added.
* platform/mac-snowleopard/printing/page-rule-in-media-query-expected.png: Added.
* platform/mac-snowleopard/printing/return-from-printing-mode-expected.png: Added.
* platform/mac-snowleopard/scrollbars: Added.
* platform/mac-snowleopard/scrollbars/overflow-scrollbar-combinations-expected.png: Added.
* platform/mac-snowleopard/scrollbars/scrollbars-on-positioned-content-expected.png: Added.
* platform/mac-snowleopard/svg/text/non-bmp-positioning-lists-expected.png: Added.
* platform/mac-snowleopard/tables: Added.
* platform/mac-snowleopard/tables/mozilla: Added.
* platform/mac-snowleopard/tables/mozilla/bugs: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug10269-2-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug1055-1-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug1163-1-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug119786-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug1302-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug222846-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug2479-1-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug2479-3-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug2479-4-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug29058-3-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug2947-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug3977-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug5797-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug5835-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug5838-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug625-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug6304-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug650-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug7112-1-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/bugs/bug7112-2-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/collapsing_borders: Added.
* platform/mac-snowleopard/tables/mozilla/collapsing_borders/bug41262-3-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/core: Added.
* platform/mac-snowleopard/tables/mozilla/core/bloomberg-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/core/captions-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/core/cell_heights-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/core/col_widths_auto_fix-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/core/col_widths_fix_fixPer-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/core/nested1-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/core/one_row-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/core/row_span-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_index-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_layers-opacity-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_position-table-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_simple-table-cell-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_simple-table-column-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_simple-table-column-group-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_simple-table-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_simple-table-row-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/backgr_simple-table-row-group-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/table_frame_border-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/table_frame_box-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/table_rules_all-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/table_rules_none-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/x_caption_class-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/x_caption_id-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/marvin/x_caption_style-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/other: Added.
* platform/mac-snowleopard/tables/mozilla/other/cell_widths-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/other/nestedTables-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/other/test3-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/other/test6-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/other/wa_table_thtd_rowspan-expected.png: Added.
* platform/mac-snowleopard/tables/mozilla/other/wa_table_tr_align-expected.png: Added.
* platform/mac-snowleopard/transforms: Added.
* platform/mac-snowleopard/transforms/2d: Added.
* platform/mac-snowleopard/transforms/2d/hindi-rotated-expected.png: Added.
* platform/mac-snowleopard/transforms/2d/transform-fixed-container-expected.png: Added.
* platform/mac-snowleopard/transforms/3d: Added.
* platform/mac-snowleopard/transforms/3d/general: Added.
* platform/mac-snowleopard/transforms/3d/general/perspective-units-expected.png: Added.
* platform/mac-snowleopard/transforms/3d/point-mapping: Added.
* platform/mac-snowleopard/transforms/3d/point-mapping/3d-point-mapping-deep-expected.png: Added.
* platform/mac-snowleopard/transforms/3d/point-mapping/3d-point-mapping-expected.png: Added.
* platform/mac-snowleopard/transforms/3d/point-mapping/3d-point-mapping-origins-expected.png: Added.
* platform/mac-snowleopard/transforms/3d/point-mapping/3d-point-mapping-preserve-3d-expected.png: Added.
* platform/mac-snowleopard/webarchive: Added.
* platform/mac-snowleopard/webarchive/adopt-attribute-styled-body-webarchive-expected.png: Added.
* platform/mac-snowleopard/webarchive/test-css-url-resources-in-stylesheets-expected.png: Added.
* platform/mac-snowleopard/webarchive/test-link-rel-icon-beforeload-expected.png: Added.

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 18:37:45 +0000 (18:37 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

Cleanup the list of includes in WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Removes
'include' lines that are no longer needed after the refactor.

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

12 years ago[EFL] Remove CookieJarEfl.cpp
kubo@profusion.mobi [Tue, 24 Jan 2012 18:34:56 +0000 (18:34 +0000)]
[EFL] Remove CookieJarEfl.cpp
https://bugs.webkit.org/show_bug.cgi?id=76916

Reviewed by Gustavo Noronha Silva.

CookieJarEfl.cpp has not been used for years -- we either need
CookieJarCurl or CookieJarSoup depending on the chosen network
backend.

No new tests, just an unused file being removed.

* WebCore.gypi: Remove reference to CookieJarEfl.cpp.
* platform/efl/CookieJarEfl.cpp: Removed.

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

12 years agoCrash when accessing removed parent in InlineTextBox.
inferno@chromium.org [Tue, 24 Jan 2012 18:33:05 +0000 (18:33 +0000)]
Crash when accessing removed parent in InlineTextBox.
https://bugs.webkit.org/show_bug.cgi?id=72982

Reviewed by James Robinson.

Source/WebCore:

The crash happens because:
1. We add heading element(h1) before the span element(span1),
   causing splitflow on the anonymous block containing BeforeText,
   span1(and SpanText) and AfterText.
2. span1 moves to the cloneBlock (continuation).
3. Our anonymous block and cloneBlock are both marked for layout,
   however we still have a copy of our lineboxes with its childs
   as the textboxes belonging to SpanText.
4. Our anonymous block only child BeforeText is getting removed,
   so we dont have any children anymore and we delete our lineboxes,
   leaving behind the children textboxes belonging to SpanText.
5. SpanText is getting destroyed, so it tries to inform removed
   parent lineboxes causing the crash.

Test: fast/block/block-remove-child-delete-line-box-crash.html

* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::removeChild):

LayoutTests:

Tests passes if it does not crash on ASSERT(!m_hasBadParent)
in InlineBox::parent().

* fast/block/block-remove-child-delete-line-box-crash-expected.txt: Added.
* fast/block/block-remove-child-delete-line-box-crash.html: Added.

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 18:28:22 +0000 (18:28 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkTable interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceTable.cpp: Added.
(core):
(cell):
(cellIndex):
(cellAtIndex):
(webkitAccessibleTableInterfaceInit):
(webkitAccessibleTableRefAt):
(webkitAccessibleTableGetIndexAt):
(webkitAccessibleTableGetColumnAtIndex):
(webkitAccessibleTableGetRowAtIndex):
(webkitAccessibleTableGetNColumns):
(webkitAccessibleTableGetNRows):
(webkitAccessibleTableGetColumnExtentAt):
(webkitAccessibleTableGetRowExtentAt):
(webkitAccessibleTableGetColumnHeader):
(webkitAccessibleTableGetRowHeader):
(webkitAccessibleTableGetCaption):
(webkitAccessibleTableGetColumnDescription):
(webkitAccessibleTableGetRowDescription):
* accessibility/gtk/WebKitAccessibleInterfaceTable.h: Added.
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove code
related to the implementation of the AtkTable interface.

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceTable.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years agoWeb Inspector: Scripts panel tabbed editor container should have gray background...
vsevik@chromium.org [Tue, 24 Jan 2012 18:25:08 +0000 (18:25 +0000)]
Web Inspector: Scripts panel tabbed editor container should have gray background when there are no open tabs.
https://bugs.webkit.org/show_bug.cgi?id=76903

Reviewed by Yury Semikhatsky.

* inspector/front-end/TabbedPane.js:
(WebInspector.TabbedPane.prototype._updateTabElements):
* inspector/front-end/tabbedPane.css:
(.tabbed-pane-content.has-no-tabs):

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

12 years agoWeb Inspector: OpenResourceDialog should work when there are no open tabs in scripts...
vsevik@chromium.org [Tue, 24 Jan 2012 18:22:43 +0000 (18:22 +0000)]
Web Inspector: OpenResourceDialog should work when there are no open tabs in scripts panel.
https://bugs.webkit.org/show_bug.cgi?id=76907

Reviewed by Yury Semikhatsky.

* inspector/front-end/FilteredItemSelectionDialog.js:
(WebInspector.OpenResourceDialog.install):
* inspector/front-end/ScriptsPanel.js:

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

12 years ago[WK2] [GTK] TestDownloads hitting an assertion in Debug builds
sergio@webkit.org [Tue, 24 Jan 2012 18:03:06 +0000 (18:03 +0000)]
[WK2] [GTK] TestDownloads hitting an assertion in Debug builds
https://bugs.webkit.org/show_bug.cgi?id=76915

Reviewed by Martin Robinson.

No new tests required as it fixes some assertions in a unit test.

* WebProcess/Downloads/soup/DownloadSoup.cpp:
(WebKit::Download::start):
(WebKit::Download::startWithHandle):

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

12 years agoWeb Inspector: CodeGeneratorInspector.py: put TypeBuilder namespace in a separate...
mario@webkit.org [Tue, 24 Jan 2012 18:02:08 +0000 (18:02 +0000)]
Web Inspector: CodeGeneratorInspector.py: put TypeBuilder namespace in a separate sources
https://bugs.webkit.org/show_bug.cgi?id=76868

Patch by Peter Rybin <peter.rybin@gmail.com> on 2012-01-24
Reviewed by Yury Semikhatsky.

Configurations of (hopefully) all build systems are fixed.

* CMakeLists.txt:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.am:
* GNUmakefile.list.am:
* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* inspector/CodeGeneratorInspector.py:
(dash_to_camelcase):
(InspectorFrontend_h):
(InspectorBackendDispatcher_h):

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

12 years agoUpdate Snow Leopard image test expectations
leviw@chromium.org [Tue, 24 Jan 2012 17:57:42 +0000 (17:57 +0000)]
Update Snow Leopard image test expectations
https://bugs.webkit.org/show_bug.cgi?id=76869

Reviewed by Simon Fraser.

Adding SnowLeopard image expectations for tests failing due to subtle differences in rendering
between SnowLeopard and Lion. Also fixing those that hadn't been updated to the new mock scrollbars.

* platform/mac-snowleopard/animations: Added.
* platform/mac-snowleopard/animations/missing-values-first-keyframe-expected.png: Added.
* platform/mac-snowleopard/animations/missing-values-last-keyframe-expected.png: Added.
* platform/mac-snowleopard/animations/suspend-transform-animation-expected.png: Added.
* platform/mac-snowleopard/compositing/color-matching: Added.
* platform/mac-snowleopard/compositing/color-matching/image-color-matching-expected.png: Added.
* platform/mac-snowleopard/compositing/direct-image-compositing-expected.png: Added.
* platform/mac-snowleopard/compositing/flat-with-transformed-child-expected.png: Added.
* platform/mac-snowleopard/compositing/framesets: Added.
* platform/mac-snowleopard/compositing/framesets/composited-frame-alignment-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry: Added.
* platform/mac-snowleopard/compositing/geometry/clipping-foreground-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/composited-html-size-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/fixed-in-composited-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/fixed-position-iframe-composited-page-scale-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/foreground-layer-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/layer-due-to-layer-children-deep-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/layer-due-to-layer-children-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/limit-layer-bounds-overflow-repaint-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/repaint-foreground-layer-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/root-layer-update-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/rtl-composited-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/video-fixed-scrolling-expected.png: Added.
* platform/mac-snowleopard/compositing/geometry/video-opacity-overlay-expected.png: Added.
* platform/mac-snowleopard/compositing/iframes: Added.
* platform/mac-snowleopard/compositing/iframes/composited-iframe-scroll-expected.png: Added.
* platform/mac-snowleopard/compositing/iframes/iframe-content-flipping-expected.png: Added.
* platform/mac-snowleopard/compositing/images: Added.
* platform/mac-snowleopard/compositing/images/content-image-change-expected.png: Added.
* platform/mac-snowleopard/compositing/images/direct-image-background-color-expected.png: Added.
* platform/mac-snowleopard/compositing/images/direct-pdf-image-expected.png: Added.
* platform/mac-snowleopard/compositing/images/direct-svg-image-expected.png: Added.
* platform/mac-snowleopard/compositing/layers-inside-overflow-scroll-expected.png: Added.
* platform/mac-snowleopard/compositing/masks: Added.
* platform/mac-snowleopard/compositing/masks/layer-mask-placement-expected.png: Added.
* platform/mac-snowleopard/compositing/masks/masked-ancestor-expected.png: Added.
* platform/mac-snowleopard/compositing/masks/simple-composited-mask-expected.png: Added.
* platform/mac-snowleopard/compositing/overflow: Added.
* platform/mac-snowleopard/compositing/overflow/fixed-position-ancestor-clip-expected.png: Added.
* platform/mac-snowleopard/compositing/overflow/overflow-compositing-descendant-expected.png: Added.
* platform/mac-snowleopard/compositing/overflow/overflow-positioning-expected.png: Added.
* platform/mac-snowleopard/compositing/overflow/overflow-scroll-expected.png: Added.
* platform/mac-snowleopard/compositing/overflow/repaint-after-losing-scrollbars-expected.png: Added.
* platform/mac-snowleopard/compositing/overflow/scroll-ancestor-update-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections: Added.
* platform/mac-snowleopard/compositing/reflections/animation-inside-reflection-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/become-simple-composited-reflection-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/compositing-change-inside-reflection-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/deeply-nested-reflections-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/load-video-in-reflection-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/masked-reflection-on-composited-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-anchor-point-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-animated-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-mask-change-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-on-overflow-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-opacity-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-size-change-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-transformed-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-transformed2-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/nested-reflection-transition-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/reflection-opacity-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/reflection-positioning-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/reflection-positioning2-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/remove-add-reflection-expected.png: Added.
* platform/mac-snowleopard/compositing/reflections/transform-inside-reflection-expected.png: Added.
* platform/mac-snowleopard/compositing/repaint: Added.
* platform/mac-snowleopard/compositing/repaint/same-size-invalidation-expected.png: Added.
* platform/mac-snowleopard/compositing/scaling: Added.
* platform/mac-snowleopard/compositing/scaling/tiled-layer-recursion-expected.png: Added.
* platform/mac-snowleopard/compositing/scrollbar-painting-expected.png: Added.
* platform/mac-snowleopard/compositing/self-painting-layers-expected.png: Added.
* platform/mac-snowleopard/compositing/shadows: Added.
* platform/mac-snowleopard/compositing/shadows/shadow-drawing-expected.png: Added.
* platform/mac-snowleopard/compositing/tiling: Added.
* platform/mac-snowleopard/compositing/tiling/constrained-layer-size-expected.png: Added.
* platform/mac-snowleopard/compositing/transitions: Added.
* platform/mac-snowleopard/compositing/transitions/scale-transition-no-start-expected.png: Added.
* platform/mac-snowleopard/compositing/video: Added.
* platform/mac-snowleopard/compositing/video/video-background-color-expected.png: Added.
* platform/mac-snowleopard/compositing/visibility: Added.
* platform/mac-snowleopard/compositing/visibility/visibility-composited-expected.png: Added.
* platform/mac-snowleopard/compositing/visibility/visibility-simple-canvas2d-layer-expected.png: Added.
* platform/mac-snowleopard/compositing/visibility/visibility-simple-video-layer-expected.png: Added.
* platform/mac-snowleopard/compositing/visibility/visibility-simple-webgl-layer-expected.png: Added.
* platform/mac-snowleopard/compositing/webgl: Added.
* platform/mac-snowleopard/compositing/webgl/webgl-background-color-expected.png: Added.
* platform/mac-snowleopard/compositing/webgl/webgl-no-alpha-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties: Added.
* platform/mac-snowleopard/css1/box_properties/border_bottom-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/border_left-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/border_right_inline-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/float_on_text_elements-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/margin_inline-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/margin_left-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/margin_right-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/padding_bottom_inline-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/padding_inline-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/padding_left-expected.png: Added.
* platform/mac-snowleopard/css1/box_properties/padding_right-expected.png: Added.
* platform/mac-snowleopard/css1/cascade: Added.
* platform/mac-snowleopard/css1/cascade/important-expected.png: Added.
* platform/mac-snowleopard/css1/classification: Added.
* platform/mac-snowleopard/css1/classification/display-expected.png: Added.
* platform/mac-snowleopard/css1/color_and_background: Added.
* platform/mac-snowleopard/css1/color_and_background/background_image-expected.png: Added.
* platform/mac-snowleopard/css1/color_and_background/background_position-expected.png: Added.
* platform/mac-snowleopard/css1/color_and_background/background_repeat-expected.png: Added.
* platform/mac-snowleopard/css1/font_properties/font-expected.png:
* platform/mac-snowleopard/css1/font_properties/font_family-expected.png: Added.
* platform/mac-snowleopard/css1/formatting_model: Added.
* platform/mac-snowleopard/css1/formatting_model/inline_elements-expected.png: Added.
* platform/mac-snowleopard/css1/pseudo: Added.
* platform/mac-snowleopard/css1/pseudo/firstletter-expected.png: Added.
* platform/mac-snowleopard/css1/pseudo/firstline-expected.png: Added.
* platform/mac-snowleopard/css1/pseudo/multiple_pseudo_elements-expected.png: Added.
* platform/mac-snowleopard/css1/pseudo/pseudo_elements_in_selectors-expected.png: Added.
* platform/mac-snowleopard/css1/text_properties: Added.
* platform/mac-snowleopard/css1/text_properties/text_decoration-expected.png: Added.
* platform/mac-snowleopard/css1/text_properties/text_transform-expected.png: Added.
* platform/mac-snowleopard/css1/units: Added.
* platform/mac-snowleopard/css1/units/urls-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-height-003-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-height-010-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-height-017-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-height-024-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-height-031-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-006-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-013-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-020-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-022-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-027-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-029-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-034-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-036-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-041-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-043-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-048-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-050-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-055-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-057-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-062-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-064-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-069-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-071-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/absolute-replaced-width-076-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/abspos-containing-block-initial-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/abspos-containing-block-initial-007-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/abspos-replaced-width-margin-000-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/block-replaced-height-003-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/block-replaced-width-006-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/border-collapse-offset-002-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/border-collapse-offset-002-expected.txt: Added.
* platform/mac-snowleopard/css2.1/20110323/border-conflict-style-079-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/border-conflict-style-088-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/border-spacing-applies-to-015-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/dynamic-top-change-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/dynamic-top-change-002-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/dynamic-top-change-003-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/dynamic-top-change-004-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/float-replaced-height-003-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/float-replaced-width-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/float-replaced-width-002-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/float-replaced-width-003-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/float-replaced-width-004-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/float-replaced-width-005-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/float-replaced-width-011-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/floating-replaced-height-008-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/height-width-inline-table-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/height-width-table-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/inline-block-replaced-height-003-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/inline-block-replaced-height-008-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/inline-block-replaced-width-006-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/inline-replaced-height-003-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/inline-replaced-height-008-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/inline-replaced-width-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/inline-replaced-width-006-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-002-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-003-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-004-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-005-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-006-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-007-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-008-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-009-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-010-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-012-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-013-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-014-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/margin-applies-to-015-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/outline-color-applies-to-008-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/outline-color-applies-to-008-expected.txt: Added.
* platform/mac-snowleopard/css2.1/20110323/table-caption-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/table-caption-002-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/table-caption-horizontal-alignment-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/table-caption-margins-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/table-caption-optional-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/table-caption-optional-002-expected.png: Added.
* platform/mac-snowleopard/css2.1/20110323/width-replaced-element-001-expected.png: Added.
* platform/mac-snowleopard/css2.1/t051201-c23-first-line-00-b-expected.png: Added.
* platform/mac-snowleopard/css2.1/t1002-c5523-width-02-b-g-expected.png: Added.
* platform/mac-snowleopard/css2.1/t1202-counters-09-b-expected.png:
* platform/mac-snowleopard/css2.1/t1508-c527-font-01-b-expected.png: Added.

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

12 years agoWeb Inspector: CodeGeneratorInspector.py: put TypeBuilder namespace in a separate...
vsevik@chromium.org [Tue, 24 Jan 2012 17:46:09 +0000 (17:46 +0000)]
Web Inspector: CodeGeneratorInspector.py: put TypeBuilder namespace in a separate sources
https://bugs.webkit.org/show_bug.cgi?id=76868

Patch by Peter Rybin <peter.rybin@gmail.com> on 2012-01-24
Reviewed by Yury Semikhatsky.

Configurations of (hopefully) all build systems are fixed.

* CMakeLists.txt:
* DerivedSources.make:
* DerivedSources.pri:
* GNUmakefile.am:
* GNUmakefile.list.am:
* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* inspector/CodeGeneratorInspector.py:
(dash_to_camelcase):
(InspectorFrontend_h):
(InspectorBackendDispatcher_h):

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

12 years ago[Qt] Unreviewed gardening. Unskip now passing tests and add/update platform specific...
ossy@webkit.org [Tue, 24 Jan 2012 16:59:09 +0000 (16:59 +0000)]
[Qt] Unreviewed gardening. Unskip now passing tests and add/update platform specific expected files for them.

* platform/qt/Skipped:
* platform/qt/dom/xhtml/level3/core/canonicalform08-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/canonicalform08-expected.txt:
* platform/qt/dom/xhtml/level3/core/canonicalform09-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/canonicalform09-expected.txt:
* platform/qt/dom/xhtml/level3/core/documentgetinputencoding03-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/documentgetinputencoding03-expected.txt:
* platform/qt/dom/xhtml/level3/core/entitygetinputencoding02-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/entitygetinputencoding02-expected.txt:
* platform/qt/dom/xhtml/level3/core/entitygetxmlversion02-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/entitygetxmlversion02-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri05-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri05-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri07-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri07-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri09-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri09-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri10-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri10-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri11-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri11-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri15-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri15-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri17-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri17-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri18-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodegetbaseuri18-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodelookupnamespaceuri01-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodelookupnamespaceuri01-expected.txt:
* platform/qt/dom/xhtml/level3/core/nodelookupprefix19-expected.png: Added.
* platform/qt/dom/xhtml/level3/core/nodelookupprefix19-expected.txt:
* platform/qt/editing/pasteboard/paste-noscript-expected.png: Added.
* platform/qt/editing/pasteboard/paste-noscript-expected.txt: Added.
* platform/qt/editing/style/style-3681552-fix-001-expected.png: Added.
* platform/qt/editing/style/style-3681552-fix-001-expected.txt:
* platform/qt/editing/style/style-3681552-fix-002-expected.png: Added.
* platform/qt/editing/style/style-3681552-fix-002-expected.txt: Copied from LayoutTests/platform/qt/editing/style/typing-style-002-expected.txt.
* platform/qt/editing/style/style-boundary-002-expected.png: Added.
* platform/qt/editing/style/style-boundary-002-expected.txt:
* platform/qt/editing/style/style-boundary-003-expected.png: Added.
* platform/qt/editing/style/style-boundary-003-expected.txt:
* platform/qt/editing/style/style-boundary-005-expected.png: Added.
* platform/qt/editing/style/style-boundary-005-expected.txt:
* platform/qt/editing/style/typing-style-001-expected.png: Added.
* platform/qt/editing/style/typing-style-001-expected.txt:
* platform/qt/editing/style/typing-style-002-expected.png: Added.
* platform/qt/editing/style/typing-style-002-expected.txt:
* platform/qt/fast/css/text-overflow-input-expected.png: Added.

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

12 years agoBuild fix attempt after r105543.
rniwa@webkit.org [Tue, 24 Jan 2012 16:58:44 +0000 (16:58 +0000)]
Build fix attempt after r105543.

* Scripts/webkitpy/common/net/file_uploader.py:
(FileUploader.upload_as_multipart_form_data):

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 16:22:57 +0000 (16:22 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkValue interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceValue.cpp: Added.
(core):
(webkitAccessibleValueInterfaceInit):
(webkitAccessibleValueGetCurrentValue):
(webkitAccessibleValueGetMaximumValue):
(webkitAccessibleValueGetMinimumValue):
(webkitAccessibleValueSetCurrentValue):
(webkitAccessibleValueGetMinimumIncrement):
* accessibility/gtk/WebKitAccessibleInterfaceValue.h: Added.
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove code
related to the implementation of the AtkValue interface.

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceValue.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years agoReduce internal use of CSSStyleDeclaration base class
antti@apple.com [Tue, 24 Jan 2012 16:09:05 +0000 (16:09 +0000)]
Reduce internal use of CSSStyleDeclaration base class
https://bugs.webkit.org/show_bug.cgi?id=76904

Reviewed by Andreas Kling.

Internally WebCore should use the more specific CSSMutableStyleDeclaration and CSSComputedStyleDeclaration types.
The CSSStyleDeclaration base should be used in the DOM API functions only. This will make it easier to separate
internal style sheet implementation from the DOM in the future.

- Switch CSSStyleDeclaration -> CSSMutableStyleDeclaration where feasible
- Use StyledElement::ensureInlineStyleDecl() instead of Element::style() (which is a DOM API function)
- Remove Attribute::style() which looks like a DOM API function but is not exposed.

* css/CSSMutableStyleDeclaration.h:
(WebCore::CSSMutableStyleDeclaration::getPropertyCSSValue):
* dom/Attr.h:
(WebCore::Attr::style):
* dom/Attribute.h:
* editing/EditingStyle.cpp:
(WebCore::HTMLElementEquivalent::propertyExistsInStyle):
(WebCore::HTMLElementEquivalent::valueIsPresentInStyle):
(WebCore::HTMLTextDecorationEquivalent::propertyExistsInStyle):
(WebCore::HTMLTextDecorationEquivalent::valueIsPresentInStyle):
(WebCore::HTMLAttributeEquivalent::valueIsPresentInStyle):
* editing/Editor.cpp:
(WebCore::Editor::applyEditingStyleToElement):
* editing/markup.cpp:
(WebCore::StyledMarkupAccumulator::wrapWithStyleNode):
(WebCore::StyledMarkupAccumulator::appendStyleNodeOpenTag):
(WebCore::propertyMissingOrEqualToNone):
* inspector/InspectorCSSAgent.cpp:
(WebCore::InspectorCSSAgent::buildArrayForAttributeStyles):
* page/DragController.cpp:
(WebCore::DragController::concludeEditDrag):
* page/PageSerializer.cpp:
(WebCore::PageSerializer::serializeFrame):
(WebCore::PageSerializer::retrieveResourcesForCSSDeclaration):
* page/PageSerializer.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::resize):
* svg/SVGStyledElement.cpp:
(WebCore::SVGStyledElement::getPresentationAttribute):

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

12 years agoMake elements that don't have attributes smaller.
kling@webkit.org [Tue, 24 Jan 2012 15:42:07 +0000 (15:42 +0000)]
Make elements that don't have attributes smaller.
<http://webkit.org/b/76876>

Reviewed by Antti Koivisto.

Move the inline style declaration from StyledElement to NamedNodeMap, since having
an inline style declaration also implies having a style attribute on the element.
This saves one CPU word per element that has no attributes.

This reduces memory consumption by 412 kB (on 64-bit) when viewing the full
HTML5 spec at <http://whatwg.org/c>.

* dom/NamedNodeMap.cpp:
(WebCore::NamedNodeMap::ensureInlineStyleDecl):
(WebCore::NamedNodeMap::destroyInlineStyleDecl):
(WebCore::NamedNodeMap::createInlineStyleDecl):
* dom/NamedNodeMap.h:
(WebCore::NamedNodeMap::inlineStyleDecl):
* dom/StyledElement.cpp:
(WebCore::StyledElement::updateStyleAttribute):
(WebCore::StyledElement::addSubresourceAttributeURLs):
* dom/StyledElement.h:
(WebCore::StyledElement::inlineStyleDecl):
(WebCore::StyledElement::ensureInlineStyleDecl):
(WebCore::StyledElement::destroyInlineStyleDecl):

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

12 years ago[Qt][WK2] Qt's cross-process AC copies images excessively when updating tiles.
noam.rosenthal@nokia.com [Tue, 24 Jan 2012 15:17:11 +0000 (15:17 +0000)]
[Qt][WK2] Qt's cross-process AC copies images excessively when updating tiles.
https://bugs.webkit.org/show_bug.cgi?id=76877

Reviewed by Kenneth Rohde Christiansen.

Source/WebCore:

Add BitmapTexture::updateRawContents(), which allows uploading image data to a texture
without changing its format or swizzling RGB. The data has to be in the texture's native
format.

No new tests, this affects performance on all existing tests.

* platform/graphics/opengl/TextureMapperGL.cpp:
(WebCore::BitmapTextureGL::updateRawContents):
* platform/graphics/qt/TextureMapperQt.cpp:
* platform/graphics/texmap/TextureMapper.h:
(WebCore::BitmapTexture::updateRawContents):
* platform/graphics/texmap/TextureMapperNode.cpp:
(WebCore::TextureMapperNode::setContentsTileBackBuffer):
* platform/graphics/texmap/TextureMapperNode.h:

Source/WebKit2:

Instead of copying QImages, pass a reference to the ShareableBitmap that was originally
created by the web process. Also, swizzle the image's RGB in the web process, before it's
transferred to the UI process.

Data flow before change:
(Web Process) Render to image -> IPC -> (UI Process) Copy (render queue) -> Copy Swizzled RGB -> Upload

Data flow after change:
(Web Process) Render to image -> swizzle RGB -> IPC -> (UI Process) -> Upload

* Shared/ShareableBitmap.h:
* Shared/qt/ShareableBitmapQt.cpp:
(WebKit::ShareableBitmap::swizzleRGB):
* UIProcess/LayerTreeHostProxy.h:
* UIProcess/qt/LayerTreeHostProxyQt.cpp:
(WebKit::LayerTreeHostProxy::updateTile):
(WebKit::LayerTreeHostProxy::createImage):
(WebKit::LayerTreeHostProxy::syncRemoteContent):
(WebKit::LayerTreeHostProxy::updateTileForLayer):
(WebKit::LayerTreeHostProxy::createDirectlyCompositedImage):
(WebKit::LayerTreeHostProxy::purgeGLResources):
* WebProcess/WebPage/TiledBackingStoreRemoteTile.cpp:
(WebKit::TiledBackingStoreRemoteTile::updateBackBuffer):
* WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
(WebKit::LayerTreeHostQt::adoptImageBackingStore):

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

12 years agoUnreviewed, skip WK2 API test timing out on some GTK bots.
mario@webkit.org [Tue, 24 Jan 2012 14:53:31 +0000 (14:53 +0000)]
Unreviewed, skip WK2 API test timing out on some GTK bots.

WebKit2APITests/TestDownloads is consistently timing out on the
32bit release and 64bit debug bots.

* Scripts/run-gtk-tests:
(TestRunner): Skip WebKit2APITests/TestDownloads.

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

12 years agoWeb Inspector: inspector/debugger/dom-breakpoints.html started to fail after r105642
loislo@chromium.org [Tue, 24 Jan 2012 14:35:36 +0000 (14:35 +0000)]
Web Inspector: inspector/debugger/dom-breakpoints.html started to fail after r105642
https://bugs.webkit.org/show_bug.cgi?id=76908

Reviewed by Yury Semikhatsky.

* css/CSSMutableStyleDeclaration.cpp:

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

12 years ago[Refactoring] Make finish() of CodeGeneratorJS.pm empty
ossy@webkit.org [Tue, 24 Jan 2012 13:58:04 +0000 (13:58 +0000)]
[Refactoring] Make finish() of CodeGeneratorJS.pm empty
https://bugs.webkit.org/show_bug.cgi?id=76846

Reviewed by Tor Arne Vestbø.

* bindings/scripts/CodeGeneratorJS.pm: Warning fix after r105683.
(WriteData):

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

12 years ago[Qt] Fix the build with the newes Qt5 hashes
ossy@webkit.org [Tue, 24 Jan 2012 13:32:07 +0000 (13:32 +0000)]
[Qt] Fix the build with the newes Qt5 hashes
https://bugs.webkit.org/show_bug.cgi?id=76657

Patch by Andras Becsi <andras.becsi@nokia.com> on 2012-01-24
Reviewed by Simon Hausmann.

Source/WebCore:

No new tests needed.

* platform/graphics/cairo/OpenGLShims.cpp:
(WebCore::getProcAddress): Adopt API changes.

Tools:

* MiniBrowser/qt/MiniBrowserApplication.cpp:
(MiniBrowserApplication::MiniBrowserApplication): Disable the automatic touch->mouse event synthesis
for now to prevent an infinite loop where Qt always creates mouse events out of our touch mock events.

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

12 years ago[Qt][WK2] QtWebIconDatabaseClient leaves a dangling pointer on WebIconDatabase after...
ossy@webkit.org [Tue, 24 Jan 2012 13:30:53 +0000 (13:30 +0000)]
[Qt][WK2] QtWebIconDatabaseClient leaves a dangling pointer on WebIconDatabase after its destruction
https://bugs.webkit.org/show_bug.cgi?id=76399

Patch by Rafael Brandao <rafael.lobo@openbossa.org> on 2012-01-24
Reviewed by Simon Hausmann.

Due a circular dependency between WebContext and WebProcessProxy, WebContext it not
being destroyed, neither WebIconDatabase. As QtWebIconDatabaseClient's life time is the same
as QtWebContext and this one is being destroyed, the remaining reference to our client
on WebIconDatabase should be cleaned upon its destruction.

* UIProcess/qt/QtWebIconDatabaseClient.cpp:
(QtWebIconDatabaseClient::QtWebIconDatabaseClient):
(QtWebIconDatabaseClient::~QtWebIconDatabaseClient): Clear client pointer on WebIconDatabase.
* UIProcess/qt/QtWebIconDatabaseClient.h: Make this client hold a reference to WebIconDatabase.

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

12 years ago[Qt] Incremental build problem.
ossy@webkit.org [Tue, 24 Jan 2012 13:28:08 +0000 (13:28 +0000)]
[Qt] Incremental build problem.
https://bugs.webkit.org/show_bug.cgi?id=74687

It is necessary to set mathattrs.in dependency for generating MathMLNames.cpp file.

Patch by Ádám Kallai <Kallai.Adam@stud.u-szeged.hu> on 2012-01-24
Reviewed by Csaba Osztrogonác.

* DerivedSources.pri:
I added missing depend.

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

12 years ago[Chromium] Update test expectation
tkent@chromium.org [Tue, 24 Jan 2012 12:55:05 +0000 (12:55 +0000)]
[Chromium] Update test expectation

* platform/chromium/test_expectations.txt:
perf/adding-radio-buttons.html is TEXT on Mac.

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

12 years ago[Qt] Distinguish between Cygwin and cmd.exe in the way we set env variables
vestbo@webkit.org [Tue, 24 Jan 2012 12:31:00 +0000 (12:31 +0000)]
[Qt] Distinguish between Cygwin and cmd.exe in the way we set env variables

We can't use win32-msvc* to decide whether or not to use (set FOO=bar), as
building with MinGW inside cmd.exe will require the same construct. Instead
we assume that when the first character in PWD is a '/' we're running under
Cygwin, and use the normal unix way of setting environment variables.

Reviewed by Simon Hausmann.

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

12 years ago[Qt][WK2] Add test for application URL schemes.
zeno.albisser@nokia.com [Tue, 24 Jan 2012 12:28:31 +0000 (12:28 +0000)]
[Qt][WK2] Add test for application URL schemes.
https://bugs.webkit.org/show_bug.cgi?id=74933

Add a test that checks handling of url strings.
Add a test that verifies replies in case of multiple
available application url schemes.

Reviewed by Kenneth Rohde Christiansen.

* UIProcess/API/qt/tests/qmltests/WebView/tst_applicationScheme.qml:

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 12:25:13 +0000 (12:25 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkSelection interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceSelection.cpp: Added.
(core):
(listObjectForSelection):
(optionFromList):
(optionFromSelection):
(webkitAccessibleSelectionInterfaceInit):
(webkitAccessibleSelectionAddSelection):
(webkitAccessibleSelectionClearSelection):
(webkitAccessibleSelectionRefSelection):
(webkitAccessibleSelectionGetSelectionCount):
(webkitAccessibleSelectionIsChildSelected):
(webkitAccessibleSelectionRemoveSelection):
(webkitAccessibleSelectionSelectAllSelection):
* accessibility/gtk/WebKitAccessibleInterfaceSelection.h: Added.
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove code
related to the implementation of the AtkSelection interface.

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceSelection.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 12:04:16 +0000 (12:04 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkImage interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceImage.cpp: Added.
(core):
(webkitAccessibleImageInterfaceInit):
(webkitAccessibleImageGetImagePosition):
(webkitAccessibleImageGetImageDescription):
(webkitAccessibleImageGetImageSize):
* accessibility/gtk/WebKitAccessibleInterfaceImage.h: Added.
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove code
related to the implementation of the AtkImage interface.

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceImage.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 11:58:52 +0000 (11:58 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkHypertext interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceHypertext.cpp: Added.
(core):
(webkitAccessibleHypertextInterfaceInit):
(webkitAccessibleHypertextGetLink):
(webkitAccessibleHypertextGetNLinks):
(webkitAccessibleHypertextGetLinkIndex):
* accessibility/gtk/WebKitAccessibleInterfaceHypertext.h: Added.
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove code
related to the implementation of the AtkHypertext interface.

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceHypertext.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 11:55:18 +0000 (11:55 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkHyperlinkImpl interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceHyperlinkImpl.cpp: Added.
(webkitAccessibleHyperlinkImplInterfaceInit):
(webkitAccessibleHyperlinkImplGetHyperlink):
* accessibility/gtk/WebKitAccessibleInterfaceHyperlinkImpl.h: Added.
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove code
related to the implementation of the AtkHyperlinkImpl interface.
(webkit_accessible_class_init):

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceHyperlinkImpl.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years ago[GTK] Fix /webkit2/WebKitWebView/reload after r105688
carlosgc@webkit.org [Tue, 24 Jan 2012 11:49:47 +0000 (11:49 +0000)]
[GTK] Fix /webkit2/WebKitWebView/reload after r105688
https://bugs.webkit.org/show_bug.cgi?id=76898

Reviewed by Alejandro G. Castro.

* UIProcess/API/gtk/tests/LoadTrackingTest.cpp:
(LoadTrackingTest::reload): Add reload method that clears events
and initializes progress.
* UIProcess/API/gtk/tests/LoadTrackingTest.h:
* UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp:
(testWebViewReload): Use LoadTrackingTest::reload() instead of
webkit_web_view_reload().

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 11:47:51 +0000 (11:47 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkEditableText interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceEditableText.cpp: Added.
(core):
(webkitAccessibleEditableTextInterfaceInit):
(webkitAccessibleEditableTextSetRunAttributes):
(webkitAccessibleEditableTextSetTextContents):
(webkitAccessibleEditableTextInsertText):
(webkitAccessibleEditableTextCopyText):
(webkitAccessibleEditableTextCutText):
(webkitAccessibleEditableTextDeleteText):
(webkitAccessibleEditableTextPasteText):
* accessibility/gtk/WebKitAccessibleInterfaceEditableText.h: Added.
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove code
related to the implementation of the AtkEditableText interface.

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceEditableText.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 11:40:44 +0000 (11:40 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkDocument interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceDocument.cpp: Added.
(core):
(documentAttributeValue):
(webkitAccessibleDocumentInterfaceInit):
(webkitAccessibleDocumentGetAttributeValue):
(webkitAccessibleDocumentGetAttributes):
(webkitAccessibleDocumentGetLocale):
* accessibility/gtk/WebKitAccessibleInterfaceDocument.h: Added.

Move common function addAttributeToSet() out from the wrapper to
the utility file, used from WebKitAccessibleInterfaceDocument.cpp.

* accessibility/gtk/WebKitAccessibleUtil.cpp:
(addToAtkAttributeSet): Taken from WebKitAccessibleWrapperAtk.cpp.
* accessibility/gtk/WebKitAccessibleUtil.h:
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove local
implementation of addAttributeToSet, as well as all the code related
to the implementation of the AtkDocument interface.

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceDocument.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years ago[Chromium] Add WebKit API for Pointer Lock
scheib@chromium.org [Tue, 24 Jan 2012 11:29:01 +0000 (11:29 +0000)]
[Chromium] Add WebKit API for Pointer Lock
https://bugs.webkit.org/show_bug.cgi?id=76410

Reviewed by Darin Fisher.

Breaking up https://bugs.webkit.org/show_bug.cgi?id=75762
into a series of patches, this stubs out the API.

* public/WebWidget.h:
(WebKit::WebWidget::didCompletePointerLock):
(WebKit::WebWidget::didNotCompletePointerLock):
(WebKit::WebWidget::didLosePointerLock):
* public/WebWidgetClient.h:
(WebKit::WebWidgetClient::requestPointerLock):
(WebKit::WebWidgetClient::requestPointerUnlock):
(WebKit::WebWidgetClient::isPointerLocked):
* src/ChromeClientImpl.cpp:
(WebKit::ChromeClientImpl::requestPointerLock):
(WebKit::ChromeClientImpl::requestPointerUnlock):
(WebKit::ChromeClientImpl::isPointerLocked):
* src/ChromeClientImpl.h:
* src/WebViewImpl.cpp:
(WebKit::WebViewImpl::handleInputEvent):
(WebKit::WebViewImpl::didCompletePointerLock):
(WebKit::WebViewImpl::didNotCompletePointerLock):
(WebKit::WebViewImpl::didLosePointerLock):
(WebKit::WebViewImpl::requestPointerLock):
(WebKit::WebViewImpl::requestPointerUnlock):
(WebKit::WebViewImpl::isPointerLocked):
(WebKit::WebViewImpl::pointerLockMouseEvent):
* src/WebViewImpl.h:

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

12 years agoSome qmake build files must include Qt5's "quick" module.
hausmann@webkit.org [Tue, 24 Jan 2012 11:22:26 +0000 (11:22 +0000)]
Some qmake build files must include Qt5's "quick" module.
https://bugs.webkit.org/show_bug.cgi?id=76671

Unreviewed build fix.

.:

* Source/api.pri:

Source/WebKit2:

* UIProcess/API/qt/tests/tests.pri:

Tools:

* MiniBrowser/qt/MiniBrowser.pro:
* WebKitTestRunner/Target.pri:

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

12 years ago[Qt] Fix the event timestamps for touch mocking
abecsi@webkit.org [Tue, 24 Jan 2012 11:19:46 +0000 (11:19 +0000)]
[Qt] Fix the event timestamps for touch mocking

Reviewed by Simon Hausmann.

* MiniBrowser/qt/MiniBrowserApplication.cpp:
(MiniBrowserApplication::sendTouchEvent): We should not set QEvent::None as the
timestamp argument in the QWindowSystemInterface::handleTouchEvent call.

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

12 years ago[Chromium] Update test expectation
tkent@chromium.org [Tue, 24 Jan 2012 11:05:13 +0000 (11:05 +0000)]
[Chromium] Update test expectation

* platform/chromium/test_expectations.txt:
perf/adding-radio-buttons.html is MISSING on buildbots.

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

12 years ago[GTK] Refactor GTK's accessibilitity code to be more modular
mario@webkit.org [Tue, 24 Jan 2012 11:03:51 +0000 (11:03 +0000)]
[GTK] Refactor GTK's accessibilitity code to be more modular
https://bugs.webkit.org/show_bug.cgi?id=76783

Reviewed by Martin Robinson.

New files for the implementation of the AtkComponent interface,
containing the related code from WebKitAccessibleWrapperAtk.cpp.

* accessibility/gtk/WebKitAccessibleInterfaceComponent.cpp: Added.
(core):
(atkToContents):
(webkitAccessibleComponentInterfaceInit):
(webkitAccessibleComponentRefAccessibleAtPoint):
(webkitAccessibleComponentGetExtents):
(webkitAccessibleComponentGrabFocus):
* accessibility/gtk/WebKitAccessibleInterfaceComponent.h: Added.

Move common function contentsToAtk() out from the wrapper to the
utility file, used from WebKitAccessibleInterfaceComponent.cpp.

* accessibility/gtk/WebKitAccessibleUtil.cpp:
(contentsRelativeToAtkCoordinateType): Taken from WebKitAccessibleWrapperAtk.cpp.
* accessibility/gtk/WebKitAccessibleUtil.h:
* accessibility/gtk/WebKitAccessibleWrapperAtk.cpp: Remove local
implementation of contentsToAtk, as well as all the code related
to the implementation of the AtkComponent interface.

Add new files to build files.

* GNUmakefile.list.am: Add WebKitAccessibleInterfaceComponent.[h|cpp].
* WebCore.gypi: Ditto.

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

12 years ago[Qt] Unreviewed gardening. Skip new failing tests to paint the bots green.
ossy@webkit.org [Tue, 24 Jan 2012 10:51:11 +0000 (10:51 +0000)]
[Qt] Unreviewed gardening. Skip new failing tests to paint the bots green.

* platform/qt-5.0/Skipped:
* platform/qt/Skipped:

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

12 years ago[Refactoring] Makes finish() of CodeGeneratorV8.pm empty
haraken@chromium.org [Tue, 24 Jan 2012 10:32:48 +0000 (10:32 +0000)]
[Refactoring] Makes finish() of CodeGeneratorV8.pm empty
https://bugs.webkit.org/show_bug.cgi?id=76841

Reviewed by Adam Barth.

This is one of steps to stop rebuilding .h/.cpp files
generated by unchanged IDLs (bug 76836).

As refactoring, we are planning to remove finish() from
all CodeGenerators. This patch makes finish() of
CodeGeneratorV8.pm empty.

No new tests. No change in behavior.

* bindings/scripts/CodeGeneratorV8.pm:
(finish): Made it empty. We will remove finish() after
making finish() of all CodeGenerators empty.
(GenerateInterface): Modified to call WriteData().
(WriteData): Simple code refactoring.
Removed if(defined $IMPL).
Removed if(defined $HEADER).
$IMPL -> IMPL.
$HEADER -> HEADER.

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

12 years agoUnreviewed build fix for GTK after r105698.
mario@webkit.org [Tue, 24 Jan 2012 10:17:02 +0000 (10:17 +0000)]
Unreviewed build fix for GTK after r105698.

* bindings/js/JSPeerConnectionCustom.cpp:
(WebCore::JSPeerConnectionConstructor::constructJSPeerConnection):

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

12 years agoFix build erros on Mac by r105706.
tkent@chromium.org [Tue, 24 Jan 2012 10:12:20 +0000 (10:12 +0000)]
Fix build erros on Mac by r105706.
https://bugs.webkit.org/show_bug.cgi?id=76763

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::compressedTexImage2D): Removed unused argument names.
(WebCore::WebGLRenderingContext::compressedTexSubImage2D): ditto.

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

12 years ago[Qt][WK2] Application URL schemes cause asserts when using debug.
zeno.albisser@nokia.com [Tue, 24 Jan 2012 10:03:54 +0000 (10:03 +0000)]
[Qt][WK2] Application URL schemes cause asserts when using debug.
https://bugs.webkit.org/show_bug.cgi?id=76700

Instances of QtNetworkRequestData / QtNetworkReplyData are meant
to be used for transfering data over IPC. To allow transferring
instances of these classes over IPC they need to be copyable,
and it must be possible to create such instances on the stack.
Because classes that inherit from RefCounted always need to be
used in connection with RefPtr, QtNetworkRequestData and
QtNetworkReplyData cannot inherit directly from RefCounted.

Deleting an object that inherits from RefCounted, without
the proper sequence of ref()/deref() being called by it's
RefPtr, causes asserts when running a debug version.

Reviewed by Simon Hausmann.

* Shared/qt/QtNetworkReplyData.h:
(WebKit::QtRefCountedNetworkReplyData::data):
* Shared/qt/QtNetworkRequestData.cpp:
(WebKit::QtRefCountedNetworkRequestData::QtRefCountedNetworkRequestData):
* Shared/qt/QtNetworkRequestData.h:
(WebKit::QtRefCountedNetworkRequestData::data):
* Target.pri:
* UIProcess/API/qt/qquicknetworkreply.cpp:
(QQuickNetworkReply::QQuickNetworkReply):
(QQuickNetworkReply::contentType):
(QQuickNetworkReply::setContentType):
(QQuickNetworkReply::operation):
(QQuickNetworkReply::setOperation):
(QQuickNetworkReply::contentDisposition):
(QQuickNetworkReply::setContentDisposition):
(QQuickNetworkReply::location):
(QQuickNetworkReply::setLocation):
(QQuickNetworkReply::lastModified):
(QQuickNetworkReply::setLastModified):
(QQuickNetworkReply::cookie):
(QQuickNetworkReply::setCookie):
(QQuickNetworkReply::userAgent):
(QQuickNetworkReply::setUserAgent):
(QQuickNetworkReply::server):
(QQuickNetworkReply::setServer):
(QQuickNetworkReply::data):
(QQuickNetworkReply::setData):
(QQuickNetworkReply::send):
(QQuickNetworkReply::networkRequestData):
(QQuickNetworkReply::setNetworkRequestData):
(QQuickNetworkReply::networkReplyData):
* UIProcess/API/qt/qquicknetworkreply_p.h:
* UIProcess/API/qt/qquicknetworkrequest.cpp:
(QQuickNetworkRequest::QQuickNetworkRequest):
(QQuickNetworkRequest::setNetworkRequestData):
(QQuickNetworkRequest::url):
* UIProcess/API/qt/qquicknetworkrequest_p.h:
* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewExperimental::invokeApplicationSchemeHandler):
* UIProcess/API/qt/qquickwebview_p.h:
* UIProcess/WebPageProxy.h:
* UIProcess/qt/QtPageClient.cpp:
(QtPageClient::handleApplicationSchemeRequest):
* UIProcess/qt/QtPageClient.h:
* UIProcess/qt/WebPageProxyQt.cpp:
(WebKit::WebPageProxy::resolveApplicationSchemeRequest):
(WebKit::WebPageProxy::sendApplicationSchemeReply):
* WebProcess/qt/QtNetworkReply.cpp:
(WebKit::QtNetworkReply::setData):
(WebKit::QtNetworkReply::readData):

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

12 years agoIntroduce RadioButtonGroup class to keep track of the group members and required...
tkent@chromium.org [Tue, 24 Jan 2012 10:02:32 +0000 (10:02 +0000)]
Introduce RadioButtonGroup class to keep track of the group members and required state
https://bugs.webkit.org/show_bug.cgi?id=74909

Reviewed by Darin Adler.

Source/WebCore:

RadioButtonGroup contains a set of member radio buttons in the group,
and "required" status of the group. This helps implementing correct
radio button validity, and improving performance of updating validity
status of radio buttons.

This change fixes the following bugs:
- A radio button should be "required" if one of a member of the same
  group has the "required" attribute.
  https://bugs.webkit.org/show_bug.cgi?id=76365
- :invalid style is not applied when a checked radio button is removed
  from its radio group
  https://bugs.webkit.org/show_bug.cgi?id=74914
- Loading a page with N radio buttons in a group takes O(N^2) time.

Tests: fast/forms/radio/radio-live-validation-style.html
       perf/adding-radio-buttons.html

* dom/CheckedRadioButtons.cpp:
(WebCore::RadioButtonGroup::isEmpty):
(WebCore::RadioButtonGroup::isRequired):
(WebCore::RadioButtonGroup::checkedButton):
(WebCore::RadioButtonGroup::RadioButtonGroup):
(WebCore::RadioButtonGroup::create):
(WebCore::RadioButtonGroup::isValid):
(WebCore::RadioButtonGroup::setCheckedButton):
(WebCore::RadioButtonGroup::add):
(WebCore::RadioButtonGroup::updateCheckedState):
(WebCore::RadioButtonGroup::requiredAttributeChanged):
(WebCore::RadioButtonGroup::remove):
(WebCore::RadioButtonGroup::setNeedsValidityCheckForAllButtons):
Add RadioButtonGroup class. It keeps track of pointers to member radio
buttons and required status of the group in addition to the checked
radio button pointer.

(WebCore::CheckedRadioButtons::CheckedRadioButtons):
(WebCore::CheckedRadioButtons::~CheckedRadioButtons):
Define empty constructor and destructor in order to avoid exposing
RadioButtonGroup class.

(WebCore::CheckedRadioButtons::addButton):
(WebCore::CheckedRadioButtons::updateCheckedState):
(WebCore::CheckedRadioButtons::requiredAttributeChanged):
(WebCore::CheckedRadioButtons::checkedButtonForGroup):
(WebCore::CheckedRadioButtons::isInRequiredGroup):
(WebCore::CheckedRadioButtons::removeButton):
Change the HashMap member of this class so that it maps a group name to
a RadioButtonGroup object. These functions just get a RadioButtonGroup
object and call a corresponding member function of RadioButtonGroup.

* dom/CheckedRadioButtons.h: Update declarations.

* html/HTMLFormControlElement.cpp:
(WebCore::HTMLFormControlElement::parseMappedAttribute):
(WebCore::HTMLFormControlElement::requiredAttributeChanged):
Move a part of parseMappedAttribute() into requiredAttributeChanged().
* html/HTMLFormControlElement.h: Add requiredAttributeChanged().
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::valueMissing):
Move required check code to InputType::valueMissing implementations.
RadioInputType needs special handling for checking required state.
readOnly() and disabled() are unnecessary because willValidate() checks them.
(WebCore::HTMLInputElement::setChecked):
Call new function CheckedRadioButtons::updateCheckedState() instead of
removeButton() and updateCheckedRadioButtons().
(WebCore::HTMLInputElement::requiredAttributeChanged):
Override this to call CheckedRadioButtons::requiredAttributeChanged().
* html/HTMLInputElement.h: Add requiredAttributeChanged().
* html/RadioInputType.cpp:
(WebCore::RadioInputType::valueMissing):
Check required state by CheckedRadioButtons::isInRequiredGroup().
* html/RadioInputType.h: Remove attach().

* html/CheckboxInputType.cpp:
(WebCore::CheckboxInputType::valueMissing):
  Move required check from HTMLInputElement::valueMissing().
* html/FileInputType.cpp:
(WebCore::FileInputType::valueMissing): ditto.
* html/TextFieldInputType.cpp:
(WebCore::TextFieldInputType::valueMissing): ditto.

LayoutTests:

* fast/forms/radio/radio-live-validation-style-expected.txt: Added.
* fast/forms/radio/radio-live-validation-style.html: Added.

* fast/forms/script-tests/ValidityState-valueMissing-radio.js:
- Update the expectation for the behavior change of
  https://bugs.webkit.org/show_bug.cgi?id=76365
- Add test cases for radio buttons not in a radio button group.
* fast/forms/ValidityState-valueMissing-radio-expected.txt: ditto.

* perf/adding-radio-buttons-expected.txt: Added.
* perf/adding-radio-buttons.html: Added.

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

12 years ago[chromium] PNG image with CMYK ICC color profile renders color-inverted and squashed
noel.gordon@gmail.com [Tue, 24 Jan 2012 09:56:46 +0000 (09:56 +0000)]
[chromium] PNG image with CMYK ICC color profile renders color-inverted and squashed
https://bugs.webkit.org/show_bug.cgi?id=76804

Reviewed by Adam Barth.

Source/WebCore:

Use color profiles for PNG images only if their embedded color profile is from an RGB
color space input device.

Test: fast/images/rgb-png-with-cmyk-color-profile.html

* platform/image-decoders/ImageDecoder.h:
(WebCore::ImageDecoder::rgbColorProfile): Return true if the profile has an RGB color space.
(WebCore::ImageDecoder::inputDeviceColorProfile): Return true if the profile is from an input device.
* platform/image-decoders/png/PNGImageDecoder.cpp:
(WebCore::readColorProfile): Ignore PNG image embedded color profile unless the profile
comes from an RGB color space input device.
(WebCore::PNGImageDecoder::headerAvailable): Minor white-space removals courtesy Xcode.

LayoutTests:

* fast/images/resources/rgb-png-with-cmyk-color-profile.png: Added.
* fast/images/rgb-png-with-cmyk-color-profile-expected.txt: Added.
* fast/images/rgb-png-with-cmyk-color-profile.html: Added.
* platform/mac/fast/images/rgb-png-with-cmyk-color-profile-expected.png: Added.

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

12 years ago[GTK] Implement DownloadClient in WebKit2 GTK+ API
carlosgc@webkit.org [Tue, 24 Jan 2012 09:45:28 +0000 (09:45 +0000)]
[GTK] Implement DownloadClient in WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=72952

Reviewed by Martin Robinson.

Source/WebKit2:

* GNUmakefile.am: Add new files to compilation.
* UIProcess/API/gtk/WebKitDownloadClient.cpp: Added.
(didStart): Call webkitWebContextDownloadStarted().
(didReceiveResponse): Call webkitDownloadSetResponse() with the
received response.
(didReceiveData): Call webkitDownloadNotifyProgress().
(decideDestinationWithSuggestedFilename): Call
webkitDownloadDecideDestinationWithSuggestedFilename().
(didCreateDestination): Call webkitDownloadDestinationCreated().
(didFail): Call webkitDownloadFailed() or
webkitDownloadCancelled() if the download was cancelled before
failing.
(didCancel): Call webkitDownloadCancelled().
(didFinish): Call webkitDownloadFinished().
(attachDownloadClientToContext): Add
implementation for download client callbacks.
* UIProcess/API/gtk/WebKitDownloadClient.h: Added.
* UIProcess/API/gtk/WebKitError.cpp:
(webkit_download_error_quark): Add quark for download errors.
* UIProcess/API/gtk/WebKitError.h:
* UIProcess/API/gtk/WebKitWebContext.cpp:
(webkit_web_context_class_init): Add download-started signal.
(createDefaultWebContext): Initialize the download client.
(downloadsMap): HashMap containing download objects for all
ongoing download operations.
(webkit_web_context_download_uri): Start a new download for the
given URI.
(webkitWebContextGetOrCreateDownload): Helper function to create a
new download object or return the existing one from the downloads map.
(webkitWebContextRemoveDownload): Remove the download object from
the downloads map.
(webkitWebContextDownloadStarted): Emit
WebKitWebContext::download-started for the given download object.
* UIProcess/API/gtk/WebKitWebContext.h:
* UIProcess/API/gtk/WebKitWebContextPrivate.h:
* UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
* UIProcess/API/gtk/tests/GNUmakefile.am: Add new test for downloads.
* UIProcess/API/gtk/tests/TestDownloads.cpp: Added.
(getWebKit1TestResoucesDir):
(testDownloadLocalFile):
(testDownloadLocalFileError):
(serverCallback):
(testDownloadRemoteFile):
(testDownloadRemoteFileError):
(beforeAll):
(afterAll):

Tools:

* gtk/generate-gtkdoc:
(get_webkit2_options): Ignore WebKitDownloadClient.

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

12 years agoWeb Inspector: fix sticky DOM breakpoints.
podivilov@chromium.org [Tue, 24 Jan 2012 09:25:38 +0000 (09:25 +0000)]
Web Inspector: fix sticky DOM breakpoints.
https://bugs.webkit.org/show_bug.cgi?id=64437

Reviewed by Yury Semikhatsky.

* inspector/front-end/DOMBreakpointsSidebarPane.js:
(WebInspector.DOMBreakpointsSidebarPane.prototype._inspectedURLChanged):

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

12 years agoExpose WebGL texture compression methods on WebGLRenderingContext
commit-queue@webkit.org [Tue, 24 Jan 2012 09:19:50 +0000 (09:19 +0000)]
Expose WebGL texture compression methods on WebGLRenderingContext
https://bugs.webkit.org/show_bug.cgi?id=76763

Patch by Gregg Tavares <gman@google.com> on 2012-01-24
Reviewed by Kenneth Russell.

Source/WebCore:

Test: fast/canvas/webgl/compressed-tex-image.html

* html/canvas/WebGLRenderingContext.cpp:
(WebCore::WebGLRenderingContext::compressedTexImage2D):
(WebCore::WebGLRenderingContext::compressedTexSubImage2D):
* html/canvas/WebGLRenderingContext.h:
* html/canvas/WebGLRenderingContext.idl:

LayoutTests:

* fast/canvas/webgl/compressed-tex-image-expected.txt: Added.
* fast/canvas/webgl/compressed-tex-image.html: Added.

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

12 years ago[V8] Add Uint8ClampedArray support
bashi@chromium.org [Tue, 24 Jan 2012 08:54:47 +0000 (08:54 +0000)]
[V8] Add Uint8ClampedArray support
https://bugs.webkit.org/show_bug.cgi?id=76803

Reviewed by Kenneth Russell.

Source/JavaScriptCore:

* wtf/ArrayBufferView.h:
(WTF::ArrayBufferView::isUnsignedByteClampedArray): Added.
* wtf/Uint8ClampedArray.h:
(WTF::Uint8ClampedArray::isUnsignedByteClampedArray): Overridden to return true.

Source/WebCore:

No new tests. fast/js/script-tests/dfg-uint8clampedarray.js should pass on chromium port.

* WebCore.gypi: Added required files.
* bindings/scripts/CodeGeneratorV8.pm:
(IsTypedArrayType): Added Uint8ClampedArray.
* bindings/v8/SerializedScriptValue.cpp: Added the tag for Uint8ClampedArray.
(WebCore::V8ObjectMap::Writer::writeArrayBufferView): Appends the tag when buffer is Uint8ClampedArray.
(WebCore::V8ObjectMap::Reader::readArrayBufferView): Creates Uint8ClampedArray instance when the tag represents Uint8ClampedArray.
* bindings/v8/custom/V8ArrayBufferViewCustomScript.js:
* bindings/v8/custom/V8Uint8ClampedArrayCustom.cpp: Added.
(WebCore::V8Uint8ClampedArray::constructorCallback):
(WebCore::V8Uint8ClampedArray::setCallback):
(WebCore::toV8):
* page/Crypto.cpp: Added isUnsignedByteClampedArray() call to isIntegerArray().
* page/DOMWindow.idl: Removed ifdefs.
* workers/WorkerContext.idl: Added Uint8ArrayConstructor.

LayoutTests:

* platform/chromium/fast/canvas/webgl/array-unit-tests-expected.txt: Removed.
* platform/chromium/test_expectations.txt: Removed fast/js/dfg-uint8clampedarray.html.

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

12 years ago[GTK] Add WebKitDownload to WebKit2 GTK+ API
carlosgc@webkit.org [Tue, 24 Jan 2012 08:49:47 +0000 (08:49 +0000)]
[GTK] Add WebKitDownload to WebKit2 GTK+ API
https://bugs.webkit.org/show_bug.cgi?id=72949

Reviewed by Martin Robinson.

Source/JavaScriptCore:

* wtf/gobject/GOwnPtr.cpp:
(WTF::GTimer): Use g_timer_destroy() to free a GTimer.
* wtf/gobject/GOwnPtr.h: Add GTimer template.
* wtf/gobject/GTypedefs.h: Add GTimer forward declaration.

Source/WebKit2:

* GNUmakefile.am: Add new files to compilation.
* UIProcess/API/gtk/WebKitDownload.cpp: Added.
(webkitDownloadFinalize):
(webkitDownloadGetProperty):
(webkitDownloadDecideDestination):
(webkit_download_init):
(webkit_download_class_init):
(webkitDownloadCreate): Create a new WebKitDownload for a given
WKDownloadRef.
(webkitDownloadSetResponse): Set the network response of the
download.
(webkitDownloadIsCancelled): Whether the download has been
cancelled by the user.
(webkitDownloadNotifyProgress): Emit notify::estimated-progress if
needed.
(webkitDownloadFailed): Emit WebKitDownload::failed with the given
error.
(webkitDownloadCancelled): Emit WebKitDownload::failed with
cancelled error.
(webkitDownloadFinished): Emit WebKitDownload::finished.
(webkitDownloadDecideDestinationWithSuggestedFilename): Emit
WebKitDownload::decide-destination.
(webkitDownloadDestinationCreated): Emit
WebKitDownload::created-destination.
(webkit_download_get_destination): Return the destination URI of
the download.
(webkit_download_set_destination): Set the destination URI of the
download.
(webkit_download_get_response): Return the response received by
the server.
(webkit_download_cancel): Cancel the download.
(webkit_download_get_estimated_progress): Return the estimated
progress.
(webkit_download_get_elapsed_time): Return the time elapsed since
the download started.
* UIProcess/API/gtk/WebKitDownload.h: Added.
* UIProcess/API/gtk/WebKitDownloadPrivate.h: Added.
* UIProcess/API/gtk/WebKitPrivate.h:
* UIProcess/API/gtk/WebKitURIResponse.cpp:
(webkitURIResponseGetResourceResponse):
* UIProcess/API/gtk/docs/webkit2gtk-sections.txt: Add new symbols.
* UIProcess/API/gtk/docs/webkit2gtk.types: Add
webkit_download_get_type().
* UIProcess/API/gtk/webkit2.h: Include WebKitDownload.h.
* UIProcess/API/gtk/webkit2marshal.list:

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

12 years agoUnreviewed build fix for GTK Debug build after r105698.
loislo@chromium.org [Tue, 24 Jan 2012 08:35:21 +0000 (08:35 +0000)]
Unreviewed build fix for GTK Debug build after r105698.

* bindings/js/JSNavigatorCustom.cpp:
(WebCore::JSNavigator::webkitGetUserMedia):

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

12 years agoUnreviewed build fix for Qt LinuxSH4 build after r105698.
loislo@chromium.org [Tue, 24 Jan 2012 08:26:02 +0000 (08:26 +0000)]
Unreviewed build fix for Qt LinuxSH4 build after r105698.

* interpreter/Interpreter.cpp:
(JSC::Interpreter::privateExecute):

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

12 years ago[Qt][WK2] http/tests/navigation/anchor-frames-gbk.html fails
ossy@webkit.org [Tue, 24 Jan 2012 07:47:47 +0000 (07:47 +0000)]
[Qt][WK2] http/tests/navigation/anchor-frames-gbk.html fails
https://bugs.webkit.org/show_bug.cgi?id=76896

* platform/qt-wk2/Skipped: Skip the failing test.

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

12 years agoAvoid spurious rebuilds on vs2010 due to DerivedSources not existing
commit-queue@webkit.org [Tue, 24 Jan 2012 07:38:32 +0000 (07:38 +0000)]
Avoid spurious rebuilds on vs2010 due to DerivedSources not existing
https://bugs.webkit.org/show_bug.cgi?id=76873

Patch by Scott Graham <scottmg@chromium.org> on 2012-01-23
Reviewed by Adam Barth.

* WebCore.gyp/WebCore.gyp:

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

12 years ago[Qt] Unreviewed gardening after r105647.
ossy@webkit.org [Tue, 24 Jan 2012 07:37:31 +0000 (07:37 +0000)]
[Qt] Unreviewed gardening after r105647.

* platform/qt/css3/calc/getComputedStyle-margin-percentage-expected.png: Added.
* platform/qt/css3/calc/getComputedStyle-margin-percentage-expected.txt: Added.

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

12 years agoJSValue::toString() should return a JSString* instead of a UString
ggaren@apple.com [Tue, 24 Jan 2012 07:34:10 +0000 (07:34 +0000)]
JSValue::toString() should return a JSString* instead of a UString
https://bugs.webkit.org/show_bug.cgi?id=76861

../JavaScriptCore:

Reviewed by Gavin Barraclough.

This makes the common case -- toString() on a string -- faster and
inline-able. (Not a measureable speedup, but we can now remove a bunch
of duplicate hand-rolled code for this optimization.)

This also clarifies the boundary between "C++ strings" and "JS strings".

In all cases other than true, false, null, undefined, and multi-digit
numbers, the JS runtime was just retrieving a UString from a JSString,
so returning a JSString* is strictly better. In the other cases, we can
optimize to avoid creating a new JSString if we care to, but it doesn't
seem to be a big deal.

* JavaScriptCore.exp: Export!

* jsc.cpp:
(functionPrint):
(functionDebug):
(functionRun):
(functionLoad):
(functionCheckSyntax):
(runWithScripts):
(runInteractive):
* API/JSValueRef.cpp:
(JSValueToStringCopy):
* bytecode/CodeBlock.cpp:
(JSC::valueToSourceString): Call value() after calling toString(), to
convert from "JS string" (JSString*) to "C++ string" (UString), since
toString() no longer returns a "C++ string".

* dfg/DFGOperations.cpp:
(JSC::DFG::operationValueAddNotNumber):
* jit/JITStubs.cpp:
(op_add): Updated for removal of toPrimitiveString():
all '+' operands can use toString(), except for object operands, which
need to take a slow path to call toPrimitive().

* runtime/ArrayPrototype.cpp:
(JSC::arrayProtoFuncToString):
(JSC::arrayProtoFuncToLocaleString):
(JSC::arrayProtoFuncJoin):
(JSC::arrayProtoFuncPush):
* runtime/CommonSlowPaths.h:
(JSC::CommonSlowPaths::opIn):
* runtime/DateConstructor.cpp:
(JSC::dateParse):
* runtime/DatePrototype.cpp:
(JSC::formatLocaleDate): Call value() after calling toString(), as above.

* runtime/ErrorInstance.h:
(JSC::ErrorInstance::create): Simplified down to one canonical create()
function, to make string handling easier.

* runtime/ErrorPrototype.cpp:
(JSC::errorProtoFuncToString):
* runtime/ExceptionHelpers.cpp:
(JSC::createInvalidParamError):
(JSC::createNotAConstructorError):
(JSC::createNotAFunctionError):
(JSC::createNotAnObjectError):
* runtime/FunctionConstructor.cpp:
(JSC::constructFunctionSkippingEvalEnabledCheck):
* runtime/FunctionPrototype.cpp:
(JSC::functionProtoFuncBind):
* runtime/JSArray.cpp:
(JSC::JSArray::sort): Call value() after calling toString(), as above.

* runtime/JSCell.cpp:
* runtime/JSCell.h: Removed JSCell::toString() because JSValue does this
job now. Doing it in JSCell is slower (requires extra type checking), and
creates the misimpression that language-defined toString() behavior is
an implementation detail of JSCell.

* runtime/JSGlobalObjectFunctions.cpp:
(JSC::encode):
(JSC::decode):
(JSC::globalFuncEval):
(JSC::globalFuncParseInt):
(JSC::globalFuncParseFloat):
(JSC::globalFuncEscape):
(JSC::globalFuncUnescape): Call value() after calling toString(), as above.

* runtime/JSONObject.cpp:
(JSC::unwrapBoxedPrimitive):
(JSC::Stringifier::Stringifier):
(JSC::JSONProtoFuncParse): Removed some manual optimization that toString()
takes care of.

* runtime/JSObject.cpp:
(JSC::JSObject::toString):
* runtime/JSObject.h: Updated to return JSString*.

* runtime/JSString.cpp:
* runtime/JSString.h:
(JSC::JSValue::toString): Removed, since I removed JSCell::toString().

* runtime/JSValue.cpp:
(JSC::JSValue::toStringSlowCase): Removed toPrimitiveString(), and re-
spawned toStringSlowCase() from its zombie corpse, since toPrimitiveString()
basically did what we want all the time. (Note that the toPrimitive()
preference changes from NoPreference to PreferString, because that's
how ToString is defined in the language. op_add does not want this behavior.)

* runtime/NumberPrototype.cpp:
(JSC::numberProtoFuncToString):
(JSC::numberProtoFuncToLocaleString): A little simpler, now that toString()
returns a JSString*.

* runtime/ObjectConstructor.cpp:
(JSC::objectConstructorGetOwnPropertyDescriptor):
(JSC::objectConstructorDefineProperty):
* runtime/ObjectPrototype.cpp:
(JSC::objectProtoFuncHasOwnProperty):
(JSC::objectProtoFuncDefineGetter):
(JSC::objectProtoFuncDefineSetter):
(JSC::objectProtoFuncLookupGetter):
(JSC::objectProtoFuncLookupSetter):
(JSC::objectProtoFuncPropertyIsEnumerable): More calls to value(), as above.

* runtime/Operations.cpp:
(JSC::jsAddSlowCase): Need to check for object before taking the toString()
fast path becuase adding an object to a string requires calling toPrimitive()
on the object, not toString(). (They differ in their preferred conversion
type.)

* runtime/Operations.h:
(JSC::jsString):
(JSC::jsStringFromArguments): This code gets simpler, now that toString()
does the right thing.

(JSC::jsAdd): Now checks for object, just like jsAddSlowCase().

* runtime/RegExpConstructor.cpp:
(JSC::setRegExpConstructorInput):
(JSC::constructRegExp):
* runtime/RegExpObject.cpp:
(JSC::RegExpObject::match):
* runtime/RegExpPrototype.cpp:
(JSC::regExpProtoFuncCompile):
(JSC::regExpProtoFuncToString): More calls to value(), as above.

* runtime/StringConstructor.cpp:
(JSC::constructWithStringConstructor):
(JSC::callStringConstructor): This code gets simpler, now that toString()
does the right thing.

* runtime/StringPrototype.cpp:
(JSC::replaceUsingRegExpSearch):
(JSC::replaceUsingStringSearch):
(JSC::stringProtoFuncReplace):
(JSC::stringProtoFuncCharAt):
(JSC::stringProtoFuncCharCodeAt):
(JSC::stringProtoFuncConcat):
(JSC::stringProtoFuncIndexOf):
(JSC::stringProtoFuncLastIndexOf):
(JSC::stringProtoFuncMatch):
(JSC::stringProtoFuncSearch):
(JSC::stringProtoFuncSlice):
(JSC::stringProtoFuncSplit):
(JSC::stringProtoFuncSubstr):
(JSC::stringProtoFuncSubstring):
(JSC::stringProtoFuncToLowerCase):
(JSC::stringProtoFuncToUpperCase):
(JSC::stringProtoFuncLocaleCompare):
(JSC::stringProtoFuncBig):
(JSC::stringProtoFuncSmall):
(JSC::stringProtoFuncBlink):
(JSC::stringProtoFuncBold):
(JSC::stringProtoFuncFixed):
(JSC::stringProtoFuncItalics):
(JSC::stringProtoFuncStrike):
(JSC::stringProtoFuncSub):
(JSC::stringProtoFuncSup):
(JSC::stringProtoFuncFontcolor):
(JSC::stringProtoFuncFontsize):
(JSC::stringProtoFuncAnchor):
(JSC::stringProtoFuncLink):
(JSC::trimString): Some of this code gets simpler, now that toString()
does the right thing. More calls to value(), as above.

../JavaScriptGlue:

Reviewed by Gavin Barraclough.

* JSUtils.cpp:
(KJSValueToCFTypeInternal):

../WebCore:

Reviewed by Gavin Barraclough.

Mechanical changes to call value() after calling toString(), to
convert from "JS string" (JSString*) to "C++ string" (UString), since
toString() no longer returns a "C++ string".

* bindings/js/IDBBindingUtilities.cpp:
(WebCore::createIDBKeyFromValue):
* bindings/js/JSCSSStyleDeclarationCustom.cpp:
(WebCore::JSCSSStyleDeclaration::getPropertyCSSValue):
* bindings/js/JSClipboardCustom.cpp:
(WebCore::JSClipboard::clearData):
(WebCore::JSClipboard::getData):
* bindings/js/JSCustomXPathNSResolver.cpp:
(WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
* bindings/js/JSDOMBinding.cpp:
(WebCore::valueToStringWithNullCheck):
(WebCore::valueToStringWithUndefinedOrNullCheck):
(WebCore::reportException):
* bindings/js/JSDOMFormDataCustom.cpp:
(WebCore::JSDOMFormData::append):
* bindings/js/JSDOMStringMapCustom.cpp:
(WebCore::JSDOMStringMap::putDelegate):
* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::JSDOMWindow::setLocation):
(WebCore::JSDOMWindow::open):
(WebCore::JSDOMWindow::addEventListener):
(WebCore::JSDOMWindow::removeEventListener):
* bindings/js/JSDeviceMotionEventCustom.cpp:
(WebCore::JSDeviceMotionEvent::initDeviceMotionEvent):
* bindings/js/JSDeviceOrientationEventCustom.cpp:
(WebCore::JSDeviceOrientationEvent::initDeviceOrientationEvent):
* bindings/js/JSDictionary.cpp:
(WebCore::JSDictionary::convertValue):
* bindings/js/JSDocumentCustom.cpp:
(WebCore::JSDocument::setLocation):
* bindings/js/JSEventListener.cpp:
(WebCore::JSEventListener::handleEvent):
* bindings/js/JSHTMLAllCollectionCustom.cpp:
(WebCore::callHTMLAllCollection):
(WebCore::JSHTMLAllCollection::item):
(WebCore::JSHTMLAllCollection::namedItem):
* bindings/js/JSHTMLCanvasElementCustom.cpp:
(WebCore::JSHTMLCanvasElement::getContext):
* bindings/js/JSHTMLCollectionCustom.cpp:
(WebCore::JSHTMLCollection::item):
(WebCore::JSHTMLCollection::namedItem):
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::documentWrite):
* bindings/js/JSHTMLInputElementCustom.cpp:
(WebCore::JSHTMLInputElement::setSelectionDirection):
(WebCore::JSHTMLInputElement::setSelectionRange):
* bindings/js/JSInspectorFrontendHostCustom.cpp:
(WebCore::JSInspectorFrontendHost::showContextMenu):
* bindings/js/JSJavaScriptCallFrameCustom.cpp:
(WebCore::JSJavaScriptCallFrame::evaluate):
* bindings/js/JSLocationCustom.cpp:
(WebCore::JSLocation::setHref):
(WebCore::JSLocation::setProtocol):
(WebCore::JSLocation::setHost):
(WebCore::JSLocation::setHostname):
(WebCore::JSLocation::setPort):
(WebCore::JSLocation::setPathname):
(WebCore::JSLocation::setSearch):
(WebCore::JSLocation::setHash):
(WebCore::JSLocation::replace):
(WebCore::JSLocation::assign):
* bindings/js/JSMessageEventCustom.cpp:
(WebCore::handleInitMessageEvent):
* bindings/js/JSSQLTransactionCustom.cpp:
(WebCore::JSSQLTransaction::executeSql):
* bindings/js/JSSQLTransactionSyncCustom.cpp:
(WebCore::JSSQLTransactionSync::executeSql):
* bindings/js/JSSharedWorkerCustom.cpp:
(WebCore::JSSharedWorkerConstructor::constructJSSharedWorker):
* bindings/js/JSStorageCustom.cpp:
(WebCore::JSStorage::putDelegate):
* bindings/js/JSWebGLRenderingContextCustom.cpp:
(WebCore::JSWebGLRenderingContext::getExtension):
* bindings/js/JSWebSocketCustom.cpp:
(WebCore::JSWebSocketConstructor::constructJSWebSocket):
(WebCore::JSWebSocket::send):
(WebCore::JSWebSocket::close):
* bindings/js/JSWorkerContextCustom.cpp:
(WebCore::JSWorkerContext::importScripts):
* bindings/js/JSWorkerCustom.cpp:
(WebCore::JSWorkerConstructor::constructJSWorker):
* bindings/js/JSXMLHttpRequestCustom.cpp:
(WebCore::JSXMLHttpRequest::open):
(WebCore::JSXMLHttpRequest::send):
* bindings/js/JSXSLTProcessorCustom.cpp:
(WebCore::JSXSLTProcessor::setParameter):
(WebCore::JSXSLTProcessor::getParameter):
(WebCore::JSXSLTProcessor::removeParameter):
* bindings/js/ScheduledAction.cpp:
(WebCore::ScheduledAction::create):
* bindings/js/ScriptEventListener.cpp:
(WebCore::eventListenerHandlerBody):
* bindings/js/ScriptValue.cpp:
(WebCore::ScriptValue::toString):
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateEventListenerCall):
(JSValueToNative):
(GenerateConstructorDefinition):
* bridge/c/c_utility.cpp:
(JSC::Bindings::convertValueToNPVariant):
* bridge/jni/jni_jsobject.mm:
(JavaJSObject::convertValueToJObject):
* bridge/jni/jsc/JNIUtilityPrivate.cpp:
(JSC::Bindings::convertArrayInstanceToJavaArray):
(JSC::Bindings::convertValueToJValue):
* bridge/jni/jsc/JavaFieldJSC.cpp:
(JavaField::dispatchValueFromInstance):
(JavaField::valueFromInstance):
(JavaField::dispatchSetValueToInstance):
(JavaField::setValueToInstance):
* bridge/jni/jsc/JavaInstanceJSC.cpp:
(JavaInstance::invokeMethod):
* testing/js/JSInternalsCustom.cpp:
(WebCore::JSInternals::setUserPreferredLanguages):

../WebKit/mac:

Reviewed by Gavin Barraclough.

Mechanical changes to call value() after calling toString(), to
convert from "JS string" (JSString*) to "C++ string" (UString), since
toString() no longer returns a "C++ string".

* Plugins/Hosted/NetscapePluginInstanceProxy.mm:
(WebKit::NetscapePluginInstanceProxy::addValueToArray):
* WebView/WebFrame.mm:
(-[WebFrame _stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
(-[WebFrame _stringByEvaluatingJavaScriptFromString:withGlobalObject:inScriptWorld:]):

../WebKit2:

Reviewed by Gavin Barraclough.

Mechanical changes to call value() after calling toString(), to
convert from "JS string" (JSString*) to "C++ string" (UString), since
toString() no longer returns a "C++ string".

* WebProcess/Plugins/Netscape/NPRuntimeObjectMap.cpp:
(WebKit::NPRuntimeObjectMap::convertJSValueToNPVariant):

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

12 years agoIn CodeGeneratorObjC.pm, overwrite the output .h/.mm
haraken@chromium.org [Tue, 24 Jan 2012 07:09:47 +0000 (07:09 +0000)]
In CodeGeneratorObjC.pm, overwrite the output .h/.mm
only if the bytes differ
https://bugs.webkit.org/show_bug.cgi?id=76874

Reviewed by Adam Barth.

This is one of steps to stop rebuilding .h/.cpp/.mm files
generated by unchanged IDLs (bug 76836).
This patch makes a change on CodeGeneratorObjC.pm so that
it overwrites the output .h/.mm only if the bytes differ.

No tests. No change in behavior.
I manually confirmed that when I add a new attribute to Element.idl,
the time-stamps of unrelated DOM*.h and DOM*.mm do not change.

* bindings/scripts/CodeGenerator.pm:
(UpdateFileIfChanged): Added. This method writes data to a file
only if the data is different from the data in the current file.
* bindings/scripts/CodeGeneratorObjC.pm:
(WriteData): Used UpdateFileIfChanged().

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

12 years agoUnreviewed. Rolled DEPS.
commit-queue@webkit.org [Tue, 24 Jan 2012 06:46:00 +0000 (06:46 +0000)]
Unreviewed.  Rolled DEPS.

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-01-23

* DEPS:

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

12 years agoREGRESSION: Downloaded file name fallback encodings are not set correctly
ap@apple.com [Tue, 24 Jan 2012 06:43:26 +0000 (06:43 +0000)]
REGRESSION: Downloaded file name fallback encodings are not set correctly
https://bugs.webkit.org/show_bug.cgi?id=76862

Reviewed by Adam Barth.

Source/WebCore:

Tests: http/tests/download/default-encoding.html
       http/tests/download/form-submission-result.html
       http/tests/download/inherited-encoding.html
       http/tests/download/literal-utf-8.html

* loader/DocumentWriter.cpp:
* loader/DocumentWriter.h:
Removed deprecatedFrameEncoding. Due to changes in Document::encoding behavior, it can now
be used in its place.

* loader/FrameLoader.cpp: (WebCore::FrameLoader::addExtraFieldsToRequest): Instead of hunting
down a correct loader (and active one is not always correct any more), just use opening document's
encoding.

LayoutTests:

* http/tests/download/default-encoding-expected.txt: Added.
* http/tests/download/default-encoding.html: Added.
* http/tests/download/inherited-encoding-expected.txt: Added.
* http/tests/download/inherited-encoding.html: Added.
* http/tests/download/literal-utf-8-expected.txt: Added.
* http/tests/download/literal-utf-8.html: Added.
* http/tests/download/resources/literal-koi8-r.php: Added.
* http/tests/download/resources/literal-utf-8.php: Added.
* http/tests/download/inherited-encoding-form-submission-result-expected.txt: Added.
* http/tests/download/inherited-encoding-form-submission-result.html: Added.

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

12 years agoImplement flex-pack:distribute
ojan@chromium.org [Tue, 24 Jan 2012 06:26:54 +0000 (06:26 +0000)]
Implement flex-pack:distribute
https://bugs.webkit.org/show_bug.cgi?id=76864

Reviewed by Tony Chang.

Source/WebCore:

See http://dev.w3.org/csswg/css3-flexbox/#flex-pack.

* css/CSSParser.cpp:
(WebCore::CSSParser::parseValue):
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
(WebCore::CSSPrimitiveValue::operator EFlexPack):
* css/CSSValueKeywords.in:
* rendering/RenderFlexibleBox.cpp:
(WebCore::initialPackingOffset):
(WebCore::packingSpaceBetweenChildren):
(WebCore::RenderFlexibleBox::layoutAndPlaceChildren):
(WebCore::RenderFlexibleBox::layoutColumnReverse):
* rendering/style/RenderStyleConstants.h:
* rendering/style/StyleFlexibleBoxData.h:

LayoutTests:

* css3/flexbox/004-expected.txt:
* css3/flexbox/004.html:

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

12 years agoImplement CSS clip property in CSSStyleApplyProperty.
macpherson@chromium.org [Tue, 24 Jan 2012 05:44:22 +0000 (05:44 +0000)]
Implement CSS clip property in CSSStyleApplyProperty.
https://bugs.webkit.org/show_bug.cgi?id=74913

Reviewed by Andreas Kling.

No new tests / refactoring only.

* css/CSSPrimitiveValue.h:
* css/CSSPrimitiveValueMappings.h:
(WebCore::CSSPrimitiveValue::convertToLength):
This new function aims to provide a single call for converting many CSSPrimitiveValue
values to Lengths. It is templated to allow the caller to specify which conversions
are appropriate depending on the context in which the value is used.
* css/CSSStyleApplyProperty.cpp:
(WebCore::ApplyPropertyClip::convertToLength):
(WebCore::ApplyPropertyClip::applyInheritValue):
(WebCore::ApplyPropertyClip::applyInitialValue):
(WebCore::ApplyPropertyClip::applyValue):
(WebCore::ApplyPropertyClip::createHandler):
(WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
* css/CSSStyleSelector.cpp:
(WebCore::CSSStyleSelector::applyProperty):

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

12 years agodecodeEscapeSequences() not correct for some encodings (GBK, Big5, ...).
tsepez@chromium.org [Tue, 24 Jan 2012 05:08:14 +0000 (05:08 +0000)]
decodeEscapeSequences() not correct for some encodings (GBK, Big5, ...).
https://bugs.webkit.org/show_bug.cgi?id=71316

Reviewed by Daniel Bates.

Source/WebCore:

Pass trailing unescaped bytes into the character set decoder to get correct
results in the presence of encodings which re-use ASCII values in sequences.

Tests: http/tests/navigation/anchor-frames-gbk.html
       http/tests/security/xssAuditor/iframe-onload-GBK-char.html
       http/tests/security/xssAuditor/img-onerror-GBK-char.html
       http/tests/security/xssAuditor/script-tag-Big5-char-twice-url-encode-16bit-unicode.html
       http/tests/security/xssAuditor/script-tag-Big5-char-twice-url-encode.html
       http/tests/security/xssAuditor/script-tag-Big5-char.html
       http/tests/security/xssAuditor/script-tag-Big5-char2.html

* platform/text/DecodeEscapeSequences.h:
(WebCore::Unicode16BitEscapeSequence::findInString):
(WebCore::Unicode16BitEscapeSequence::findEndOfRun):
(WebCore::Unicode16BitEscapeSequence::decodeRun):
(WebCore::URLEscapeSequence::findInString):
(WebCore::URLEscapeSequence::findEndOfRun):
(WebCore::URLEscapeSequence::decodeRun):
(WebCore::decodeEscapeSequences):

LayoutTests:

* http/tests/navigation/anchor-frames-gbk-expected.txt: Added.
* http/tests/navigation/anchor-frames-gbk.html: Added.
* http/tests/navigation/resources/frame-with-anchor-gbk.html: Added.
* http/tests/security/xssAuditor/iframe-onload-GBK-char-expected.txt: Added.
* http/tests/security/xssAuditor/iframe-onload-GBK-char.html: Added.
* http/tests/security/xssAuditor/img-onerror-GBK-char-expected.txt: Added.
* http/tests/security/xssAuditor/img-onerror-GBK-char.html: Added.
* http/tests/security/xssAuditor/resources/echo-intertag-decode-16bit-unicode.pl:
* http/tests/security/xssAuditor/script-tag-Big5-char-expected.txt: Added.
* http/tests/security/xssAuditor/script-tag-Big5-char-twice-url-encode-16bit-unicode-expected.txt: Added.
* http/tests/security/xssAuditor/script-tag-Big5-char-twice-url-encode-16bit-unicode.html: Added.
* http/tests/security/xssAuditor/script-tag-Big5-char-twice-url-encode-expected.txt: Added.
* http/tests/security/xssAuditor/script-tag-Big5-char-twice-url-encode.html: Added.
* http/tests/security/xssAuditor/script-tag-Big5-char.html: Added.
* http/tests/security/xssAuditor/script-tag-Big5-char2-expected.txt: Added.
* http/tests/security/xssAuditor/script-tag-Big5-char2.html: Added.
* platform/chromium/test_expectations.txt:

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

12 years agoFix a build break in a clean compile of the Chromium port (at least
abarth@webkit.org [Tue, 24 Jan 2012 05:04:53 +0000 (05:04 +0000)]
Fix a build break in a clean compile of the Chromium port (at least
reported by tbreisacher).

* css/CSSStyleDeclaration.cpp:

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

12 years ago[Qt][WK2] QQuickWebView is initializing touch mode twice while being constructed
commit-queue@webkit.org [Tue, 24 Jan 2012 04:53:22 +0000 (04:53 +0000)]
[Qt][WK2] QQuickWebView is initializing touch mode twice while being constructed
https://bugs.webkit.org/show_bug.cgi?id=76859

Patch by Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> on 2012-01-23
Reviewed by Kenneth Rohde Christiansen.

Removing d->initializeTouch() from QQuickWebView::QQuickWebView()
since in QQuickWebViewPrivate::initialize() there is a call for
setUseTraditionalDesktopBehaviour(false), which will call initializeTouch.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebView::QQuickWebView):

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

12 years ago[GTK][WK2] Make the LoadTracking and WebView test fixtures more flexible
mrobinson@webkit.org [Tue, 24 Jan 2012 04:40:30 +0000 (04:40 +0000)]
[GTK][WK2] Make the LoadTracking and WebView test fixtures more flexible
https://bugs.webkit.org/show_bug.cgi?id=76755

Reviewed by Alejandro G. Castro.

Always clear the loading events when loading new content in the load tracking
test. In the WebView test correctly handle loading HTML with a URL that isn't
"about:blank."

* UIProcess/API/gtk/tests/LoadTrackingTest.cpp:
(LoadTrackingTest::loadURI): Reset the class state when starting a new load.
(LoadTrackingTest::loadHtml): Ditto.
(LoadTrackingTest::loadPlainText): Ditto.
(LoadTrackingTest::loadRequest): Ditto.
* UIProcess/API/gtk/tests/LoadTrackingTest.h: Added new method definitions.
* UIProcess/API/gtk/tests/TestWebKitWebLoaderClient.cpp:
(assertNormalLoadHappened): No longer clear loading events. The fixture handles that now.
(testLoadHtml): Update to reflect new method name.
(testLoadPlainText): Ditto.
(testLoadRequest): Ditto.
(testWebViewReload): Ditto.
* UIProcess/API/gtk/tests/WebViewTest.cpp:
(WebViewTest::loadHtml): Properly interpret the baseURL parameter.
* UIProcess/API/gtk/tests/WebViewTest.h: Make loading methods virtual.

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

12 years ago[chromium] Clean up old WebSharedWorker::startWorkerContext() method.
tsepez@chromium.org [Tue, 24 Jan 2012 04:38:29 +0000 (04:38 +0000)]
[chromium] Clean up old WebSharedWorker::startWorkerContext() method.
https://bugs.webkit.org/show_bug.cgi?id=76853

Reviewed by Darin Fisher.

* public/WebSharedWorker.h:
* src/WebSharedWorkerImpl.cpp:
* src/WebSharedWorkerImpl.h:

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

12 years ago[GTK] editing/deleting/5408255.html results are incorrect
commit-queue@webkit.org [Tue, 24 Jan 2012 04:23:41 +0000 (04:23 +0000)]
[GTK] editing/deleting/5408255.html results are incorrect
https://bugs.webkit.org/show_bug.cgi?id=53644

Patch by Zan Dobersek <zandobersek@gmail.com> on 2012-01-23
Reviewed by Martin Robinson.

Source/WebCore:

When the WEBKIT_TOP_LEVEL environment variable is set, resources
should be loaded from the source tree to which the variable is
pointing. This approach is used when performing testing on the
Gtk port.

No new tests, changes cause one test to pass.

* platform/graphics/gtk/ImageGtk.cpp:
(getPathToImageResource): Also make changes to the resource path
construction code on Windows.
(WebCore::Image::loadPlatformResource):

Tools:

WEBKIT_TOP_LEVEL environment variable is now set directly in either
WebKitTestRunner or DumpRenderTree through usage of a compilation-time
macro. This way both tools can be run outside the test harness without
the need to manually set the environment variable.

* DumpRenderTree/gtk/DumpRenderTree.cpp:
(getTopLevelPath):
* GNUmakefile.am:
* Scripts/webkitpy/layout_tests/port/gtk.py:
(GtkPort.setup_environ_for_server):
* WebKitTestRunner/GNUmakefile.am:
* WebKitTestRunner/InjectedBundle/gtk/InjectedBundleGtk.cpp:
(WTR::InjectedBundle::platformInitialize):

LayoutTests:

Unskip newly-passing editing test.

* platform/gtk/Skipped:

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

12 years agoCrash in WebCore::RenderTableSection::rowLogicalHeightChanged
jchaffraix@webkit.org [Tue, 24 Jan 2012 04:15:06 +0000 (04:15 +0000)]
Crash in WebCore::RenderTableSection::rowLogicalHeightChanged
https://webkit.org/b/76842

Reviewed by Darin Adler.

Source/WebCore:

Test: fast/table/crash-section-logical-height-changed-needsCellRecalc.html

The issue was that we would access our section's structure when it was dirty.

* rendering/RenderTableSection.cpp:
(WebCore::RenderTableSection::rowLogicalHeightChanged):
Bail out if we need cells recalculation as our internal structure is not up-to-date
and we will recompute all the rows' heights as part of the recomputation anyway.

LayoutTests:

* fast/table/crash-section-logical-height-changed-needsCellRecalc-expected.txt: Added.
* fast/table/crash-section-logical-height-changed-needsCellRecalc.html: Added.

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

12 years agoSource/WebKit/chromium: [Chromium] Implement layoutTestController.workerThreadCount...
dslomov@google.com [Tue, 24 Jan 2012 04:07:56 +0000 (04:07 +0000)]
Source/WebKit/chromium: [Chromium] Implement layoutTestController.workerThreadCount in DRT
https://bugs.webkit.org/show_bug.cgi?id=74653.
Expose WebCore::WorkerThread::workerThreadCount() in API layer
for DumpRenderTree.

Reviewed by Darin Fisher.

* WebKit.gyp:
* public/WebWorkerInfo.h: Copied from Source/WebKit/chromium/public/WebCommonWorkerClient.h.
* src/WebWorkerInfo.cpp: Copied from Source/WebKit/chromium/public/WebCommonWorkerClient.h.
(WebKit::WebWorkerInfo::dedicatedWorkerCount):

Tools: [Chromium] Implement layoutTestController.workerThreadCount in DRT
https://bugs.webkit.org/show_bug.cgi?id=74653.

Reviewed by Darin Fisher.

* DumpRenderTree/chromium/LayoutTestController.cpp:
(LayoutTestController::LayoutTestController):
(LayoutTestController::workerThreadCount):
* DumpRenderTree/chromium/LayoutTestController.h:

LayoutTests: [Chromium] Implement layoutTestController.workerThreadCount in DRT
https://bugs.webkit.org/show_bug.cgi?id=74653.

Reviewed by Darin Fisher.

* platform/chromium/test_expectations.txt:

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

12 years ago[Refactoring] Make finish() of CodeGeneratorJS.pm empty
haraken@chromium.org [Tue, 24 Jan 2012 03:59:55 +0000 (03:59 +0000)]
[Refactoring] Make finish() of CodeGeneratorJS.pm empty
https://bugs.webkit.org/show_bug.cgi?id=76846

Reviewed by Adam Barth.

This is one of steps to stop rebuilding .h/.cpp files generated
by unchanged IDLs (bug 76836).

As a refactoring, we are planning to remove finish() from all
CodeGenerators. In this bug, we make finish() of CodeGeneratorJS.pm
empty.

No new tests. No change in behavior.

* bindings/scripts/CodeGeneratorJS.pm:
(finish): Made it empty. We will remove finish() after
making finish() of all CodeGenerators empty.
(GenerateInterface): Modified to call WriteData().
(WriteData): Simple code refactoring.
Removed if(defined $IMPL).
Removed if(defined $HEADER).
Removed if(defined $DEPS).
$IMPL -> IMPL.
$HEADER -> HEADER.
$DEPS -> DEPS.

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

12 years agoUnreviewed, rolling out r105676.
macpherson@chromium.org [Tue, 24 Jan 2012 03:55:17 +0000 (03:55 +0000)]
Unreviewed, rolling out r105676.
http://trac.webkit.org/changeset/105676
https://bugs.webkit.org/show_bug.cgi?id=76665

Breaks build on max due to compile warnings.

* runtime/JSObject.cpp:
(JSC::JSObject::finalize):
(JSC::JSObject::visitChildren):
(JSC::JSObject::allocatePropertyStorage):
* runtime/JSObject.h:

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

12 years agoFine tune Web Intents Chromium API
commit-queue@webkit.org [Tue, 24 Jan 2012 03:20:08 +0000 (03:20 +0000)]
Fine tune Web Intents Chromium API
https://bugs.webkit.org/show_bug.cgi?id=76754

Patch by Greg Billock <gbillock@google.com> on 2012-01-23
Reviewed by Darin Fisher.

* public/WebIntent.h:
* public/WebIntentServiceInfo.h:
* src/WebIntent.cpp:
* src/WebIntentServiceInfo.cpp:
(WebKit::WebIntentServiceInfo::WebIntentServiceInfo):

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

12 years ago[chromium] updateRect is incorrect when contentBounds != bounds
shawnsingh@chromium.org [Tue, 24 Jan 2012 02:45:03 +0000 (02:45 +0000)]
[chromium] updateRect is incorrect when contentBounds != bounds
https://bugs.webkit.org/show_bug.cgi?id=72919

Reviewed by James Robinson.

Source/WebCore:

Unit test added to TiledLayerChromiumTest.cpp

The m_updateRect member in LayerChromium types is used to track
what was painted for that layer. For tiled layers (especially
image layers), the updateRect was being given with respect to the
size of the content, rather than the size of the layer. This patch
adds a conversion so that updateRect is always with respect to the
layer size, so that damage tracking will work correctly in those
cases.

* platform/graphics/chromium/LayerChromium.h:
* platform/graphics/chromium/TiledLayerChromium.cpp:
(WebCore::TiledLayerChromium::updateCompositorResources):

Source/WebKit/chromium:

* tests/TiledLayerChromiumTest.cpp:
(WTF::FakeTiledLayerWithScaledBounds::FakeTiledLayerWithScaledBounds):
(WTF::FakeTiledLayerWithScaledBounds::setContentBounds):
(WTF::FakeTiledLayerWithScaledBounds::contentBounds):
(WTF::FakeTiledLayerWithScaledBounds::updateRect):
(WTF::TEST):

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

12 years agoWeb Inspector: Make "Copy as HTML" use the same copy functions as other copy methods.
commit-queue@webkit.org [Tue, 24 Jan 2012 02:39:00 +0000 (02:39 +0000)]
Web Inspector: Make "Copy as HTML" use the same copy functions as other copy methods.
https://bugs.webkit.org/show_bug.cgi?id=76706

Patch by Konrad Piascik <kpiascik@rim.com> on 2012-01-23
Reviewed by Pavel Feldman.

Changed DOMAgent.copyNode to call getOuterHTML and use the callback function to
return the text to InspectorFrontendHost.copyText.  This will make all copy
functions use the same code path.

Not testable.

* inspector/Inspector.json:
* inspector/InspectorDOMAgent.cpp:
* inspector/InspectorDOMAgent.h:
* inspector/front-end/DOMAgent.js:
(WebInspector.DOMNode.prototype.copyNode.copy):
(WebInspector.DOMNode.prototype.copyNode):

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

12 years agoMake zoom multiplier float instead of double to match RenderStyle::effectiveZoom...
macpherson@chromium.org [Tue, 24 Jan 2012 02:36:19 +0000 (02:36 +0000)]
Make zoom multiplier float instead of double to match RenderStyle::effectiveZoom etc. and thus avoid unnecessary precision conversions.
https://bugs.webkit.org/show_bug.cgi?id=69490

Reviewed by Andreas Kling.

Covered by existing tests.

* css/CSSPrimitiveValue.cpp:
(WebCore::CSSPrimitiveValue::computeLength):
Use float multiplier instead of double.
(WebCore::CSSPrimitiveValue::computeLengthDouble):
Use float multiplier instead of double.
* css/CSSPrimitiveValue.h:
Change type signatures of computeLength template prototype.

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

12 years agoUse copying collector for out-of-line JSObject property storage
mhahnenberg@apple.com [Tue, 24 Jan 2012 02:29:38 +0000 (02:29 +0000)]
Use copying collector for out-of-line JSObject property storage
https://bugs.webkit.org/show_bug.cgi?id=76665

Reviewed by Geoffrey Garen.

* runtime/JSObject.cpp:
(JSC::JSObject::visitChildren): Changed to use copyAndAppend whenever the property storage is out-of-line.
(JSC::JSObject::allocatePropertyStorage): Changed to use tryAllocateStorage/tryReallocateStorage as opposed to
operator new.
* runtime/JSObject.h:

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

12 years ago[Chromium][WebSocket] Remove binary communication using WebData in WebKit API
toyoshim@chromium.org [Tue, 24 Jan 2012 02:18:55 +0000 (02:18 +0000)]
[Chromium][WebSocket] Remove binary communication using WebData in WebKit API
https://bugs.webkit.org/show_bug.cgi?id=76608

Reviewed by Darin Fisher.

* public/WebSocket.h: Remove BinaryTypeData definition and sendBinary(const WebData&).
* public/WebSocketClient.h: Remove didReceiveBinaryData(const WebData&).
* src/WebSocketImpl.cpp: Remove WebData related code and set default binary type as BinaryTypeBlob.
(WebKit::WebSocketImpl::WebSocketImpl): Remove sendBinary(const WebData&).
(WebKit::WebSocketImpl::didReceiveBinaryData): Remove WebData supporting code.
* src/WebSocketImpl.h: Remove sendBinary(const WebData&).

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

12 years agonrwt: make --chromium work like --qt
dpranke@chromium.org [Tue, 24 Jan 2012 02:09:36 +0000 (02:09 +0000)]
nrwt: make --chromium work like --qt
https://bugs.webkit.org/show_bug.cgi?id=76875

Reviewed by Adam Barth.

--chromium used to have to be handled differently from --qt
due to the way the PortFactory was implemented; there's not
really a good reason for that any more so this patch makes
things slightly more consistent and eliminates the
options.chromium flag (--chromium is now truly a synonym for
--platform chromium).

* Scripts/webkitpy/layout_tests/port/factory.py:
(PortFactory._default_port):
(PortFactory.get):
* Scripts/webkitpy/layout_tests/port/factory_unittest.py:
(FactoryTest.setUp):
(FactoryTest.test_chromium_mac):
(FactoryTest.test_chromium_linux):
(FactoryTest.test_chromium_win):
* Scripts/webkitpy/layout_tests/run_webkit_tests.py:
(parse_args):

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

12 years agorun-webkit-tests needs to propagate --chromium
dpranke@chromium.org [Tue, 24 Jan 2012 02:05:17 +0000 (02:05 +0000)]
run-webkit-tests needs to propagate --chromium
https://bugs.webkit.org/show_bug.cgi?id=76870

Reviewed by Eric Seidel.

run-webkit-tests removes '--chromium' argument from @ARGV when
determining which port to run, which means that that doesn't
propagate to new-run-webkit-tests. That's bad (and is handled
for the other ports by re-adding the flag, but apparently we're
just now noticing for Chromium).

* Scripts/run-webkit-tests:

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

12 years agoUnreviewed test expectations fixes for a couple of window/frame tests.
eae@chromium.org [Tue, 24 Jan 2012 02:00:48 +0000 (02:00 +0000)]
Unreviewed test expectations fixes for a couple of window/frame tests.

* http/tests/security/cross-frame-access-put-expected.txt:
Updated expectations to reflect that window.frameElement now has the type
HTMLIFrameElement. The test itself has already been updated.

* platform/mac/fast/dom/Window/window-properties-expected.txt:
Added window.applicationCache.abort method.

* platform/mac/fast/dom/prototype-inheritance-2-expected.txt:
Added DOMURL class.

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

12 years ago[GTK][PATCH] More build silencing with (AM_V_...)
commit-queue@webkit.org [Tue, 24 Jan 2012 01:59:58 +0000 (01:59 +0000)]
[GTK][PATCH] More build silencing with (AM_V_...)
https://bugs.webkit.org/show_bug.cgi?id=76791

Patch by Priit Laes <plaes@plaes.org> on 2012-01-23
Reviewed by Gustavo Noronha Silva.

* GNUmakefile.am: Silence is golden...

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

12 years ago[Qt] Implement SSL error handling QML API.
commit-queue@webkit.org [Tue, 24 Jan 2012 01:54:37 +0000 (01:54 +0000)]
[Qt] Implement SSL error handling QML API.
https://bugs.webkit.org/show_bug.cgi?id=76793

Patch by Alexander Færøy <alexander.faeroy@nokia.com> on 2012-01-23
Reviewed by Simon Hausmann.

This patch implements support for accepting or rejecting invalid SSL
certificates from the QML API.

* UIProcess/API/qt/qquickwebview.cpp:
(QQuickWebViewPrivate::QQuickWebViewPrivate):
(QQuickWebViewPrivate::handleCertificateVerificationRequest):
(QQuickWebViewExperimental::certificateVerificationDialog):
(QQuickWebViewExperimental::setCertificateVerificationDialog):
* UIProcess/API/qt/qquickwebview_p.h:
* UIProcess/API/qt/qquickwebview_p_p.h:
* UIProcess/PageClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::certificateVerificationRequest):
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in:
* UIProcess/qt/QtDialogRunner.cpp:
(CertificateVerificationDialogContextObject::CertificateVerificationDialogContextObject):
(CertificateVerificationDialogContextObject::hostname):
(CertificateVerificationDialogContextObject::accept):
(CertificateVerificationDialogContextObject::reject):
(QtDialogRunner::initForCertificateVerification):
* UIProcess/qt/QtDialogRunner.h:
* UIProcess/qt/QtPageClient.cpp:
(QtPageClient::handleCertificateVerificationRequest):
* UIProcess/qt/QtPageClient.h:
* WebProcess/qt/QtNetworkAccessManager.cpp:
(WebKit::QtNetworkAccessManager::QtNetworkAccessManager):
(WebKit::QtNetworkAccessManager::onSslErrors):
* WebProcess/qt/QtNetworkAccessManager.h:

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

12 years agoMore build fixing after r105646.
bweinstein@apple.com [Tue, 24 Jan 2012 01:47:29 +0000 (01:47 +0000)]
More build fixing after r105646.

Source/JavaScriptCore:

* JavaScriptCore.exp:

Tools:

* TestWebKitAPI/Tests/WTF/RedBlackTree.cpp:
(TestWebKitAPI::TestNode::key):

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

12 years agoMicroData: Remove ExceptionCode& from setAttribute() call.
commit-queue@webkit.org [Tue, 24 Jan 2012 01:36:56 +0000 (01:36 +0000)]
MicroData: Remove ExceptionCode& from setAttribute() call.
https://bugs.webkit.org/show_bug.cgi?id=76695

Patch by Arko Saha <nghq36@motorola.com> on 2012-01-23
Reviewed by Hajime Morita.

Changeset http://trac.webkit.org/changeset/103296 removed unused
ExceptionCode& argument from Element::setAttribute(QualifiedName).
Hence updating all calls to setAttribute() method in MicroData code.

* html/HTMLAnchorElement.cpp:
(WebCore::HTMLAnchorElement::setItemValueText):
* html/HTMLAreaElement.cpp:
(WebCore::HTMLAreaElement::setItemValueText):
* html/HTMLEmbedElement.cpp:
(WebCore::HTMLEmbedElement::setItemValueText):
* html/HTMLIFrameElement.cpp:
(WebCore::HTMLIFrameElement::setItemValueText):
* html/HTMLImageElement.cpp:
(WebCore::HTMLImageElement::setItemValueText):
* html/HTMLLinkElement.cpp:
(WebCore::HTMLLinkElement::setItemValueText):
* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::setItemValueText):
* html/HTMLMetaElement.cpp:
(WebCore::HTMLMetaElement::setItemValueText):
* html/HTMLObjectElement.cpp:
(WebCore::HTMLObjectElement::setItemValueText):
* html/HTMLSourceElement.cpp:
(WebCore::HTMLSourceElement::setItemValueText):
* html/HTMLTrackElement.cpp:
(WebCore::HTMLTrackElement::setItemValueText):

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

12 years ago[windows] Convert usages of GetDC to HWndDC Part 2.
levin@chromium.org [Tue, 24 Jan 2012 01:31:05 +0000 (01:31 +0000)]
[windows] Convert usages of GetDC to HWndDC Part 2.
https://bugs.webkit.org/show_bug.cgi?id=76750

Reviewed by Adam Roben.

Source/WebKit/win:

* FullscreenVideoController.cpp:
(createCompatibleDCForWindow): Moved out the code which creates a DC for a window
to keep the same scope for the DC lifetime.
(FullscreenVideoController::draw):  Switch to using OwnPtr<HDC>
since createCompatibleDCForWindow returns a PassOwnPtr.
* WebNodeHighlight.cpp:
(WebNodeHighlight::update):
  Cleaned up leaks from calling GetDC without release.
  Note that there is a potential leak of hdc that previously existed
  and still does in an early exit scenario. (This could be easily fixed
  by using OwnPtr<HDC> but I was trying to keep this patch focused.)
* WebView.cpp:
(WebView::scrollBackingStore): Typical conversion.
(WebView::updateBackingStore): Reduced the scope of windowDC to be
right where it is being used.
(WebView::performLayeredWindowUpdate): Typical conversion.
(WebView::paintIntoBackingStore): Ditto.

Source/WebKit2:

* Shared/win/ShareableBitmapWin.cpp:
(WebKit::ShareableBitmap::windowsContext): Fix incorrect usage of OwnPtr<HDC> which
would do a DeleteDC instead of a ReleaseDC.

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

12 years agoUnreviewed build fix - r105646 broke this.
barraclough@apple.com [Tue, 24 Jan 2012 01:21:51 +0000 (01:21 +0000)]
Unreviewed build fix - r105646 broke this.

* TestWebKitAPI/Tests/WTF/RedBlackTree.cpp:
(TestWebKitAPI::TestNode::TestNode):
(TestWebKitAPI::TestNode::key):
(TestWebKitAPI::RedBlackTreeTest::assertEqual):
(TestWebKitAPI::RedBlackTreeTest::assertSameValuesForKey):
(TestWebKitAPI::RedBlackTreeTest::testDriver):

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

12 years agoFix crash when a focused node is removed while in processing focusin event.
hayato@chromium.org [Tue, 24 Jan 2012 01:21:42 +0000 (01:21 +0000)]
Fix crash when a focused node is removed while in processing focusin event.
https://bugs.webkit.org/show_bug.cgi?id=76656

Reviewed by Dimitri Glazkov.

Source/WebCore:

Test: fast/events/focus-remove-focuesed-node.html

* dom/Document.cpp:
(WebCore::Document::setFocusedNode):

LayoutTests:

* fast/events/focus-remove-focuesed-node-expected.txt: Added.
* fast/events/focus-remove-focuesed-node.html: Added.

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

12 years agoSwitch media/audio-data-url.html layout test to base64-encoded WAV data.
scherkus@chromium.org [Tue, 24 Jan 2012 01:16:15 +0000 (01:16 +0000)]
Switch media/audio-data-url.html layout test to base64-encoded WAV data.
https://bugs.webkit.org/show_bug.cgi?id=76759

Reviewed by Eric Carlson.

* media/audio-data-url-expected.txt:
* media/audio-data-url.html:
* platform/chromium/test_expectations.txt:

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

12 years agoUnreviewed, rolling out r105658.
abarth@webkit.org [Tue, 24 Jan 2012 01:10:59 +0000 (01:10 +0000)]
Unreviewed, rolling out r105658.
http://trac.webkit.org/changeset/105658
https://bugs.webkit.org/show_bug.cgi?id=76883

We want this eventually, but not right at this moment
(Requested by abarth on #webkit).

Patch by Sheriff Bot <webkit.review.bot@gmail.com> on 2012-01-23

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/config.js:

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

12 years ago[chromium] Add <(SHARED_INTERMEDIATE_DIR)/webkit to include path of targets that...
jamesr@google.com [Tue, 24 Jan 2012 01:09:29 +0000 (01:09 +0000)]
[chromium] Add <(SHARED_INTERMEDIATE_DIR)/webkit to include path of targets that depend on WebKit API so they pick up the copied headers in an onion build
https://bugs.webkit.org/show_bug.cgi?id=76879

Reviewed by Dirk Pranke.

* WebKit.gyp:

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

12 years ago[windows] Convert usages of GetDC to HWndDC Part 1.
levin@chromium.org [Tue, 24 Jan 2012 01:07:41 +0000 (01:07 +0000)]
[windows] Convert usages of GetDC to HWndDC Part 1.
https://bugs.webkit.org/show_bug.cgi?id=76744

Reviewed by Adam Roben.

Source/WebCore:

No new functionality so no new tests.

* platform/graphics/win/FontCacheWin.cpp:
(WebCore::FontCache::getFontDataForCharacters): Changed GetDC to HWndDC
and removed ReleaseDC.
(WebCore::createGDIFont): Ditto.
(WebCore::FontCache::getTraitsInFamily): Ditto.
* platform/graphics/win/FontPlatformDataWin.cpp:
(WebCore::FontPlatformData::FontPlatformData): Ditto.
* platform/graphics/win/SimpleFontDataCGWin.cpp:
(WebCore::SimpleFontData::platformInit): Ditto.
* platform/graphics/win/SimpleFontDataWin.cpp:
(WebCore::SimpleFontData::initGDIFont): Ditto.
(WebCore::SimpleFontData::containsCharacters): Ditto.
(WebCore::SimpleFontData::determinePitch): Ditto.
(WebCore::SimpleFontData::boundsForGDIGlyph): Ditto.
(WebCore::SimpleFontData::widthForGDIGlyph): Ditto.
(WebCore::SimpleFontData::scriptFontProperties): Ditto.
* platform/win/CursorWin.cpp:
(WebCore::createSharedCursor): Ditto.
* platform/win/DragImageCGWin.cpp:
(WebCore::scaleDragImage): Ditto.
(WebCore::createDragImageFromImage): Ditto.
* platform/win/DragImageWin.cpp:
(WebCore::createDragImageForLink): Ditto.
* platform/win/PasteboardWin.cpp:
(WebCore::Pasteboard::writeImage): Ditto.

Source/WebKit/win:

* WebIconDatabase.cpp:
(createDIB): Changed GetDC to HWndDC and removed ReleaseDC.

Source/WebKit2:

* UIProcess/win/WebView.cpp:
(WebKit::WebView::flashBackingStoreUpdates): Typical conversion.

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

12 years ago[GTK] Scrollbars do not respect the has-backward-stepper and has-forward-stepper...
commit-queue@webkit.org [Tue, 24 Jan 2012 00:54:05 +0000 (00:54 +0000)]
[GTK] Scrollbars do not respect the has-backward-stepper and has-forward-stepper properties
https://bugs.webkit.org/show_bug.cgi?id=76747

Patch by Martin Robinson <mrobinson@igalia.com> on 2012-01-23
Reviewed by Gustavo Noronha Silva.

No new tests. Regressions are covered by existing tests, but testing
different GTK+ theme configurations is not possible yet.

* platform/gtk/ScrollbarThemeGtk.cpp:
(WebCore::ScrollbarThemeGtk::backButtonRect): If there is no back stepper, return an empty rect.
(WebCore::ScrollbarThemeGtk::forwardButtonRect): If there is no forward stepper, return an empty rect.
(WebCore::ScrollbarThemeGtk::trackRect): Adjust track rect calculation to account for when there is
no steppers.
* platform/gtk/ScrollbarThemeGtk.h: New members describing whether there are primary steppers.
* platform/gtk/ScrollbarThemeGtk2.cpp:
(WebCore::ScrollbarThemeGtk::updateThemeProperties): Look at the theme to determine if there
are primary foward and back steppers.
* platform/gtk/ScrollbarThemeGtk3.cpp:
(WebCore::ScrollbarThemeGtk::updateThemeProperties): Ditto.

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

12 years agoREGRESSION(r105396): drag state is not cleared after each drag
rniwa@webkit.org [Tue, 24 Jan 2012 00:47:28 +0000 (00:47 +0000)]
REGRESSION(r105396): drag state is not cleared after each drag
https://bugs.webkit.org/show_bug.cgi?id=76878

Reviewed by Alexey Proskuryakov.

Source/WebCore:

Revert a part of r105396 that made performDragAndDrop not call clearDragState
when the default action was not prevented since it caused a regression.

I'm pretty certain always calling clearDragState in performDragAndDrop is wrong
but I can't think of a test case where this becomes a problem at the moment.
Since this area is not well tested, revert the change instead of making further
changes to the code base.

Tests: fast/events/clear-drag-state.html
       fast/events/clear-edit-drag-state.html

* page/EventHandler.cpp:
(WebCore::EventHandler::performDragAndDrop):

LayoutTests:

Add a regression test to ensure we don't fire extra dragenter event
on the second drag at an element that contains the dragged content.

* fast/events/clear-drag-state-expected.txt: Added.
* fast/events/clear-drag-state.html: Added.
* fast/events/clear-edit-drag-state-expected.txt: Added.
* fast/events/clear-edit-drag-state.html: Added.

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

12 years agogarden-o-matic should support Chromium Mac Lion
abarth@webkit.org [Tue, 24 Jan 2012 00:41:01 +0000 (00:41 +0000)]
garden-o-matic should support Chromium Mac Lion
https://bugs.webkit.org/show_bug.cgi?id=76880

Reviewed by Eric Seidel.

* BuildSlaveSupport/build.webkit.org-config/public_html/TestFailures/scripts/config.js:

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