WebKit-https.git
10 years agoREGRESSION (r103859): WKViews leak
mitz@apple.com [Sun, 8 Jan 2012 21:44:52 +0000 (21:44 +0000)]
REGRESSION (r103859): WKViews leak
https://bugs.webkit.org/show_bug.cgi?id=75805

The flags changed event monitor added in r103859 was retaining the WKView (as it references
self in the handler block), causing it to leak.

* UIProcess/API/mac/WKView.mm:
(-[WKView dealloc]): Moved call to remove the flags changed event monitor from here...
(-[WKView viewDidMoveToWindow]): ...to here. Moved call to add the flags changed event
monitor to here from...
(-[WKView initWithFrame:contextRef:pageGroupRef:]): ...here.

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

10 years agoRemove unused security functions from V8 bindings
abarth@webkit.org [Sun, 8 Jan 2012 21:33:43 +0000 (21:33 +0000)]
Remove unused security functions from V8 bindings
https://bugs.webkit.org/show_bug.cgi?id=75797

Reviewed by Eric Seidel.

This functions have no callers.  They can be removed.

* bindings/v8/ScriptController.cpp:
* bindings/v8/ScriptController.h:
* bindings/v8/specialization/V8BindingState.cpp:
* bindings/v8/specialization/V8BindingState.h:

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

10 years agoAssertion failure under SharedBuffer::append() when NETWORK_CFDATA_ARRAY_CALLBACK...
psolanki@apple.com [Sun, 8 Jan 2012 21:31:02 +0000 (21:31 +0000)]
Assertion failure under SharedBuffer::append() when NETWORK_CFDATA_ARRAY_CALLBACK is enabled
https://bugs.webkit.org/show_bug.cgi?id=75656

Reviewed by Darin Adler.

Update the implementation of SubresourceLoader::didReceiveDataArray() to conform to the
refactoring done as part of bug 71149 in r100311.

* loader/SubresourceLoader.cpp:
(WebCore::SubresourceLoader::didReceiveData):
(WebCore::SubresourceLoader::errorLoadingResource):
* loader/SubresourceLoader.h:
* loader/cf/SubresourceLoaderCF.cpp:
(WebCore::SubresourceLoader::didReceiveDataArray):

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

10 years agoRemove V8-specific Java Bridge code
steveblock@google.com [Sun, 8 Jan 2012 21:03:00 +0000 (21:03 +0000)]
Remove V8-specific Java Bridge code
https://bugs.webkit.org/show_bug.cgi?id=75801

Reviewed by Darin Adler.

Also remove superfluous JSC and V8 guards, as the code is now used only
with JSC.

No new tests, removing dead code only.

* WebCore.gypi:
* bridge/jni/JNIUtility.cpp:
(JSC::Bindings::javaTypeFromClassName):
(JSC::Bindings::signatureFromJavaType):
(JSC::Bindings::getJNIField):
(JSC::Bindings::callJNIMethod):
* bridge/jni/JavaType.h:
* bridge/jni/jsc/JavaMethodJSC.cpp:
(appendClassName):
(JavaMethod::signature):
* bridge/jni/v8/JNIUtilityPrivate.cpp: Removed.
* bridge/jni/v8/JNIUtilityPrivate.h: Removed.
* bridge/jni/v8/JavaClassV8.h: Removed.
* bridge/jni/v8/JavaFieldV8.h: Removed.
* bridge/jni/v8/JavaInstanceV8.h: Removed.
* bridge/jni/v8/JavaMethodV8.h: Removed.
* bridge/jni/v8/JavaNPObjectV8.cpp: Removed.
* bridge/jni/v8/JavaNPObjectV8.h: Removed.
* bridge/jni/v8/JavaValueV8.h: Removed.
* bridge/jsc/BridgeJSC.h:

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

10 years agoUnreviewed, rolling out r104403.
ossy@webkit.org [Sun, 8 Jan 2012 19:35:03 +0000 (19:35 +0000)]
Unreviewed, rolling out r104403.
http://trac.webkit.org/changeset/104403
https://bugs.webkit.org/show_bug.cgi?id=75803

