WebKit-https.git
9 years ago2011-04-11 Thouraya ANDOLSI <thouraya.andolsi@st.com>
commit-queue@webkit.org [Mon, 11 Apr 2011 21:11:56 +0000 (21:11 +0000)]
2011-04-11  Thouraya ANDOLSI  <thouraya.andolsi@st.com>

        Reviewed by Oliver Hunt.

        SH4 JIT SUPPORT.
        https://bugs.webkit.org/show_bug.cgi?id=44329

        Enable JIT support for SH4 platforms.

        * configure.ac:

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

9 years ago2011-04-11 Daniel Cheng <dcheng@chromium.org>
dcheng@chromium.org [Mon, 11 Apr 2011 21:04:18 +0000 (21:04 +0000)]
2011-04-11  Daniel Cheng  <dcheng@chromium.org>

        Reviewed by Dmitry Titov.

        [chromium] Implement image/png support in DataTransferItems
        https://bugs.webkit.org/show_bug.cgi?id=58106

        Add a reftest to verify that the various bits in the pipeline work as expected.

        * editing/pasteboard/data-transfer-items-image-png-expected.html: Added.
        * editing/pasteboard/data-transfer-items-image-png.html: Added.
2011-04-11  Daniel Cheng  <dcheng@chromium.org>

        Reviewed by Dmitry Titov.

        [chromium] Implement image/png support in DataTransferItems
        https://bugs.webkit.org/show_bug.cgi?id=58106

        This patch implements DataTransferItem::getAsFile() using Blobs. In
        addition, plumbing for image/png has been added so image paste will be
        supported as long as the renderer makes that data available.

        Tests: editing/pasteboard/data-transfer-items-image-png.html

        * dom/DataTransferItem.h:
        * dom/DataTransferItem.idl:
        * platform/chromium/ClipboardMimeTypes.cpp:
        * platform/chromium/ClipboardMimeTypes.h:
        * platform/chromium/DataTransferItemChromium.cpp:
        (WebCore::DataTransferItemChromium::getAsString):
        (WebCore::DataTransferItemChromium::getAsFile):
        * platform/chromium/DataTransferItemChromium.h:
        * platform/chromium/PlatformBridge.h:
2011-04-11  Daniel Cheng  <dcheng@chromium.org>

        Reviewed by Dmitry Titov.

        [chromium] Implement image/png support in DataTransferItems
        https://bugs.webkit.org/show_bug.cgi?id=58106

        Add glue for reading image data from clipboard.

        * DEPS:
        * src/PlatformBridge.cpp:
        (WebCore::PlatformBridge::clipboardReadImage):

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

9 years ago2011-04-11 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Mon, 11 Apr 2011 21:02:23 +0000 (21:02 +0000)]
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [Gtk] Implement support for Embedded Objects
        https://bugs.webkit.org/show_bug.cgi?id=52148

        Expose special OBJECT character for replaced elements, implementing
        AtkText and AtkHyperlink when required.

        * accessibility/AccessibilityRenderObject.cpp:
        (WebCore::textIteratorBehaviorForTextRange): New helper function,
        to return the right behavior, depending on the platform, so it
        ensures that object replacement characters get emitted for GTK.
        (WebCore::AccessibilityRenderObject::textUnderElement): Use the
        new helper function textIteratorBehaviorForTextRange.
        (WebCore::AccessibilityRenderObject::stringValue): Ditto.
        (WebCore::AccessibilityRenderObject::indexForVisiblePosition):
        Consider replaced elements when calculating range length in GTK.

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (textForRenderer): Ouput the 'object replacement character' for
        replaced objects.
        (getSelectionOffsetsForObject): Consider replaced elements when
        calculating range length in GTK.
        (webkitAccessibleHypertextGetLink): Remove wrong extra check that
        were causing only links to be considered.
        (webkitAccessibleHypertextGetNLinks): Replace wrong 'isLink()'
        check with the right one, by checking that the right ATK interface
        is being implemented by the AtkObject.
        (getInterfaceMaskFromObject): Implement the Hyperlink interface
        both for links and replaced objects.
        (objectAndOffsetUnignored): Consider replaced elements when
        calculating range length in GTK.

        * accessibility/gtk/WebKitAccessibleHyperlink.cpp:
        (getRangeLengthForObject): Ensure spaces are used for replaced
        elements when calling to TextIterator::rangeLength().

        * editing/TextIterator.h: New value in the TextIteratorBehavior
        enumeration (TextIteratorEmitsObjectReplacementCharacters) and new
        private variable to consider that new option internally.
        * editing/TextIterator.cpp:
        (WebCore::TextIterator::TextIterator): Initialize the new private
        attribute m_emitsObjectReplacementCharacters in constructors.
        (WebCore::TextIterator::handleReplacedElement): Emit the 'object
        replacement character' when m_emitsObjectReplacementCharacters.
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [Gtk] Implement support for Embedded Objects
        https://bugs.webkit.org/show_bug.cgi?id=52148

        New accessibility unit test for embedded objects.

        * tests/testatk.c:
        (testWebkitAtkEmbeddedObjects): New unit test.
        (main): Added the new unit test.

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

9 years ago2011-04-11 Jia Pu <jpu@apple.com>
commit-queue@webkit.org [Mon, 11 Apr 2011 20:56:32 +0000 (20:56 +0000)]
2011-04-11  Jia Pu  <jpu@apple.com>

        Reviewed by Adele Peterson.

        Shouldn't carry out autocorrection when start typing a new word
        https://bugs.webkit.org/show_bug.cgi?id=58241
        <rdar://problem/9264736>

        See WebCore/ChangeLog for detail.

        * platform/mac-leopard/Skipped:
        * platform/mac-snowleopard/Skipped:
        * platform/mac-tiger/Skipped:
        * platform/mac/editing/spelling/autocorrection-at-beginning-of-word-1-expected.checksum: Added.
        * platform/mac/editing/spelling/autocorrection-at-beginning-of-word-1-expected.png: Added.
        * platform/mac/editing/spelling/autocorrection-at-beginning-of-word-1-expected.txt: Added.
        * platform/mac/editing/spelling/autocorrection-at-beginning-of-word-1.html: Added.
        * platform/mac/editing/spelling/autocorrection-at-beginning-of-word-2-expected.checksum: Added.
        * platform/mac/editing/spelling/autocorrection-at-beginning-of-word-2-expected.png: Added.
        * platform/mac/editing/spelling/autocorrection-at-beginning-of-word-2-expected.txt: Added.
        * platform/mac/editing/spelling/autocorrection-at-beginning-of-word-2.html: Added.
2011-04-11  Jia Pu  <jpu@apple.com>

        Reviewed by Adele Peterson.

        Shouldn't carry out autocorrection when start typing a new word
        https://bugs.webkit.org/show_bug.cgi?id=58241
        <rdar://problem/9264736>

        Tests: platform/mac/editing/spelling/autocorrection-at-beginning-of-word-1.html
               platform/mac/editing/spelling/autocorrection-at-beginning-of-word-2.html

        In TypingCommand::markMisspellingsAfterTyping(), we want to call Editor::markMisspellingsAfterTypingToWord()
        only when the typing command is an insertion command, and preceding word contains at least one non-whitespace
        character.

        * editing/Editor.cpp:
        (WebCore::Editor::markMisspellingsAfterTypingToWord):
        * editing/Editor.h:
        * editing/TypingCommand.cpp:
        (WebCore::TypingCommand::markMisspellingsAfterTyping):

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

9 years ago2011-04-11 Vsevolod Vlasov <vsevik@chromium.org>
commit-queue@webkit.org [Mon, 11 Apr 2011 20:45:39 +0000 (20:45 +0000)]
2011-04-11  Vsevolod Vlasov  <vsevik@chromium.org>

        Reviewed by Pavel Feldman.

        PerformanceTiming returns inconsistent values when timing is null.
        https://bugs.webkit.org/show_bug.cgi?id=58143

        Made PerformanceTiming returned values consistent when there is no timing object.

        * page/PerformanceTiming.cpp:
        (WebCore::PerformanceTiming::domainLookupStart):
        (WebCore::PerformanceTiming::domainLookupEnd):
        (WebCore::PerformanceTiming::connectStart):
        (WebCore::PerformanceTiming::connectEnd):
        (WebCore::PerformanceTiming::requestStart):
        (WebCore::PerformanceTiming::responseStart):
        (WebCore::PerformanceTiming::domLoading):

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

9 years ago2011-04-05 Stephen White <senorblanco@chromium.org>
senorblanco@chromium.org [Mon, 11 Apr 2011 20:43:51 +0000 (20:43 +0000)]
2011-04-05  Stephen White  <senorblanco@chromium.org>

        Fix for jittering when animating a rotated image.
        https://bugs.webkit.org/show_bug.cgi?id=50775

        Make GraphicsContext::roundToDevicePixels a no-op on Chrome/Mac.

        * platform/graphics/cg/GraphicsContextCG.cpp:
        (WebCore::GraphicsContext::roundToDevicePixels):

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

9 years ago2011-04-11 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Mon, 11 Apr 2011 20:38:15 +0000 (20:38 +0000)]
2011-04-11  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Antti Koivisto.

        Text inserted at the collapsed selection between two BRs following a non-wrapping text that forces overflow
        https://bugs.webkit.org/show_bug.cgi?id=47806

        Add a regression test since this bug does not reproduce anymore.
        The test is co-authored by James Robinson and Levi Weintraub.

        * fast/text/text-between-two-brs-in-nowrap-overflow-expected.txt: Added.
        * fast/text/text-between-two-brs-in-nowrap-overflow.html: Added.

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

9 years ago2011-04-11 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 11 Apr 2011 20:28:13 +0000 (20:28 +0000)]
2011-04-11  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Remove unused WebProcessProxy functions
        https://bugs.webkit.org/show_bug.cgi?id=58262

        * UIProcess/WebProcessProxy.cpp:
        * UIProcess/WebProcessProxy.h:

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

9 years ago2011-04-06 Xiaomei Ji <xji@chromium.org>
xji@chromium.org [Mon, 11 Apr 2011 20:02:19 +0000 (20:02 +0000)]
2011-04-06  Xiaomei Ji  <xji@chromium.org>

        Reviewed by Ryosuke Niwa.

        Continue experiment with moving caret by word in visual order.
        https://bugs.webkit.org/show_bug.cgi?id=57806

        This is the 2nd patch, which adds implementation when caret is inside box
        (not at boundaries). If the word break is inside the same box and not at the boundaries
        either, the word break will be returned. If need to search the adjacent boxes for word
        breaks, then, only the cases implemented in bug 57336 work.

        * editing/visible_units.cpp:
        (WebCore::leftmostPositionInRTLBoxInLTRBlock):
        (WebCore::rightmostPositionInLTRBoxInRTLBlock):
        (WebCore::lastWordBreakInBox):
        (WebCore::positionIsVisuallyOrderedInBoxInBlockWithDifferentDirectionality):
        (WebCore::nextWordBreakInBoxInsideBlockWithDifferentDirectionality):
        (WebCore::WordBoundaryEntry::WordBoundaryEntry):
        (WebCore::collectWordBreaksInBoxInsideBlockWithSameDirectionality):
        (WebCore::collectWordBreaksInBoxInsideBlockWithDifferntDirectionality):
        (WebCore::greatestValueUnder):
        (WebCore::smallestOffsetAbove):
        (WebCore::positionIsInsideBox):
        (WebCore::positionBeforeNextWord):
        (WebCore::positionAfterPreviousWord):
        (WebCore::leftWordPosition):
        (WebCore::rightWordPosition):
2011-04-06  Xiaomei Ji  <xji@chromium.org>

        Reviewed by Ryosuke Niwa.

        Continue experiment with moving caret by word in visual order.
        https://bugs.webkit.org/show_bug.cgi?id=57806

        Return correct result when caret and the word break are inside a box (not at boundaries).
        Added test case to test word break at a random start point
        (not start from a word break).

        * editing/selection/move-by-word-visually-expected.txt:

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