It broke all tests on Qt5 (Requested by Ossy_weekend on
#webkit).

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

Source/WebCore:

* Target.pri:

Source/WebKit/qt:

* WebCoreSupport/ChromeClientQt.cpp:
(WebCore::ChromeClientQt::allowedCompositingTriggers):

Tools:

* qmake/mkspecs/features/features.prf:

LayoutTests:

* platform/qt/Skipped:
* platform/qt/css3/filters/add-filter-rendering-expected.png: Removed.
* platform/qt/css3/filters/add-filter-rendering-expected.txt: Removed.
* platform/qt/css3/filters/crash-filter-change-expected.png: Removed.
* platform/qt/css3/filters/crash-filter-change-expected.txt: Removed.
* platform/qt/css3/filters/crash-hw-sw-switch-expected.png: Removed.
* platform/qt/css3/filters/custom-filter-property-parsing-expected.txt: Removed.
* platform/qt/css3/filters/custom-filter-property-parsing-invalid-expected.txt: Removed.
* platform/qt/css3/filters/effect-blur-expected.png: Removed.
* platform/qt/css3/filters/effect-blur-expected.txt: Removed.
* platform/qt/css3/filters/effect-brightness-expected.png: Removed.
* platform/qt/css3/filters/effect-brightness-expected.txt: Removed.
* platform/qt/css3/filters/effect-contrast-expected.png: Removed.
* platform/qt/css3/filters/effect-contrast-expected.txt: Removed.
* platform/qt/css3/filters/effect-drop-shadow-expected.png: Removed.
* platform/qt/css3/filters/effect-drop-shadow-expected.txt: Removed.
* platform/qt/css3/filters/effect-grayscale-expected.png: Removed.
* platform/qt/css3/filters/effect-grayscale-expected.txt: Removed.
* platform/qt/css3/filters/effect-hue-rotate-expected.png: Removed.
* platform/qt/css3/filters/effect-hue-rotate-expected.txt: Removed.
* platform/qt/css3/filters/effect-invert-expected.png: Removed.
* platform/qt/css3/filters/effect-invert-expected.txt: Removed.
* platform/qt/css3/filters/effect-opacity-expected.png: Removed.
* platform/qt/css3/filters/effect-opacity-expected.txt: Removed.
* platform/qt/css3/filters/effect-saturate-expected.png: Removed.
* platform/qt/css3/filters/effect-saturate-expected.txt: Removed.
* platform/qt/css3/filters/effect-sepia-expected.png: Removed.
* platform/qt/css3/filters/effect-sepia-expected.txt: Removed.
* platform/qt/css3/filters/filter-animation-expected.png: Removed.
* platform/qt/css3/filters/filter-animation-expected.txt: Removed.
* platform/qt/css3/filters/filter-animation-from-none-expected.png: Removed.
* platform/qt/css3/filters/filter-animation-from-none-expected.txt: Removed.
* platform/qt/css3/filters/filter-property-computed-style-expected.txt: Removed.
* platform/qt/css3/filters/filter-property-expected.png: Removed.
* platform/qt/css3/filters/filter-property-expected.txt: Removed.
* platform/qt/css3/filters/filter-property-parsing-expected.txt: Removed.
* platform/qt/css3/filters/filter-property-parsing-invalid-expected.txt: Removed.
* platform/qt/css3/filters/filter-region-expected.png: Removed.
* platform/qt/css3/filters/filter-region-expected.txt: Removed.
* platform/qt/css3/filters/filter-repaint-expected.png: Removed.
* platform/qt/css3/filters/filter-repaint-expected.txt: Removed.
* platform/qt/css3/filters/filter-with-transform-expected.png: Removed.
* platform/qt/css3/filters/filter-with-transform-expected.txt: Removed.
* platform/qt/css3/filters/filtered-inline-expected.png: Removed.
* platform/qt/css3/filters/filtered-inline-expected.txt: Removed.
* platform/qt/css3/filters/nested-filter-expected.png: Removed.
* platform/qt/css3/filters/nested-filter-expected.txt: Removed.
* platform/qt/css3/filters/nested-filters-expected.png: Removed.
* platform/qt/css3/filters/nested-filters-expected.txt: Removed.
* platform/qt/css3/filters/regions-expanding-expected.png: Removed.
* platform/qt/css3/filters/regions-expanding-expected.txt: Removed.
* platform/qt/css3/filters/remove-filter-rendering-expected.png: Removed.
* platform/qt/css3/filters/remove-filter-rendering-expected.txt: Removed.
* platform/qt/css3/filters/simple-filter-rendering-expected.png: Removed.
* platform/qt/css3/filters/simple-filter-rendering-expected.txt: Removed.

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

10 years agoDon't create style selector in Element::recalcStyleIfNeededAfterAttributeChanged...
antti@apple.com [Sun, 8 Jan 2012 19:22:05 +0000 (19:22 +0000)]
Don't create style selector in Element::recalcStyleIfNeededAfterAttributeChanged if it doesn't exist
https://bugs.webkit.org/show_bug.cgi?id=75802

Rubber-stamped by Andreas Kling.

Element::recalcStyleIfNeededAfterAttributeChanged shouldn't create style selector for attribute
check if it doesn't already exist. We are going to need a full style recalc anyway in that case
and the constructed style selector may get throw out again.

* dom/Element.cpp:
(WebCore::Element::recalcStyleIfNeededAfterAttributeChanged):

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

10 years ago[Qt] Enable CSS_FILTERS in Qt build
noam.rosenthal@nokia.com [Sun, 8 Jan 2012 18:05:51 +0000 (18:05 +0000)]
[Qt] Enable CSS_FILTERS in Qt build
https://bugs.webkit.org/show_bug.cgi?id=75777

Source/WebCore:

Enable CSS_FILTERS and unskip the tests.

Reviewed by Kenneth Rohde Christiansen.

Filter tests are now unskipped for Qt.

* Target.pri: add missing files to build.

Source/WebKit/qt:

For now, disallow compositing for filters. We will change that trigger when
https://bugs.webkit.org/show_bug.cgi?id=75778 is implemented.

Reviewed by Kenneth Rohde Christiansen.

* WebCoreSupport/ChromeClientQt.cpp:
(WebCore::ChromeClientQt::allowedCompositingTriggers):

Tools:

Add the CSS_FILTERS feature flag to Qt.

Reviewed by Kenneth Rohde Christiansen.

* qmake/mkspecs/features/features.prf:

LayoutTests:

Reviewed by Kenneth Rohde Christiansen.

* platform/qt/Skipped: Unskip filter tests that work.
* platform/qt/css3/filters/*: Added Qt specific results.

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

10 years agoRewrite the CSS parser of prepare-ChangeLog with unittests.
haraken@chromium.org [Sun, 8 Jan 2012 16:46:40 +0000 (16:46 +0000)]
Rewrite the CSS parser of prepare-ChangeLog with unittests.
https://bugs.webkit.org/show_bug.cgi?id=75202

Reviewed by David Kilzer.

The current CSS parser can just parse simple CSSes like

    foo bar baz {
        property1: value;
        property2: value;
    }

, and cannot parse comments nor a CSS in which a selector and {
appears in different lines. This patch rewrites the CSS parser
(i.e. get_selector_line_ranges_for_css()) so that it can parse more CSSes
shown in css_unittests.css.

Test: Scripts/webkitperl/prepare-ChangeLog_unittest/resources/css_unittests.css

* Scripts/prepare-ChangeLog:
(get_selector_line_ranges_for_css):
* Scripts/webkitperl/prepare-ChangeLog_unittest/parser_unittests.pl:
* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/css_unittests-expected.txt: Added.
* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/css_unittests.css: Added.
(element1):
(element2):
(element3):
(element4.p):
(element5.p.q.r.s):
(element6#p):
(element7 element8):
(element9.p element10.q):
(element11#p element12#q):
(element13, element14):
(.p):
(#p):
(.p element15 #q element16.r element17#s):
(element18:target):
(element19):
(element20):
(element21):
(element22):

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

10 years agoThe Perl parser of prepare-ChangeLog can parse here-documents
haraken@chromium.org [Sun, 8 Jan 2012 16:21:17 +0000 (16:21 +0000)]
The Perl parser of prepare-ChangeLog can parse here-documents
https://bugs.webkit.org/show_bug.cgi?id=73208

Reviewed by David Kilzer.

Currently prepare-ChangeLog cannot recognize here-documents in Perl,
which results in wrong subroutine names in ChangeLogs.
With this patch, prepare-ChangeLog can judge whether the line of "}"
is the end of a subroutine or a line inside a here-document.

Test: Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests.pl

* Scripts/prepare-ChangeLog:
(get_function_line_ranges_for_perl):
* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests-expected.txt:
* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/perl_unittests.pl:
Added test cases for here-documents.
(func7):
(func8):
(func9):
(func10):
(func11):
(func12):
(func13):
(func14):
(func15):
(func16):

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

10 years agoAdd unittests for the JavaScript parser of prepare-ChangeLog
haraken@chromium.org [Sun, 8 Jan 2012 16:15:51 +0000 (16:15 +0000)]
Add unittests for the JavaScript parser of prepare-ChangeLog
https://bugs.webkit.org/show_bug.cgi?id=75201

Reviewed by David Kilzer.

javascript_unittests.js is a unittest for get_function_line_ranges_for_javascript()
of prepare-ChangeLog.

* Scripts/prepare-ChangeLog:
(get_function_line_ranges_for_javascript): Before this patch, a string found was just
omitted from parsing. Thus,

    str = "foo"
    function func() {
    }

was recognized as equivalent to

    str = function func() {
    }

This patch replaces a string with a dummy identifier 'string_appeared_here'
to tell the parser that a string appeared there.

* Scripts/webkitperl/prepare-ChangeLog_unittest/parser_unittests.pl:
* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/javascript_unittests-expected.txt: Added.
* Scripts/webkitperl/prepare-ChangeLog_unittest/resources/javascript_unittests.js: Added.
(func1):
(func2):
(func3):
(func4):
(func5):
(func6):
(func7):
(func8):
(func9):
(func10):
(func11):
(func12):
(funcOverloaded):
(Func1.prototype.get x1):
(Func1.prototype.get x2):
(Func1.prototype.set x1):
(Func1.prototype.set x3):
(Func2.prototype.func13):
(Func2.prototype.func14):
(Func2.prototype.func15):
(func16.func17):
(func16.func18):
(func16.func19):
(func16):

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

10 years agoSource/WebCore: REGRESSION (r104060): Layout Test fast/media/viewport-media-query...
antti@apple.com [Sun, 8 Jan 2012 11:45:58 +0000 (11:45 +0000)]
Source/WebCore: REGRESSION (r104060): Layout Test fast/media/viewport-media-query.html is occasionally failing
https://bugs.webkit.org/show_bug.cgi?id=75633

Reviewed by Andreas Kling.

If something triggers CSSStyleSelector construction very early, before documentElement is known,
it won't be able to resolve viewport-related media queries. In the included test case
the attribute on <html> element triggers the style selector creation. I can't repro
the fast/media/viewport-media-query.html failure but I suspect it is the same issue with
a different mechanism for early CSSStyleSelector construction.

- Reset style selector on documentElement change.
- Remove the code for lazy documentElement initialization. It is not an useful optimization,
  the children of Document rarely change.

Test: fast/media/viewport-media-query-synchronous.html

* WebCore.exp.in:
* dom/Document.cpp:
(WebCore::Document::childrenChanged):
* dom/Document.h:
(WebCore::Document::documentElement):

LayoutTests: Layout Test fast/media/viewport-media-query.html is occasionally failing
https://bugs.webkit.org/show_bug.cgi?id=75633

Reviewed by Andreas Kling.

* fast/media/viewport-media-query-synchronous-expected.txt: Added.
* fast/media/viewport-media-query-synchronous.html: Added.

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

10 years ago[chromium] Add layout test support for autosize code in FrameView.
levin@chromium.org [Sun, 8 Jan 2012 08:06:38 +0000 (08:06 +0000)]
[chromium] Add layout test support for autosize code in FrameView.
https://bugs.webkit.org/show_bug.cgi?id=73631

Reviewed by Dmitry Titov.

Tools:

* DumpRenderTree/chromium/LayoutTestController.cpp:
(LayoutTestController::LayoutTestController): Expose the new autoresize method.
(LayoutTestController::reset): Set the autoresize mode back to false.
(LayoutTestController::enableAutoResizeMode): A way to turn on autoresizing from javascript code in DumpRenderTree.
* DumpRenderTree/chromium/LayoutTestController.h:
* DumpRenderTree/chromium/WebViewHost.cpp:
(WebViewHost::didAutoResize): Handle the autoresize callback so that the outer bounds change appropriately.
* DumpRenderTree/chromium/WebViewHost.h:

LayoutTests:

* fast/autoresize/basic-expected.txt: Added.
* fast/autoresize/basic.html: Added. Simple test to verify that autoresizing happens.
* platform/efl/Skipped: Skipped the new directory since the layout test
  controller on this platform, doesn't support enableAutoResizeMode.
* platform/gtk/Skipped: Ditto.
* platform/mac/Skipped: Ditto.
* platform/qt/Skipped: Ditto.
* platform/win/Skipped: Ditto.
* platform/wincairo/Skipped: Ditto.

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

10 years agoWindows build fix.
kling@webkit.org [Sun, 8 Jan 2012 03:59:43 +0000 (03:59 +0000)]
Windows build fix.

* DOMHTMLClasses.cpp:
(DOMHTMLDocument::forms):
(DOMHTMLSelectElement::options):

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

10 years agoAttempt to regenerate bindings on the Windows bot.
kling@webkit.org [Sun, 8 Jan 2012 03:47:08 +0000 (03:47 +0000)]
Attempt to regenerate bindings on the Windows bot.

* html/HTMLCollection.h:

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

10 years agoMemory allocator mismatch; Use operator new[] with OwnArrayPtr instead of fastMalloc()
dbates@webkit.org [Sun, 8 Jan 2012 03:41:45 +0000 (03:41 +0000)]
Memory allocator mismatch; Use operator new[] with OwnArrayPtr instead of fastMalloc()

Rubber-stamped by Adam Barth.

Currently getProgramInfoLog() in GraphicsContext3DOpenGL.cpp assumes that operator new[]
and fastMalloc() are equivalent when it adopts a fastMalloc() allocated buffer. Notice,
OwnArrayPtr ultimately calls delete[] on destruction. When GLOBAL_FASTMALLOC_NEW is disabled,
it isn't true that operator new[], operator delete[] are equivalent to fastMalloc(), fastFree(),
respectively. Hence, there may be a mismatch between the allocation and deallocation
routines. Therefore, we should allocate the array to be adopted by OwnArrayPtr using
operator new[].

* platform/graphics/opengl/GraphicsContext3DOpenGL.cpp:
(WebCore::GraphicsContext3D::getProgramInfoLog):

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

10 years agoUnreviewed; chromium tests rebaselined after r104240.
dslomov@google.com [Sun, 8 Jan 2012 00:45:55 +0000 (00:45 +0000)]
Unreviewed; chromium tests rebaselined after r104240.

* platform/chromium-mac-leopard/editing/selection/select-from-textfield-outwards-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-text-double-click-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-text-drag-down-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-text-option-delete-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-text-scroll-left-on-blur-expected.png:
* platform/chromium-mac-leopard/fast/forms/tabbing-input-iframe-expected.png:
* platform/chromium-mac-leopard/fast/html/details-open2-expected.png:
* platform/chromium-mac-leopard/fast/html/details-open4-expected.png:
* platform/chromium-mac-snowleopard/editing/selection/select-from-textfield-outwards-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/input-text-double-click-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-text-drag-down-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-text-option-delete-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-text-scroll-left-on-blur-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/tabbing-input-iframe-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/html/details-open2-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/html/details-open2-expected.png.
* platform/chromium-mac-snowleopard/fast/html/details-open4-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/html/details-open4-expected.png.
* platform/chromium-mac/fast/forms/input-text-double-click-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-text-drag-down-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-text-option-delete-expected.png: Removed.
* platform/chromium-mac/fast/forms/tabbing-input-iframe-expected.png: Removed.

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

10 years agoUnreviewed: updating expectations and rebaselining.
dslomov@google.com [Sun, 8 Jan 2012 00:09:12 +0000 (00:09 +0000)]
Unreviewed: updating expectations and rebaselining.
svg/custom/inline-svg-in-xhtml rebaselined due to http://trac.webkit.org/changeset/104240/.

* platform/chromium-cg-mac-leopard/svg/custom/inline-svg-in-xhtml-expected.png:
* platform/chromium-cg-mac-snowleopard/svg/custom/inline-svg-in-xhtml-expected.png: Added.
* platform/chromium-cg-mac/svg/custom/inline-svg-in-xhtml-expected.png: Removed.
* platform/chromium-mac-leopard/svg/custom/inline-svg-in-xhtml-expected.png:
* platform/chromium-mac-snowleopard/svg/custom/inline-svg-in-xhtml-expected.png: Added.
* platform/chromium-mac/svg/custom/inline-svg-in-xhtml-expected.png: Removed.
* platform/chromium/test_expectations.txt:

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

10 years agoUnreviewed: updating expectations and rebaslining.
dslomov@google.com [Sat, 7 Jan 2012 23:51:35 +0000 (23:51 +0000)]
Unreviewed: updating expectations and rebaslining.
svg/custom/pattern-userSpaceOnUse-userToBaseTransform rebaselined due to http://trac.webkit.org/changeset/104356/.

* platform/chromium-linux/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.png: Added.
* platform/chromium-mac-leopard/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.png: Added.
* platform/chromium-win/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.png: Added.
* platform/chromium-win/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.txt: Added.
* platform/chromium/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.png: Added.
* platform/chromium/test_expectations.txt:

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

10 years agoUnreviewed, GTK rebaseline after r104386 and r104208.
philn@webkit.org [Sat, 7 Jan 2012 22:39:04 +0000 (22:39 +0000)]
Unreviewed, GTK rebaseline after r104386 and r104208.

* platform/gtk/Skipped: Skip failing accessibility/textbox-role-reports-line-number.html
* platform/gtk/fast/dom/Window/window-properties-expected.txt:
* platform/gtk/fast/dom/Window/window-property-descriptors-expected.txt:
* platform/gtk/fast/table/032-expected.txt:
* platform/gtk/fast/writing-mode/table-percent-width-quirk-expected.txt: Added.
* platform/gtk/tables/mozilla/bugs/bug55694-expected.txt:

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

10 years agoUnreviewed: test expectations and filed WK75784.
dslomov@google.com [Sat, 7 Jan 2012 22:12:46 +0000 (22:12 +0000)]
Unreviewed: test expectations and filed WK75784.

* platform/chromium/test_expectations.txt:

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

10 years agoUnreviewed: disabled CCLayerTreeHostImplTest.blendingOffWhenDrawingOpaqueLayers
dslomov@google.com [Sat, 7 Jan 2012 21:50:37 +0000 (21:50 +0000)]
Unreviewed: disabled CCLayerTreeHostImplTest.blendingOffWhenDrawingOpaqueLayers
and filed https://bugs.webkit.org/show_bug.cgi?id=75783.

* tests/CCLayerTreeHostImplTest.cpp:
(WebKit::TEST_F):

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

10 years ago2012-01-07 Chris Marrin <cmarrin@apple.com>
cmarrin@apple.com [Sat, 7 Jan 2012 18:43:49 +0000 (18:43 +0000)]
2012-01-07  Chris Marrin  <cmarrin@apple.com>

        Fixed a warning in GTK build of ANGLE

        Unreviewed.

        * src/compiler/DetectRecursion.cpp:
        (DetectRecursion::~DetectRecursion):

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

10 years ago[WK2][GTK] Each test takes roughly half a second to load
commit-queue@webkit.org [Sat, 7 Jan 2012 17:46:06 +0000 (17:46 +0000)]
[WK2][GTK] Each test takes roughly half a second to load
https://bugs.webkit.org/show_bug.cgi?id=70699

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

Set the XDG_CACHE_HOME environment variable when testing with
WebKitTestRunner. This way the testing is started with a non-existing
application cache. If the cache exists and is not empty, the emptying
and vacuuming that is performed before every test can consume a lot of
time.

This is just a temporary workaround until it becomes possible to set
a desired directory to be used as the application cache location through
WebKitWebContext.

* Scripts/webkitpy/layout_tests/port/gtk.py:
(GtkPort.setup_environ_for_server):

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

10 years ago[GTK] Enable requestAnimationFrame in build-webkit
commit-queue@webkit.org [Sat, 7 Jan 2012 17:18:14 +0000 (17:18 +0000)]
[GTK] Enable requestAnimationFrame in build-webkit
https://bugs.webkit.org/show_bug.cgi?id=75773

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

Tools:

Enable requestAnimationFrame for the Gtk port.

* Scripts/build-webkit:

LayoutTests:

Skip the passing requestAnimationFrame-related tests and put
the remaining failing one under the tests that require modal
dialog implementation.

* platform/gtk/Skipped:

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

10 years ago2012-01-07 Chris Marrin <cmarrin@apple.com>
cmarrin@apple.com [Sat, 7 Jan 2012 15:22:04 +0000 (15:22 +0000)]
2012-01-07  Chris Marrin  <cmarrin@apple.com>

        Fixed ANGLE build for GNU and QT broken in https://trac.webkit.org/changeset/104363

        Unreviewed.

        * GNUmakefile.list.am:
        * Target.pri:

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

10 years agoUnreviewed C++ bindings build fix after r104383.
kling@webkit.org [Sat, 7 Jan 2012 10:08:46 +0000 (10:08 +0000)]
Unreviewed C++ bindings build fix after r104383.

Use WTF::getPtr() to grab at impl pointer since they could be either RefPtr or raw.

* bindings/scripts/CodeGeneratorCPP.pm:
(GenerateImplementation):
* bindings/scripts/test/CPP/WebDOMTestCallback.cpp:
(WebDOMTestCallback::impl):
* bindings/scripts/test/CPP/WebDOMTestEventConstructor.cpp:
(WebDOMTestEventConstructor::impl):
* bindings/scripts/test/CPP/WebDOMTestInterface.cpp:
(WebDOMTestInterface::impl):
* bindings/scripts/test/CPP/WebDOMTestMediaQueryListListener.cpp:
(WebDOMTestMediaQueryListListener::impl):
* bindings/scripts/test/CPP/WebDOMTestNamedConstructor.cpp:
(WebDOMTestNamedConstructor::impl):
* bindings/scripts/test/CPP/WebDOMTestObj.cpp:
(WebDOMTestObj::impl):
* bindings/scripts/test/CPP/WebDOMTestSerializedScriptValueInterface.cpp:
(WebDOMTestSerializedScriptValueInterface::impl):

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

10 years agoSimplify HTMLCollection ownership model.
kling@webkit.org [Sat, 7 Jan 2012 09:35:21 +0000 (09:35 +0000)]
Simplify HTMLCollection ownership model.
<http://webkit.org/b/75437>

Reviewed by Sam Weinig.

Source/WebCore:

Remove HTMLCollection's inheritance from RefCounted and use OwnPtr to store it.
Added ref()/deref() methods that forward to the collection's base node, these
are only ever used by DOM wrappers.

This is a behavior change, HTMLCollection wrappers now keep the base node alive.

Test: fast/dom/htmlcollection-protects-base.html

* html/HTMLCollection.h:
(WebCore::HTMLCollection::ref):
(WebCore::HTMLCollection::deref):

    Removed inheritance from RefCounted. Added ref/deref that forward the refs
    to the collection's base Node.

* dom/Element.cpp:
(WebCore::Element::~Element):
* dom/Document.h:
* dom/Document.cpp:
(WebCore::Document::~Document):
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::~HTMLFormElement):
* html/HTMLSelectElement.h:
* html/HTMLSelectElement.cpp:

    Remove HTMLCollection::detachFromNode() and call sites.

* html/HTMLAllCollection.cpp:
(WebCore::HTMLAllCollection::namedItemWithIndex):
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::HTMLCollection):
(WebCore::HTMLCollection::invalidateCacheIfNeeded):
(WebCore::HTMLCollection::itemAfter):
(WebCore::HTMLCollection::calcLength):
(WebCore::HTMLCollection::length):
(WebCore::HTMLCollection::item):
(WebCore::HTMLCollection::nextItem):
(WebCore::HTMLCollection::namedItem):
(WebCore::HTMLCollection::updateNameCache):
(WebCore::HTMLCollection::hasNamedItem):
(WebCore::HTMLCollection::namedItems):
(WebCore::HTMLCollection::tags):
* html/HTMLFormCollection.cpp:
(WebCore::HTMLFormCollection::calcLength):
(WebCore::HTMLFormCollection::item):
(WebCore::HTMLFormCollection::getNamedItem):
(WebCore::HTMLFormCollection::namedItem):
(WebCore::HTMLFormCollection::updateNameCache):
* html/HTMLNameCollection.cpp:
(WebCore::HTMLNameCollection::itemAfter):
* html/HTMLOptionsCollection.cpp:
(WebCore::HTMLOptionsCollection::add):
(WebCore::HTMLOptionsCollection::remove):
(WebCore::HTMLOptionsCollection::selectedIndex):
(WebCore::HTMLOptionsCollection::setSelectedIndex):
(WebCore::HTMLOptionsCollection::setLength):
* html/HTMLPropertiesCollection.cpp:
(WebCore::HTMLPropertiesCollection::length):
(WebCore::HTMLPropertiesCollection::item):
(WebCore::HTMLPropertiesCollection::names):

    Removed base node null-checks and assertions. Added one assertion to
    the HTMLCollection constructor (that m_base is non-null.)

* dom/Document.h:
* dom/Document.cpp:
(WebCore::Document::openSearchDescriptionURL):
(WebCore::Document::cachedCollection):
(WebCore::Document::images):
(WebCore::Document::applets):
(WebCore::Document::embeds):
(WebCore::Document::plugins):
(WebCore::Document::objects):
(WebCore::Document::scripts):
(WebCore::Document::links):
(WebCore::Document::forms):
(WebCore::Document::anchors):
(WebCore::Document::all):
(WebCore::Document::windowNamedItems):
(WebCore::Document::documentNamedItems):
* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::namedItemGetter):
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::nameGetter):
(WebCore::JSHTMLDocument::all):
* bindings/v8/custom/V8DOMWindowCustom.cpp:
(WebCore::V8DOMWindow::namedPropertyGetter):
* bindings/v8/custom/V8HTMLDocumentCustom.cpp:
(WebCore::V8HTMLDocument::GetNamedProperty):
* dom/ElementRareData.h:
(WebCore::ElementRareData::ensureCachedHTMLCollection):
* dom/NodeRareData.h:
(WebCore::NodeRareData::properties):
* html/HTMLAllCollection.h:
* html/HTMLAllCollection.cpp:
(WebCore::HTMLAllCollection::create):
* html/HTMLCollection.h:
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::create):
(WebCore::HTMLCollection::HTMLCollection):
* html/HTMLDataListElement.cpp:
(WebCore::HTMLDataListElement::options):
* html/HTMLDataListElement.h:
* html/HTMLElement.cpp:
(WebCore::HTMLElement::children):
* html/HTMLElement.h:
* html/HTMLSelectElement.h:
(WebCore::HTMLSelectElement::options):
* html/HTMLFormCollection.h:
* html/HTMLFormElement.h:
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::elements):
* html/HTMLNameCollection.h:
(WebCore::HTMLNameCollection::create):
* html/HTMLFormCollection.cpp:
(WebCore::HTMLFormCollection::create):
* html/HTMLMapElement.cpp:
(WebCore::HTMLMapElement::imageElement):
(WebCore::HTMLMapElement::areas):
* html/HTMLMapElement.h:
* html/HTMLPropertiesCollection.h:
* html/HTMLTableElement.cpp:
(WebCore::HTMLTableElement::rows):
(WebCore::HTMLTableElement::tBodies):
* html/HTMLTableElement.h:
* html/HTMLTableRowElement.cpp:
(WebCore::HTMLTableRowElement::insertCell):
(WebCore::HTMLTableRowElement::deleteCell):
(WebCore::HTMLTableRowElement::cells):
* html/HTMLTableRowElement.h:
* html/HTMLTableRowsCollection.cpp:
(WebCore::HTMLTableRowsCollection::create):
(WebCore::HTMLTableRowsCollection::itemAfter):
* html/HTMLTableRowsCollection.h:
* html/HTMLTableSectionElement.h:
* html/HTMLTableSectionElement.cpp:
(WebCore::HTMLTableSectionElement::insertRow):
(WebCore::HTMLTableSectionElement::deleteRow):
(WebCore::HTMLTableSectionElement::rows):
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::selectedOption):
* html/HTMLOptionsCollection.h:
* html/HTMLOptionsCollection.cpp:
(WebCore::HTMLOptionsCollection::create):
* html/HTMLPropertiesCollection.cpp:
(WebCore::HTMLPropertiesCollection::create):
* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::getDocumentLinks):

    Store cached HTMLCollections in OwnPtrs. Methods that used to return
    PassRefPtr<HTMLCollection> now simply return HTMLCollection*.
    Updated call sites as appropriate.

LayoutTests:

- Removed fast/dom/htmlcollection-zombies.html since it was testing bogus behavior.
- Added a test to verify that HTMLCollection protects its base node from GC.

* fast/dom/htmlcollection-protects-base-expected.txt: Added.
* fast/dom/htmlcollection-protects-base.html: Added.
* fast/dom/htmlcollection-zombies-expected.txt: Removed.
* fast/dom/htmlcollection-zombies.html: Removed.

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

10 years agoAttempt to fix Qt build.
abarth@webkit.org [Sat, 7 Jan 2012 09:14:18 +0000 (09:14 +0000)]
Attempt to fix Qt build.

* page/Geolocation.cpp:
(WebCore::Geolocation::Geolocation):

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

10 years agoREGRESSION(r104210): Crash inside DynamicSubtreeNodeList::length
rniwa@webkit.org [Sat, 7 Jan 2012 09:12:01 +0000 (09:12 +0000)]
REGRESSION(r104210): Crash inside DynamicSubtreeNodeList::length
https://bugs.webkit.org/show_bug.cgi?id=75731

Reviewed by Andreas Kling.

Source/WebCore:

The crash was caused by DynamicSubtreeNodeList::SubtreeCaches::domVersionIsConsistent
using m_cachedItem as a way to access the document. Changed SubtreeCaches to use
DynamicSubtreeNodeList's m_node instead.

Test: fast/dom/node-list-length-after-removing-node.html

* dom/DynamicNodeList.cpp:
(WebCore::DynamicSubtreeNodeList::SubtreeCaches::setLengthCache):
(WebCore::DynamicSubtreeNodeList::SubtreeCaches::setItemCache):
(WebCore::DynamicSubtreeNodeList::length):
(WebCore::DynamicSubtreeNodeList::item):
* dom/DynamicNodeList.h:
(WebCore::DynamicSubtreeNodeList::SubtreeCaches::isLengthCacheValid):
(WebCore::DynamicSubtreeNodeList::SubtreeCaches::isItemCacheValid):
(WebCore::DynamicSubtreeNodeList::SubtreeCaches::cachedItem):
(WebCore::DynamicSubtreeNodeList::SubtreeCaches::domVersionIsConsistent):

LayoutTests:

Add a regression test. It reproduces the crash with a very high probability.

* fast/dom/node-list-length-after-removing-node-expected.txt: Added.
* fast/dom/node-list-length-after-removing-node.html: Added.

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

10 years agoDisconnecting DOMWindow properties is fragile and overly complicated
abarth@webkit.org [Sat, 7 Jan 2012 08:46:38 +0000 (08:46 +0000)]
Disconnecting DOMWindow properties is fragile and overly complicated
https://bugs.webkit.org/show_bug.cgi?id=75699

Reviewed by Alexey Proskuryakov.

Previously, we had to carefully check every object tree hanging off of
DOMWindow to make sure that every property correctly disconnected
itself and all its subobjects from the Frame when the DOMWindow
disconnected from the Frame.

This patch introduces DOMWindowProperty, which is a base class that
handles this work automagically, ensuring that we won't have any
dangling Frame pointers and removing a bunch of boilerplate code.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* css/StyleMedia.cpp:
(WebCore::StyleMedia::StyleMedia):
* css/StyleMedia.h:
(WebCore::StyleMedia::create):
* loader/appcache/DOMApplicationCache.cpp:
(WebCore::DOMApplicationCache::DOMApplicationCache):
(WebCore::DOMApplicationCache::disconnectFrame):
* loader/appcache/DOMApplicationCache.h:
* page/BarInfo.cpp:
(WebCore::BarInfo::BarInfo):
* page/BarInfo.h:
* page/Console.cpp:
(WebCore::Console::Console):
(WebCore::Console::memory):
* page/Console.h:
* page/DOMSelection.cpp:
(WebCore::DOMSelection::DOMSelection):
* page/DOMSelection.h:
* page/DOMWindow.cpp:
(WebCore::DOMWindow::registerProperty):
(WebCore::DOMWindow::unregisterProperty):
(WebCore::DOMWindow::clear):
* page/DOMWindow.h:
* page/Geolocation.cpp:
(WebCore::Geolocation::Geolocation):
(WebCore::Geolocation::disconnectFrame):
* page/Geolocation.h:
* page/History.cpp:
(WebCore::History::History):
* page/History.h:
* page/Location.cpp:
(WebCore::Location::Location):
* page/Location.h:
* page/Navigator.cpp:
(WebCore::Navigator::Navigator):
(WebCore::Navigator::~Navigator):
* page/Navigator.h:
* page/Performance.cpp:
(WebCore::Performance::Performance):
(WebCore::Performance::memory):
* page/Performance.h:
* page/PerformanceNavigation.cpp:
(WebCore::PerformanceNavigation::PerformanceNavigation):
* page/PerformanceNavigation.h:
* page/PerformanceTiming.cpp:
(WebCore::PerformanceTiming::PerformanceTiming):
* page/PerformanceTiming.h:
* page/Screen.cpp:
(WebCore::Screen::Screen):
* page/Screen.h:
* plugins/DOMMimeTypeArray.cpp:
(WebCore::DOMMimeTypeArray::DOMMimeTypeArray):
* plugins/DOMMimeTypeArray.h:
* plugins/DOMPluginArray.cpp:
(WebCore::DOMPluginArray::DOMPluginArray):
* plugins/DOMPluginArray.h:
* storage/Storage.cpp:
(WebCore::Storage::Storage):
* storage/Storage.h:

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

10 years agoRegenerate a few files with a more appropriate version of bison.
mrowe@apple.com [Sat, 7 Jan 2012 07:33:25 +0000 (07:33 +0000)]
Regenerate a few files with a more appropriate version of bison.

Rubber-stamped by Dan Bernstein.

* src/compiler/glslang.l: Tweak the input so that it generates code that compiles without warnings.
* src/compiler/glslang_lex.cpp:
* src/compiler/glslang_tab.cpp:
* src/compiler/glslang_tab.h:

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

10 years agoREGRESSION (r83075): Save as PDF does not generate any links for webkit.org and others
mrowe@apple.com [Sat, 7 Jan 2012 06:57:47 +0000 (06:57 +0000)]
REGRESSION (r83075): Save as PDF does not generate any links for webkit.org and others
<http://webkit.org/b/75768> <rdar://problem/10659258>

Use RenderObject::hasOutline when determining whether to always create line boxes so that
we take in to consideration whether we'll be creating PDF link rects.

Reviewed by Dan Bernstein.

* rendering/RenderInline.cpp:
(WebCore::RenderInline::styleDidChange):

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

10 years agoREGRESSION (WebKit2): Save as PDF no longer generates links to URLs
mrowe@apple.com [Sat, 7 Jan 2012 06:57:32 +0000 (06:57 +0000)]
REGRESSION (WebKit2): Save as PDF no longer generates links to URLs
<http://webkit.org/b/65076> / <rdar://problem/9606246>

WebKit2 printing works by having the web process render the page content to a PDF. The PDF
data is then shipped to the UI process which will render it in to the printing graphics context.
Links were being lost because the API used to do the rendering of the PDF in to the printing
graphics context, CGContextDrawPDFPage, did not preserve the links that were present in the
PDF content received from the web process.

To fix this we switch to using PDFKit for drawing the PDF in to the printing graphics context.
PDFKit provides the ability for us to iterate over the links in the PDF content ourselves and
add links in to the printing graphics context.

Reviewed by Alexey Proskuryakov.

* UIProcess/API/mac/WKPrintingView.h:
* UIProcess/API/mac/WKPrintingView.mm:
(pdfAnnotationLinkClass): Look up the PDFAnnotationLink class from PDFKit as WebKit2 loads PDFKit lazily.
(pdfDocumentClass): Ditto.
(-[WKPrintingView _drawPDFDocument:page:atPoint:]): Switch to using the PDFKit equivalents of several types.
Iterate over the annotations present in the PDFPage, calling CGPDFContextSetURLForRect for each PDFAnnotationLink
that we find.
(-[WKPrintingView _drawPreview:]): Create an NSData to feed to PDFDocument.
(-[WKPrintingView drawRect:]): Ditto.
* WebKit2Prefix.h: Add the usual workaround to make Objective-C exceptions compile when C++ exception handling is disabled.

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

10 years agoUnreviewed, rolling out r104373 and r104374.
commit-queue@webkit.org [Sat, 7 Jan 2012 06:46:50 +0000 (06:46 +0000)]
Unreviewed, rolling out r104373 and r104374.
http://trac.webkit.org/changeset/104373
http://trac.webkit.org/changeset/104374
https://bugs.webkit.org/show_bug.cgi?id=75769

Too many assertion failures. (Requested by kling on #webkit).

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

Source/WebCore:

* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::namedItemGetter):
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::nameGetter):
(WebCore::JSHTMLDocument::all):
* bindings/v8/custom/V8DOMWindowCustom.cpp:
(WebCore::V8DOMWindow::namedPropertyGetter):
* bindings/v8/custom/V8HTMLDocumentCustom.cpp:
(WebCore::V8HTMLDocument::GetNamedProperty):
* dom/Document.cpp:
(WebCore::Document::~Document):
(WebCore::Document::openSearchDescriptionURL):
(WebCore::Document::cachedCollection):
(WebCore::Document::images):
(WebCore::Document::applets):
(WebCore::Document::embeds):
(WebCore::Document::plugins):
(WebCore::Document::objects):
(WebCore::Document::scripts):
(WebCore::Document::links):
(WebCore::Document::forms):
(WebCore::Document::anchors):
(WebCore::Document::all):
(WebCore::Document::windowNamedItems):
(WebCore::Document::documentNamedItems):
* dom/Document.h:
* dom/Element.cpp:
(WebCore::Element::~Element):
* dom/ElementRareData.h:
(WebCore::ElementRareData::cachedHTMLCollection):
(WebCore::ElementRareData::ensureCachedHTMLCollection):
* dom/NodeRareData.h:
(WebCore::NodeRareData::properties):
* html/HTMLAllCollection.cpp:
(WebCore::HTMLAllCollection::create):
(WebCore::HTMLAllCollection::namedItemWithIndex):
* html/HTMLAllCollection.h:
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::HTMLCollection):
(WebCore::HTMLCollection::create):
(WebCore::HTMLCollection::detachFromNode):
(WebCore::HTMLCollection::invalidateCacheIfNeeded):
(WebCore::HTMLCollection::itemAfter):
(WebCore::HTMLCollection::calcLength):
(WebCore::HTMLCollection::length):
(WebCore::HTMLCollection::item):
(WebCore::HTMLCollection::nextItem):
(WebCore::HTMLCollection::namedItem):
(WebCore::HTMLCollection::updateNameCache):
(WebCore::HTMLCollection::hasNamedItem):
(WebCore::HTMLCollection::namedItems):
(WebCore::HTMLCollection::tags):
* html/HTMLCollection.h:
* html/HTMLDataListElement.cpp:
(WebCore::HTMLDataListElement::options):
* html/HTMLDataListElement.h:
* html/HTMLElement.cpp:
(WebCore::HTMLElement::children):
* html/HTMLElement.h:
* html/HTMLFormCollection.cpp:
(WebCore::HTMLFormCollection::create):
(WebCore::HTMLFormCollection::calcLength):
(WebCore::HTMLFormCollection::item):
(WebCore::HTMLFormCollection::getNamedItem):
(WebCore::HTMLFormCollection::namedItem):
(WebCore::HTMLFormCollection::updateNameCache):
* html/HTMLFormCollection.h:
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::~HTMLFormElement):
(WebCore::HTMLFormElement::elements):
* html/HTMLFormElement.h:
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::selectedOption):
* html/HTMLMapElement.cpp:
(WebCore::HTMLMapElement::imageElement):
(WebCore::HTMLMapElement::areas):
* html/HTMLMapElement.h:
* html/HTMLNameCollection.cpp:
(WebCore::HTMLNameCollection::itemAfter):
* html/HTMLNameCollection.h:
(WebCore::HTMLNameCollection::create):
* html/HTMLOptionsCollection.cpp:
(WebCore::HTMLOptionsCollection::create):
(WebCore::HTMLOptionsCollection::add):
(WebCore::HTMLOptionsCollection::remove):
(WebCore::HTMLOptionsCollection::selectedIndex):
(WebCore::HTMLOptionsCollection::setSelectedIndex):
(WebCore::HTMLOptionsCollection::setLength):
* html/HTMLOptionsCollection.h:
* html/HTMLPropertiesCollection.cpp:
(WebCore::HTMLPropertiesCollection::create):
(WebCore::HTMLPropertiesCollection::length):
(WebCore::HTMLPropertiesCollection::item):
(WebCore::HTMLPropertiesCollection::names):
* html/HTMLPropertiesCollection.h:
* html/HTMLSelectElement.cpp:
(WebCore::HTMLSelectElement::~HTMLSelectElement):
(WebCore::HTMLSelectElement::options):
* html/HTMLSelectElement.h:
* html/HTMLTableElement.cpp:
(WebCore::HTMLTableElement::~HTMLTableElement):

LayoutTests:

* fast/dom/htmlcollection-protects-base-expected.txt: Removed.
* fast/dom/htmlcollection-protects-base.html: Removed.
* fast/dom/htmlcollection-zombies-expected.txt: Added.
* fast/dom/htmlcollection-zombies.html: Added.

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

10 years agoUnreviewed build-webkit fix for Chromium to properly use make if gyp generates Makefiles.
jarred@sencha.com [Sat, 7 Jan 2012 04:20:05 +0000 (04:20 +0000)]
Unreviewed build-webkit fix for Chromium to properly use make if gyp generates Makefiles.

* Scripts/webkitdirs.pm:
(buildChromium):
Missing parentheses.

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

10 years agoUnreviewed build fix after r104373.
kling@webkit.org [Sat, 7 Jan 2012 03:58:26 +0000 (03:58 +0000)]
Unreviewed build fix after r104373.

* html/HTMLTableElement.cpp:
(WebCore::HTMLTableElement::~HTMLTableElement):

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

10 years agoSimplify HTMLCollection ownership model.
kling@webkit.org [Sat, 7 Jan 2012 03:30:36 +0000 (03:30 +0000)]
Simplify HTMLCollection ownership model.
<http://webkit.org/b/75437>

Reviewed by Sam Weinig.

Source/WebCore:

Remove HTMLCollection's inheritance from RefCounted and use OwnPtr to store it.
Added ref()/deref() methods that forward to the collection's base node, these
are only ever used by DOM wrappers.

This is a behavior change, HTMLCollection wrappers now keep the base node alive.

Test: fast/dom/htmlcollection-protects-base.html

* html/HTMLCollection.h:
(WebCore::HTMLCollection::ref):
(WebCore::HTMLCollection::deref):

    Removed inheritance from RefCounted. Added ref/deref that forward the refs
    to the collection's base Node.

* dom/Element.cpp:
(WebCore::Element::~Element):
* dom/Document.h:
* dom/Document.cpp:
(WebCore::Document::~Document):
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::~HTMLFormElement):
* html/HTMLSelectElement.h:
* html/HTMLSelectElement.cpp:

    Remove HTMLCollection::detachFromNode() and call sites.

* html/HTMLAllCollection.cpp:
(WebCore::HTMLAllCollection::namedItemWithIndex):
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::HTMLCollection):
(WebCore::HTMLCollection::invalidateCacheIfNeeded):
(WebCore::HTMLCollection::itemAfter):
(WebCore::HTMLCollection::calcLength):
(WebCore::HTMLCollection::length):
(WebCore::HTMLCollection::item):
(WebCore::HTMLCollection::nextItem):
(WebCore::HTMLCollection::namedItem):
(WebCore::HTMLCollection::updateNameCache):
(WebCore::HTMLCollection::hasNamedItem):
(WebCore::HTMLCollection::namedItems):
(WebCore::HTMLCollection::tags):
* html/HTMLFormCollection.cpp:
(WebCore::HTMLFormCollection::calcLength):
(WebCore::HTMLFormCollection::item):
(WebCore::HTMLFormCollection::getNamedItem):
(WebCore::HTMLFormCollection::namedItem):
(WebCore::HTMLFormCollection::updateNameCache):
* html/HTMLNameCollection.cpp:
(WebCore::HTMLNameCollection::itemAfter):
* html/HTMLOptionsCollection.cpp:
(WebCore::HTMLOptionsCollection::add):
(WebCore::HTMLOptionsCollection::remove):
(WebCore::HTMLOptionsCollection::selectedIndex):
(WebCore::HTMLOptionsCollection::setSelectedIndex):
(WebCore::HTMLOptionsCollection::setLength):
* html/HTMLPropertiesCollection.cpp:
(WebCore::HTMLPropertiesCollection::length):
(WebCore::HTMLPropertiesCollection::item):
(WebCore::HTMLPropertiesCollection::names):

    Removed base node null-checks and assertions. Added one assertion to
    the HTMLCollection constructor (that m_base is non-null.)

* dom/Document.h:
* dom/Document.cpp:
(WebCore::Document::openSearchDescriptionURL):
(WebCore::Document::cachedCollection):
(WebCore::Document::images):
(WebCore::Document::applets):
(WebCore::Document::embeds):
(WebCore::Document::plugins):
(WebCore::Document::objects):
(WebCore::Document::scripts):
(WebCore::Document::links):
(WebCore::Document::forms):
(WebCore::Document::anchors):
(WebCore::Document::all):
(WebCore::Document::windowNamedItems):
(WebCore::Document::documentNamedItems):
* bindings/js/JSDOMWindowCustom.cpp:
(WebCore::namedItemGetter):
* bindings/js/JSHTMLDocumentCustom.cpp:
(WebCore::JSHTMLDocument::nameGetter):
(WebCore::JSHTMLDocument::all):
* bindings/v8/custom/V8DOMWindowCustom.cpp:
(WebCore::V8DOMWindow::namedPropertyGetter):
* bindings/v8/custom/V8HTMLDocumentCustom.cpp:
(WebCore::V8HTMLDocument::GetNamedProperty):
* dom/ElementRareData.h:
(WebCore::ElementRareData::ensureCachedHTMLCollection):
* dom/NodeRareData.h:
(WebCore::NodeRareData::properties):
* html/HTMLAllCollection.h:
* html/HTMLAllCollection.cpp:
(WebCore::HTMLAllCollection::create):
* html/HTMLCollection.h:
* html/HTMLCollection.cpp:
(WebCore::HTMLCollection::create):
(WebCore::HTMLCollection::HTMLCollection):
* html/HTMLDataListElement.cpp:
(WebCore::HTMLDataListElement::options):
* html/HTMLDataListElement.h:
* html/HTMLElement.cpp:
(WebCore::HTMLElement::children):
* html/HTMLElement.h:
* html/HTMLSelectElement.h:
(WebCore::HTMLSelectElement::options):
* html/HTMLFormCollection.h:
* html/HTMLFormElement.h:
* html/HTMLFormElement.cpp:
(WebCore::HTMLFormElement::elements):
* html/HTMLNameCollection.h:
(WebCore::HTMLNameCollection::create):
* html/HTMLFormCollection.cpp:
(WebCore::HTMLFormCollection::create):
* html/HTMLMapElement.cpp:
(WebCore::HTMLMapElement::imageElement):
(WebCore::HTMLMapElement::areas):
* html/HTMLMapElement.h:
* html/HTMLPropertiesCollection.h:
* html/HTMLTableElement.cpp:
(WebCore::HTMLTableElement::rows):
(WebCore::HTMLTableElement::tBodies):
* html/HTMLTableElement.h:
* html/HTMLTableRowElement.cpp:
(WebCore::HTMLTableRowElement::insertCell):
(WebCore::HTMLTableRowElement::deleteCell):
(WebCore::HTMLTableRowElement::cells):
* html/HTMLTableRowElement.h:
* html/HTMLTableRowsCollection.cpp:
(WebCore::HTMLTableRowsCollection::create):
(WebCore::HTMLTableRowsCollection::itemAfter):
* html/HTMLTableRowsCollection.h:
* html/HTMLTableSectionElement.h:
* html/HTMLTableSectionElement.cpp:
(WebCore::HTMLTableSectionElement::insertRow):
(WebCore::HTMLTableSectionElement::deleteRow):
(WebCore::HTMLTableSectionElement::rows):
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::selectedOption):
* html/HTMLOptionsCollection.h:
* html/HTMLOptionsCollection.cpp:
(WebCore::HTMLOptionsCollection::create):
* html/HTMLPropertiesCollection.cpp:
(WebCore::HTMLPropertiesCollection::create):

    Store cached HTMLCollections in OwnPtrs. Methods that used to return
    PassRefPtr<HTMLCollection> now simply return HTMLCollection*.
    Updated call sites as appropriate.

LayoutTests:

- Removed fast/dom/htmlcollection-zombies.html since it was testing bogus behavior.
- Added a test to verify that HTMLCollection protects its base node from GC.

* fast/dom/htmlcollection-protects-base-expected.txt: Added.
* fast/dom/htmlcollection-protects-base.html: Added.
* fast/dom/htmlcollection-zombies-expected.txt: Removed.
* fast/dom/htmlcollection-zombies.html: Removed.

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

10 years agoDOMWindow should be a FrameDestructionObserver
abarth@webkit.org [Sat, 7 Jan 2012 03:12:01 +0000 (03:12 +0000)]
DOMWindow should be a FrameDestructionObserver
https://bugs.webkit.org/show_bug.cgi?id=75697

Reviewed by Alexey Proskuryakov.

DOMWindow plays exactly the role of a FrameDestructionObserver, just
with special-case code.  It should just use the general-case code.

* page/DOMWindow.cpp:
(WebCore::DOMWindow::DOMWindow):
(WebCore::DOMWindow::~DOMWindow):
(WebCore::DOMWindow::frameDestroyed):
* page/DOMWindow.h:
* page/Frame.cpp:
(WebCore::Frame::~Frame):
(WebCore::Frame::clearDOMWindow):
(WebCore::Frame::setDOMWindow):
* page/Frame.h:

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

10 years agoWeb Inspector: Missing Implementation of Public InspectorDOMAgent Function
commit-queue@webkit.org [Sat, 7 Jan 2012 03:10:44 +0000 (03:10 +0000)]
Web Inspector: Missing Implementation of Public InspectorDOMAgent Function
https://bugs.webkit.org/show_bug.cgi?id=75759

Implement missing accessor and make setter public.

Patch by Joseph Pecoraro <pecoraro@apple.com> on 2012-01-06
Reviewed by Timothy Hatcher.

* inspector/InspectorDOMAgent.cpp:
(WebCore::InspectorDOMAgent::searchingForNodeInPage):
* inspector/InspectorDOMAgent.h:

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

10 years ago[Qt] [WK2] Minibrowser leaks memory ~6-7Mb per reload
ostapenko.viatcheslav@nokia.com [Sat, 7 Jan 2012 02:50:25 +0000 (02:50 +0000)]
[Qt] [WK2] Minibrowser leaks memory ~6-7Mb per reload
https://bugs.webkit.org/show_bug.cgi?id=75746

Reset WebGraphicsLayer::m_layerTreeTileClient of all dependent
layers from ~LayerTreeHostQt(). This replaces r103760 which
causes leaks of GraphicsLayerTextureMapper objects on UI side.

Reviewed by Noam Rosenthal.

* WebProcess/WebCoreSupport/WebGraphicsLayer.cpp:
(WebCore::WebGraphicsLayer::syncCompositingStateForThisLayerOnly):
(WebCore::WebGraphicsLayer::setLayerTreeTileClient):
* WebProcess/WebCoreSupport/WebGraphicsLayer.h:
* WebProcess/WebPage/qt/LayerTreeHostQt.cpp:
(WebKit::LayerTreeHostQt::~LayerTreeHostQt):

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

10 years agoRoll out r104362 since it broke the build.
mrowe@apple.com [Sat, 7 Jan 2012 02:43:54 +0000 (02:43 +0000)]
Roll out r104362 since it broke the build.

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

10 years ago[Chromium] Cull occluded tiles in tiled layers
wjmaclean@chromium.org [Sat, 7 Jan 2012 02:39:16 +0000 (02:39 +0000)]
[Chromium] Cull occluded tiles in tiled layers
https://bugs.webkit.org/show_bug.cgi?id=70533

Reviewed by James Robinson.

Source/WebCore:

Unit test provided, must pass all existing GPU layout tests.

* WebCore.gypi:
* platform/graphics/chromium/cc/CCLayerImpl.cpp:
(WebCore::CCLayerImpl::appendQuads):
(WebCore::CCLayerImpl::quadTransform):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp:
(WebCore::CCLayerTreeHostImpl::calculateRenderPasses):
(WebCore::CCLayerTreeHostImpl::optimizeRenderPasses):
(WebCore::CCLayerTreeHostImpl::drawLayers):
* platform/graphics/chromium/cc/CCLayerTreeHostImpl.h:
* platform/graphics/chromium/cc/CCQuadCuller.cpp: Added.
(std::swap):
(WebCore::regionContainsRect):
(WebCore::CCQuadCuller::cullOccludedQuads):
* platform/graphics/chromium/cc/CCQuadCuller.h: Added.
(WebCore::CCQuadCuller::CCQuadCuller):
* platform/graphics/chromium/cc/CCRenderPass.cpp:
(WebCore::CCRenderPass::optimizeQuads):
* platform/graphics/chromium/cc/CCRenderPass.h:

Source/WebKit/chromium:

* WebKit.gypi:
* tests/CCQuadCullerTest.cpp: Added.
(WebCore::TestDrawQuad::TestDrawQuad):
(WebCore::TestDrawQuad::create):
(WebCore::setQuads):
(WebCore::TEST):

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

10 years agoMove more rubberbanding code into ScrollAnimatorMac::smoothScrollWithEvent
andersca@apple.com [Sat, 7 Jan 2012 01:56:54 +0000 (01:56 +0000)]
Move more rubberbanding code into ScrollAnimatorMac::smoothScrollWithEvent
https://bugs.webkit.org/show_bug.cgi?id=75750

Reviewed by Sam Weinig.

* platform/mac/ScrollAnimatorMac.h:
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::handleWheelEvent):
Move rubberbanding related code into smoothScrollWithEvent.

(WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
Move code here from handleWheelEvent and made the function return a boolean.

(WebCore::ScrollAnimatorMac::snapRubberBand):
Call the client.

(WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
Ditto.

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

10 years agoUpdate ANGLE in WebKit tree
cmarrin@apple.com [Sat, 7 Jan 2012 01:40:13 +0000 (01:40 +0000)]
Update ANGLE in WebKit tree
https://bugs.webkit.org/show_bug.cgi?id=75753

Reviewed by Simon Fraser.

Updated ANGLE to r939. Fixed a compiler error (missing case in switch statement)
and added 5 new files to xcodeproj. Other than that it is a straight copy of
the files from the ANGLE repository.

* ANGLE.xcodeproj/project.pbxproj:
* include/EGL/eglext.h:
* include/EGL/eglplatform.h:
* include/GLES2/gl2ext.h:
* include/GLSLANG/ShaderLang.h:
* src/common/debug.cpp:
(gl::output):
(gl::trace):
(gl::perfActive):
(gl::ScopedPerfEventHelper::ScopedPerfEventHelper):
(gl::ScopedPerfEventHelper::~ScopedPerfEventHelper):
* src/common/version.h:
* src/compiler/BaseTypes.h:
(getBasicString):
* src/compiler/BuiltInFunctionEmulator.cpp: Added.
(BuiltInFunctionEmulator::BuiltInFunctionEmulator):
(BuiltInFunctionEmulator::SetFunctionCalled):
(BuiltInFunctionEmulator::OutputEmulatedFunctionDefinition):
(BuiltInFunctionEmulator::IdentifyFunction):
(BuiltInFunctionEmulator::MarkBuiltInFunctionsForEmulation):
(BuiltInFunctionEmulator::Cleanup):
(BuiltInFunctionEmulator::GetEmulatedFunctionName):
* src/compiler/BuiltInFunctionEmulator.h: Added.
* src/compiler/Compiler.cpp:
(TCompiler::TCompiler):
(TCompiler::compile):
(TCompiler::clearResults):
(TCompiler::detectRecursion):
(TCompiler::getMappedNameMaxLength):
(TCompiler::getBuiltInFunctionEmulator):
* src/compiler/DetectRecursion.cpp: Added.
(DetectRecursion::FunctionNode::FunctionNode):
(DetectRecursion::FunctionNode::getName):
(DetectRecursion::FunctionNode::addCallee):
(DetectRecursion::FunctionNode::detectRecursion):
(DetectRecursion::DetectRecursion):
(DetectRecursion::~DetectRecursion):
(DetectRecursion::visitAggregate):
(DetectRecursion::detectRecursion):
(DetectRecursion::findFunctionByName):
* src/compiler/DetectRecursion.h: Added.
* src/compiler/ExtensionBehavior.h:
* src/compiler/ForLoopUnroll.cpp:
(ForLoopUnroll::MarkForLoopsWithIntegerIndicesForUnrolling):
* src/compiler/ForLoopUnroll.h:
* src/compiler/Initialize.cpp:
(BuiltInFunctionsCommon):
(BuiltInFunctionsVertex):
(BuiltInFunctionsFragment):
(TBuiltIns::initialize):
(IdentifyBuiltIns):
(InitExtensionBehavior):
* src/compiler/MapLongVariableNames.cpp:
(MapLongVariableNames::MapLongVariableNames):
(MapLongVariableNames::visitSymbol):
(MapLongVariableNames::mapVaryingLongName):
* src/compiler/MapLongVariableNames.h:
* src/compiler/OutputGLSLBase.cpp:
(TOutputGLSLBase::visitUnary):
(TOutputGLSLBase::visitAggregate):
* src/compiler/OutputHLSL.cpp:
(sh::OutputHLSL::OutputHLSL):
(sh::OutputHLSL::header):
(sh::OutputHLSL::visitSymbol):
(sh::OutputHLSL::visitAggregate):
(sh::OutputHLSL::visitSelection):
(sh::OutputHLSL::visitLoop):
(sh::OutputHLSL::handleExcessiveLoop):
(sh::OutputHLSL::addConstructor):
(sh::OutputHLSL::decorate):
(sh::OutputHLSL::decorateUniform):
* src/compiler/OutputHLSL.h:
* src/compiler/ParseHelper.cpp:
(TParseContext::recover):
(TParseContext::reservedErrorCheck):
(TParseContext::constructorErrorCheck):
(TParseContext::extensionErrorCheck):
(TParseContext::supportsExtension):
(TParseContext::enterStructDeclaration):
(TParseContext::exitStructDeclaration):
(TParseContext::structNestingErrorCheck):
* src/compiler/ParseHelper.h:
(TParseContext::TParseContext):
* src/compiler/PoolAlloc.h:
(pool_allocator::pool_allocator):
(pool_allocator::operator=):
(pool_allocator::setAllocator):
(pool_allocator::getAllocator):
* src/compiler/ShHandle.h:
* src/compiler/ShaderLang.cpp:
(checkActiveUniformAndAttribMaxLengths):
(checkMappedNameMaxLength):
(getVariableInfo):
(ShInitBuiltInResources):
(ShGetInfo):
* src/compiler/SymbolTable.cpp:
(TType::computeDeepestStructNesting):
* src/compiler/TranslatorESSL.cpp:
(TranslatorESSL::translate):
(TranslatorESSL::writeExtensionBehavior):
* src/compiler/TranslatorGLSL.cpp:
(TranslatorGLSL::translate):
* src/compiler/Types.h:
(TType::TType):
(TType::copyType):
(TType::setStruct):
(TType::getDeepestStructNesting):
* src/compiler/UnfoldSelect.cpp:
(sh::UnfoldSelect::traverse):
(sh::UnfoldSelect::visitSelection):
(sh::UnfoldSelect::visitLoop):
(sh::UnfoldSelect::getNextTemporaryIndex):
* src/compiler/UnfoldSelect.h:
* src/compiler/ValidateLimitations.cpp:
* src/compiler/ValidateLimitations.h:
* src/compiler/VariableInfo.cpp:
(getVariableDataType):
* src/compiler/generate_glslang_lexer.sh: Removed.
* src/compiler/generate_glslang_parser.sh: Removed.
* src/compiler/generate_parser.sh: Added.
* src/compiler/glslang.l:
* src/compiler/glslang.y:
* src/compiler/glslang_lex.cpp:
(yy_get_previous_state):
(yy_try_NUL_trans):
* src/compiler/glslang_tab.cpp:
* src/compiler/glslang_tab.h:
* src/compiler/intermOut.cpp:
(TOutputTraverser::visitAggregate):
* src/compiler/intermediate.h:
(TIntermUnary::TIntermUnary):
(TIntermUnary::setUseEmulatedFunction):
(TIntermUnary::getUseEmulatedFunction):
(TIntermAggregate::TIntermAggregate):
(TIntermAggregate::setUseEmulatedFunction):
(TIntermAggregate::getUseEmulatedFunction):
* src/compiler/osinclude.h:
* src/compiler/ossource_posix.cpp:
(OS_AllocTLSIndex):
(OS_SetTLSValue):
(OS_FreeTLSIndex):
* src/compiler/preprocessor/atom.c:
(GrowAtomTable):
* src/compiler/preprocessor/length_limits.h: Added.
* src/compiler/preprocessor/scanner.h:
* src/libEGL/Display.cpp:
(egl::Display::getDisplay):
(egl::Display::Display):
(egl::Display::~Display):
(egl::Display::initialize):
(egl::Display::terminate):
(egl::Display::startScene):
(egl::Display::endScene):
(egl::Display::createDevice):
(egl::Display::initializeDevice):
(egl::Display::resetDevice):
(egl::Display::createWindowSurface):
(egl::Display::createOffscreenSurface):
(egl::Display::createContext):
(egl::Display::restoreLostDevice):
(egl::Display::notifyDeviceLost):
(egl::Display::isDeviceLost):
(egl::Display::testDeviceLost):
(egl::Display::testDeviceResettable):
(egl::Display::getDXT1TextureSupport):
(egl::Display::getDXT3TextureSupport):
(egl::Display::getDXT5TextureSupport):
(egl::Display::getFloat32TextureSupport):
(egl::Display::getFloat16TextureSupport):
(egl::Display::getTexturePool):
(egl::Display::initExtensionString):
* src/libEGL/Display.h:
* src/libEGL/Surface.cpp:
(egl::Surface::Surface):
(egl::Surface::initialize):
(egl::Surface::resetSwapChain):
(egl::Surface::subclassWindow):
(egl::Surface::unsubclassWindow):
(egl::Surface::swap):
(egl::Surface::postSubBuffer):
(egl::Surface::isPostSubBufferSupported):
* src/libEGL/Surface.h:
* src/libEGL/libEGL.cpp:
* src/libEGL/libEGL.rc:
* src/libEGL/libEGL.vcproj:
* src/libGLESv2/Buffer.cpp:
(gl::Buffer::bufferSubData):
* src/libGLESv2/Context.cpp:
(gl::Context::Context):
(gl::Context::makeCurrent):
(gl::Context::markAllStateDirty):
(gl::Context::markContextLost):
(gl::Context::isContextLost):
(gl::Context::setPackReverseRowOrder):
(gl::Context::getPackReverseRowOrder):
(gl::Context::deleteProgram):
(gl::Context::getDrawFramebuffer):
(gl::Context::bindDrawFramebuffer):
(gl::Context::useProgram):
(gl::Context::setFramebufferZero):
(gl::Context::getCurrentProgram):
(gl::Context::getBooleanv):
(gl::Context::getIntegerv):
(gl::Context::getQueryParameterInfo):
(gl::Context::applyRenderTarget):
(gl::Context::applyState):
(gl::Context::applyVertexBuffer):
(gl::Context::applyIndexBuffer):
(gl::Context::applyShaders):
(gl::Context::applyTextures):
(gl::Context::readPixels):
(gl::Context::clear):
(gl::Context::drawArrays):
(gl::Context::drawElements):
(gl::Context::sync):
(gl::Context::drawClosingLine):
(gl::Context::getResetStatus):
(gl::Context::isResetNotificationEnabled):
(gl::Context::supportsDXT1Textures):
(gl::Context::supportsDXT3Textures):
(gl::Context::supportsDXT5Textures):
(gl::Context::supportsFloat32Textures):
(gl::Context::supportsFloat32LinearFilter):
(gl::Context::supportsFloat32RenderableTextures):
(gl::Context::supportsFloat16Textures):
(gl::Context::supportsFloat16LinearFilter):
(gl::Context::supportsFloat16RenderableTextures):
(gl::Context::initExtensionString):
(gl::Context::initRendererString):
(gl::Context::getRendererString):
(gl::Context::blitFramebuffer):
(gl::VertexDeclarationCache::applyDeclaration):
(gl::VertexDeclarationCache::markStateDirty):
* src/libGLESv2/Context.h:
* src/libGLESv2/Fence.cpp:
(gl::Fence::testFence):
(gl::Fence::getFenceiv):
* src/libGLESv2/Framebuffer.cpp:
(gl::Framebuffer::setColorbuffer):
(gl::Framebuffer::setDepthbuffer):
(gl::Framebuffer::setStencilbuffer):
(gl::Framebuffer::getColorbuffer):
(gl::Framebuffer::getDepthbuffer):
(gl::Framebuffer::getStencilbuffer):
(gl::Framebuffer::hasStencil):
(gl::Framebuffer::completeness):
(gl::DefaultFramebuffer::DefaultFramebuffer):
* src/libGLESv2/Framebuffer.h:
* src/libGLESv2/IndexDataManager.cpp:
(gl::IndexDataManager::prepareIndexData):
(gl::IndexBuffer::IndexBuffer):
(gl::IndexBuffer::getSerial):
(gl::IndexBuffer::issueSerial):
(gl::StreamingIndexBuffer::reserveSpace):
(gl::StaticIndexBuffer::reserveSpace):
(gl::StaticIndexBuffer::lookupRange):
(gl::StaticIndexBuffer::addRange):
* src/libGLESv2/IndexDataManager.h:
(gl::StaticIndexBuffer::IndexRange::operator<):
* src/libGLESv2/Program.cpp:
(gl::Uniform::Uniform):
(gl::Uniform::isArray):
(gl::UniformLocation::UniformLocation):
(gl::Program::Program):
(gl::Program::detachShader):
(gl::Program::getUsedSamplerRange):
(gl::Program::getSamplerMapping):
(gl::Program::getUniformLocation):
(gl::Program::setUniform1fv):
(gl::Program::setUniform2fv):
(gl::Program::setUniform3fv):
(gl::transposeMatrix):
(gl::Program::setUniformMatrix2fv):
(gl::Program::setUniformMatrix3fv):
(gl::Program::setUniformMatrix4fv):
(gl::Program::getUniformfv):
(gl::Program::getUniformiv):
(gl::Program::applyUniforms):
(gl::Program::compileToBinary):
(gl::Program::linkVaryings):
(gl::Program::link):
(gl::Program::defineUniform):
(gl::Program::createUniform):
(gl::Program::decorateAttribute):
(gl::Program::undecorateUniform):
(gl::Program::applyUniformnbv):
(gl::Program::applyUniformnfv):
(gl::Program::applyUniform1iv):
(gl::Program::applyUniform2iv):
(gl::Program::applyUniform3iv):
(gl::Program::applyUniform4iv):
(gl::Program::applyUniformniv):
(gl::Program::appendToInfoLogSanitized):
(gl::Program::unlink):
(gl::Program::getActiveUniform):
(gl::Program::getActiveUniformCount):
(gl::Program::getActiveUniformMaxLength):
(gl::Program::validateSamplers):
(gl::Program::initializeConstantHandles):
(gl::Program::getDxCoordLocation):
* src/libGLESv2/Program.h:
* src/libGLESv2/Renderbuffer.cpp:
(gl::RenderbufferInterface::RenderbufferInterface):
(gl::RenderbufferInterface::getRedSize):
(gl::RenderbufferInterface::getGreenSize):
(gl::RenderbufferInterface::getBlueSize):
(gl::RenderbufferInterface::getAlphaSize):
(gl::RenderbufferInterface::getDepthSize):
(gl::RenderbufferInterface::getStencilSize):
(gl::RenderbufferTexture::RenderbufferTexture):
(gl::RenderbufferTexture::~RenderbufferTexture):
(gl::RenderbufferTexture::getRenderTarget):
(gl::RenderbufferTexture::getDepthStencil):
(gl::RenderbufferTexture::getWidth):
(gl::RenderbufferTexture::getHeight):
(gl::RenderbufferTexture::getInternalFormat):
(gl::RenderbufferTexture::getD3DFormat):
(gl::RenderbufferTexture::getSamples):
(gl::RenderbufferTexture::getSerial):
(gl::Renderbuffer::Renderbuffer):
(gl::Renderbuffer::~Renderbuffer):
(gl::Renderbuffer::getRenderTarget):
(gl::Renderbuffer::getDepthStencil):
(gl::Renderbuffer::getWidth):
(gl::Renderbuffer::getHeight):
(gl::Renderbuffer::getInternalFormat):
(gl::Renderbuffer::getD3DFormat):
(gl::Renderbuffer::getRedSize):
(gl::Renderbuffer::getGreenSize):
(gl::Renderbuffer::getBlueSize):
(gl::Renderbuffer::getAlphaSize):
(gl::Renderbuffer::getDepthSize):
(gl::Renderbuffer::getStencilSize):
(gl::Renderbuffer::getSamples):
(gl::Renderbuffer::getSerial):
(gl::Renderbuffer::setStorage):
(gl::RenderbufferStorage::getD3DFormat):
(gl::RenderbufferStorage::issueCubeSerials):
(gl::Colorbuffer::Colorbuffer):
(gl::Colorbuffer::getRenderTarget):
(gl::Depthbuffer::Depthbuffer):
(gl::Stencilbuffer::Stencilbuffer):
* src/libGLESv2/Renderbuffer.h:
(gl::RenderbufferInterface::~RenderbufferInterface):
* src/libGLESv2/Shader.cpp:
(gl::Shader::getTranslatedSourceLength):
(gl::Shader::getSourceImpl):
(gl::Shader::getSource):
(gl::Shader::getTranslatedSource):
* src/libGLESv2/Shader.h:
* src/libGLESv2/Texture.cpp:
(gl::ConvertTextureFormatType):
(gl::IsTextureFormatRenderable):
(gl::Image::Image):
(gl::Image::~Image):
(gl::Image::redefine):
(gl::Image::createSurface):
(gl::Image::lock):
(gl::Image::unlock):
(gl::Image::isRenderableFormat):
(gl::Image::getD3DFormat):
(gl::Image::getSurface):
(gl::Image::setManagedSurface):
(gl::Image::updateSurface):
(gl::Image::loadData):
(gl::Image::loadAlphaData):
(gl::Image::loadAlphaFloatData):
(gl::Image::loadAlphaHalfFloatData):
(gl::Image::loadLuminanceData):
(gl::Image::loadLuminanceFloatData):
(gl::Image::loadLuminanceHalfFloatData):
(gl::Image::loadLuminanceAlphaData):
(gl::Image::loadLuminanceAlphaFloatData):
(gl::Image::loadLuminanceAlphaHalfFloatData):
(gl::Image::loadRGBUByteData):
(gl::Image::loadRGB565Data):
(gl::Image::loadRGBFloatData):
(gl::Image::loadRGBHalfFloatData):
(gl::Image::loadRGBAUByteDataSSE2):
(gl::Image::loadRGBAUByteData):
(gl::Image::loadRGBA4444Data):
(gl::Image::loadRGBA5551Data):
(gl::Image::loadRGBAFloatData):
(gl::Image::loadRGBAHalfFloatData):
(gl::Image::loadBGRAData):
(gl::Image::loadCompressedData):
(gl::FlipCopyDXT1BlockFull):
(gl::FlipCopyDXT1BlockHalf):
(gl::FlipCopyDXT3BlockFull):
(gl::FlipCopyDXT3BlockHalf):
(gl::FlipCopyDXT5BlockFull):
(gl::FlipCopyDXT5BlockHalf):
(gl::Image::loadDXT1Data):
(gl::Image::loadDXT3Data):
(gl::Image::loadDXT5Data):
(gl::Image::copy):
(gl::TextureStorage::TextureStorage):
(gl::TextureStorage::~TextureStorage):
(gl::TextureStorage::isRenderTarget):
(gl::TextureStorage::isManaged):
(gl::TextureStorage::getPool):
(gl::TextureStorage::getTextureSerial):
(gl::TextureStorage::issueTextureSerial):
(gl::Texture::Texture):
(gl::Texture::~Texture):
(gl::Texture::setMinFilter):
(gl::Texture::setMagFilter):
(gl::Texture::setWrapS):
(gl::Texture::setWrapT):
(gl::Texture::setUsage):
(gl::Texture::getMinFilter):
(gl::Texture::getMagFilter):
(gl::Texture::getWrapS):
(gl::Texture::getWrapT):
(gl::Texture::getUsage):
(gl::Texture::setImage):
(gl::Texture::setCompressedImage):
(gl::Texture::subImage):
(gl::Texture::subImageCompressed):
(gl::Texture::getTexture):
(gl::Texture::hasDirtyParameters):
(gl::Texture::hasDirtyImages):
(gl::Texture::resetDirty):
(gl::Texture::getTextureSerial):
(gl::Texture::getRenderTargetSerial):
(gl::Texture::isImmutable):
(gl::Texture::creationLevels):
(gl::Texture::getBlitter):
(gl::Texture::copyToRenderTarget):
(gl::TextureStorage2D::TextureStorage2D):
(gl::TextureStorage2D::~TextureStorage2D):
(gl::TextureStorage2D::getSurfaceLevel):
(gl::TextureStorage2D::getBaseTexture):
(gl::TextureStorage2D::getRenderTargetSerial):
(gl::Texture2D::Texture2D):
(gl::Texture2D::~Texture2D):
(gl::Texture2D::getWidth):
(gl::Texture2D::getHeight):
(gl::Texture2D::getInternalFormat):
(gl::Texture2D::getType):
(gl::Texture2D::redefineImage):
(gl::Texture2D::setImage):
(gl::Texture2D::bindTexImage):
(gl::Texture2D::releaseTexImage):
(gl::Texture2D::setCompressedImage):
(gl::Texture2D::commitRect):
(gl::Texture2D::copyImage):
(gl::Texture2D::copySubImage):
(gl::Texture2D::storage):
(gl::Texture2D::isSamplerComplete):
(gl::Texture2D::isMipmapComplete):
(gl::Texture2D::getBaseTexture):
(gl::Texture2D::createTexture):
(gl::Texture2D::updateTexture):
(gl::Texture2D::convertToRenderTarget):
(gl::Texture2D::generateMipmaps):
(gl::Texture2D::getRenderbuffer):
(gl::Texture2D::getRenderTarget):
(gl::Texture2D::getStorage):
(gl::TextureStorageCubeMap::TextureStorageCubeMap):
(gl::TextureStorageCubeMap::~TextureStorageCubeMap):
(gl::TextureStorageCubeMap::getCubeMapSurface):
(gl::TextureStorageCubeMap::getBaseTexture):
(gl::TextureStorageCubeMap::getRenderTargetSerial):
(gl::TextureCubeMap::TextureCubeMap):
(gl::TextureCubeMap::~TextureCubeMap):
(gl::TextureCubeMap::getWidth):
(gl::TextureCubeMap::getHeight):
(gl::TextureCubeMap::getInternalFormat):
(gl::TextureCubeMap::getType):
(gl::TextureCubeMap::setCompressedImage):
(gl::TextureCubeMap::commitRect):
(gl::TextureCubeMap::subImage):
(gl::TextureCubeMap::subImageCompressed):
(gl::TextureCubeMap::isSamplerComplete):
(gl::TextureCubeMap::isCubeComplete):
(gl::TextureCubeMap::isMipmapCubeComplete):
(gl::TextureCubeMap::getBaseTexture):
(gl::TextureCubeMap::createTexture):
(gl::TextureCubeMap::updateTexture):
(gl::TextureCubeMap::convertToRenderTarget):
(gl::TextureCubeMap::setImage):
(gl::TextureCubeMap::redefineImage):
(gl::TextureCubeMap::copyImage):
(gl::TextureCubeMap::copySubImage):
(gl::TextureCubeMap::storage):
(gl::TextureCubeMap::generateMipmaps):
(gl::TextureCubeMap::getRenderbuffer):
(gl::TextureCubeMap::getRenderTarget):
(gl::TextureCubeMap::getStorage):
* src/libGLESv2/Texture.h:
(gl::Image::markDirty):
(gl::Image::markClean):
(gl::Image::getWidth):
(gl::Image::getHeight):
(gl::Image::getFormat):
(gl::Image::getType):
(gl::Image::isDirty):
* src/libGLESv2/VertexDataManager.cpp:
(gl::elementsInBuffer):
(gl::VertexDataManager::VertexDataManager):
(gl::VertexDataManager::writeAttributeData):
(gl::VertexDataManager::prepareVertexData):
(gl::VertexBuffer::VertexBuffer):
(gl::VertexBuffer::getSerial):
(gl::VertexBuffer::issueSerial):
(gl::StreamingVertexBuffer::reserveRequiredSpace):
(gl::StaticVertexBuffer::map):
(gl::StaticVertexBuffer::reserveRequiredSpace):
(gl::StaticVertexBuffer::lookupAttribute):
* src/libGLESv2/VertexDataManager.h:
(gl::ArrayVertexBuffer::size):
* src/libGLESv2/geometry/IndexDataManager.cpp: Removed.
* src/libGLESv2/geometry/IndexDataManager.h: Removed.
* src/libGLESv2/geometry/VertexDataManager.cpp: Removed.
* src/libGLESv2/geometry/VertexDataManager.h: Removed.
* src/libGLESv2/geometry/vertexconversion.h: Removed.
* src/libGLESv2/libGLESv2.cpp:
(validateSubImageParams):
(validReadFormatType):
(Extension::glBindTexImage):
* src/libGLESv2/libGLESv2.def:
* src/libGLESv2/libGLESv2.rc:
* src/libGLESv2/libGLESv2.vcproj:
* src/libGLESv2/main.cpp:
(gl::getNonLostContext):
(gl::checkDeviceLost):
* src/libGLESv2/main.h:
* src/libGLESv2/utilities.cpp:
(gl::UniformExternalComponentCount):
(gl::UniformInternalComponentCount):
(gl::UniformComponentSize):
(gl::UniformInternalSize):
(gl::UniformExternalSize):
(gl::ComputeCompressedSize):
(gl::IsCompressed):
(gl::ExtractFormat):
(gl::ExtractType):
(dx2es::IsFloat32Format):
(dx2es::IsFloat16Format):
* src/libGLESv2/utilities.h:
(isDeviceLostError):

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

10 years agoUse HashMap<OwnPtr> in SVGAttributeToPropertyMap
caio.oliveira@openbossa.org [Sat, 7 Jan 2012 01:23:41 +0000 (01:23 +0000)]
Use HashMap<OwnPtr> in SVGAttributeToPropertyMap
https://bugs.webkit.org/show_bug.cgi?id=75734

Reviewed by Daniel Bates.

* svg/properties/SVGAttributeToPropertyMap.cpp:
(WebCore::SVGAttributeToPropertyMap::addProperties):
(WebCore::SVGAttributeToPropertyMap::addProperty): use HashMap::add() to avoid an
extra hash lookup to set a new PropertiesVector.
(WebCore::SVGAttributeToPropertyMap::synchronizeProperties):
* svg/properties/SVGAttributeToPropertyMap.h:

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

10 years agoUnreviewed: more rebaselines in chromium after r104240.
dslomov@google.com [Sat, 7 Jan 2012 01:22:47 +0000 (01:22 +0000)]
Unreviewed: more rebaselines in chromium after r104240.

* platform/chromium-cg-mac-leopard/fast/css/input-search-padding-expected.png: Removed.
* platform/chromium-cg-mac-leopard/fast/events/context-no-deselect-expected.png: Removed.
* platform/chromium-cg-mac-leopard/fast/forms/input-appearance-disabled-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-appearance-focus-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-appearance-height-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-appearance-preventDefault-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-appearance-readonly-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-appearance-selection-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-double-click-selection-gap-bug-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-readonly-autoscroll-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-text-click-inside-expected.png: Added.
* platform/chromium-cg-mac-leopard/fast/forms/input-text-scroll-left-on-blur-expected.png:
* platform/chromium-cg-mac-leopard/fast/forms/input-text-word-wrap-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug12384-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/forms/textfield-overflow-expected.png.
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug18359-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug24200-expected.png: Added.
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug28928-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug4382-expected.png: Added.
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug4527-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug46368-1-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug46368-2-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug51037-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug55545-expected.png: Copied from LayoutTests/platform/chromium-mac/fast/forms/number/input-appearance-spinbutton-layer-expected.png.
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug59354-expected.png: Added.
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug7342-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug96334-expected.png:
* platform/chromium-cg-mac-leopard/tables/mozilla/bugs/bug99948-expected.png: Added.
* platform/chromium-cg-mac-leopard/tables/mozilla_expected_failures/bugs/bug92647-1-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-disabled-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-focus-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-height-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-preventDefault-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-readonly-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-selection-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-double-click-selection-gap-bug-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-readonly-autoscroll-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-text-click-inside-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-text-scroll-left-on-blur-expected.png:
* platform/chromium-cg-mac-snowleopard/fast/forms/input-text-word-wrap-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/fast/forms/input-width-expected.png: Removed.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug12384-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac-leopard/fast/forms/textfield-overflow-expected.png.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug18359-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug28928-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug4382-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug4527-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug46368-1-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug46368-2-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug51037-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug55545-expected.png: Copied from LayoutTests/platform/chromium-mac-leopard/fast/forms/number/input-appearance-spinbutton-layer-expected.png.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug59354-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug7342-expected.png:
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug96334-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla/bugs/bug99948-expected.png: Added.
* platform/chromium-cg-mac-snowleopard/tables/mozilla_expected_failures/bugs/bug92647-1-expected.png: Added.
* platform/chromium-cg-mac/editing/selection/3690703-2-expected.png: Removed.
* platform/chromium-cg-mac/editing/selection/3690703-expected.png: Removed.
* platform/chromium-cg-mac/editing/selection/3690719-expected.png: Removed.
* platform/chromium-cg-mac/editing/selection/4975120-expected.png: Removed.
* platform/chromium-cg-mac/fast/block/margin-collapse/103-expected.png: Removed.
* platform/chromium-cg-mac/fast/dom/isindex-001-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/input-appearance-bkcolor-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/input-appearance-focus-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/input-appearance-height-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/input-appearance-readonly-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/input-double-click-selection-gap-bug-expected.png: Removed.
* platform/chromium-cg-mac/fast/forms/minWidthPercent-expected.png: Removed.
* platform/chromium-linux-x86/tables/mozilla/bugs/bug4527-expected.png: Added.
* platform/chromium-linux/tables/mozilla/bugs/bug4527-expected.png:
* platform/chromium-mac-leopard/editing/inserting/before-after-input-element-expected.png:
* platform/chromium-mac-leopard/editing/pasteboard/4806874-expected.png:
* platform/chromium-mac-leopard/editing/pasteboard/drop-text-without-selection-expected.png:
* platform/chromium-mac-leopard/editing/pasteboard/input-field-1-expected.png:
* platform/chromium-mac-leopard/editing/selection/3690703-2-expected.png:
* platform/chromium-mac-leopard/editing/selection/3690703-expected.png:
* platform/chromium-mac-leopard/editing/selection/3690719-expected.png:
* platform/chromium-mac-leopard/editing/selection/4895428-3-expected.png:
* platform/chromium-mac-leopard/editing/selection/4975120-expected.png:
* platform/chromium-mac-leopard/editing/selection/drag-select-1-expected.png:
* platform/chromium-mac-leopard/editing/selection/select-across-readonly-input-1-expected.png:
* platform/chromium-mac-leopard/editing/selection/select-across-readonly-input-2-expected.png:
* platform/chromium-mac-leopard/editing/selection/select-across-readonly-input-3-expected.png:
* platform/chromium-mac-leopard/editing/selection/select-across-readonly-input-4-expected.png:
* platform/chromium-mac-leopard/editing/selection/select-across-readonly-input-5-expected.png:
* platform/chromium-mac-leopard/fast/block/margin-collapse/103-expected.png:
* platform/chromium-mac-leopard/fast/css/input-search-padding-expected.png:
* platform/chromium-mac-leopard/fast/css/line-height-expected.png:
* platform/chromium-mac-leopard/fast/dom/isindex-001-expected.png:
* platform/chromium-mac-leopard/fast/dom/isindex-002-expected.png:
* platform/chromium-mac-leopard/fast/events/autoscroll-expected.png:
* platform/chromium-mac-leopard/fast/events/context-no-deselect-expected.png:
* platform/chromium-mac-leopard/fast/forms/basic-inputs-expected.png:
* platform/chromium-mac-leopard/fast/forms/encoding-test-expected.png:
* platform/chromium-mac-leopard/fast/forms/fieldset-align-expected.png:
* platform/chromium-mac-leopard/fast/forms/floating-textfield-relayout-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-bkcolor-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-default-bkcolor-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-disabled-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-focus-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-height-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-preventDefault-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-readonly-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-selection-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-visibility-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-appearance-width-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-baseline-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-double-click-selection-gap-bug-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-field-text-truncated-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-placeholder-visibility-1-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-placeholder-visibility-3-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-readonly-autoscroll-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-readonly-dimmed-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-readonly-empty-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-spaces-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-table-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-text-click-inside-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-text-click-outside-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-text-self-emptying-click-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-text-word-wrap-expected.png:
* platform/chromium-mac-leopard/fast/forms/input-type-text-min-width-expected.png:
* platform/chromium-mac-leopard/fast/forms/minWidthPercent-expected.png:
* platform/chromium-mac-leopard/fast/forms/number/input-appearance-number-rtl-expected.png:
* platform/chromium-mac-leopard/fast/forms/number/input-appearance-spinbutton-disabled-readonly-expected.png:
* platform/chromium-mac-leopard/fast/forms/number/input-appearance-spinbutton-layer-expected.png:
* platform/chromium-mac-leopard/fast/forms/placeholder-position-expected.png:
* platform/chromium-mac-leopard/fast/forms/placeholder-pseudo-style-expected.png:
* platform/chromium-mac-leopard/fast/forms/plaintext-mode-2-expected.png:
* platform/chromium-mac-leopard/fast/forms/text-style-color-expected.png:
* platform/chromium-mac-leopard/fast/forms/textfield-focus-ring-expected.png:
* platform/chromium-mac-leopard/fast/forms/validation-message-appearance-expected.png:
* platform/chromium-mac-leopard/fast/forms/visual-hebrew-text-field-expected.png:
* platform/chromium-mac-leopard/fast/frames/take-focus-from-iframe-expected.png:
* platform/chromium-mac-leopard/fast/html/details-no-summary4-expected.png:
* platform/chromium-mac-leopard/fast/html/details-open-javascript-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug12384-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug18359-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug24200-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug28928-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug4382-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug4527-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug46368-1-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug46368-2-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug51037-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug55545-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/forms/number/input-appearance-spinbutton-layer-expected.png.
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug59354-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug7342-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug96334-expected.png:
* platform/chromium-mac-leopard/tables/mozilla/bugs/bug99948-expected.png:
* platform/chromium-mac-leopard/tables/mozilla_expected_failures/bugs/bug92647-1-expected.png:
* platform/chromium-mac-snowleopard/editing/inserting/before-after-input-element-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/pasteboard/4806874-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/pasteboard/drop-text-without-selection-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/pasteboard/input-field-1-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/3690703-2-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/3690703-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/3690719-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/4895428-3-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/4975120-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/drag-select-1-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/select-across-readonly-input-1-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/select-across-readonly-input-2-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/select-across-readonly-input-3-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/select-across-readonly-input-4-expected.png: Added.
* platform/chromium-mac-snowleopard/editing/selection/select-across-readonly-input-5-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/block/margin-collapse/103-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/css/input-search-padding-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/css/line-height-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/dom/isindex-001-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/dom/isindex-002-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/events/autoscroll-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/events/context-no-deselect-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/forms/minWidthPercent-expected.png.
* platform/chromium-mac-snowleopard/fast/forms/basic-inputs-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/encoding-test-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/fieldset-align-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/floating-textfield-relayout-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-bkcolor-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-default-bkcolor-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-disabled-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-focus-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-height-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-preventDefault-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-readonly-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-selection-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-visibility-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-appearance-width-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-baseline-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-double-click-selection-gap-bug-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-field-text-truncated-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-placeholder-visibility-1-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/input-placeholder-visibility-3-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/input-readonly-autoscroll-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-readonly-dimmed-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-readonly-empty-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-spaces-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-table-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-text-click-inside-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-text-click-outside-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-text-self-emptying-click-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-text-word-wrap-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/input-type-text-min-width-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/number/input-appearance-number-rtl-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/number/input-appearance-spinbutton-disabled-readonly-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/number/input-appearance-spinbutton-layer-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac-snowleopard/fast/forms/minWidthPercent-expected.png.
* platform/chromium-mac-snowleopard/fast/forms/placeholder-position-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/placeholder-pseudo-style-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/plaintext-mode-2-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/text-style-color-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/textfield-focus-ring-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/forms/textfield-overflow-expected.png: Copied from LayoutTests/platform/chromium-mac-leopard/tables/mozilla/bugs/bug12384-expected.png.
* platform/chromium-mac-snowleopard/fast/forms/validation-message-appearance-expected.png:
* platform/chromium-mac-snowleopard/fast/forms/visual-hebrew-text-field-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/forms/visual-hebrew-text-field-expected.png.
* platform/chromium-mac-snowleopard/fast/frames/take-focus-from-iframe-expected.png: Added.
* platform/chromium-mac-snowleopard/fast/html/details-no-summary4-expected.png: Copied from LayoutTests/platform/chromium-mac-leopard/fast/forms/minWidthPercent-expected.png.
* platform/chromium-mac-snowleopard/fast/html/details-open-javascript-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug12384-expected.png: Renamed from LayoutTests/platform/chromium-mac/tables/mozilla/bugs/bug12384-expected.png.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug18359-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug28928-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug4382-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug4527-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug46368-1-expected.png: Renamed from LayoutTests/platform/chromium-mac/tables/mozilla/bugs/bug46368-1-expected.png.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug46368-2-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug51037-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug55545-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/html/details-no-summary4-expected.png.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug59354-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug7342-expected.png:
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug96334-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla/bugs/bug99948-expected.png: Added.
* platform/chromium-mac-snowleopard/tables/mozilla_expected_failures/bugs/bug92647-1-expected.png: Added.
* platform/chromium-mac/editing/inserting/before-after-input-element-expected.png: Removed.
* platform/chromium-mac/editing/pasteboard/4806874-expected.png: Removed.
* platform/chromium-mac/editing/pasteboard/drop-text-without-selection-expected.png: Removed.
* platform/chromium-mac/editing/pasteboard/input-field-1-expected.png: Removed.
* platform/chromium-mac/editing/selection/3690703-2-expected.png: Removed.
* platform/chromium-mac/editing/selection/3690703-expected.png: Removed.
* platform/chromium-mac/editing/selection/3690719-expected.png: Removed.
* platform/chromium-mac/editing/selection/4895428-3-expected.png: Removed.
* platform/chromium-mac/editing/selection/4975120-expected.png: Removed.
* platform/chromium-mac/editing/selection/drag-select-1-expected.png: Removed.
* platform/chromium-mac/editing/selection/select-across-readonly-input-1-expected.png: Removed.
* platform/chromium-mac/editing/selection/select-across-readonly-input-2-expected.png: Removed.
* platform/chromium-mac/editing/selection/select-across-readonly-input-3-expected.png: Removed.
* platform/chromium-mac/editing/selection/select-across-readonly-input-4-expected.png: Removed.
* platform/chromium-mac/editing/selection/select-across-readonly-input-5-expected.png: Removed.
* platform/chromium-mac/fast/block/margin-collapse/103-expected.png: Removed.
* platform/chromium-mac/fast/css/input-search-padding-expected.png: Removed.
* platform/chromium-mac/fast/css/line-height-expected.png: Removed.
* platform/chromium-mac/fast/dom/isindex-001-expected.png: Removed.
* platform/chromium-mac/fast/dom/isindex-002-expected.png: Removed.
* platform/chromium-mac/fast/events/autoscroll-expected.png: Removed.
* platform/chromium-mac/fast/events/context-no-deselect-expected.png: Removed.
* platform/chromium-mac/fast/forms/encoding-test-expected.png: Removed.
* platform/chromium-mac/fast/forms/fieldset-align-expected.png: Removed.
* platform/chromium-mac/fast/forms/floating-textfield-relayout-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-bkcolor-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-default-bkcolor-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-focus-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-height-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-height-expected.txt: Removed.
* platform/chromium-mac/fast/forms/input-appearance-preventDefault-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-readonly-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-selection-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-visibility-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-appearance-width-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-baseline-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-double-click-selection-gap-bug-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-field-text-truncated-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-readonly-autoscroll-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-readonly-dimmed-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-readonly-empty-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-spaces-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-table-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-text-click-inside-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-text-click-outside-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-text-self-emptying-click-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-text-word-wrap-expected.png: Removed.
* platform/chromium-mac/fast/forms/input-type-text-min-width-expected.png: Removed.
* platform/chromium-mac/fast/forms/number/input-appearance-number-rtl-expected.png: Removed.
* platform/chromium-mac/fast/forms/plaintext-mode-2-expected.png: Removed.
* platform/chromium-mac/fast/forms/text-style-color-expected.png: Removed.
* platform/chromium-mac/fast/forms/textfield-focus-ring-expected.png: Removed.
* platform/chromium-mac/fast/frames/take-focus-from-iframe-expected.png: Removed.
* platform/chromium-mac/fast/html/details-open-javascript-expected.png: Removed.
* platform/chromium-mac/tables/mozilla/bugs/bug18359-expected.png: Removed.
* platform/chromium-mac/tables/mozilla/bugs/bug28928-expected.png: Removed.
* platform/chromium-mac/tables/mozilla/bugs/bug4382-expected.png: Removed.
* platform/chromium-mac/tables/mozilla/bugs/bug46368-2-expected.png: Removed.
* platform/chromium-mac/tables/mozilla/bugs/bug51037-expected.png: Removed.
* platform/chromium-mac/tables/mozilla/bugs/bug59354-expected.png: Removed.
* platform/chromium-mac/tables/mozilla/bugs/bug96334-expected.png: Removed.
* platform/chromium-mac/tables/mozilla/bugs/bug99948-expected.png: Removed.
* platform/chromium-mac/tables/mozilla_expected_failures/bugs/bug92647-1-expected.png: Removed.
* platform/chromium-win/tables/mozilla/bugs/bug4527-expected.png:
* platform/chromium/fast/block/float/032-expected.png: Added.
* platform/chromium/fast/forms/input-appearance-height-expected.txt: Renamed from LayoutTests/platform/chromium-cg-mac/fast/forms/input-appearance-height-expected.txt.
* platform/chromium/fast/forms/input-width-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac-leopard/fast/forms/input-width-expected.png.
* platform/chromium/fast/forms/minWidthPercent-expected.png: Renamed from LayoutTests/platform/chromium-cg-mac-leopard/fast/forms/minWidthPercent-expected.png.
* platform/chromium/tables/mozilla/bugs/bug24200-expected.png: Added.
* platform/chromium/test_expectations.txt:
* platform/mac-snowleopard/fast/forms/basic-inputs-expected.txt: Removed.
* platform/mac-snowleopard/fast/forms/fieldset-align-expected.txt: Removed.
* platform/mac-snowleopard/fast/forms/input-appearance-height-expected.txt: Removed.
* platform/mac-snowleopard/fast/forms/input-table-expected.txt: Removed.
* platform/mac-snowleopard/fast/forms/placeholder-position-expected.txt: Removed.
* platform/mac/editing/input/caret-at-the-edge-of-input-expected.txt: Renamed from LayoutTests/editing/input/caret-at-the-edge-of-input-expected.txt.

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

10 years agoFix DRT build on case-sensitive file systems.
simon.fraser@apple.com [Sat, 7 Jan 2012 01:02:05 +0000 (01:02 +0000)]
Fix DRT build on case-sensitive file systems.

Fix case of include of WebDynamicScrollBarsView.h

* DumpRenderTree/mac/DumpRenderTree.mm:

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

10 years agohttps://bugs.webkit.org/show_bug.cgi?id=75296
commit-queue@webkit.org [Sat, 7 Jan 2012 00:54:54 +0000 (00:54 +0000)]
https://bugs.webkit.org/show_bug.cgi?id=75296
JSString should not have JS_EXPORTCLASS annotation

Patch by Hajime Morrita <morrita@chromium.org> on 2012-01-06
Reviewed by Kevin Ollivier.

* runtime/JSString.h: Removed JS_EXPORTCLASS annotation.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
Added missing symbols which were hidden by JS_EXPORTCLASS.

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

10 years agoSource/WebCore: WebCore implementation of the Intent object
abarth@webkit.org [Sat, 7 Jan 2012 00:53:44 +0000 (00:53 +0000)]
Source/WebCore: WebCore implementation of the Intent object
See http://dvcs.w3.org/hg/web-intents/raw-file/tip/spec/Overview.html
for draft spec.

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

Patch by Greg Billock <gbillock@google.com> on 2012-01-06
Reviewed by Adam Barth.

Test: web-intents/web-intents-api.html

* WebCore.gypi:
* page/DOMWindow.idl:
* Modules/intents/Intent.cpp: Added.
(WebCore::Intent::Intent):
(WebCore::Intent::action):
(WebCore::Intent::setAction):
(WebCore::Intent::type):
(WebCore::Intent::setType):
(WebCore::Intent::data):
(WebCore::Intent::setData):
(WebCore::Intent::create):
* Modules/intents/Intent.h: Added.
* Modules/intents/Intent.idl: Added.

Source/WebKit/chromium: [Web Intents] Flagged-off WebCore implementation of navigator.startActivity
https://bugs.webkit.org/show_bug.cgi?id=73051

Patch by Greg Billock <gbillock@google.com> on 2012-01-06
Reviewed by Adam Barth.

* features.gypi:

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

10 years ago[cg] userSpaceOnUse SVG Patterns have the wrong origin
timothy_horton@apple.com [Sat, 7 Jan 2012 00:29:37 +0000 (00:29 +0000)]
[cg] userSpaceOnUse SVG Patterns have the wrong origin
https://bugs.webkit.org/show_bug.cgi?id=75741
<rdar://problem/9383222>

Reviewed by Simon Fraser.

The transformation from pattern space to user space should use the userToBase CTM,
not the current CTM.

Test: svg/custom/pattern-userSpaceOnUse-userToBaseTransform.xhtml

* platform/graphics/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::applyStrokePattern):
(WebCore::GraphicsContext::applyFillPattern):
(WebCore::GraphicsContext::getCTM):
* platform/graphics/cg/TransformationMatrixCG.cpp:
(WebCore::AffineTransform::AffineTransform): Add a AffineTransform(CGAffineTransform) constructor
* platform/graphics/transforms/AffineTransform.h:

Add a test that ensures that userSpaceOnUse patterns are rendered in the
correct orientation and location in both the accelerated compositing and
regular cases, as well as with SVG translation.

* platform/mac/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.png: Added.
* platform/mac/svg/custom/pattern-userSpaceOnUse-userToBaseTransform-expected.txt: Added.
* svg/custom/pattern-userSpaceOnUse-userToBaseTransform.xhtml: Added.

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

10 years agoJSArray::pop() should compare SparseArrayValueMap::find() to SparseArrayValueMap...
msaboff@apple.com [Sat, 7 Jan 2012 00:27:48 +0000 (00:27 +0000)]
JSArray::pop() should compare SparseArrayValueMap::find() to SparseArrayValueMap::notFound()
https://bugs.webkit.org/show_bug.cgi?id=75757

Reviewed by Gavin Barraclough.

* runtime/JSArray.cpp:
(JSC::JSArray::pop): Changed map->end() to map->notFound().

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

10 years ago[chromium] Rebaseline media/media-document-audio-repaint after 74123 goes in.
commit-queue@webkit.org [Sat, 7 Jan 2012 00:14:51 +0000 (00:14 +0000)]
[chromium] Rebaseline media/media-document-audio-repaint after 74123 goes in.
https://bugs.webkit.org/show_bug.cgi?id=75505

Patch by Dale Curtis <dalecurtis@chromium.org> on 2012-01-06
Reviewed by Dimitri Glazkov.

* platform/chromium-cg-mac-leopard/media/media-document-audio-repaint-expected.png:
* platform/chromium-cg-mac-snowleopard/media/media-document-audio-repaint-expected.png:
* platform/chromium-gpu-cg-mac/media/media-document-audio-repaint-expected.png:
* platform/chromium-gpu-win/media/media-document-audio-repaint-expected.png:
* platform/chromium-linux/media/media-document-audio-repaint-expected.png:
* platform/chromium-mac-leopard/media/media-document-audio-repaint-expected.png:
* platform/chromium-mac-snowleopard/media/media-document-audio-repaint-expected.png:
* platform/chromium-win/media/media-document-audio-repaint-expected.png:
* platform/chromium/test_expectations.txt:

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

10 years agoLayoutTests/platform/chromium/fast/events/intercept-postmessage.html failing
commit-queue@webkit.org [Fri, 6 Jan 2012 23:41:30 +0000 (23:41 +0000)]
LayoutTests/platform/chromium/fast/events/intercept-postmessage.html failing
https://bugs.webkit.org/show_bug.cgi?id=75718

Patch by Charlie Reis <creis@chromium.org> on 2012-01-06
Reviewed by Adam Barth.

Removing unnecessary log messages.

* platform/chromium/fast/events/intercept-postmessage-expected.txt:
* platform/chromium/fast/events/intercept-postmessage.html:

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

10 years agoAvoid falling into tiled layers more often when the device scale factor is > 1
simon.fraser@apple.com [Fri, 6 Jan 2012 23:39:07 +0000 (23:39 +0000)]
Avoid falling into tiled layers more often when the device scale factor is > 1
<rdar://problem/10588725>

Source/WebCore:

Reviewed by John Sullivan.

Stop taking the device scale factor into account when deciding to make
tiled layers.

Test: compositing/tiled-layers-hidpi.html

* platform/graphics/ca/GraphicsLayerCA.cpp:
(WebCore::GraphicsLayerCA::requiresTiledLayer):

LayoutTests:

Reviewed by John Sullivan.

Tests that a large layer with a device scale factor of 2 is not tiled.

* compositing/tiled-layers-hidpi-expected.txt: Added.
* compositing/tiled-layers-hidpi.html: Added.

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

10 years agoPixel results from DumpRenderTree and WebKitTestRunner don't match because of colorsp...
simon.fraser@apple.com [Fri, 6 Jan 2012 23:34:53 +0000 (23:34 +0000)]
Pixel results from DumpRenderTree and WebKitTestRunner don't match because of colorspace issues
https://bugs.webkit.org/show_bug.cgi?id=75662

Reviewed by Dan Bernstein.

The pixel results generated by DumpRenderTree and WebKitTestRunner differed because
of color profile issues. Fix by keeping everything in device RGB and ensuring that the
test window uses the main display's color space, so that the pixel values in the bitmap
that gets checksummed are identical to the CSS colors.

Removed the code that switches the display profile in DRT, since that is no longer required.

* DumpRenderTree/PixelDumpSupport.h: Remove unused function declarations.
* DumpRenderTree/mac/DumpRenderTree.mm:
(crashHandler): Remove code that switches display profiles.
(prepareConsistentTestingEnvironment): Ditto.
(dumpRenderTree): Ditto.
* DumpRenderTree/mac/PixelDumpSupportMac.mm: Ditto.
(createBitmapContext): Use DeviceRGB for the bitmap colorspace.
(createBitmapContextFromWebView): Add comment about the colorspace handling.
* WebKitTestRunner/cg/TestInvocationCG.cpp:
(WTR::createCGContextFromImage): Use a RetainPtr, add comment.
(WTR::computeMD5HashStringForContext): Simplify the #ifdefs around the braces.
* WebKitTestRunner/mac/PlatformWebViewMac.mm:
(WTR::PlatformWebView::PlatformWebView): Set the window's colorspace to that of the main display.
(WTR::PlatformWebView::windowSnapshotImage): Add comment about colorspaces.

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

10 years agoTouch a bunch of files in an attempt to fix Mac release builds.
rniwa@webkit.org [Fri, 6 Jan 2012 23:28:47 +0000 (23:28 +0000)]
Touch a bunch of files in an attempt to fix Mac release builds.

* accessibility/AXObjectCache.cpp:
(WebCore::AXObjectCache::get):
* accessibility/AccessibilityAllInOne.cpp:
* editing/visible_units.cpp:
(WebCore::previousBoundary):

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

10 years agoJIT stub slow paths that would be identical to that of an interpreter should be facto...
fpizlo@apple.com [Fri, 6 Jan 2012 23:20:48 +0000 (23:20 +0000)]
JIT stub slow paths that would be identical to that of an interpreter should be factored out
https://bugs.webkit.org/show_bug.cgi?id=75743
<rdar://problem/10657024>

Reviewed by Geoff Garen.

* GNUmakefile.list.am:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
* jit/JITStubs.cpp:
(JSC::DEFINE_STUB_FUNCTION):
* runtime/CommonSlowPaths.h: Added.
(JSC::CommonSlowPaths::opInstanceOfSlow):
(JSC::CommonSlowPaths::opIn):
(JSC::CommonSlowPaths::opResolve):
(JSC::CommonSlowPaths::opResolveSkip):
(JSC::CommonSlowPaths::opResolveWithBase):
(JSC::CommonSlowPaths::opResolveWithThis):

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

10 years agoEnable a compositing trigger for filters
noam.rosenthal@nokia.com [Fri, 6 Jan 2012 23:13:02 +0000 (23:13 +0000)]
Enable a compositing trigger for filters
https://bugs.webkit.org/show_bug.cgi?id=75658

This will enable forcing the compositing code path when filters exist for a RenderObject.

Reviewed by Simon Fraser.

No new functionality so no new tests.

* page/ChromeClient.h:
* rendering/RenderLayerCompositor.cpp:
(WebCore::RenderLayerCompositor::requiresCompositingLayer):
(WebCore::RenderLayerCompositor::requiresCompositingForFilters):
* rendering/RenderLayerCompositor.h:

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

10 years agoRebaseline editing/input/caret-at-the-edge-of-input.html.
abarth@webkit.org [Fri, 6 Jan 2012 23:01:21 +0000 (23:01 +0000)]
Rebaseline editing/input/caret-at-the-edge-of-input.html.

* platform/chromium-mac-leopard/editing/input/caret-at-the-edge-of-input-expected.png:
* platform/chromium-mac-snowleopard/editing/input/caret-at-the-edge-of-input-expected.png:

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

10 years agoAdd and use ScrollElasticityControllerClient::absoluteScrollPosition
andersca@apple.com [Fri, 6 Jan 2012 22:58:50 +0000 (22:58 +0000)]
Add and use ScrollElasticityControllerClient::absoluteScrollPosition
https://bugs.webkit.org/show_bug.cgi?id=75744

Reviewed by Dan Bernstein.

* platform/mac/ScrollAnimatorMac.h:
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::absoluteScrollPosition):
(WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
* platform/mac/ScrollElasticityController.h:

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

10 years agoMove FrameDestructionObserver to its own file
abarth@webkit.org [Fri, 6 Jan 2012 22:54:54 +0000 (22:54 +0000)]
Move FrameDestructionObserver to its own file
https://bugs.webkit.org/show_bug.cgi?id=75693

Reviewed by Eric Seidel.

We should have one class per file, on general principles.  Also, this
make it possible to use this class in DOMWindow without introducing a
circular include dependency.

* CMakeLists.txt:
* GNUmakefile.list.am:
* Target.pri:
* WebCore.gypi:
* WebCore.vcproj/WebCore.vcproj:
* page/Frame.cpp:
* page/Frame.h:
* page/FrameDestructionObserver.cpp: Added.
(WebCore::FrameDestructionObserver::FrameDestructionObserver):
(WebCore::FrameDestructionObserver::~FrameDestructionObserver):
(WebCore::FrameDestructionObserver::frameDestroyed):
* page/FrameDestructionObserver.h: Added.
(WebCore::FrameDestructionObserver::frame):
* plugins/DOMMimeType.h:
* plugins/DOMPlugin.h:

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

10 years agorun-api-tests: specify individual suites and tests on the command-line
ddkilzer@apple.com [Fri, 6 Jan 2012 22:46:20 +0000 (22:46 +0000)]
run-api-tests: specify individual suites and tests on the command-line

Reviewed by Adam Roben.

Fixes: <http://webkit.org/b/75065> run-api-tests should be able to run individual suites and tests
The run-api-tests script will now accept a list of arguments on
the command-line that are used as prefix filters.  To run all
tests in a suite that starts with "WTF" (WTF and WTF_Vector)
use:

    $ run-api-tests WTF

To run only the tests in the "WTF" suite, not the "WTF_Vector"
suite, use:

    $ run-api-tests WTF.

* Scripts/run-api-tests: Filter tests if any prefix arguments
are passed on the command-line.

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

10 years agorun-api-tests: change internal representation of tests to array of "SuiteName.TestNam...
ddkilzer@apple.com [Fri, 6 Jan 2012 22:46:12 +0000 (22:46 +0000)]
run-api-tests: change internal representation of tests to array of "SuiteName.TestName" strings

Reviewed by Adam Roben.

Part of: <http://webkit.org/b/75065> run-api-tests should be able to run individual suites and tests

* Scripts/run-api-tests:
(dumpTestsBySuite): Update to accept array of tests instead of
hash data structure.
(runTestsBySuite): Ditto.
(listAllTests): Rename from populateTests().  Update to return
an array of tests instad of the hash data structure.

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

10 years agoFix Snow Leopard build.
andersca@apple.com [Fri, 6 Jan 2012 22:27:45 +0000 (22:27 +0000)]
Fix Snow Leopard build.

* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::immediateScrollBy):
Move the function definition inside #if ENABLE(RUBBER_BANDING).

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

10 years agowebkitpy: clean up test/uri conversion routines
dpranke@chromium.org [Fri, 6 Jan 2012 22:27:18 +0000 (22:27 +0000)]
webkitpy: clean up test/uri conversion routines
https://bugs.webkit.org/show_bug.cgi?id=75648

Reviewed by Eric Seidel.

This change moves test_to_uri and uri_to_test from the Port
class to the Driver class (the routines were only being
called by the drivers), and removes a bunch of stale and/or
busted logic.

* Scripts/webkitpy/layout_tests/port/base.py:
* Scripts/webkitpy/layout_tests/port/base_unittest.py:
* Scripts/webkitpy/layout_tests/port/chromium.py:
* Scripts/webkitpy/layout_tests/port/chromium_unittest.py:
* Scripts/webkitpy/layout_tests/port/driver.py:
(is_http_test):
(test_to_uri):
(uri_to_test):
* Scripts/webkitpy/layout_tests/port/mock_drt.py:
(run_one_test):
* Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py:
(MockDRTTest.input_line):
(input_line):
(expected_output):
* Scripts/webkitpy/layout_tests/port/test.py:
* Scripts/webkitpy/layout_tests/port/webkit.py:
(_command_from_driver_input):

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

10 years agoFix windows build.
weinig@apple.com [Fri, 6 Jan 2012 22:22:45 +0000 (22:22 +0000)]
Fix windows build.

* wtf/TypeTraits.cpp:

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

10 years agoDefault HashTraits for Opcode don't work for Opcode = 0
msaboff@apple.com [Fri, 6 Jan 2012 22:15:31 +0000 (22:15 +0000)]
Default HashTraits for Opcode don't work for Opcode = 0
https://bugs.webkit.org/show_bug.cgi?id=75595

Reviewed by Oliver Hunt.

Removed the populating of the m_opcodeIDTable table in the
case where the OpcodeID and Opcode are the same (m_enabled is false).
Instead we just cast the one type to the other.

* interpreter/Interpreter.cpp:
(JSC::Interpreter::initialize):
(JSC::Interpreter::isOpcode):
* interpreter/Interpreter.h:
(JSC::Interpreter::getOpcodeID):

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

10 years agoUnreviewed: filed https://bugs.webkit.org/show_bug.cgi?id=75742
dslomov@google.com [Fri, 6 Jan 2012 22:13:51 +0000 (22:13 +0000)]
Unreviewed: filed https://bugs.webkit.org/show_bug.cgi?id=75742
and updated chromium-mac expectations for fast/forms/input-disabled-color.html.

* platform/chromium/test_expectations.txt:

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

10 years agoMake JavaScriptCore.framework a reference and put it in a Frameworks group
andersca@apple.com [Fri, 6 Jan 2012 22:08:13 +0000 (22:08 +0000)]
Make JavaScriptCore.framework a reference and put it in a Frameworks group
https://bugs.webkit.org/show_bug.cgi?id=75740

Reviewed by Mark Rowe.

* gtest/xcode/gtest.xcodeproj/project.pbxproj:

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

10 years ago [Mac] Thread verifier assertions when printing
ap@apple.com [Fri, 6 Jan 2012 22:01:00 +0000 (22:01 +0000)]
    [Mac] Thread verifier assertions when printing
        https://bugs.webkit.org/show_bug.cgi?id=75738

        Reviewed by Sam Weinig.

        * UIProcess/API/mac/WKPrintingView.mm:
        (-[WKPrintingView dealloc]): Dealloc in main thread, so that WebFrameProxy doesn't get
        deref'ed from a secondary one.
        (-[WKPrintingView _adjustPrintingMarginsForHeaderAndFooter]): This method calls out to client,
        which only expects that on main thread.
        (-[WKPrintingView knowsPageRange:]): Call _adjustPrintingMarginsForHeaderAndFooter on main
        thread.

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

10 years agoAdd a DecayArray type trait as a first step towards merging OwnPtr and OwnArrayPtr
weinig@apple.com [Fri, 6 Jan 2012 21:57:22 +0000 (21:57 +0000)]
Add a DecayArray type trait as a first step towards merging OwnPtr and OwnArrayPtr
https://bugs.webkit.org/show_bug.cgi?id=75737

Reviewed by Anders Carlsson.

* wtf/TypeTraits.cpp:
* wtf/TypeTraits.h:
Added a DecayArray trait, that can convert T[] and T[3] -> T*. DecayArray
is composed of some helpers which are also exposed, Conditional<>, which
can provide one type or another based on a boolean predicate, IsArray<>
which can deduce array types, and RemoveExtent<>, which removes the extent
from an array type.

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

10 years agoClicking on the cancel button on readonly and disabled search fields darkens as if...
jonlee@apple.com [Fri, 6 Jan 2012 21:55:12 +0000 (21:55 +0000)]
Clicking on the cancel button on readonly and disabled search fields darkens as if the search field was editable
https://bugs.webkit.org/show_bug.cgi?id=69886
<rdar://problem/10070187>

Reviewed by Adele Peterson.

.:

* ManualTests/search-cancel-button.html: Added.

Source/WebCore:

Tests: ManualTests/search-cancel-button.html

* rendering/RenderThemeMac.mm:
(WebCore::RenderThemeMac::paintSearchFieldCancelButton): If the input is readonly and/or disabled, force the cell to
render without highlight.

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

10 years agoMitigate scrollbar differences when running pixel tests
simon.fraser@apple.com [Fri, 6 Jan 2012 21:44:50 +0000 (21:44 +0000)]
Mitigate scrollbar differences when running pixel tests
https://bugs.webkit.org/show_bug.cgi?id=67217

Source/WebCore:

Reviewed by Dan Bernstein.

Export WebCore::Settings::mockScrollbarsEnabled() for DRT.

* WebCore.exp.in:

Source/WebKit/mac:

Reviewed by Dan Bernstein.

Make it possible to register a custom NSScroller class, which
the WebDynamicScrollBarsView will use when mock scrollbars are enabled.

Also ensure that the WebPreferences mock scrollbars preference is
migrated into Settings.

* WebView/WebDynamicScrollBarsView.h:
* WebView/WebDynamicScrollBarsView.mm:
(+[WebDynamicScrollBarsView _horizontalScrollerClass]):
(+[WebDynamicScrollBarsView _verticalScrollerClass]):
(+[WebDynamicScrollBarsView setCustomScrollerClass:]):
* WebView/WebView.mm:
(-[WebView _preferencesChanged:]):

Tools:

Reviewed by Dan Bernstein.

Add an NSScroller subclass that draws mock scrollbars identically
to the WebCore mock scrollbar theme, and register it with the
WebDynamicScrollbarsView.

* DumpRenderTree/mac/DumpRenderTree.mm:
(-[DRTMockScroller rectForPart:]):
(-[DRTMockScroller drawKnob]):
(-[DRTMockScroller drawRect:]):
(registerMockScrollbars):
(prepareConsistentTestingEnvironment):

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

10 years agoGetByteArrayLength is incorrect
oliver@apple.com [Fri, 6 Jan 2012 21:19:54 +0000 (21:19 +0000)]
GetByteArrayLength is incorrect
https://bugs.webkit.org/show_bug.cgi?id=75735

Reviewed by Filip Pizlo.

Load the byte array length from the correct location.
This stops an existing test from hanging.

* dfg/DFGSpeculativeJIT32_64.cpp:
(JSC::DFG::SpeculativeJIT::compile):
* dfg/DFGSpeculativeJIT64.cpp:
(JSC::DFG::SpeculativeJIT::compile):

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

10 years agoSource/WebCore: Pass Content-Security-Policy directives to worker threads.
tsepez@chromium.org [Fri, 6 Jan 2012 21:18:25 +0000 (21:18 +0000)]
Source/WebCore: Pass Content-Security-Policy directives to worker threads.
https://bugs.webkit.org/show_bug.cgi?id=73242

Reviewed by David Levin.

Tests: http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html
       http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html
       http/tests/security/contentSecurityPolicy/worker-connect-src-allowed.html
       http/tests/security/contentSecurityPolicy/worker-connect-src-blocked.html

* page/ContentSecurityPolicy.h:
(WebCore::ContentSecurityPolicy::policy):
(WebCore::ContentSecurityPolicy::headerType):
* workers/DedicatedWorkerContext.cpp:
(WebCore::DedicatedWorkerContext::DedicatedWorkerContext):
* workers/DedicatedWorkerContext.h:
(WebCore::DedicatedWorkerContext::create):
* workers/DedicatedWorkerThread.cpp:
(WebCore::DedicatedWorkerThread::create):
(WebCore::DedicatedWorkerThread::DedicatedWorkerThread):
(WebCore::DedicatedWorkerThread::createWorkerContext):
* workers/DedicatedWorkerThread.h:
* workers/DefaultSharedWorkerRepository.cpp:
(WebCore::SharedWorkerScriptLoader::notifyFinished):
(WebCore::DefaultSharedWorkerRepository::workerScriptLoaded):
* workers/DefaultSharedWorkerRepository.h:
* workers/SharedWorkerContext.cpp:
(WebCore::SharedWorkerContext::SharedWorkerContext):
* workers/SharedWorkerContext.h:
(WebCore::SharedWorkerContext::create):
* workers/SharedWorkerThread.cpp:
(WebCore::SharedWorkerThread::create):
(WebCore::SharedWorkerThread::SharedWorkerThread):
(WebCore::SharedWorkerThread::createWorkerContext):
* workers/SharedWorkerThread.h:
* workers/WorkerContext.cpp:
(WebCore::WorkerContext::WorkerContext):
* workers/WorkerContext.h:
* workers/WorkerMessagingProxy.cpp:
(WebCore::WorkerMessagingProxy::startWorkerContext):
* workers/WorkerThread.cpp:
(WebCore::WorkerThreadStartupData::create):
(WebCore::WorkerThreadStartupData::WorkerThreadStartupData):
(WebCore::WorkerThread::WorkerThread):
(WebCore::WorkerThread::workerThread):
* workers/WorkerThread.h:

Source/WebKit/chromium: Pass Content-security-policy directive to worker threads.
https://bugs.webkit.org/show_bug.cgi?id=73242

Reviewed by David Levin.

* src/WebSharedWorkerImpl.cpp:
(WebKit::WebSharedWorkerImpl::startWorkerContext):
* src/WebWorkerClientImpl.cpp:
(WebKit::WebWorkerClientImpl::startWorkerContext):

LayoutTests: Pass Content-Security-Policy directives to worker threads.
https://bugs.webkit.org/show_bug.cgi?id=73242

Reviewed by David Levin.

* http/tests/security/contentSecurityPolicy/resources/shared-worker-make-xhr.js: Added.
(onconnect):
* http/tests/security/contentSecurityPolicy/resources/worker-make-xhr.js: Added.
* http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/shared-worker-connect-src-allowed.html: Added.
* http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/shared-worker-connect-src-blocked.html: Added.
* http/tests/security/contentSecurityPolicy/worker-connect-src-allowed-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/worker-connect-src-allowed.html: Added.
* http/tests/security/contentSecurityPolicy/worker-connect-src-blocked-expected.txt: Added.
* http/tests/security/contentSecurityPolicy/worker-connect-src-blocked.html: Added.
* platform/chromium/test_expectations.txt:

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

10 years ago[CSSRegions]Crash while collecting svg elements in render flow thread.
mihnea@adobe.com [Fri, 6 Jan 2012 21:15:14 +0000 (21:15 +0000)]
[CSSRegions]Crash while collecting svg elements in render flow thread.
https://bugs.webkit.org/show_bug.cgi?id=73735

Reviewed by David Hyatt.

Source/WebCore:

Tests: fast/regions/svg-doc-fragment-not-collected-expected.html
       fast/regions/svg-doc-fragment-not-collected.html
       fast/regions/svg-element-not-collected-expected.html
       fast/regions/svg-element-not-collected.html
       fast/regions/svg-root-element-collected.html

By allowing only svg root elements to be collected in a render flow thread,
the svg render tree is properly constructed, thus prevented a possible further crash.

* dom/NodeRenderingContext.cpp:
(WebCore::NodeRenderingContext::moveToFlowThreadIfNeeded):

LayoutTests:

* fast/regions/resources/region-style.css:
* fast/regions/svg-doc-fragment-not-collected-expected.html: Added.
* fast/regions/svg-doc-fragment-not-collected.html: Added.
* fast/regions/svg-element-not-collected-expected.html: Added.
* fast/regions/svg-element-not-collected.html: Added.
* fast/regions/svg-root-element-collected-expected.txt: Added.
* fast/regions/svg-root-element-collected.html: Added.

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

10 years agoMake TextTrackCue more mutable
eric.carlson@apple.com [Fri, 6 Jan 2012 21:12:40 +0000 (21:12 +0000)]
Make TextTrackCue more mutable
https://bugs.webkit.org/show_bug.cgi?id=72555

Reviewed by Anders Carlsson.

Source/WebCore:

Test: media/track/track-cue-mutable.html

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::updateActiveTextTrackCues): Do nothing if the "ignore cue updates"
    flag is set
(WebCore::HTMLMediaElement::textTrackAddCues): Block cue updates until all of the new cues have
    been added, then call updateActiveTextTrackCues so update the display if necessary.
(WebCore::HTMLMediaElement::textTrackRemoveCues): Block cue updates until all of the new cues have
    been removed, then call updateActiveTextTrackCues so update the display if necessary.
(WebCore::HTMLMediaElement::textTrackAddCue): Call updateActiveTextTrackCues so update the display if necessary.
(WebCore::HTMLMediaElement::textTrackRemoveCue): Ditto.
* html/HTMLMediaElement.h:
(WebCore::HTMLMediaElement::ignoreTrackDisplayUpdateRequests):
(WebCore::HTMLMediaElement::beginIgnoringTrackDisplayUpdateRequests):
(WebCore::HTMLMediaElement::endIgnoringTrackDisplayUpdateRequests):

* html/TextTrack.cpp:
(WebCore::TextTrack::cueWillChange): New, remove the cue from the media element because its
    position in the interval tree is based on start and end times.
(WebCore::TextTrack::cueDidChange): Add the cue to the media element.
* html/TextTrack.h:

* html/TextTrackCue.cpp:
(WebCore::startKeyword): New, use a static String for the constant.
(WebCore::middleKeyword): Ditto.
(WebCore::endKeyword): Ditto.
(WebCore::horizontalKeyword): Ditto.
(WebCore::verticalKeyword): Ditto.
(WebCore::verticallrKeyword): Ditto.
(WebCore::TextTrackCue::cueWillChange): New, tell the track the cue is about to change.
(WebCore::TextTrackCue::cueDidChange): New, tell the track the cue has changed.
(WebCore::TextTrackCue::setId): New, attribute is mutable.
(WebCore::TextTrackCue::setStartTime): Ditto.
(WebCore::TextTrackCue::setEndTime): Ditto.
(WebCore::TextTrackCue::setPauseOnExit): Ditto.
(WebCore::TextTrackCue::direction): Ditto.
(WebCore::TextTrackCue::setDirection): Ditto.
(WebCore::TextTrackCue::setSnapToLines): Ditto.
(WebCore::TextTrackCue::setLinePosition): Ditto.
(WebCore::TextTrackCue::setTextPosition): Ditto.
(WebCore::TextTrackCue::setSize): Ditto.
(WebCore::TextTrackCue::alignment): Ditto.
(WebCore::TextTrackCue::setAlignment): Ditto.
(WebCore::TextTrackCue::parseSettings): Use the static strings.
* html/TextTrackCue.h:
(WebCore::TextTrackCue::id):
(WebCore::TextTrackCue::startTime):
(WebCore::TextTrackCue::endTime):
(WebCore::TextTrackCue::pauseOnExit):
* html/TextTrackCue.idl:

LayoutTests:

* media/track/track-cue-mutable-expected.txt: Added.
* media/track/track-cue-mutable.html: Added.

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

10 years agoFix build.
fpizlo@apple.com [Fri, 6 Jan 2012 20:44:50 +0000 (20:44 +0000)]
Fix build.

* JavaScriptCore.xcodeproj/project.pbxproj:

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

10 years agoDFG no longer optimises CanvasPixelArray
oliver@apple.com [Fri, 6 Jan 2012 20:38:42 +0000 (20:38 +0000)]
DFG no longer optimises CanvasPixelArray
https://bugs.webkit.org/show_bug.cgi?id=75729

Reviewed by Gavin Barraclough.

Source/JavaScriptCore:

Rename ByteArray (in its ClassInfo) to Uint8ClampedArray to match
the future name when we switch over to the new typed-array based
ImageData specification.

* runtime/JSByteArray.cpp:

Source/WebCore:

Remove the custom ClassInfo for CanvasPixelArray as that is
defeating ByteArray optimisation, and is no longer needed
anyway as it was only there to change the visible name.

* bindings/js/JSImageDataCustom.cpp:
(WebCore::toJS):

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

10 years ago[Mac] Sort the resources of WTF.xcodeproj
benjamin@webkit.org [Fri, 6 Jan 2012 20:31:05 +0000 (20:31 +0000)]
[Mac] Sort the resources of WTF.xcodeproj
https://bugs.webkit.org/show_bug.cgi?id=75639

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-01-06
Reviewed by Andreas Kling.

* WTF.xcodeproj/project.pbxproj:

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

10 years agoASSERT failure due to combine-text with preceding spaces
commit-queue@webkit.org [Fri, 6 Jan 2012 20:30:15 +0000 (20:30 +0000)]
ASSERT failure due to combine-text with preceding spaces
https://bugs.webkit.org/show_bug.cgi?id=65147

Patch by Ken Buchanan <kenrb@chromium.org> on 2012-01-06
Reviewed by David Hyatt.

Source/WebCore:

A couple of ASSERTs were failing due to a parsing problem when
advancing an inline iterator to the next linebreak in a
RenderCombineText. skipLeadingWhitespace advances the iterator
over leading whitespace but when searching for the line break
nextLineBreak would call RenderCombineText::combineText(),
collapsing the text so that the iterator is pointing past the
end of it.

This patch causes combineText() to be called during
skipLeadingWhiteSpace before iteration over the RenderCombineText
begins.

* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::LineBreaker::nextLineBreak):
(WebCore::RenderBlock::LineBreaker::skipLeadingWhitespace):

LayoutTests:

New test with combine-text that begins with mutiple spaces,
showing ASSERT failures in bug 65147.

* fast/text/international/spaces-combined-in-vertical-text.html: Added
* fast/text/international/spaces-combined-in-vertical-text-expected.txt: Added

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

10 years agoMake ScrollAnimatorMac::snapRubberBandTimerFired use m_scrollElasticityController...
andersca@apple.com [Fri, 6 Jan 2012 20:25:40 +0000 (20:25 +0000)]
Make ScrollAnimatorMac::snapRubberBandTimerFired use m_scrollElasticityController in more places
https://bugs.webkit.org/show_bug.cgi?id=75726

Reviewed by Sam Weinig.

* platform/mac/ScrollAnimatorMac.h:
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::canScrollHorizontally):
(WebCore::ScrollAnimatorMac::canScrollVertically):
(WebCore::ScrollAnimatorMac::snapRubberBandTimerFired):
* platform/mac/ScrollElasticityController.h:

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

10 years agoWebKit1 fails to compile with USE(CFNETWORK) and HAVE(NETWORK_CFDATA_ARRAY_CALLBACK)
psolanki@apple.com [Fri, 6 Jan 2012 20:22:53 +0000 (20:22 +0000)]
WebKit1 fails to compile with USE(CFNETWORK) and HAVE(NETWORK_CFDATA_ARRAY_CALLBACK)
https://bugs.webkit.org/show_bug.cgi?id=75675

Reviewed by Oliver Hunt.

* platform/network/cf/ResourceHandleCFNet.cpp:
(WebCore::willCacheResponse):

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

10 years ago Need to allow SCNetworkReachability service in sandbox profile
ap@apple.com [Fri, 6 Jan 2012 20:21:23 +0000 (20:21 +0000)]
    Need to allow SCNetworkReachability service in sandbox profile
        https://bugs.webkit.org/show_bug.cgi?id=75724
        <rdar://problem/10652415>

        Reviewed by Mark Rowe.

        * WebProcess/com.apple.WebProcess.sb:

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

10 years agoUse HashMap<OwnPtr> for SourceProviderCache items
caio.oliveira@openbossa.org [Fri, 6 Jan 2012 20:20:24 +0000 (20:20 +0000)]
Use HashMap<OwnPtr> for SourceProviderCache items
https://bugs.webkit.org/show_bug.cgi?id=75346

Reviewed by Daniel Bates.

* parser/Parser.cpp:
* parser/SourceProviderCache.cpp:
(JSC::SourceProviderCache::clear):
(JSC::SourceProviderCache::add):
* parser/SourceProviderCache.h:

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

10 years agoCrash with range selection across different documents.
inferno@chromium.org [Fri, 6 Jan 2012 20:15:59 +0000 (20:15 +0000)]
Crash with range selection across different documents.
https://bugs.webkit.org/show_bug.cgi?id=74285

Reviewed by Ryosuke Niwa.

Source/WebCore:

Test: fast/dom/Range/range-selection-across-documents-crash.html

* page/DOMSelection.cpp:
(WebCore::DOMSelection::addRange):

LayoutTests:

* fast/dom/Range/range-selection-across-documents-crash-expected.txt: Added.
* fast/dom/Range/range-selection-across-documents-crash.html: Added.

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

10 years agoUnreviewed; fixing expectation error.
dslomov@google.com [Fri, 6 Jan 2012 20:12:50 +0000 (20:12 +0000)]
Unreviewed; fixing expectation error.

* platform/chromium/test_expectations.txt:

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

10 years agoRemove unused OwnFastMallocPtr class.
weinig@apple.com [Fri, 6 Jan 2012 20:09:26 +0000 (20:09 +0000)]
Remove unused OwnFastMallocPtr class.
https://bugs.webkit.org/show_bug.cgi?id=75722

Reviewed by Geoffrey Garen.

../JavaScriptCore:

* GNUmakefile.list.am:
* JavaScriptCore.gypi:
* JavaScriptCore.vcproj/WTF/WTF.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
* wtf/CMakeLists.txt:
* wtf/OwnFastMallocPtr.h: Removed.
* wtf/text/StringImpl.h:
* wtf/wtf.pro:

../JavaScriptGlue:

* ForwardingHeaders/wtf/OwnFastMallocPtr.h: Removed.

../WebCore:

* ForwardingHeaders/wtf/OwnFastMallocPtr.h: Removed.
* bindings/js/JSWebGLRenderingContextCustom.cpp:

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

10 years agoConvert overflow-in-uniform-regions to a reftest
commit-queue@webkit.org [Fri, 6 Jan 2012 20:07:33 +0000 (20:07 +0000)]
Convert overflow-in-uniform-regions to a reftest
https://bugs.webkit.org/show_bug.cgi?id=74765

Replaced the bitmap version of the test with a "reftest" version.   Use of text
has been revised a little to mitigate the possibility that small differences in
the platform's default font will change the location of line breaks.

Patch by Hans Muller <hmuller@adobe.com> on 2012-01-06
Reviewed by Anders Carlsson.

* fast/regions/overflow-in-uniform-regions-expected.html: Added.
* fast/regions/overflow-in-uniform-regions.html:
* platform/efl/fast/regions/overflow-in-uniform-regions-expected.png: Removed.
* platform/efl/fast/regions/overflow-in-uniform-regions-expected.txt: Removed.
* platform/mac/fast/regions/overflow-in-uniform-regions-expected.png: Removed.
* platform/mac/fast/regions/overflow-in-uniform-regions-expected.txt: Removed.

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

10 years agoNeed to relayout when stretching the height of a flex item
tony@chromium.org [Fri, 6 Jan 2012 20:05:06 +0000 (20:05 +0000)]
Need to relayout when stretching the height of a flex item
https://bugs.webkit.org/show_bug.cgi?id=75661

Reviewed by Ojan Vafai.

Source/WebCore:

Test: css3/flexbox/flex-align-stretch.html

* rendering/RenderFlexibleBox.cpp:
(WebCore::RenderFlexibleBox::computePreferredMainAxisExtent): Always clear the override size since
it may be set when aligning.
(WebCore::RenderFlexibleBox::alignChildren): Only relayout if the height changed.

LayoutTests:

* css3/flexbox/flex-align-stretch-expected.txt: Added.
* css3/flexbox/flex-align-stretch.html: Added.

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

10 years agoAdd ScrollElasticityControllerClient::immediateScrollBy
andersca@apple.com [Fri, 6 Jan 2012 20:01:55 +0000 (20:01 +0000)]
Add ScrollElasticityControllerClient::immediateScrollBy
https://bugs.webkit.org/show_bug.cgi?id=75720

Reviewed by Andreas Kling.

Add a new ScrollElasticityControllerClient::immediateScrollBy client member function.
Also, make ScrollAnimatorMac::smoothScrollWithEvent calls go through the ScrollElasticityController
in preparation for moving that function to ScrollElasticityController.

* platform/mac/ScrollAnimatorMac.h:
* platform/mac/ScrollAnimatorMac.mm:
(WebCore::ScrollAnimatorMac::smoothScrollWithEvent):
* platform/mac/ScrollElasticityController.h:

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

10 years ago[Mac] Sort the resources of WebKit2.xcodeproj
benjamin@webkit.org [Fri, 6 Jan 2012 20:00:06 +0000 (20:00 +0000)]
[Mac] Sort the resources of WebKit2.xcodeproj
https://bugs.webkit.org/show_bug.cgi?id=75636

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-01-06
Reviewed by Andreas Kling.

* WebKit2.xcodeproj/project.pbxproj:

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

10 years ago2012-01-06 Dmitry Lomov <dslomov@google.com>
dslomov@google.com [Fri, 6 Jan 2012 19:52:18 +0000 (19:52 +0000)]
2012-01-06  Dmitry Lomov  <dslomov@google.com>

Unreviewed: [Chromium] rebaselining IMAGE expectations after http://trac.webkit.org/changeset/104240/

        * platform/chromium-cg-mac-leopard/editing/input/caret-at-the-edge-of-input-expected.png:
        * platform/chromium-cg-mac-leopard/editing/inserting/before-after-input-element-expected.png: Added.
        * platform/chromium-cg-mac-leopard/editing/pasteboard/4806874-expected.png:
        * platform/chromium-cg-mac-leopard/editing/pasteboard/drop-text-without-selection-expected.png: Added.
        * platform/chromium-cg-mac-leopard/editing/pasteboard/input-field-1-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/3690703-2-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/3690703-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/3690719-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/4895428-3-expected.png: Added.
        * platform/chromium-cg-mac-leopard/editing/selection/4975120-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/drag-select-1-expected.png: Added.
        * platform/chromium-cg-mac-leopard/editing/selection/select-across-readonly-input-1-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/select-across-readonly-input-2-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/select-across-readonly-input-3-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/select-across-readonly-input-4-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/select-across-readonly-input-5-expected.png:
        * platform/chromium-cg-mac-leopard/editing/selection/select-from-textfield-outwards-expected.png:
        * platform/chromium-cg-mac-leopard/fast/block/margin-collapse/103-expected.png:
        * platform/chromium-cg-mac-leopard/fast/css/input-search-padding-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/css/line-height-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/dom/isindex-001-expected.png:
        * platform/chromium-cg-mac-leopard/fast/dom/isindex-002-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/events/autoscroll-expected.png:
        * platform/chromium-cg-mac-leopard/fast/events/context-no-deselect-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/basic-inputs-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/encoding-test-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/fieldset-align-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/floating-textfield-relayout-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/input-appearance-bkcolor-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-appearance-default-bkcolor-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-appearance-visibility-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-appearance-width-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-baseline-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/input-field-text-truncated-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-placeholder-visibility-1-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-placeholder-visibility-3-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-readonly-dimmed-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-readonly-empty-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/input-spaces-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-table-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-text-click-outside-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/input-text-double-click-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-text-drag-down-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/input-text-option-delete-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/input-text-self-emptying-click-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/input-type-text-min-width-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/input-width-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/minWidthPercent-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/number/input-appearance-number-rtl-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/number/input-appearance-spinbutton-disabled-readonly-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/number/input-appearance-spinbutton-layer-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/placeholder-position-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/placeholder-pseudo-style-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/plaintext-mode-2-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/tabbing-input-iframe-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/text-style-color-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/textfield-focus-ring-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/textfield-overflow-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/forms/validation-message-appearance-expected.png:
        * platform/chromium-cg-mac-leopard/fast/forms/visual-hebrew-text-field-expected.png:
        * platform/chromium-cg-mac-leopard/fast/frames/take-focus-from-iframe-expected.png: Added.
        * platform/chromium-cg-mac-leopard/fast/html/details-no-summary4-expected.png:
        * platform/chromium-cg-mac-leopard/fast/html/details-open-javascript-expected.png:
        * platform/chromium-cg-mac-leopard/fast/html/details-open2-expected.png:
        * platform/chromium-cg-mac-leopard/fast/html/details-open4-expected.png:
        * platform/chromium-cg-mac-snowleopard/editing/input/caret-at-the-edge-of-input-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/inserting/before-after-input-element-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/pasteboard/4806874-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/pasteboard/drop-text-without-selection-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/pasteboard/input-field-1-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/3690703-2-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/3690703-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/3690719-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/4895428-3-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/4975120-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/drag-select-1-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/select-across-readonly-input-1-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/select-across-readonly-input-2-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/select-across-readonly-input-3-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/select-across-readonly-input-4-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/select-across-readonly-input-5-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/editing/selection/select-from-textfield-outwards-expected.png:
        * platform/chromium-cg-mac-snowleopard/fast/block/margin-collapse/103-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/css/input-search-padding-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/css/line-height-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/dom/isindex-001-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/dom/isindex-002-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/events/autoscroll-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/events/context-no-deselect-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/basic-inputs-expected.png:
        * platform/chromium-cg-mac-snowleopard/fast/forms/encoding-test-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/fieldset-align-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/floating-textfield-relayout-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-bkcolor-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-default-bkcolor-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-visibility-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-appearance-width-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-baseline-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-field-text-truncated-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-placeholder-visibility-1-expected.png:
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-placeholder-visibility-3-expected.png:
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-readonly-dimmed-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-readonly-empty-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-spaces-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-table-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-text-click-outside-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-text-double-click-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-text-drag-down-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-text-option-delete-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-text-self-emptying-click-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-type-text-min-width-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/input-width-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/minWidthPercent-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/number/input-appearance-number-rtl-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/number/input-appearance-spinbutton-disabled-readonly-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/number/input-appearance-spinbutton-layer-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/placeholder-position-expected.png:
        * platform/chromium-cg-mac-snowleopard/fast/forms/placeholder-pseudo-style-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/plaintext-mode-2-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/tabbing-input-iframe-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/text-style-color-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/textfield-focus-ring-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/textfield-overflow-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/forms/validation-message-appearance-expected.png:
        * platform/chromium-cg-mac-snowleopard/fast/forms/visual-hebrew-text-field-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/frames/take-focus-from-iframe-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/html/details-no-summary4-expected.png: Copied from LayoutTests/platform/chromium-cg-mac-leopard/fast/html/details-no-summary4-expected.png.
        * platform/chromium-cg-mac-snowleopard/fast/html/details-open-javascript-expected.png: Added.
        * platform/chromium-cg-mac-snowleopard/fast/html/details-open2-expected.png: Copied from LayoutTests/platform/chromium-cg-mac-leopard/fast/html/details-open2-expected.png.
        * platform/chromium-cg-mac-snowleopard/fast/html/details-open4-expected.png: Copied from LayoutTests/platform/chromium-cg-mac-leopard/fast/html/details-open4-expected.png.

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

10 years agoUse VectorMath lib when possible to optimize the processing in WebAudio AudioBus
commit-queue@webkit.org [Fri, 6 Jan 2012 19:51:19 +0000 (19:51 +0000)]
Use VectorMath lib when possible to optimize the processing in WebAudio AudioBus
https://bugs.webkit.org/show_bug.cgi?id=75334

Patch by Wei James <james.wei@intel.com> on 2012-01-06
Reviewed by Kenneth Russell.

* platform/audio/AudioBus.cpp:
(WebCore::AudioBus::processWithGainFromMonoStereo):

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

10 years ago[Mac] Sort the resources of WebKit.xcodeproj
benjamin@webkit.org [Fri, 6 Jan 2012 19:47:02 +0000 (19:47 +0000)]
[Mac] Sort the resources of WebKit.xcodeproj
https://bugs.webkit.org/show_bug.cgi?id=75634

Patch by Benjamin Poulain <bpoulain@apple.com> on 2012-01-06
Reviewed by Andreas Kling.

* WebKit.xcodeproj/project.pbxproj:

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

10 years agoFullscreen video controller can't be dragged the first time I enter fullscreen
jer.noble@apple.com [Fri, 6 Jan 2012 19:38:46 +0000 (19:38 +0000)]
Fullscreen video controller can't be dragged the first time I enter fullscreen
https://bugs.webkit.org/show_bug.cgi?id=75709

Reviewed by Eric Carlson.

Source/WebCore:

No new tests; updated video-controls-drag.html.

When the media controls are created, check to see if we are full screen, and pass
that information to the newly created controls.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::createMediaControls):

LayoutTests:

Update the test to cover the case where the controls do not yet exist when entering
fullscreen.

* fullscreen/video-controls-drag.html:

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

10 years agoUpdate test expectations with rebaseline of fast/forms/listbox-clip.html from r104299.
jonlee@apple.com [Fri, 6 Jan 2012 19:30:16 +0000 (19:30 +0000)]
Update test expectations with rebaseline of fast/forms/listbox-clip.html from r104299.

Unreviewed.

* platform/mac/test_expectations.txt:

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

10 years ago[Mac] Sort the resources of JavaScriptCore.xcodeproj and remove duplicates
benjamin@webkit.org [Fri, 6 Jan 2012 19:21:41 +0000 (19:21 +0000)]
[Mac] Sort the resources of JavaScriptCore.xcodeproj and remove duplicates
https://bugs.webkit.org/show_bug.cgi?id=75631

Patch by Benjamin Poulain <bpoulain@webkit.org> on 2012-01-06
Reviewed by Andreas Kling.

* JavaScriptCore.xcodeproj/project.pbxproj:

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

10 years agoMedia Element: scrubbing in full-screen mode breaks playback.
jer.noble@apple.com [Fri, 6 Jan 2012 19:13:02 +0000 (19:13 +0000)]
Media Element: scrubbing in full-screen mode breaks playback.
https://bugs.webkit.org/show_bug.cgi?id=75650

Reviewed by John Sullivan.

Source/WebCore:

Test: fullscreen/video-controls-timeline.html

Only begin scrubbing if the panel itself is the mousedown event target.

* html/shadow/MediaControlElements.cpp:
(WebCore::MediaControlPanelElement::defaultEventHandler):

LayoutTests:

* fullscreen/video-controls-timeline-expected.txt: Added.
* fullscreen/video-controls-timeline.html: Added.

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

10 years agoAdd new (failing) test to Chromium test_expectations. Fix tracked by
jer.noble@apple.com [Fri, 6 Jan 2012 19:03:04 +0000 (19:03 +0000)]
Add new (failing) test to Chromium test_expectations.  Fix tracked by
https://bugs.webkit.org/show_bug.cgi?id=75716

Unreviewed; test expectations update.

* platform/chromium/test_expectations.txt:

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