9 years agoUnreviewed, chromium expectations change.
jianli@chromium.org [Mon, 11 Apr 2011 19:57:39 +0000 (19:57 +0000)]
Unreviewed, chromium expectations change.

Mark huge-column-count.html as missing in chromium.

* platform/chromium/test_expectations.txt:

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

9 years ago[Snow Leopard WebKit2 Release Tests] inspector/styles/styles-add-blank-property.html...
jberlin@webkit.org [Mon, 11 Apr 2011 19:48:33 +0000 (19:48 +0000)]
[Snow Leopard WebKit2 Release Tests] inspector/styles/styles-add-blank-property.html flakey.
https://bugs.webkit.org/show_bug.cgi?id=57638

Skip inspector/styles/styles-add-blank-property.html to get the bots green.

* platform/mac-wk2/Skipped:

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

9 years ago2011-04-11 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Mon, 11 Apr 2011 19:47:07 +0000 (19:47 +0000)]
2011-04-11  Andreas Kling  <andreas.kling@nokia.com>

        Unreviewed Qt build fix, QT_CONFIG doesn't have uitools on bots.

        * Source/WebKit.pri:

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

9 years ago2011-04-11 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Mon, 11 Apr 2011 19:44:10 +0000 (19:44 +0000)]
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [GTK] Unskip accessibility/input-slider.html and accessibility/media-element.html
        https://bugs.webkit.org/show_bug.cgi?id=58040

        Unskip passing tests and update expectations.

        * platform/gtk/Skipped: Unskip passing tests.
        * platform/gtk/accessibility/input-slider-expected.txt: Added.
        * platform/gtk/accessibility/input-slider.html: Copied from
        accessibility/input-slider.html and adjusted accordingly.
        * platform/gtk/accessibility/media-element-expected.txt: Added.
        * platform/mac/accessibility/input-slider.html: Moved from
        accessibility/input-slider.html, since it is platform-specific.
        * platform/win/Skipped: Unskipped accessibility/input-slider.html,
        as it's no longer a cross-platform test.
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [GTK] Unskip accessibility/input-slider.html and accessibility/media-element.html
        https://bugs.webkit.org/show_bug.cgi?id=58040

        Don't expose objects of role SliderThumbRoles in GTK.

        * accessibility/AccessibilitySlider.cpp:
        (WebCore::AccessibilitySlider::addChildren): Allow the platform
        make a final decision before including children in the hierarchy.
        (WebCore::AccessibilitySliderThumb::accessibilityIsIgnored):
        Implemented by relying on accessibilityPlatformIncludesObject().

        * accessibility/gtk/AccessibilityObjectAtk.cpp:
        (WebCore::AccessibilityObject::accessibilityPlatformIncludesObject):
        Ignore accessibility objects with role SliderThumbRole.

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

9 years ago2011-04-11 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Mon, 11 Apr 2011 19:41:26 +0000 (19:41 +0000)]
2011-04-11  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, expectations change.
        https://bugs.webkit.org/show_bug.cgi?id=58193

        Suppress a few remaining Vista SVG failures until they can be
        triaged and/or rebaselined.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-11 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Mon, 11 Apr 2011 19:31:50 +0000 (19:31 +0000)]
2011-04-11  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Adam Roben.

        new-run-webkit-tests: fix crash when running under windows cmd.exe
        https://bugs.webkit.org/show_bug.cgi?id=58197

        We would intermittently crash when running NRWT directly under
        cmd.exe on windows because we were sharing the stdin file
        descriptor between the python process and the http server.
        cmd.exe really didn't like that, and there was no reason to
        share the descriptor, so we now use a PIPE instead.

        * Scripts/webkitpy/layout_tests/port/http_server.py:

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

9 years ago2011-04-11 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Mon, 11 Apr 2011 19:28:11 +0000 (19:28 +0000)]
2011-04-11  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Ojan Vafai.

        new-run-webkit-tests: add unit tests for Port.diff_image()
        https://bugs.webkit.org/show_bug.cgi?id=58196

        Add the unit tests for the fix in bug 58195.

        * Scripts/webkitpy/layout_tests/port/chromium_unittest.py:
        * Scripts/webkitpy/layout_tests/port/port_testcase.py:
        * Scripts/webkitpy/layout_tests/port/webkit_unittest.py:

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

9 years ago2011-04-11 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Mon, 11 Apr 2011 19:17:57 +0000 (19:17 +0000)]
2011-04-11  Dirk Pranke  <dpranke@chromium.org>

        Reviewed by Tony Chang.

        new-run-webkit-tests: implement support for audio, take two
        https://bugs.webkit.org/show_bug.cgi?id=58195

        Attempt to re-land the fix for bug 58101 (which was initially
        landed in r83330, but rolled out). This is the same patch but
        fixes crashes in Port.diff_image() caused by the change for
        empty image files being None instead of ''.

        * Scripts/webkitpy/layout_tests/layout_package/json_layout_results_generator.py:
        * Scripts/webkitpy/layout_tests/layout_package/single_test_runner.py:
        * Scripts/webkitpy/layout_tests/layout_package/test_expectations.py:
        * Scripts/webkitpy/layout_tests/layout_package/test_failures.py:
        * Scripts/webkitpy/layout_tests/layout_package/test_result_writer.py:
        * Scripts/webkitpy/layout_tests/port/base.py:
        * Scripts/webkitpy/layout_tests/port/chromium.py:
        * Scripts/webkitpy/layout_tests/port/dryrun.py:
        * Scripts/webkitpy/layout_tests/port/mock_drt.py:
        * Scripts/webkitpy/layout_tests/port/mock_drt_unittest.py:
        * Scripts/webkitpy/layout_tests/port/test.py:
        * Scripts/webkitpy/layout_tests/port/webkit.py:

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

9 years ago2011-04-11 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 11 Apr 2011 19:14:57 +0000 (19:14 +0000)]
2011-04-11  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Crash in WebPageProxy::countStringMatches
        https://bugs.webkit.org/show_bug.cgi?id=58255
        <rdar://problem/9243837>

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::countStringMatches):
        Return early if the page is not valid.

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

9 years ago2011-04-11 Alexis Menard <alexis.menard@openbossa.org>
alexis.menard@openbossa.org [Mon, 11 Apr 2011 19:14:10 +0000 (19:14 +0000)]
2011-04-11  Alexis Menard  <alexis.menard@openbossa.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] Sub-Frame content is not updated when scrolling in certain circumstances
        https://bugs.webkit.org/show_bug.cgi?id=50373

        Make sure that we invalidate the backing store when using TILED_BACKING_STORE
        and the page contains sub frames. This bug appears only when frame flattening is
        disabled and scrollable subframes.

        Original patch from Thomas Thrainer.

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

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

9 years agoWebKit2: links don’t update to look visited
weinig@apple.com [Mon, 11 Apr 2011 19:13:22 +0000 (19:13 +0000)]
WebKit2: links don’t update to look visited
<rdar://problem/8806254>
https://bugs.webkit.org/show_bug.cgi?id=58252

Reviewed by Anders Carlsson.

* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::visitedLinkStateChanged):
(WebKit::WebProcess::allVisitedLinkStateChanged):
* WebProcess/WebProcess.h:
Remove use of vestigial sharedPageGroup and instead iterate set of
page groups in use by the process.

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

9 years ago2011-04-11 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 11 Apr 2011 19:07:22 +0000 (19:07 +0000)]
2011-04-11  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Dan Bernstein.

        Divide by zero in calcColumnWidth
        https://bugs.webkit.org/show_bug.cgi?id=58230

        Test: fast/multicol/huge-column-count.html

        Make sure we have at least one column, to avoid divide by zero.

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

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

9 years ago [Qt][WK2]http/tests/loading/preload-append-scan.php fails
ossy@webkit.org [Mon, 11 Apr 2011 18:59:50 +0000 (18:59 +0000)]
   [Qt][WK2]http/tests/loading/preload-append-scan.php fails
       https://bugs.webkit.org/show_bug.cgi?id=58253

* platform/qt-wk2/Skipped: Add http/tests/loading/preload-append-scan.php until fix.

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

9 years ago2011-04-11 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Mon, 11 Apr 2011 18:57:35 +0000 (18:57 +0000)]
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Implement AccessibilityUIElement::{row|column}IndexRange in DRT
        https://bugs.webkit.org/show_bug.cgi?id=57854

        Unskipped table-cell-spans.html and updated GTK expectations.

        * platform/gtk/Skipped: Unskipped test.
        * platform/gtk/accessibility/table-cell-spans-expected.txt: Added.
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Xan Lopez.

        [GTK] Implement AccessibilityUIElement::{row|column}IndexRange in DRT
        https://bugs.webkit.org/show_bug.cgi?id=57854

        Implement missing features in GTK's DRT.

        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
        (indexRangeInTable): New helper function to get the range string
        for the current cell inside the parent table, either from the
        point of view of rows or columns.
        (AccessibilityUIElement::rowIndexRange): Implemented by relying on
        the new helper function indexRangeInTable().
        (AccessibilityUIElement::columnIndexRange): Ditto.

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

9 years ago2011-04-11 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Mon, 11 Apr 2011 18:54:47 +0000 (18:54 +0000)]
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [GTK] Implement AccessibilityUIElement::cellForColumnAndRow in DRT
        https://bugs.webkit.org/show_bug.cgi?id=57826

        Skipped aria-tables.html and table-cells.html layout tests.

        Some changes were also made inside the aria-tables.html layout
        test, in order to allow unskipping it in GTK while still keeping
        it working in other platforms, without needing platform specific
        tests, just different expected files.

        * accessibility/aria-tables.html: Changed the layout test so it
        just prints role names instead of comparing their actual values
        with the expected ones in one specific platform (Mac)

        * platform/gtk/Skipped: Unskipped aria-tables.html and table-cells.html.
        * platform/gtk/accessibility/aria-tables-expected.txt: Added new
        expectations for the GTK port.
        * platform/gtk/accessibility/table-cells-expected.txt: Ditto.

        * platform/mac-leopard/Skipped: Skipping aria-tables.html in
        mac-leopard, as I don't know what the expected output would be in
        this case, and since the expected file was invalid anyway.

        * platform/mac/accessibility/aria-tables-expected.txt: Updated to
        check role names, after the changes done in the layout test.
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [GTK] Implement AccessibilityUIElement::cellForColumnAndRow in DRT
        https://bugs.webkit.org/show_bug.cgi?id=57826

        Implement missing feature in GTK's DRT.

        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
        (AccessibilityUIElement::cellForColumnAndRow): Implemented, by
        relying on the analogous function from the AtkTable interface.

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

9 years agoFix a bug where the context menu does not show in PDF documents if there is no
timothy@apple.com [Mon, 11 Apr 2011 18:52:52 +0000 (18:52 +0000)]
Fix a bug where the context menu does not show in PDF documents if there is no
UI delegate or the UI delegate does not respond to the context menu selector.

https://webkit.org/b/57958

Reviewed by Darin Adler.

* WebView/WebView.mm:
(-[WebView _menuForElement:defaultItems:]): CallUIDelegate returns nil
if UIDelegate is nil or doesn't respond to the selector. So check that
here to distinguish between using defaultMenuItems or the delegate
really returning nil to say "no context menu".

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

9 years agoFix the extract-localizable-strings script errors that started after
timothy@apple.com [Mon, 11 Apr 2011 18:52:40 +0000 (18:52 +0000)]
Fix the extract-localizable-strings script errors that started after
WEB_UI_STRING was added to LocalizedStrings.h in WebCore.

* Scripts/extract-localizable-strings: Skip LocalizedStrings.h.

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

9 years agoWindows build fix.
barraclough@apple.com [Mon, 11 Apr 2011 18:37:08 +0000 (18:37 +0000)]
Windows build fix.

* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:

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

9 years ago2011-04-11 Tony Chang <tony@chromium.org>
tony@chromium.org [Mon, 11 Apr 2011 18:36:13 +0000 (18:36 +0000)]
2011-04-11  Tony Chang  <tony@chromium.org>

        Reviewed by Eric Seidel.

        fix crc computation on 64 bit machines
        https://bugs.webkit.org/show_bug.cgi?id=58243

        unsigned long is dependenct on CPU architecture, so use unsigned which is always 32 bits

        * DumpRenderTree/CyclicRedundancyCheck.cpp:
        (makeCrcTable):
        (computeCrc):
        * DumpRenderTree/CyclicRedundancyCheck.h:
        * DumpRenderTree/PixelDumpSupport.cpp:
        (appendIntToVector):
        (convertChecksumToPNGComment):

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

9 years agoWebKit2: Windows 7 Gestures Window Bounce shouldn't require a sync message
bweinstein@apple.com [Mon, 11 Apr 2011 18:31:19 +0000 (18:31 +0000)]
WebKit2: Windows 7 Gestures Window Bounce shouldn't require a sync message
https://bugs.webkit.org/show_bug.cgi?id=58167
<rdar://problem/9259813>

Reviewed by Adam Roben.

Instead of making GestureDidScroll sync, have WebPageWin call from WebProcess ->
UIProcess when the gesture causes the page to scroll to the beginning or the
end of the document.

* UIProcess/PageClient.h:
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::gestureDidScroll): Not a sync message anymore.
(WebKit::WebPageProxy::setGestureScrollingLimitReached): Tell the page client that the gesture
    scrolling limnit was reached.
* UIProcess/WebPageProxy.h:
* UIProcess/WebPageProxy.messages.in: Add a new message.
* UIProcess/win/WebView.cpp:
(WebKit::WebView::WebView): Initialize new variable.
(WebKit::WebView::onGesture): Use the state of the member variable, not the response from
    the sync message.
* UIProcess/win/WebView.h:
(WebKit::WebView::setGestureScrollingLimitReached):
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/WebPage.messages.in:
* WebProcess/WebPage/win/WebPageWin.cpp:
(WebKit::scrollbarAtTopOfBottomOrDocument): Returns whether or not the scrollbar is at the
    top or bottom of the document.
(WebKit::WebPage::gestureDidScroll): Track whether or not we started at the beginning
    or end of the document, and whether or not we ended at the beginning or end of the document,
    and send a message if the value changed.

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

9 years agoBug 58198 - Clean up JSValue implementation for JSVALUE64
barraclough@apple.com [Mon, 11 Apr 2011 18:29:14 +0000 (18:29 +0000)]
Bug 58198 - Clean up JSValue implementation for JSVALUE64

Reviewed by Sam Weinig.

Source/JavaScriptCore:

Remove JSNumberCell, JSImmediate, unify some methods between JSVALUE32_64/JSVALUE64

JSNumberCell.h largely just contained the constructors for JSValue on JSVALUE64,
which should not have been here.  JSImmediate mostly contained uncalled methods,
along with the internal implementation of the JSValue constructors split unnecessarily
across a number of layers of function calls. These could largely be merged back
together. Many methods and constructors from JSVALUE32_64 and JSVALUE64 can by unified.

The .cpp files were empty.

Moving all these methods into JSValue.h seems to be a repro measurable regression, so
I have kept these methods in a separate JSValueInlineMethods.h. Adding the 64-bit tag
values as static const members of JSValue also measures as a repro regression, so I
have made these #defines.

* Android.mk:
* CMakeLists.txt:
* GNUmakefile.list.am:
* JavaScriptCore.exp:
* JavaScriptCore.gypi:
* JavaScriptCore.pro:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
    - Removed JSImmediate.h, JSNumberCell.h.
* bytecompiler/BytecodeGenerator.cpp:
(JSC::BytecodeGenerator::emitLoad):
    - Removed class JSImmediate.
* dfg/DFGNonSpeculativeJIT.cpp:
(JSC::DFG::NonSpeculativeJIT::compile):
    - Removed class JSImmediate.
* dfg/DFGSpeculativeJIT.cpp:
(JSC::DFG::SpeculativeJIT::compile):
    - Removed class JSImmediate.
* jit/JITArithmetic.cpp:
(JSC::JIT::compileBinaryArithOpSlowCase):
    - Removed class JSImmediate.
* jit/JITInlineMethods.h:
(JSC::JIT::emitJumpIfJSCell):
(JSC::JIT::emitJumpIfNotJSCell):
(JSC::JIT::emitJumpIfImmediateInteger):
(JSC::JIT::emitJumpIfNotImmediateInteger):
(JSC::JIT::emitFastArithDeTagImmediate):
(JSC::JIT::emitFastArithDeTagImmediateJumpIfZero):
(JSC::JIT::emitFastArithReTagImmediate):
(JSC::JIT::emitTagAsBoolImmediate):
    - Removed class JSImmediate.
* jit/JITOpcodes.cpp:
(JSC::JIT::emit_op_not):
(JSC::JIT::emit_op_jeq_null):
(JSC::JIT::emit_op_jneq_null):
(JSC::JIT::emit_op_get_pnames):
(JSC::JIT::emit_op_eq_null):
(JSC::JIT::emit_op_neq_null):
(JSC::JIT::emitSlow_op_not):
    - Removed class JSImmediate.
* jit/JSInterfaceJIT.h:
    - Removed class JSImmediate.
* runtime/JSCell.h:
    - Removed JSImmediate.h, JSNumberCell.h.
* runtime/JSImmediate.cpp: Removed.
* runtime/JSImmediate.h: Removed.
* runtime/JSNumberCell.cpp: Removed.
* runtime/JSNumberCell.h: Removed.
    - Removed.
* runtime/JSObject.h:
    - Removed JSImmediate.h, JSNumberCell.h.
* runtime/JSString.h:
    - Removed JSImmediate.h, JSNumberCell.h.
* runtime/JSValue.h:
    - Added tags for JSVALUE64, moved out some JSVALUE32_64 methods, unified with JSVALUE64.
* runtime/JSValueInlineMethods.h: Added.
(JSC::JSValue::toInt32):
(JSC::JSValue::toUInt32):
(JSC::JSValue::isUInt32):
(JSC::JSValue::asUInt32):
(JSC::JSValue::uncheckedGetNumber):
(JSC::JSValue::toJSNumber):
(JSC::jsNaN):
(JSC::JSValue::getNumber):
(JSC::JSValue::getBoolean):
(JSC::JSValue::JSValue):
(JSC::JSValue::encode):
(JSC::JSValue::decode):
(JSC::JSValue::operator bool):
(JSC::JSValue::operator==):
(JSC::JSValue::operator!=):
(JSC::JSValue::isUndefined):
(JSC::JSValue::isNull):
(JSC::JSValue::isUndefinedOrNull):
(JSC::JSValue::isCell):
(JSC::JSValue::isInt32):
(JSC::JSValue::isDouble):
(JSC::JSValue::isTrue):
(JSC::JSValue::isFalse):
(JSC::JSValue::tag):
(JSC::JSValue::payload):
(JSC::JSValue::asInt32):
(JSC::JSValue::asDouble):
(JSC::JSValue::asCell):
(JSC::JSValue::isNumber):
(JSC::JSValue::isBoolean):
(JSC::JSValue::makeImmediate):
(JSC::JSValue::immediateValue):
(JSC::reinterpretDoubleToIntptr):
(JSC::reinterpretIntptrToDouble):
    - Methods moved here from JSImmediate.h/JSNumberCell.h/JSValue.h.
* runtime/Operations.h:
    - Removed JSImmediate.h, JSNumberCell.h.
* wtf/StdLibExtras.h:
    - Export bitwise_cast.

Source/WebCore:

JSNumberCell.h has been deprecated.

* ForwardingHeaders/runtime/JSNumberCell.h: Removed.
* bindings/scripts/CodeGeneratorJS.pm:
* bridge/c/c_instance.cpp:

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

9 years agoUnreviewed; roll out unintentional change to WebFullScreenController.mm.
jer.noble@apple.com [Mon, 11 Apr 2011 18:20:03 +0000 (18:20 +0000)]
Unreviewed; roll out unintentional change to WebFullScreenController.mm.

* WebView/WebFullScreenController.mm:
(-[WebFullScreenController enterFullscreen:]):

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

9 years agoBuild fix.
mitz@apple.com [Mon, 11 Apr 2011 18:19:04 +0000 (18:19 +0000)]
Build fix.

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::State::State):

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

9 years agoDocument source preload scanned repeatedly
antti@apple.com [Mon, 11 Apr 2011 18:17:49 +0000 (18:17 +0000)]
Document source preload scanned repeatedly
https://bugs.webkit.org/show_bug.cgi?id=58123

Reviewed by Tony Gentilcore.

Don't clear the preload scanner after execution resumes. This would lose the current
scanning point and lead to rescanning when the preload scanner would get reconstructed
due to main parser blocking again.

Instead clear the scanner only in the specific case of receiving new data while the main
parser has already reached the end of the current input.

Also switched to using isWaitingForScripts() instead of m_treeBuilder->isPaused() for consistency.

The case the clearing in resumeParsingAfterScriptExecution() was added for is covered by
http/tests/loading/preload-slow-loading.php.

* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::insert):
(WebCore::HTMLDocumentParser::append):
(WebCore::HTMLDocumentParser::resumeParsingAfterScriptExecution):

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

9 years agoUnreviewed, Updated chromium test expectations.
jianli@chromium.org [Mon, 11 Apr 2011 18:15:09 +0000 (18:15 +0000)]
Unreviewed, Updated chromium test expectations.

Mark aria-table-hierarchy.html as failed instead of missing after the
expected result file is added.

* platform/chromium/test_expectations.txt:

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

9 years ago2011-04-04 Jer Noble <jer.noble@apple.com>
jer.noble@apple.com [Mon, 11 Apr 2011 18:10:17 +0000 (18:10 +0000)]
2011-04-04  Jer Noble  <jer.noble@apple.com>

        Reviewed by Maciej Stachowiak.

        WK2: PDF: Find in page
        https://bugs.webkit.org/show_bug.cgi?id=57765

        Support searching text within PDF documents.  Find requests must be routed from the
        WebPageProxy, through the PageClient, and to the WKView, where they can be passed to
        the PDFViewController.

        * UIProcess/API/mac/PDFViewController.h:
        * UIProcess/API/mac/PDFViewController.mm:
        (_PDFSelectionsAreEqual): Copied from WebPDFView.
        (-[WKPDFView _nextMatchFor:direction:caseSensitive:wrap:fromSelection:startInSelection:]): Copied from WebPDFView.
        (-[WKPDFView _countMatches:caseSensitive:]): Added.
        (WebKit::PDFViewController::findString): Added.
        (WebKit::PDFViewController::countStringMatches): Added.
        * UIProcess/PageClient.h:
        * UIProcess/API/mac/PageClientImpl.h:
        * UIProcess/API/mac/PageClientImpl.mm:
        (WebKit::PageClientImpl::findStringInCustomRepresentation): Added.
        (WebKit::PageClientImpl::countStringMatchesInCustomRepresentation): Added.
        * UIProcess/API/mac/WKViewInternal.h:
        * UIProcess/API/mac/WKView.mm:
        (-[WKView _findStringInCustomRepresentation:withFindOptions:maxMatchCount:]): Added.
        (-[WKView _countStringMatchesInCustomRepresentation:withFindOptions:maxMatchCount:]): Added.
        * UIProcess/WebPageProxy.h: Moved a number of find-related functions from private: to public: so
            they could be called from PDFViewController.
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::findString): Added.
        (WebKit::WebPageProxy::countStringMatches): Added.
        * UIProcess/win/WebView.cpp:
        (WebKit::WebView::findStringInCustomRepresentation): Added stub.
        (WebKit::WebView::countStringMatchesInCustomRepresentation): Ditto.
        * UIProcess/win/WebView.h:
        * UIProcess/API/qt/qwkpage_p.h:
        (QWKPagePrivate::findStringInCustomRepresentation): Added stub.
        (QWKPagePrivate::countStringMatchesInCustomRepresentation): Added stub.

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

9 years agoBuild fix.
mitz@apple.com [Mon, 11 Apr 2011 18:09:20 +0000 (18:09 +0000)]
Build fix.

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::State::State):

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

9 years agoWebKit2: Implement TextChecker on Windows
jberlin@webkit.org [Mon, 11 Apr 2011 18:00:07 +0000 (18:00 +0000)]
WebKit2: Implement TextChecker on Windows
https://bugs.webkit.org/show_bug.cgi?id=57862

Reviewed by Anders Carlsson.

Part 6: Update the Spelling UI with the spelling and grammar mistakes.

* UIProcess/API/C/win/WKAPICastWin.h:
(WebKit::toAPI):
Make it possible to go from a WebCore::GrammarDetail to a WebGrammarDetail.

* UIProcess/API/C/win/WKGrammarDetail.cpp:
(WKGrammarDetailCreate):
(WKGrammarDetailGetLocation):
(WKGrammarDetailGetLength):
(WKGrammarDetailCopyGuesses):
(WKGrammarDetailCopyUserDescription):
* UIProcess/API/C/win/WKGrammarDetail.h:

* UIProcess/API/C/win/WKTextChecker.cpp:
(WKTextCheckerCheckSpelling):
Tell the WebTextChecker.
* UIProcess/API/C/win/WKTextChecker.h:

* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::contextMenuItemSelected):
If the show/hide spelling UI is selected and the spelling UI is not showing, make sure to
advance to the next misspelling (in this case, the first).
This behavior matches that in WebCore and WKView.mm.
(WebKit::WebPageProxy::advanceToNextMisspelling):
Make this function const since it does not modify the WebPageProxy and making it const
allows WebTextChecker::checkSpelling to take a const WebPageProxy.
(WebKit::WebPageProxy::spellDocumentTag):
(WebKit::WebPageProxy::updateSpellingUIWithMisspelledWord):
(WebKit::WebPageProxy::updateSpellingUIWithGrammarString):
* UIProcess/WebPageProxy.h:

* UIProcess/TextChecker.h:
* UIProcess/win/TextCheckerWin.cpp:
(WebKit::TextChecker::uniqueSpellDocumentTag):
Tell the TextCheckerClient which WebPageProxy this tag is for.
(WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
Tell the TextCheckerClient.
(WebKit::TextChecker::updateSpellingUIWithGrammarString):
Ditto.
* UIProcess/mac/TextCheckerMac.mm:
(WebKit::TextChecker::uniqueSpellDocumentTag):
Add the new argument that is unused by this port.
(WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
Ditto.
(WebKit::TextChecker::updateSpellingUIWithGrammarString):
Ditto.
* UIProcess/gtk/TextCheckerGtk.cpp:
(WebKit::TextChecker::uniqueSpellDocumentTag):
Ditto.
(WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
Ditto.
(WebKit::TextChecker::updateSpellingUIWithGrammarString):
Ditto.
* UIProcess/qt/TextCheckerQt.cpp:
(WebKit::TextChecker::uniqueSpellDocumentTag):
Ditto.
(WebKit::TextChecker::updateSpellingUIWithMisspelledWord):
Ditto.
(WebKit::TextChecker::updateSpellingUIWithGrammarString):
Ditto.

* UIProcess/win/WebGrammarDetail.cpp:
(WebKit::WebGrammarDetail::create):
(WebKit::WebGrammarDetail::WebGrammarDetail):
(WebKit::WebGrammarDetail::guesses):
* UIProcess/win/WebGrammarDetail.h:
(WebKit::WebGrammarDetail::location):
(WebKit::WebGrammarDetail::length):
(WebKit::WebGrammarDetail::userDescription):

* UIProcess/win/WebTextChecker.cpp:
(WebKit::WebTextChecker::checkSpelling):
Tell the page to advance to the next misspelling. This matches the WK1 WebView.cpp logic.

* UIProcess/win/WebTextChecker.h:
* UIProcess/win/WebTextCheckerClient.cpp:
(WebKit::WebTextCheckerClient::uniqueSpellDocumentTag):
(WebKit::WebTextCheckerClient::toggleSpellingUIIsShowing):
(WebKit::WebTextCheckerClient::updateSpellingUIWithMisspelledWord):
(WebKit::WebTextCheckerClient::updateSpellingUIWithGrammarString):
* UIProcess/win/WebTextCheckerClient.h:

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

9 years agoAssertion failure in CanvasRenderingContext2D::State::fontsNeedUpdate when invalidati...
mitz@apple.com [Mon, 11 Apr 2011 17:45:16 +0000 (17:45 +0000)]
Assertion failure in CanvasRenderingContext2D::State::fontsNeedUpdate when invalidating the font cache after opening canvas/philip/tests/initial.reset.2dstate.html (occurs on Qt debug test bot)
https://bugs.webkit.org/show_bug.cgi?id=58229

Reviewed by Alexey Proskuryakov.

* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::State::State): Added copy constructor, to register the copy with
the font selector if needed.
(WebCore::CanvasRenderingContext2D::State::operator=): Added assignment constructor, to handle
registration with the font selector as needed.
* html/canvas/CanvasRenderingContext2D.h:

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

9 years ago2011-04-11 Mario Sanchez Prada <msanchez@igalia.com>
mario@webkit.org [Mon, 11 Apr 2011 17:39:11 +0000 (17:39 +0000)]
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [GTK] ARIA tables not exposing cells as HTML tables do
        https://bugs.webkit.org/show_bug.cgi?id=57463

        Unskipped passing test and added GTK-specific expectations.

        * platform/gtk/Skipped: Unskip accessibility test.
        * platform/gtk/accessibility/aria-table-hierarchy-expected.txt: Added.
2011-04-11  Mario Sanchez Prada  <msanchez@igalia.com>

        Reviewed by Chris Fleizach.

        [GTK] ARIA tables not exposing cells as HTML tables do
        https://bugs.webkit.org/show_bug.cgi?id=57463

        Expose cells for ARIA grids consistently with HTML tables in GTK,
        keeping the same behaviour for the other platforms.

        * accessibility/AccessibilityARIAGrid.cpp:
        (WebCore::AccessibilityARIAGrid::addChild): Add the row's children
        to the accessibility hierarchy when accessibility objects for rows
        are ignoring accessibility, otherwise add the row.
        (WebCore::AccessibilityARIAGrid::addChildren): Do not check at
        this point whether every child of the table ignores or not
        accessibility, letting addChild() make the proper decision later.

        * accessibility/AccessibilityARIAGridCell.cpp:
        (WebCore::AccessibilityARIAGridCell::parentTable): Consider that
        rows could be ignoring accessibility, hence the parent could be
        retrieved in the first call to parentObjectUnignored().
        (WebCore::AccessibilityARIAGridCell::rowIndexRange): Ditto.
        (WebCore::AccessibilityARIAGridCell::columnIndexRange): Ditto..

        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
        (atkRole): Map ColumnHeader and RowHeader to ATK_ROLE_TABLE_CELL.

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

9 years ago2011-04-11 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Mon, 11 Apr 2011 17:23:36 +0000 (17:23 +0000)]
2011-04-11  Dimitri Glazkov  <dglazkov@chromium.org>

        [GTK] Update expectations after r83445.

        * platform/gtk/fast/layers/video-layer-expected.txt: Updated.
        * platform/gtk/media/video-empty-source-expected.txt: Updated.
        * platform/gtk/media/video-no-audio-expected.txt: Updated.

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

9 years ago2011-04-11 Thouraya ANDOLSI <thouraya.andolsi@st.com>
commit-queue@webkit.org [Mon, 11 Apr 2011 17:11:38 +0000 (17:11 +0000)]
2011-04-11  Thouraya ANDOLSI  <thouraya.andolsi@st.com>

        Reviewed by Oliver Hunt.

        SH4 JIT SUPPORT.
        https://bugs.webkit.org/show_bug.cgi?id=44329

        Add JIT remaining part for SH4 platforms.

        * assembler/MacroAssemblerSH4.h:
        * jit/JIT.h:
        * jit/JITInlineMethods.h:
        * jit/JITOpcodes32_64.cpp:
        * jit/JITPropertyAccess32_64.cpp:
        * jit/JITStubs.cpp:
        * jit/JITStubs.h:
        * jit/JSInterfaceJIT.h:

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

9 years ago2011-04-11 Sergio Villar Senin <svillar@igalia.com>
commit-queue@webkit.org [Mon, 11 Apr 2011 16:35:00 +0000 (16:35 +0000)]
2011-04-11  Sergio Villar Senin  <svillar@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] Fix make distcheck
        https://bugs.webkit.org/show_bug.cgi?id=58224

        Removed a file that is no longer in the source tree.

        * GNUmakefile.list.am:

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

9 years ago2011-04-11 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Mon, 11 Apr 2011 16:32:36 +0000 (16:32 +0000)]
2011-04-11  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Martin Robinson.

        REGRESSION(r83397): Most GTK media controls are hidden when no valid source is specified
        https://bugs.webkit.org/show_bug.cgi?id=58204

        Covered by existing tests.

        * platform/gtk/RenderThemeGtk.h:
        (WebCore::RenderThemeGtk::hasOwnDisabledStateHandlingFor): Let GTK handle
            the the state of media controls.

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

9 years ago2011-04-11 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Mon, 11 Apr 2011 16:26:08 +0000 (16:26 +0000)]
2011-04-11  Dimitri Glazkov  <dglazkov@chromium.org>

        Remove obsolete comment, which was mistakenly landed in r83397.

        Though potentially a work of art, the comment lost its functional meaning a long time ago.

        * html/shadow/MediaControls.cpp:
        (WebCore::MediaControls::create): Removed comment.

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

9 years ago2011-04-05 Hans Wennborg <hans@chromium.org>
hans@chromium.org [Mon, 11 Apr 2011 15:56:50 +0000 (15:56 +0000)]
2011-04-05  Hans Wennborg  <hans@chromium.org>

        Reviewed by Steve Block.

        IndexedDB: Introduce skeleton for LevelDB backend
        https://bugs.webkit.org/show_bug.cgi?id=57827

        No new tests: no new functionality (yet).

        * WebCore.gyp/WebCore.gyp:
            Add dependency on leveldb when ENABLE_LEVELDB=1 in feature_defines.
        * WebCore.gypi:
            Add new files.
        * storage/IDBBackingStore.h:
        (WebCore::IDBBackingStore::ObjectStoreRecordIdentifier::~ObjectStoreRecordIdentifier):
            Introduce abstract type ObjectStoreRecordIdentifier. The SQLite
            backend uses integers to refer to a specific row in a table, but
            the LevelDB backend will use something else.
        * storage/IDBDatabaseBackendImpl.cpp:
        (WebCore::IDBDatabaseBackendImpl::createObjectStore):
        (WebCore::IDBDatabaseBackendImpl::createObjectStoreInternal):
        (WebCore::IDBDatabaseBackendImpl::deleteObjectStoreInternal):
        (WebCore::IDBDatabaseBackendImpl::loadObjectStores):
            Change functions to pass along the database id for operations that
            concern object stores. We want to be able to group object stores
            ids per database.
        * storage/IDBFactoryBackendImpl.cpp:
        (WebCore::IDBFactoryBackendImpl::open):
            Decide which backend to use based on the backingStoreType
            parameter.
        * storage/IDBIndexBackendImpl.cpp:
        (WebCore::IDBIndexBackendImpl::IDBIndexBackendImpl):
        (WebCore::IDBIndexBackendImpl::openCursorInternal):
        (WebCore::IDBIndexBackendImpl::getInternal):
        (WebCore::IDBIndexBackendImpl::addingKeyAllowed):
        * storage/IDBIndexBackendImpl.h:
        (WebCore::IDBIndexBackendImpl::create):
            Pass database and object store id to backend functions concerning
            indexes.
        * storage/IDBLevelDBBackingStore.cpp: Added.
        (WebCore::IDBLevelDBBackingStore::IDBLevelDBBackingStore):
        (WebCore::IDBLevelDBBackingStore::~IDBLevelDBBackingStore):
        (WebCore::IDBLevelDBBackingStore::open):
        (WebCore::IDBLevelDBBackingStore::extractIDBDatabaseMetaData):
        (WebCore::IDBLevelDBBackingStore::setIDBDatabaseMetaData):
        (WebCore::IDBLevelDBBackingStore::getObjectStores):
        (WebCore::IDBLevelDBBackingStore::createObjectStore):
        (WebCore::IDBLevelDBBackingStore::deleteObjectStore):
        (WebCore::IDBLevelDBBackingStore::getObjectStoreRecord):
        (WebCore::IDBLevelDBBackingStore::putObjectStoreRecord):
        (WebCore::IDBLevelDBBackingStore::clearObjectStore):
        (WebCore::IDBLevelDBBackingStore::deleteObjectStoreRecord):
        (WebCore::IDBLevelDBBackingStore::nextAutoIncrementNumber):
        (WebCore::IDBLevelDBBackingStore::keyExistsInObjectStore):
        (WebCore::IDBLevelDBBackingStore::forEachObjectStoreRecord):
        (WebCore::IDBLevelDBBackingStore::getIndexes):
        (WebCore::IDBLevelDBBackingStore::createIndex):
        (WebCore::IDBLevelDBBackingStore::deleteIndex):
        (WebCore::IDBLevelDBBackingStore::putIndexDataForRecord):
        (WebCore::IDBLevelDBBackingStore::deleteIndexDataForRecord):
        (WebCore::IDBLevelDBBackingStore::getObjectViaIndex):
        (WebCore::IDBLevelDBBackingStore::getPrimaryKeyViaIndex):
        (WebCore::IDBLevelDBBackingStore::keyExistsInIndex):
        (WebCore::IDBLevelDBBackingStore::openObjectStoreCursor):
        (WebCore::IDBLevelDBBackingStore::openIndexKeyCursor):
        (WebCore::IDBLevelDBBackingStore::openIndexCursor):
        (WebCore::IDBLevelDBBackingStore::createTransaction):
        * storage/IDBLevelDBBackingStore.h: Added.
            Add an empty implementation of the LevelDB backend.
        * storage/IDBObjectStoreBackendImpl.cpp:
            Keep track of database id, use the new RecordIdentifier.
        (WebCore::IDBObjectStoreBackendImpl::IDBObjectStoreBackendImpl):
        (WebCore::IDBObjectStoreBackendImpl::getInternal):
        (WebCore::IDBObjectStoreBackendImpl::putInternal):
        (WebCore::IDBObjectStoreBackendImpl::deleteInternal):
        (WebCore::IDBObjectStoreBackendImpl::clearInternal):
        (WebCore::populateIndex):
        (WebCore::IDBObjectStoreBackendImpl::createIndex):
        (WebCore::IDBObjectStoreBackendImpl::createIndexInternal):
        (WebCore::IDBObjectStoreBackendImpl::deleteIndexInternal):
        (WebCore::IDBObjectStoreBackendImpl::openCursorInternal):
        (WebCore::IDBObjectStoreBackendImpl::loadIndexes):
        (WebCore::IDBObjectStoreBackendImpl::genAutoIncrementKey):
        * storage/IDBObjectStoreBackendImpl.h:
        (WebCore::IDBObjectStoreBackendImpl::create):
        (WebCore::IDBObjectStoreBackendImpl::databaseId):
        * storage/IDBSQLiteBackingStore.cpp:
        (WebCore::IDBSQLiteBackingStore::open):
        (WebCore::IDBSQLiteBackingStore::createObjectStore):
        (WebCore::IDBSQLiteBackingStore::deleteObjectStore):
        (WebCore::IDBSQLiteBackingStore::getObjectStoreRecord):
        (WebCore::IDBSQLiteBackingStore::putObjectStoreRecord):
        (WebCore::IDBSQLiteBackingStore::clearObjectStore):
        (WebCore::IDBSQLiteBackingStore::deleteObjectStoreRecord):
        (WebCore::IDBSQLiteBackingStore::nextAutoIncrementNumber):
        (WebCore::IDBSQLiteBackingStore::keyExistsInObjectStore):
        (WebCore::IDBSQLiteBackingStore::forEachObjectStoreRecord):
        (WebCore::IDBSQLiteBackingStore::getIndexes):
        (WebCore::IDBSQLiteBackingStore::createIndex):
        (WebCore::IDBSQLiteBackingStore::deleteIndex):
        (WebCore::IDBSQLiteBackingStore::putIndexDataForRecord):
        (WebCore::IDBSQLiteBackingStore::deleteIndexDataForRecord):
        (WebCore::IDBSQLiteBackingStore::getObjectViaIndex):
        (WebCore::IDBSQLiteBackingStore::getPrimaryKeyViaIndex):
        (WebCore::IDBSQLiteBackingStore::keyExistsInIndex):
        (WebCore::IDBSQLiteBackingStore::openObjectStoreCursor):
        (WebCore::IDBSQLiteBackingStore::openIndexKeyCursor):
        (WebCore::IDBSQLiteBackingStore::openIndexCursor):
        * storage/IDBSQLiteBackingStore.h:
2011-04-05  Hans Wennborg  <hans@chromium.org>

        Reviewed by Steve Block.

        IndexedDB: Introduce skeleton for LevelDB backend
        https://bugs.webkit.org/show_bug.cgi?id=57827

        * features.gypi:
            Add ENABLE_LEVELDB=0.
        * public/WebIDBFactory.h:
        (WebKit::WebIDBFactory::open):
            Remove pre-roll open() function.

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

9 years ago[Qt] HTML5 Drag and Drop demos not working
benjamin.poulain@nokia.com [Mon, 11 Apr 2011 14:50:12 +0000 (14:50 +0000)]
[Qt] HTML5 Drag and Drop demos not working
https://bugs.webkit.org/show_bug.cgi?id=56486

Reviewed by Andreas Kling.

Handling the drop with JavaScript was not working with Qt because if the action is ignored
in response to DragEnter, no further events are sent to the view.

Drag and drop is defined and used differently by webpages. The drag move events are determining
what action should take place. To adopt this behavior for Qt, we always accept drag enter events
on the widget.

* Api/qwebpage.cpp:
(QWebPagePrivate::dragEnterEvent):

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

9 years ago2011-04-11 Alexander Pavlov <apavlov@chromium.org>
apavlov@chromium.org [Mon, 11 Apr 2011 14:45:14 +0000 (14:45 +0000)]
2011-04-11  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: Duplicate CSS properties are reported for non-lowercase property names in the Styles sidebar
        https://bugs.webkit.org/show_bug.cgi?id=58226

        * inspector/styles/get-set-stylesheet-text-expected.txt:
        * inspector/styles/get-set-stylesheet-text.html:
2011-04-11  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: Duplicate CSS properties are reported for non-lowercase property names in the Styles sidebar
        https://bugs.webkit.org/show_bug.cgi?id=58226

        * inspector/InspectorStyleSheet.cpp:
        (WebCore::InspectorStyle::populateAllProperties):

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

9 years ago2011-04-11 Andras Becsi <abecsi@webkit.org>
abecsi@webkit.org [Mon, 11 Apr 2011 13:44:39 +0000 (13:44 +0000)]
2011-04-11  Andras Becsi  <abecsi@webkit.org>

        Reviewed by Andreas Kling.

        [Qt] REGRESSION(83122): tst_QWebElement::style() fails
        https://bugs.webkit.org/show_bug.cgi?id=58032

        According to the documentation of QWebElement the styleProperty method should
        not respect style inheritance and other CSS rules for the InlineStyle enum.

        r83122 fixed this behaviour.

        * tests/qwebelement/tst_qwebelement.cpp:
        (tst_QWebElement::style): Fix the expected color for QWebElement::InlineStyle.

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

9 years ago2011-04-11 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Mon, 11 Apr 2011 13:41:27 +0000 (13:41 +0000)]
2011-04-11  Andreas Kling  <andreas.kling@nokia.com>

        Build fix after r83436.

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse):

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

9 years ago2011-04-07 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Mon, 11 Apr 2011 13:40:38 +0000 (13:40 +0000)]
2011-04-07  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: get rid of source frame delegates for resources panel.
        https://bugs.webkit.org/show_bug.cgi?id=58041

        Use TextViewer configured with a domain-specific delegate to show/edit resource contents in resources panel.

        * inspector/front-end/ResourceView.js:
        (WebInspector.ResourceView.createResourceView):
        (WebInspector.ResourceView.resourceViewTypeMatchesResource):
        (WebInspector.ResourceSourceFrame):
        (WebInspector.ResourceSourceFrame.prototype.get resource):
        (WebInspector.ResourceSourceFrame.prototype.contentEditable):
        (WebInspector.ResourceSourceFrame.prototype._requestContent):
        (WebInspector.CSSSourceFrame):
        (WebInspector.CSSSourceFrame.prototype.contentEditable):
        (WebInspector.CSSSourceFrame.prototype._editContent):
        (WebInspector.CSSSourceFrame.prototype._editContent.handleInfos):
        (WebInspector.CSSSourceFrame.prototype._saveStyleSheet):
        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype._ensureContentLoaded):
        (WebInspector.SourceFrame.prototype._requestContent):
        (WebInspector.SourceFrame.prototype._handleSave):
        (WebInspector.SourceFrame.prototype._editContent):

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

9 years ago2011-04-11 Alexis Menard <alexis.menard@openbossa.org>
alexis.menard@openbossa.org [Mon, 11 Apr 2011 13:37:54 +0000 (13:37 +0000)]
2011-04-11  Alexis Menard  <alexis.menard@openbossa.org>

        Reviewed by Andreas Kling.

        [Qt] Regression : r83051 Oxygen's lineedits are not rendered properly
        https://bugs.webkit.org/show_bug.cgi?id=58076

        State_Sunken is more generic than pressed. It is used by items such as frames or
        line edits because they are "sunken" frames (e.g. QLineEdit). It can be required
        by some style like Oxygen. Therefore only in the mobile theme we check if the object
        is pressed.

        * platform/qt/RenderThemeQt.cpp:
        (WebCore::RenderThemeQt::paintTextField):

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

9 years ago2011-04-11 Andreas Kling <andreas.kling@nokia.com>
andreas.kling@nokia.com [Mon, 11 Apr 2011 13:11:33 +0000 (13:11 +0000)]
2011-04-11  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Benjamin Poulain.

        [Qt] dumpResourceResponseMIMETypes shouldn't strip URL query string.

        * platform/qt/Skipped: Unskip http/tests/loading/preload-append-scan.php
2011-04-11  Andreas Kling  <andreas.kling@nokia.com>

        Reviewed by Benjamin Poulain.

        [Qt] dumpResourceResponseMIMETypes shouldn't strip URL query string.

        * WebCoreSupport/FrameLoaderClientQt.cpp:
        (WebCore::FrameLoaderClientQt::dispatchDidReceiveResponse): Use KURL::lastPathComponent()
        for the dumpResourceResponseMIMETypes display string instead of QFileInfo::fileName().
        This is in line with the Mac port.

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

9 years ago2011-04-11 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Mon, 11 Apr 2011 12:30:57 +0000 (12:30 +0000)]
2011-04-11  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: add support for optional output parameters.
        https://bugs.webkit.org/show_bug.cgi?id=58207

        Output parameters such as "redirectResponse" are optional, but
        do not allow specifying them as such.

        * inspector/CodeGeneratorInspector.pm:
        * inspector/Inspector.json:
        * inspector/InspectorResourceAgent.cpp:
        (WebCore::buildObjectForResourceResponse):
        (WebCore::buildObjectForCachedResource):
        * inspector/front-end/NetworkManager.js:
        (WebInspector.NetworkDispatcher.prototype._updateResourceWithResponse):
        * inspector/generate-inspector-idl:

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

9 years ago2011-04-11 Pavel Feldman <pfeldman@chromium.org>
pfeldman@chromium.org [Mon, 11 Apr 2011 11:45:08 +0000 (11:45 +0000)]
2011-04-11  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: refactor / document call frames in debugger domain.
        https://bugs.webkit.org/show_bug.cgi?id=58187

        Note that we are not special casing with(element) and with(document) anymore
        and do not tell user that it is "Event target" and "Event document". Strictly speaking,
        we should not have done it for with(element) not necessarily being related to an event.

        * English.lproj/localizedStrings.js:
        * inspector/InjectedScriptSource.js:
        * inspector/Inspector.json:
        * inspector/front-end/ScopeChainSidebarPane.js:
        (WebInspector.ScopeChainSidebarPane.prototype.update):

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

9 years ago2011-04-11 Alejandro G. Castro <alex@igalia.com>
alex@webkit.org [Mon, 11 Apr 2011 08:57:10 +0000 (08:57 +0000)]
2011-04-11  Alejandro G. Castro  <alex@igalia.com>

        Skipped another test that requires dumpResourceResponseMIMETypes.

        * platform/gtk/Skipped:

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

9 years ago2011-04-11 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Mon, 11 Apr 2011 08:47:25 +0000 (08:47 +0000)]
2011-04-11  Kent Tamura  <tkent@chromium.org>

        [Chromium] Update test expectation.
        - http/tests/loading/preload-append-scan.php is flaky.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-11 Philippe Normand <pnormand@igalia.com>
philn@webkit.org [Mon, 11 Apr 2011 07:42:48 +0000 (07:42 +0000)]
2011-04-11  Philippe Normand  <pnormand@igalia.com>

        Unreviewed, GTK media tests rebaseline after r83397.

        * platform/gtk/fast/layers/video-layer-expected.txt:
        * platform/gtk/media/video-empty-source-expected.txt:
        * platform/gtk/media/video-zoom-controls-expected.txt:

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

9 years ago2011-04-11 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Mon, 11 Apr 2011 07:33:36 +0000 (07:33 +0000)]
2011-04-11  Kent Tamura  <tkent@chromium.org>

        [Chromium] test expectation update
        - Revert expectations of mask-excessive-malloc.svg and pattern-excessive-malloc.svg.
        - first-of-type-pseudo-class.html is flaky.
        - The merged frame-element-name.html is flaky.
        - ancestor-overflow-change.html is failing on GPU.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-10 ChangSeok Oh <shivamidow@gmail.com>
commit-queue@webkit.org [Mon, 11 Apr 2011 06:57:24 +0000 (06:57 +0000)]
2011-04-10  ChangSeok Oh  <shivamidow@gmail.com>

        Reviewed by Eric Seidel.

        Make correspondence of file name related with event to other port.
        https://bugs.webkit.org/show_bug.cgi?id=57416

        Some file names are changed to make correspondence naming rule.
        Keyboard, mouse and wheel event file names for GTK port have been different from other ports.
        This has made user hard to find a specific file related with event for GTK port.

        No test required. This patch just changes some file names.

        * GNUmakefile.list.am:
        * platform/gtk/KeyEventGtk.cpp: Removed.
        * platform/gtk/MouseEventGtk.cpp: Removed.
        * platform/gtk/PlatformKeyboardEventGtk.cpp: Added.
        * platform/gtk/PlatformMouseEventGtk.cpp: Added.
        * platform/gtk/PlatformWheelEventGtk.cpp: Added.
        * platform/gtk/WheelEventGtk.cpp: Removed.

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

9 years ago2011-04-10 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Mon, 11 Apr 2011 06:12:44 +0000 (06:12 +0000)]
2011-04-10  Kent Tamura  <tkent@chromium.org>

        [Chromium] Update expectations.
        - Remove deprecated entry
        - Add ancestor-overflow-change.html for GPU.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-10 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 11 Apr 2011 06:10:10 +0000 (06:10 +0000)]
2011-04-10  Simon Fraser  <simon.fraser@apple.com>

        Revert the FloatRect.cpp part of r83422, since
        clampToInteger() is broken for some inputs. I filed
        https://bugs.webkit.org/show_bug.cgi?id=58216

        * platform/graphics/FloatRect.cpp:
        (WebCore::safeFloatToInt):
        (WebCore::enclosingIntRect):

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

9 years agoNot reviewed.
mjs@apple.com [Mon, 11 Apr 2011 05:51:54 +0000 (05:51 +0000)]
Not reviewed.

Remove extra inadvertantly commiteed changes from last change.

* WebProcess/com.apple.WebProcess.sb:

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

9 years ago2011-04-10 Maciej Stachowiak <mjs@apple.com>
mjs@apple.com [Mon, 11 Apr 2011 05:49:27 +0000 (05:49 +0000)]
2011-04-10  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Dan Bernstein.

        REGRESSION: WebProcess spews sandboxing violations for outbound network traffic
        https://bugs.webkit.org/show_bug.cgi?id=58215
        <rdar://problem/9251695>

        * WebProcess/com.apple.WebProcess.sb: Restore some previously removed rules.

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

9 years ago2011-04-10 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 11 Apr 2011 05:22:20 +0000 (05:22 +0000)]
2011-04-10  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Maciej Stachowiak.

        Car model dropdowns at audiusa.com lay out incorrectly with compositing enabled
        https://bugs.webkit.org/show_bug.cgi?id=56660

        When overflow on an element changes, we need to inform compositing
        layers which create and position an "ancestor clipping" layer based
        on that overflow. Do this by triggering a rebuild of compositing layers
        when overflow changes on a layer whose stacking context has compositing
        descendants. (We can't just check whether the layer itself has compositing
        descendants, because overflow follows the render tree, but compositing
        follows the z-order tree.)

        Test: compositing/geometry/ancestor-overflow-change.html

        * rendering/RenderLayer.cpp:
        (WebCore::RenderLayer::styleChanged):
        * rendering/RenderLayer.h:
        * rendering/RenderLayerBacking.cpp:
        (WebCore::RenderLayerBacking::updateGraphicsLayerGeometry):

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

9 years ago2011-04-10 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Mon, 11 Apr 2011 05:08:32 +0000 (05:08 +0000)]
2011-04-10  Kent Tamura  <tkent@chromium.org>

        [Chromium] Update test expectation.
        svg/W3C-SVG-1.1/masking-intro-01-f.svg is crashing on Mac and Linux too.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-10 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Mon, 11 Apr 2011 04:51:42 +0000 (04:51 +0000)]
2011-04-10  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Ariya Hidayat.

        Allow ShadowBlur to re-use the last buffer if it already contains the correct shadow
        https://bugs.webkit.org/show_bug.cgi?id=58161

        ShadowBlur already has a singleton scratch buffer that is re-used
        between shadows. Enhance use of this scratch buffer to avoid drawing
        and blurring the shadow if the results will match what is already
        in the buffer.

        Cleaned up ShadowBlur code to remove beginShadowLayer() and endShadowLayer(),
        which ended up with little reusable code after adding the re-use logic.

        * platform/graphics/FloatRect.cpp:
        (WebCore::enclosingIntRect): Replace safeFloatToInt() with the existing
        clampToInteger() from MathExtras.h

        * platform/graphics/FloatSize.h:
        (WebCore::expandedIntSize): New method to safely ceil() the size.

        * platform/graphics/RoundedIntRect.h:
        Add operator== for Radii and RoundedIntRect.

        * platform/graphics/ShadowBlur.cpp:
        (WebCore::ScratchBuffer::ScratchBuffer):
        (WebCore::ScratchBuffer::setLastShadowValues):
        (WebCore::ScratchBuffer::setLastInsetShadowValues):
        (WebCore::ScratchBuffer::matchesLastShadow):
        (WebCore::ScratchBuffer::matchesLastInsetShadow):
        (WebCore::ScratchBuffer::clearScratchBuffer):
        Have the scratch buffer remember what shadow parameters were used
        to render the buffer contents.

        (WebCore::ShadowBlur::drawShadowBuffer):
        Renamed from endShadowLayer(), and only contains the drawing
        logic now.

        (WebCore::ShadowBlur::drawRectShadow):
        Promote some code from beginShadowLayer().

        (WebCore::ShadowBlur::drawInsetShadow):
        Promote some code from beginShadowLayer().

        (WebCore::ShadowBlur::drawRectShadowWithoutTiling):
        (WebCore::ShadowBlur::drawInsetShadowWithoutTiling):
        (WebCore::ShadowBlur::drawInsetShadowWithTiling):
        (WebCore::ShadowBlur::drawRectShadowWithTiling):
        These methods now check to see if the buffer already matches
        their required parameters, and avoid work if it does.

        (WebCore::ShadowBlur::blurShadowBuffer):
        Factored some code into this new method.

        (WebCore::ShadowBlur::blurAndColorShadowBuffer):
        Minor refactoring.

        * platform/graphics/ShadowBlur.h:

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

9 years ago2011-04-10 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Mon, 11 Apr 2011 04:44:50 +0000 (04:44 +0000)]
2011-04-10  Kent Tamura  <tkent@chromium.org>

        [Chromium] Update test expectations.
        - absolute-sized-document-no-scrollbars.svg is flaky on Linux
        - font-update.html is failing on Windows GPU and Linux GPU.

        * platform/chromium/test_expectations.txt:

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

9 years ago2011-04-10 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Mon, 11 Apr 2011 04:09:14 +0000 (04:09 +0000)]
2011-04-10  Kent Tamura  <tkent@chromium.org>

        [Chromium] Fix build errors on "Win Shared Builder (dbg)"

        * WebKit.gyp: Exclude WebFrameTest.cpp for WEBKIT_DLL.

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

9 years agoBuild fix: Updated for file move.
ggaren@apple.com [Mon, 11 Apr 2011 04:00:42 +0000 (04:00 +0000)]
Build fix: Updated for file move.

* bindings/js/GCController.cpp:
* bindings/js/ScriptGCEvent.cpp:

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

9 years agoMoved Heap.h and Heap.cpp to the heap folder, because anything less
ggaren@apple.com [Mon, 11 Apr 2011 03:54:22 +0000 (03:54 +0000)]
Moved Heap.h and Heap.cpp to the heap folder, because anything less
would be uncivilized.

Rubber-stamped by Beth Dakin.

Source/JavaScriptCore:

* Android.mk:
* CMakeLists.txt:
* GNUmakefile.list.am:
* JavaScriptCore.gypi:
* JavaScriptCore.pro:
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
* heap/Heap.cpp: Copied from JavaScriptCore/runtime/Heap.cpp.
* heap/Heap.h: Copied from JavaScriptCore/runtime/Heap.h.
* runtime/Heap.cpp: Removed.
* runtime/Heap.h: Removed.

Source/WebCore:

* ForwardingHeaders/heap/Heap.h: Copied from WebCore/ForwardingHeaders/runtime/Heap.h.
* ForwardingHeaders/runtime/Heap.h: Removed.

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

9 years ago2011-04-10 Luke Macpherson <macpherson@chromium.org>
commit-queue@webkit.org [Mon, 11 Apr 2011 03:49:38 +0000 (03:49 +0000)]
2011-04-10  Luke Macpherson   <macpherson@chromium.org>

        Reviewed by Simon Fraser.

        Rename CSSStyleApplyProperty::inherit,initial,value applyInheritValue,applyInitialValue,applyValue
        https://bugs.webkit.org/show_bug.cgi?id=58212

        No new tests - function renaming only / no functionality changes.

        * css/CSSStyleApplyProperty.cpp:
        Rename all instances of inherit, initial and value.
        * css/CSSStyleApplyProperty.h:
        Rename all instances of inherit, initial and value.
        * css/CSSStyleSelector.cpp:
        Rename all instances of inherit, initial and value.

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

9 years ago2011-04-10 Kimmo Kinnunen <kimmo.t.kinnunen@nokia.com>
commit-queue@webkit.org [Mon, 11 Apr 2011 02:35:38 +0000 (02:35 +0000)]
2011-04-10  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>

        Reviewed by Eric Seidel.

        Require no undefined symbols during compilation.

        [Qt] [WK2] WebKitTestRunner, QtWebProcess and WTRInjectBundle should fail to compile when there's undefined symbols
        https://bugs.webkit.org/show_bug.cgi?id=54896

        Add -Wl,--no-undefined to catch missing symbols early.

        * WebProcess.pro:
2011-04-10  Kimmo Kinnunen  <kimmo.t.kinnunen@nokia.com>

        Reviewed by Eric Seidel.

        Require no undefined symbols during compilation.

        [Qt] [WK2] WebKitTestRunner, QtWebProcess and WTRInjectBundle should fail to compile when there's undefined symbols
        https://bugs.webkit.org/show_bug.cgi?id=54896

        Add -Wl,--no-undefined to catch missing symbols early.

        * WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro:
        * WebKitTestRunner/qt/WebKitTestRunner.pro:

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

9 years ago2011-04-10 Mike Lawther <mikelawther@chromium.org>
commit-queue@webkit.org [Mon, 11 Apr 2011 02:31:42 +0000 (02:31 +0000)]
2011-04-10  Mike Lawther  <mikelawther@chromium.org>

        Reviewed by Ojan Vafai.

        flex/bison tokens and grammar for CSS calc
        https://bugs.webkit.org/show_bug.cgi?id=54412

        Only the 'errors' and 'regression' tests pass as intended right now. As of this
        patch, none of the actual calculations are expected to work, since only
        the lexing/grammar stage is present.

        * css3/calc/calc-errors-expected.txt: Added.
        * css3/calc/calc-errors.html: Added.
        * css3/calc/lexer-regression-57581-2-expected.txt: Added.
        * css3/calc/lexer-regression-57581-2.html: Added.
        * css3/calc/lexer-regression-57581-3-expected.txt: Added.
        * css3/calc/lexer-regression-57581-3.html: Added.
        * css3/calc/lexer-regression-57581-expected.txt: Added.
        * css3/calc/lexer-regression-57581.html: Added.
        * css3/calc/minmax-errors-expected.txt: Added.
        * css3/calc/minmax-errors.html: Added.
        * css3/calc/simple-calcs-expected.txt: Added.
        * css3/calc/simple-calcs.html: Added.
        * css3/calc/simple-minmax-expected.txt: Added.
        * css3/calc/simple-minmax.html: Added.
2011-04-10  Mike Lawther  <mikelawther@chromium.org>

        Reviewed by Ojan Vafai.

        flex/bison tokens and grammar for CSS calc
        https://bugs.webkit.org/show_bug.cgi?id=54412

        Tests: css3/calc/calc-errors.html
               css3/calc/lexer-regression-57581-2.html
               css3/calc/lexer-regression-57581-3.html
               css3/calc/lexer-regression-57581.html
               css3/calc/minmax-errors.html
               css3/calc/nested-rounded-corners.html
               css3/calc/simple-calcs.html
               css3/calc/simple-minmax.html

        * css/CSSGrammar.y:
        * css/CSSParserValues.cpp:
        (WebCore::CSSParserValueList::insertValueAt):
        (WebCore::CSSParserValueList::extend):
        * css/CSSParserValues.h:
        * css/tokenizer.flex:

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

9 years ago2011-04-10 Alice Boxhall <aboxhall@chromium.org>
commit-queue@webkit.org [Mon, 11 Apr 2011 02:21:40 +0000 (02:21 +0000)]
2011-04-10  Alice Boxhall  <aboxhall@chromium.org>

        Reviewed by Ryosuke Niwa.

        Change EventHandler::updateSelectionForMouseDrag to take a HitTestResult only.
        https://bugs.webkit.org/show_bug.cgi?id=57923

        Change EventHandler::updateSelectionForMouseDrag to take a HitTestResult
        rather than a Node* and an IntPoint&, as the selection may actually not
        extend into the Node found by the HitTest.

        No new tests. Refactoring only.

        * page/EventHandler.cpp:
        (WebCore::EventHandler::handleMouseDraggedEvent):
        (WebCore::EventHandler::updateSelectionForMouseDrag):
        * page/EventHandler.h:

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

9 years ago2011-04-10 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Mon, 11 Apr 2011 02:10:15 +0000 (02:10 +0000)]
2011-04-10  Kent Tamura  <tkent@chromium.org>

        [Chromium] Update expectations for r83360.

        * platform/chromium-linux/fast/box-shadow/inset-box-shadows-expected.checksum: Removed.
        * platform/chromium-linux/fast/box-shadow/inset-box-shadows-expected.png:
        * platform/chromium-linux/fast/box-shadow/inset-expected.png:
        * platform/chromium-mac-leopard/fast/box-shadow/inset-expected.png: Added.
        * platform/chromium-mac/fast/box-shadow/inset-box-shadows-expected.checksum: Removed.
        * platform/chromium-mac/fast/box-shadow/inset-box-shadows-expected.png: Removed.
        * platform/chromium-mac/fast/box-shadow/inset-expected.checksum: Removed.
        * platform/chromium-mac/fast/box-shadow/inset-expected.png: Removed.
        * platform/chromium-win/fast/box-shadow/inset-box-shadows-expected.checksum: Removed.
        * platform/chromium-win/fast/box-shadow/inset-box-shadows-expected.png:
        * platform/chromium-win/fast/box-shadow/inset-expected.png:

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

9 years ago2011-04-10 Kent Tamura <tkent@chromium.org>
tkent@chromium.org [Mon, 11 Apr 2011 01:49:57 +0000 (01:49 +0000)]
2011-04-10  Kent Tamura  <tkent@chromium.org>

        Unreviewed, rolling out r83353.
        http://trac.webkit.org/changeset/83353
        https://bugs.webkit.org/show_bug.cgi?id=58106

        The new test doesn't pass on all Chromium platforms.

        * editing/pasteboard/data-transfer-items-image-png-expected.html: Removed.
        * editing/pasteboard/data-transfer-items-image-png.html: Removed.
2011-04-10  Kent Tamura  <tkent@chromium.org>

        Unreviewed, rolling out r83353.
        http://trac.webkit.org/changeset/83353
        https://bugs.webkit.org/show_bug.cgi?id=58106

        The new test doesn't pass on all Chromium platforms.

        * dom/DataTransferItem.h:
        * dom/DataTransferItem.idl:
        * platform/chromium/ClipboardMimeTypes.cpp:
        * platform/chromium/ClipboardMimeTypes.h:
        * platform/chromium/DataTransferItemChromium.cpp:
        (WebCore::DataTransferItemChromium::getAsString):
        * platform/chromium/DataTransferItemChromium.h:
        * platform/chromium/PlatformBridge.h:
2011-04-10  Kent Tamura  <tkent@chromium.org>

        Unreviewed, rolling out r83353.
        http://trac.webkit.org/changeset/83353
        https://bugs.webkit.org/show_bug.cgi?id=58106

        The new test doesn't pass on all Chromium platforms.

        * DEPS:
        * src/PlatformBridge.cpp:

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

9 years ago2011-04-10 Daniel Bates <dbates@rim.com>
commit-queue@webkit.org [Mon, 11 Apr 2011 01:45:29 +0000 (01:45 +0000)]
2011-04-10  Daniel Bates  <dbates@rim.com>

        Reviewed by Eric Seidel.

        Add layout test to ensure that window.name returns {"_blank", "_parent", "_self", "_top"}
        for a frame of the same name
        https://bugs.webkit.org/show_bug.cgi?id=58189

        Extracted common code from files LayoutTests/fast/frames/resources/frame-element-name-{left, right}.html
        into LayoutTests/fast/frames/resources/frame-element-name.html so that we can use this logic
        to test frames with arbitrary names.

        * fast/frames/frame-element-name-expected.txt:
        * fast/frames/frame-element-name.html: Modified to use resources/frame-element-name.html; Added
          test cases for "_blank", "_parent", "_self", and "_top".
        * fast/frames/resources/frame-element-name-left.html: Removed; Instead, pass expectedName to
          resources/frame-element-name.html
        * fast/frames/resources/frame-element-name-right.html: Ditto.
        * fast/frames/resources/frame-element-name.html: Added.

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

9 years ago2011-04-10 Gyuyoung Kim <gyuyoung.kim@samsung.com>
gyuyoung.kim@samsung.com [Mon, 11 Apr 2011 01:35:33 +0000 (01:35 +0000)]
2011-04-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>

        Reviewed by Eric Carlson.

        [EFL] Add seek forward / backward buttons to MediaControl UI.
        https://bugs.webkit.org/show_bug.cgi?id=56810

        Add seek forward / backward buttons to media control. And, change formType name
        for media control.

        * platform/efl/RenderThemeEfl.cpp:
        (WebCore::RenderThemeEfl::edjeGroupFromFormType):
        (WebCore::RenderThemeEfl::emitMediaButtonSignal):
        (WebCore::RenderThemeEfl::paintMediaMuteButton):
        (WebCore::RenderThemeEfl::paintMediaPlayButton):
        (WebCore::RenderThemeEfl::paintMediaSeekBackButton):
        (WebCore::RenderThemeEfl::paintMediaSeekForwardButton):
        * platform/efl/RenderThemeEfl.h:
2011-04-10  Gyuyoung Kim  <gyuyoung.kim@samsung.com>

        Reviewed by Eric Carlson.

        [EFL] Add seek forward / backward buttons to MediaControl UI.
        https://bugs.webkit.org/show_bug.cgi?id=56810

        Add seek forward / backward buttons to media control.

        * DefaultTheme/default.edc:
        * DefaultTheme/widget/mediacontrol/seekbackwardbutton/seekbackward_button.edc: Added.
        * DefaultTheme/widget/mediacontrol/seekbackwardbutton/seekbackwardbutton.png: Added.
        * DefaultTheme/widget/mediacontrol/seekforwardbutton/seekforward_button.edc: Added.
        * DefaultTheme/widget/mediacontrol/seekforwardbutton/seekforwardbutton.png: Added.

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

9 years ago2011-04-10 Chris Guillory <chris.guillory@google.com>
commit-queue@webkit.org [Mon, 11 Apr 2011 01:23:58 +0000 (01:23 +0000)]
2011-04-10  Chris Guillory  <chris.guillory@google.com>

        Reviewed by Eric Seidel.

        Remove unused function declaration in PlatformContextSkia.h.
        https://bugs.webkit.org/show_bug.cgi?id=55983

        * platform/graphics/skia/PlatformContextSkia.h:

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

9 years ago[wx] Unreviewed build fix. Remove collector dirs from the list of build dirs.
kevino@webkit.org [Sun, 10 Apr 2011 22:30:20 +0000 (22:30 +0000)]
[wx] Unreviewed build fix. Remove collector dirs from the list of build dirs.

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

9 years ago2011-04-10 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Sun, 10 Apr 2011 22:07:33 +0000 (22:07 +0000)]
2011-04-10  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by Darin Adler.

        Remove duplicated code from AtomicString::fromUTF8()
        https://bugs.webkit.org/show_bug.cgi?id=53711

        * JavaScriptCore.exp:
        * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def:
        * wtf/text/AtomicString.cpp:
        (WTF::AtomicString::fromUTF8Internal):
        * wtf/text/AtomicString.h:
        (WTF::AtomicString::fromUTF8):
        * wtf/unicode/UTF8.cpp:
        (WTF::Unicode::calculateStringHashAndLengthFromUTF8):
        * wtf/unicode/UTF8.h:

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

9 years ago2011-04-10 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Sun, 10 Apr 2011 21:57:22 +0000 (21:57 +0000)]
2011-04-10  Patrick Gansterer  <paroga@webkit.org>

        Unreviewed build fix for !ENABLE(XSLT) after r82562.

        * dom/XMLDocumentParserLibxml2.cpp:
        (WebCore::XMLDocumentParser::doEnd):

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

9 years ago2011-04-10 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Sun, 10 Apr 2011 21:38:13 +0000 (21:38 +0000)]
2011-04-10  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Eric Carlson.

        fast/layers/video-layer.html needs expectations update
        https://bugs.webkit.org/show_bug.cgi?id=58203

        * platform/win/fast/layers/video-layer-expected.txt: Updated result after r83397.

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

9 years agoNot reviewed.
mjs@apple.com [Sun, 10 Apr 2011 21:26:48 +0000 (21:26 +0000)]
Not reviewed.

Fix build (at least on Lion) by adding some newish header files to
PrivateHeaders.

* JavaScriptCore.xcodeproj/project.pbxproj:

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

9 years ago2011-04-10 Patrick Gansterer <paroga@webkit.org>
paroga@webkit.org [Sun, 10 Apr 2011 21:00:17 +0000 (21:00 +0000)]
2011-04-10  Patrick Gansterer  <paroga@webkit.org>

        Unreviewed build fix for !ENABLE(XSLT) after r82562.

        * xml/XMLTreeViewer.cpp: Readded #if ENABLE(XSLT).

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

9 years agoWebKitTestRunner needs a more-complete implementation of eventSender
jberlin@webkit.org [Sun, 10 Apr 2011 18:06:57 +0000 (18:06 +0000)]
WebKitTestRunner needs a more-complete implementation of eventSender
https://bugs.webkit.org/show_bug.cgi?id=42194

Add another test that depends on eventSender.keyDown (fast/dom/hidden-iframe-no-focus.html
added in r83356) to the mac-wk2 skipped list to get the bots green.

* platform/mac-wk2/Skipped:

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

9 years ago[wx] Unreviewed build fix. Add Source/JavaScriptCore/heap to the list of directories.
kevino@webkit.org [Sun, 10 Apr 2011 17:37:48 +0000 (17:37 +0000)]
[wx] Unreviewed build fix. Add Source/JavaScriptCore/heap to the list of directories.

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

9 years ago2011-04-10 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Sun, 10 Apr 2011 17:35:54 +0000 (17:35 +0000)]
2011-04-10  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Anders Carlsson.

        REGRESSION(r83256): Text-decoration bleeds into shadow DOM
        https://bugs.webkit.org/show_bug.cgi?id=58205

        * platform/chromium/test_expectations.txt: Removed the test that starts
            passing after this change.
2011-04-10  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Anders Carlsson.

        REGRESSION(r83256): Text-decoration bleeds into shadow DOM
        https://bugs.webkit.org/show_bug.cgi?id=58205

        Now that the shadow root is a never-styled element, we need to walk to
        parent to find out if we're inside of a shadow DOM subtree.

        Test: media/controls-styling.html

        * css/CSSStyleSelector.cpp:
        (WebCore::isAtShadowBoundary): Added helper function.
        (WebCore::CSSStyleSelector::adjustRenderStyle): Changed to use the helper.

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

9 years ago2011-04-10 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Sun, 10 Apr 2011 16:45:17 +0000 (16:45 +0000)]
2011-04-10  Dimitri Glazkov  <dglazkov@chromium.org>

        Temporarily add a failing test, while I am fixing it.

        * platform/chromium/test_expectations.txt: Added.

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

9 years agoREGRESSION(r83384): Change to chromium.py is resulting in failures of the test framew...
levin@chromium.org [Sun, 10 Apr 2011 16:00:51 +0000 (16:00 +0000)]
REGRESSION(r83384): Change to chromium.py is resulting in failures of the test framework on linux.
https://bugs.webkit.org/show_bug.cgi?id=58201

Reviewed by Dimitri Glazkov.

* Scripts/webkitpy/layout_tests/port/chromium.py: Commented out the assert for now,
and filed bug 58202.

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

9 years ago2011-04-07 Dimitri Glazkov <dglazkov@chromium.org>
dglazkov@chromium.org [Sun, 10 Apr 2011 14:57:13 +0000 (14:57 +0000)]
2011-04-07  Dimitri Glazkov  <dglazkov@chromium.org>

        Reviewed by Eric Carlson.

        [Meta] Convert HTMLMediaElement to use the new shadow DOM
        https://bugs.webkit.org/show_bug.cgi?id=53020

        This conversion is non-trivial, for several reasons:

        1) Since HTMLMediaElement now hosts the shadow DOM for controls, hiding
        and showing controls does not result in destroying and re-creating the
        shadow DOM tree. Instead, the tree is created as needed and shown/hidden
        using inline styles.

        2) Instead of detaching/attaching on each style change, the control parts
        are now using a set of higher fidelity callbacks that notify MediaControls
        about changes to which it should react. Each reaction results in hiding,
        showing, or changing the state of the control parts using inline styles
        and DOM APIs.

        3) Hiding and showing controls is accomplished using inline styles, rather
        than wiring rendererIsNeeded, because renderers are now re-created less
        frequently.

        4) Instead of constantly querying RenderTheme about visibility of a particular
        control part, we let the theme determine which parts are supported and
        which parts are visible in certain conditions.

        5) Custom hit-testing, event forwarding, and style updates are completely
        removed, since they are now unnecessary.

        6) Fading controls in/out is now done as CSS animation, since shadow DOM
        supports it.

        Test: manual-tests/media-controls.html

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

9 years ago<rdar://problem/9215280> Detached canvas draws with incorrect font
mitz@apple.com [Sun, 10 Apr 2011 06:29:26 +0000 (06:29 +0000)]
<rdar://problem/9215280> Detached canvas draws with incorrect font

Reviewed by Beth Dakin.

Source/WebCore:

Test: fast/canvas/font-update.html

The existing mechanism for updating the font in a canvas 2D context was lacking in at least
two ways: it neglected to update fonts in all but the topmost state in the stack, and since it
was based on HTMLCanvasElemen's attach() and recalcStyle(), it did not work when the element
was not attached.

This change takes the responsibility for font updates away from the canvas element and gives it
to the canvas context and its graphics state.

* css/CSSFontSelector.cpp:
(WebCore::CSSFontSelector::registerForInvalidationCallbacks): Added. Adds to the set of registered
font selector clients.
(WebCore::CSSFontSelector::unregisterForInvalidationCallbacks): Added. Removes from the set of
registered font selector clients.
(WebCore::CSSFontSelector::dispatchInvalidationCallbacks): Calls fontsNeedUpdate() on all registered
clients and forces a style recalc on the document.
(WebCore::CSSFontSelector::fontLoaded): Changed to call dispatchInvalidationCallbacks().
(WebCore::CSSFontSelector::fontCacheInvalidated): Ditto.
* css/CSSFontSelector.h:
* html/HTMLCanvasElement.cpp: Removed overrides of attach() and recalcStyle().
* html/HTMLCanvasElement.h:
* html/canvas/CanvasRenderingContext2D.cpp:
(WebCore::CanvasRenderingContext2D::State::~State): Added. Unregisters with the font selector.
(WebCore::CanvasRenderingContext2D::State::fontsNeedUpdate): Added. Called by the font selector
when its fonts need to be updated. Updates the font.
(WebCore::CanvasRenderingContext2D::setFont): Registers the state with the font selector.
* html/canvas/CanvasRenderingContext2D.h:
* platform/graphics/FontSelector.h:
(WebCore::FontSelectorClient::~FontSelectorClient):

LayoutTests:

* fast/canvas/font-update-expected.checksum: Added.
* fast/canvas/font-update-expected.png: Added.
* fast/canvas/font-update-expected.txt: Added.
* fast/canvas/font-update.html: Added.

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

9 years ago2011-04-09 David Levin <levin@chromium.org>
levin@chromium.org [Sun, 10 Apr 2011 06:17:24 +0000 (06:17 +0000)]
2011-04-09  David Levin  <levin@chromium.org>

        Unreviewed, rolling out r83394.
        http://trac.webkit.org/changeset/83394
        https://bugs.webkit.org/show_bug.cgi?id=53625

        Patch was incorrect as noted in the bug.

        * Scripts/svn-apply:

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

9 years agosvn-apply and/or patch(1) has trouble applying patches that makes changes to files...
levin@chromium.org [Sun, 10 Apr 2011 05:57:58 +0000 (05:57 +0000)]
svn-apply and/or patch(1) has trouble applying patches that makes changes to files with Windows line endings
https://bugs.webkit.org/show_bug.cgi?id=53625

Reviewed by Adam Barth.

* Scripts/svn-apply: Ensure that the portions of patches
which are for vcproj/vsprops files has DOS line endings.

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

9 years ago2011-04-09 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sun, 10 Apr 2011 04:18:15 +0000 (04:18 +0000)]
2011-04-09  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, expectations change.
        https://bugs.webkit.org/show_bug.cgi?id=58193

        Suppress a whole bunch of Win Vista failures until they can be
        triaged and/or rebaselined.

        * platform/chromium/test_expectations.txt:

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

9 years agoNot reviewed.
ggaren@apple.com [Sun, 10 Apr 2011 03:55:42 +0000 (03:55 +0000)]
Not reviewed.

Try recommitting some things svn left out of my last commit.

* bridge/qt/qt_runtime.h:

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

9 years agoNot reviewed.
ggaren@apple.com [Sun, 10 Apr 2011 03:53:45 +0000 (03:53 +0000)]
Not reviewed.

Try recommitting some things svn left out of my last commit.

* WebProcess/Plugins/Netscape/NPJSObject.h:

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

9 years agoNot reviewed.
ggaren@apple.com [Sun, 10 Apr 2011 03:50:32 +0000 (03:50 +0000)]
Not reviewed.

Try recommitting some things svn left out of my last commit.

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

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

9 years agoNot reviewed.
ggaren@apple.com [Sun, 10 Apr 2011 03:47:56 +0000 (03:47 +0000)]
Not reviewed.

Try recommitting some things svn left out of my last commit.

* ForwardingHeaders/collector: Removed.
* ForwardingHeaders/collector/handles: Removed.
* ForwardingHeaders/collector/handles/Global.h: Removed.

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

9 years agoNot reviewed.
ggaren@apple.com [Sun, 10 Apr 2011 03:41:08 +0000 (03:41 +0000)]
Not reviewed.

Try recommitting some things svn left out of its last commit.

* heap/Handle.h:
(JSC::HandleBase::operator!):
(JSC::HandleBase::HandleBase):
(JSC::HandleBase::slot):
(JSC::HandleBase::setSlot):
(JSC::Handle::Handle):
* heap/HandleHeap.cpp:
(JSC::HandleHeap::markWeakHandles):
(JSC::HandleHeap::finalizeWeakHandles):
(JSC::HandleHeap::isValidWeakNode):
* heap/HandleHeap.h:
(JSC::HandleHeap::globalData):

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