WebKit-https.git
8 years ago2010-12-20 David Levin <levin@chromium.org>
levin@chromium.org [Mon, 20 Dec 2010 21:58:07 +0000 (21:58 +0000)]
2010-12-20  David Levin  <levin@chromium.org>

        Reviewed by Ariya Hidayat.

        .gitignore and webkit-tools-completion.sh have references to WebKitTools that should be Tools.
        https://bugs.webkit.org/show_bug.cgi?id=51343

        Follow up from the WebKitTools -> Tools rename.

        * .gitignore:
2010-12-20  David Levin  <levin@chromium.org>

        Reviewed by Ariya Hidayat.

        .gitignore and webkit-tools-completion.sh have references to WebKitTools that should be Tools.
        https://bugs.webkit.org/show_bug.cgi?id=51343

        Follow up from the WebKitTools -> Tools rename.

        * Scripts/webkit-tools-completion.sh:

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

8 years ago2010-12-20 Cosmin Truta <ctruta@chromium.org>
jamesr@google.com [Mon, 20 Dec 2010 21:45:54 +0000 (21:45 +0000)]
2010-12-20  Cosmin Truta  <ctruta@chromium.org>

        Reviewed by James Robinson.

        new-run-webkit-tests ignores trailing EOL differences in text tests
        https://bugs.webkit.org/show_bug.cgi?id=36983

        Changed the handling of new-line characters within new-run-webkit-tests
        to match old-run-webkit-tests.  Differences in leading and trailing empty
        lines in text expectation files are no longer ignored.

        * Scripts/webkitpy/layout_tests/port/base.py:
        * Scripts/webkitpy/layout_tests/port/test.py:
        Added unit tests.  Removed old duplicate unit test entries.
        * Scripts/webkitpy/layout_tests/test_types/text_diff.py:

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

8 years ago2010-12-20 Cosmin Truta <ctruta@chromium.org>
jamesr@google.com [Mon, 20 Dec 2010 21:43:52 +0000 (21:43 +0000)]
2010-12-20  Cosmin Truta  <ctruta@chromium.org>

        Reviewed by James Robinson.

        Even more rebaselining needed for new-run-webkit-tests update
        https://bugs.webkit.org/show_bug.cgi?id=51340

        * http/tests/misc/webtiming-ssl-expected.txt:
        * storage/indexeddb/cursor-delete-expected.txt:
        * storage/indexeddb/cursor-index-delete-expected.txt:
        * storage/indexeddb/transaction-crash-on-abort-expected.txt:

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

8 years agoBug 26276 - Need a mechanism to determine stack extent
barraclough@apple.com [Mon, 20 Dec 2010 21:16:14 +0000 (21:16 +0000)]
Bug 26276 - Need a mechanism to determine stack extent

Reviewed by Oliver Hunt.

JavaScriptCore:

This patch adds a class 'StackBounds', to hold information about the machine stack.
The implementation of this class broadly adheres to the current implmentation of
stack limit checking, and as such does not solve the problem of determining stack
extent, but gives us a common place to do so.

Currently two mechanism are provided to determine the stack origin (the point the
stack is growing away from). currentThreadStackBase() in Collector provides a
more accurate determination of the stack origin, so use this to calculate
StackBounds::m_origin; WTFThreadData::approximatedStackStart is less accurate, and
as such can be removed.  Cache the StackBounds on WTFThreadData such that they
need only be determined once per thread, and for non-API contexts cache this
information in JSGlobalData, to save a thread-specific access.

For the time being retain the estimate of stack size used by JSC's parser
(128 * sizeof(void*) * 1024), with a view to replacing this with something more
accurate in the near future.

* parser/JSParser.cpp:
(JSC::JSParser::canRecurse):
(JSC::JSParser::JSParser):
    Change to use StackBounds.
* runtime/Collector.cpp:
(JSC::Heap::registerThread):
(JSC::Heap::markCurrentThreadConservativelyInternal):
    Change to use StackBounds, cached on JSGlobalData.
* runtime/JSGlobalData.cpp:
(JSC::JSGlobalData::JSGlobalData):
* runtime/JSGlobalData.h:
(JSC::JSGlobalData::stack):
    Add a cached copy of StackBounds.
* wtf/StackBounds.cpp: Copied from JavaScriptCore/runtime/Collector.cpp.
(WTF::estimateStackBound):
(WTF::StackBounds::initialize):
(WTF::getStackMax):
    Copy code from Collector.cpp to determine stack origin.
* wtf/StackBounds.h: Added.
(WTF::StackBounds::StackBounds):
    No argument constructor; returns a null StackBounds.
(WTF::StackBounds::currentThreadStackBounds):
    Returns a StackBounds object representing the stack limits
    of the current thread.
(WTF::StackBounds::origin):
    Returns to stack origin (the point the stack is growing away
    from; the highest extent of the stack on machines where the
    stack grows downwards.
(WTF::StackBounds::recursionLimit):
    Returns a limit value that is 'a comfortable distance from
    the end of the stack'. Our concept of this is currently 1 page
    away from the end, however the default value may be tuned in
    the future, and clients may override passing a larger delta;
    should only be called on StackBounds object representing the
    stack of the thread this method is called on (checked by
    checkConsistency).
(WTF::StackBounds::recursionCheck):
    Checks whether we are currently 'a comfortable distance from
    the end of the stack'. Our concept of this is currently 1 page
    away from the end, however the default value may be tuned in
    the future, and clients may override passing a larger delta
    to apply when checking, if they wish to do so. This method
    should only be called on StackBounds object representing the
    stack of the thread this method is called on (checked by
    checkConsistency).
(WTF::StackBounds::current):
    Approximate current stack position. On machines where the stack
    is growing downwards this is the lowest address that might need
    conservative collection.
(WTF::StackBounds::isGrowingDownward):
    True for all platforms other than WINCE, which has to check.
(WTF::StackBounds::checkConsistency):
    This is called in methods that shoulds only be operating on a
    valid set of bounds; as such we expect m_origin != m_bounds
    (i.e. stack size != zero) - we're really testing that this
    object is not null (the constructor initializes both fields
    to zero).  Also checks that current() is within the stack's
    bounds.
* wtf/WTFThreadData.cpp:
(WTF::WTFThreadData::WTFThreadData):
* wtf/WTFThreadData.h:
(WTF::WTFThreadData::stack):
    Add the StackBounds member variable.

JavaScriptGlue:

Add forwarding header for StackBounds.h.

* ForwardingHeaders/wtf/StackBounds.h: Added.

WebCore:

Add forwarding header for StackBounds.h.

* ForwardingHeaders/wtf/StackBounds.h: Added.

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

8 years ago2010-12-20 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 20 Dec 2010 20:59:44 +0000 (20:59 +0000)]
2010-12-20  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Flash plug-in does not work on YouTube video page when accelerated compositing is disabled
        https://bugs.webkit.org/show_bug.cgi?id=51348
        <rdar://problem/8787667>

        * Platform/CoreIPC/HandleMessage.h:
        (CoreIPC::callMemberFunction):
        Add new overload.

        * PluginProcess/PluginControllerProxy.cpp:
        (WebKit::PluginControllerProxy::create):
        (WebKit::PluginControllerProxy::PluginControllerProxy):
        These now take an additional isAcceleratedCompositingEnabled parameter.

        (WebKit::PluginControllerProxy::isAcceleratedCompositingEnabled):
        Return m_isAcceleratedCompositingEnabled.

        * PluginProcess/PluginControllerProxy.h:
        * PluginProcess/WebProcessConnection.cpp:
        (WebKit::WebProcessConnection::createPlugin):
        This now takes an additional isAcceleratedCompositingEnabled parameter.

        * PluginProcess/WebProcessConnection.messages.in:
        Add isAcceleratedCompositingEnabled parameter to the CreatePlugin message.

        * WebProcess/Plugins/PluginProxy.cpp:
        (WebKit::PluginProxy::initialize):
        Pass isAcceleratedCompositingEnabled when sending the CreatePlugin message.

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

8 years ago2010-12-20 James Robinson <jamesr@chromium.org>
jamesr@google.com [Mon, 20 Dec 2010 20:48:34 +0000 (20:48 +0000)]
2010-12-20  James Robinson  <jamesr@chromium.org>

        Unreviewed, rolling out r74278.
        http://trac.webkit.org/changeset/74278
        https://bugs.webkit.org/show_bug.cgi?id=50833

        [chromium] Causes many layout tests to crash

        * platform/graphics/chromium/LayerRendererChromium.cpp:
        (WebCore::LayerRendererChromium::LayerRendererChromium):
        (WebCore::LayerRendererChromium::prepareToDrawLayers):
        (WebCore::LayerRendererChromium::drawLayers):
        (WebCore::LayerRendererChromium::useRenderSurface):
        (WebCore::LayerRendererChromium::setScissorToRect):
        * platform/graphics/chromium/LayerRendererChromium.h:

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

8 years ago2010-12-17 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Mon, 20 Dec 2010 20:09:25 +0000 (20:09 +0000)]
2010-12-17  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Factored common page set management into a new PageBlock base class
        https://bugs.webkit.org/show_bug.cgi?id=51285

        * Android.mk:
        * CMakeLists.txt:
        * GNUmakefile.am:
        * JavaScriptCore.gypi:
        * JavaScriptCore.vcproj/WTF/WTF.vcproj:
        * JavaScriptCore.xcodeproj/project.pbxproj:
        * interpreter/RegisterFile.h:
        (JSC::RegisterFile::RegisterFile):
        * jit/ExecutableAllocator.cpp:
        (JSC::ExecutableAllocator::intializePageSize):
        * wtf/PageAllocation.cpp: Removed.
        * wtf/PageAllocation.h:
        (WTF::PageAllocation::deallocate):
        (WTF::PageAllocation::PageAllocation):
        * wtf/PageReservation.h:
        (WTF::PageReservation::commit):
        (WTF::PageReservation::decommit):
        (WTF::PageReservation::deallocate):
        (WTF::PageReservation::PageReservation):
        * wtf/wtf.pri:
2010-12-20  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Factored common page set management into a new PageBlock base class
        https://bugs.webkit.org/show_bug.cgi?id=51285

        * ForwardingHeaders/wtf/PageBlock.h: Added.
2010-12-20  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Sam Weinig.

        Factored common page set management into a new PageBlock base class
        https://bugs.webkit.org/show_bug.cgi?id=51285

        * ForwardingHeaders/wtf/PageBlock.h: Added.

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

8 years agocheck-webkit-style should detect function declarations (and trivial functions).
levin@chromium.org [Mon, 20 Dec 2010 19:38:49 +0000 (19:38 +0000)]
check-webkit-style should detect function declarations (and trivial functions).
https://bugs.webkit.org/show_bug.cgi?id=51303

Reviewed by Shinichiro Hamaji.

* Scripts/webkitpy/style/checkers/cpp.py:
(_FunctionState.begin): Add is_declaration and changed the line count
start to begin at -1 (which will keep the results consistent, since
the starting line number passed in is one less in this change).
(detect_functions): changed function detection to now catch trivial
functions and declarations.
(check_pass_ptr_usage): Don't check for Pass*Ptr on the first line
of the function as this may look at return values (when processing
a declaration).
* Scripts/webkitpy/style/checkers/cpp_unittest.py:
(FunctionDetectionTest.perform_function_detection): Basic mechanics
of testing the function detection.
(FunctionDetectionTest.test_basic_function_detection): Test a simple
function.
(FunctionDetectionTest.test_function_declaration_detection): Test a
declaration.
(FunctionDetectionTest.test_non_functions): A test case for a case
that caused the code to fail due to the { being in quotes.
(PassPtrTest.test_pass_ref_ptr_return_value): Added some more test
cases to help catch false alarms for return values.
(PassPtrTest.test_pass_ref_ptr_member_variable): Ensure that
we don't get false alarms for member variables either.

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

8 years ago2010-12-20 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Mon, 20 Dec 2010 18:54:18 +0000 (18:54 +0000)]
2010-12-20  Anders Carlsson  <andersca@apple.com>

        Unreviewed, rolling out r74345.
        http://trac.webkit.org/changeset/74345
        https://bugs.webkit.org/show_bug.cgi?id=51115

        Not the correct fix.

        * Platform/CoreIPC/Connection.h:
        * Platform/CoreIPC/qt/ConnectionQt.cpp:
        (CoreIPC::Connection::open):

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

8 years ago2010-12-20 Steve Block <steveblock@google.com>
steveblock@google.com [Mon, 20 Dec 2010 18:41:41 +0000 (18:41 +0000)]
2010-12-20  Steve Block  <steveblock@google.com>

        Reviewed by Jeremy Orlow.

        GeolocationPositionCache should do database access on background thread
        https://bugs.webkit.org/show_bug.cgi?id=50825

        Covered by existing Geolocation tests.

        * page/Coordinates.h:
        (WebCore::Coordinates::threadSafeCopy):
        * page/GeolocationPositionCache.cpp:
        (WebCore::GeolocationPositionCache::GeolocationPositionCache):
        (WebCore::GeolocationPositionCache::addUser):
        (WebCore::GeolocationPositionCache::removeUser):
        (WebCore::GeolocationPositionCache::setDatabasePath):
        (WebCore::GeolocationPositionCache::setCachedPosition):
        (WebCore::GeolocationPositionCache::cachedPosition):
        (WebCore::GeolocationPositionCache::startBackgroundThread):
        (WebCore::GeolocationPositionCache::threadEntryPoint):
        (WebCore::GeolocationPositionCache::threadEntryPointImpl):
        (WebCore::GeolocationPositionCache::triggerReadFromDatabase):
        (WebCore::GeolocationPositionCache::readFromDatabase):
        (WebCore::GeolocationPositionCache::readFromDatabaseImpl):
        (WebCore::GeolocationPositionCache::triggerWriteToDatabase):
        (WebCore::GeolocationPositionCache::writeToDatabase):
        (WebCore::GeolocationPositionCache::writeToDatabaseImpl):
        * page/GeolocationPositionCache.h:
        * page/Geoposition.h:
        (WebCore::Geoposition::threadSafeCopy):
        (WebCore::Geoposition::Geoposition):

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

8 years ago2010-12-20 Andras Becsi <abecsi@webkit.org>
abecsi@webkit.org [Mon, 20 Dec 2010 17:55:55 +0000 (17:55 +0000)]
2010-12-20  Andras Becsi  <abecsi@webkit.org>

        Unreviewed build fix.

        [Qt][V8] Add  missing sources to the pro file and remove duplications to fix linking.

        No new tests needed.

        * WebCore.pro:

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

8 years ago2010-12-20 Alexander Pavlov <apavlov@chromium.org>
apavlov@chromium.org [Mon, 20 Dec 2010 17:25:59 +0000 (17:25 +0000)]
2010-12-20  Alexander Pavlov  <apavlov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: Make CSSCompletions a real class rather than singleton
        https://bugs.webkit.org/show_bug.cgi?id=51332

Drive-by: make use of keywords from re2js in the CSS tokenizer
        (apparently, various authors have presumed that re2js is processed at build time).

        No new tests, as this is a refactoring.

        * inspector/front-end/CSSCompletions.js:
        (WebInspector.CSSCompletions):
        (WebInspector.CSSCompletions.prototype.startsWith):
        (WebInspector.CSSCompletions.prototype.firstStartsWith):
        (WebInspector.CSSCompletions.prototype._firstIndexOfPrefix):
        (WebInspector.CSSCompletions.prototype.keySet):
        (WebInspector.CSSCompletions.prototype.next):
        (WebInspector.CSSCompletions.prototype.previous):
        (WebInspector.CSSCompletions.prototype._closest):
        * inspector/front-end/SourceCSSTokenizer.js:
        (WebInspector.SourceCSSTokenizer):
        * inspector/front-end/SourceCSSTokenizer.re2js:
        * inspector/front-end/StylesSidebarPane.js:
        (WebInspector.StylePropertyTreeElement.prototype):
        * inspector/front-end/inspector.js:
        (WebInspector.doLoadedDone.propertyNamesCallback):
        (WebInspector.doLoadedDone):

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

8 years ago2010-12-20 Andrey Kosyakov <caseq@chromium.org>
caseq@chromium.org [Mon, 20 Dec 2010 17:24:35 +0000 (17:24 +0000)]
2010-12-20  Andrey Kosyakov  <caseq@chromium.org>

        Unreviewed. Rebased platform-specific test expectations following default expectations change in r74234.

        * platform/mac-leopard/inspector/extensions-resources-expected.txt:

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

8 years ago2010-12-10 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Mon, 20 Dec 2010 16:42:29 +0000 (16:42 +0000)]
2010-12-10  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Yury Semikhatsky.

        Web Inspector: "Add conditional breakpoint" - create breakpoint only after condition is provided.
        https://bugs.webkit.org/show_bug.cgi?id=50813

        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype._addBreakpoint):
        (WebInspector.SourceFrame.prototype._breakpointRemoved):
        (WebInspector.SourceFrame.prototype._breakpointChanged):
        (WebInspector.SourceFrame.prototype._setBreakpointDecoration):
        (WebInspector.SourceFrame.prototype._removeBreakpointDecoration):
        (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint.didEditBreakpointCondition):
        (WebInspector.SourceFrame.prototype._contextMenu.addConditionalBreakpoint):
        (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition.didEditBreakpointCondition):
        (WebInspector.SourceFrame.prototype._contextMenu.else.editBreakpointCondition):
        (WebInspector.SourceFrame.prototype._contextMenu):
        (WebInspector.SourceFrame.prototype._editBreakpointCondition.finishEditing):
        (WebInspector.SourceFrame.prototype._editBreakpointCondition):
        (WebInspector.SourceFrame.prototype._continueToLine):
        (WebInspector.SourceFrame.prototype._setBreakpoint):

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

8 years ago2010-12-19 Antonio Gomes <agomes@rim.com>
tonikitoo@webkit.org [Mon, 20 Dec 2010 16:08:25 +0000 (16:08 +0000)]
2010-12-19  Antonio Gomes  <agomes@rim.com>

        Reviewed by Xan Lopez.

        no-caret-repaint-in-non-content-editable-element.html does not need to disable CaretBrowsing
        https://bugs.webkit.org/show_bug.cgi?id=51308

        Patch removes the useless statement to disable caret browsing from
        no-caret-repaint-in-non-content-editable-element.html.

        Caret browsing gets toggled OFF before the execution of each test
        on the DRTs that support testing it (GTK+, Qt and Chromium). On Mac or
        Windows's DRT testing this feature is unsupport, so caret
        browsing is also disabled by default.

        * fast/repaint/no-caret-repaint-in-non-content-editable-element.html:

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

8 years ago2010-12-18 Antonio Gomes <agomes@rim.com>
tonikitoo@webkit.org [Mon, 20 Dec 2010 16:08:01 +0000 (16:08 +0000)]
2010-12-18  Antonio Gomes  <agomes@rim.com>

        Reviewed by Xan Lopez.

        [GTK+] Simplify spatial navigation handling in EditorClientGtk.cpp
        https://bugs.webkit.org/show_bug.cgi?id=51302

        Patch changes:
        1) The editor command for LEFT arrow key press without modifier
           from MoveBackward to MoveLeft;
        2) And similarly changes the editor command for RIGHT arrow key
          press without modifier from MoveForward to MoveRight.

        It has no implications since SelectionController::modifyMovingRight()
        handles "MoveRight" equaly to how SelectionController::modifyMovingForward()
        handles "MoveForward" when the granularity is 'CharacterGranularity'.
        The former falls back to the later in the case of other editor commands.

        Analogously, the same applies to how SelectionController::modifyMovingLeft() and
        SelectionController::modifyMovingForward() handle "MoveLeft" and "MoveBackward"
        editor commands, respectively.

        With this change we can remove the spatial navigation hack from moveCursorCallback(),
        in EditorClientGtk.cpp.

        * WebCoreSupport/EditorClientGtk.cpp:
        (WebKit::moveCursorCallback):

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

8 years ago2010-12-20 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Mon, 20 Dec 2010 15:52:32 +0000 (15:52 +0000)]
2010-12-20  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Removed custom expectation for a passing test.

        * platform/chromium/test_expectations.txt:

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

8 years ago2010-12-20 Alejandro G. Castro <alex@igalia.com>
alex@webkit.org [Mon, 20 Dec 2010 15:25:18 +0000 (15:25 +0000)]
2010-12-20  Alejandro G. Castro  <alex@igalia.com>

        Unreviewed, added the proper expected result file.

        * platform/gtk/fast/text/emphasis-overlap-expected.txt: Added.
        * platform/gtk/fast/text/emphasis-overlap.html: Removed.

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

8 years ago2010-12-20 Balazs Kelemen <kbalazs@webkit.org>
kbalazs@webkit.org [Mon, 20 Dec 2010 15:12:06 +0000 (15:12 +0000)]
2010-12-20  Balazs Kelemen  <kbalazs@webkit.org>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt][WK2] Crash in web process after the connection had been closed
        https://bugs.webkit.org/show_bug.cgi?id=51115

        Do not call connectionDidClose with a connection that has been explicitly
        invalidated on the listener thread.
        * Platform/CoreIPC/Connection.h:
        * Platform/CoreIPC/qt/ConnectionQt.cpp:
        (CoreIPC::Connection::disconnectHandler): Added.
        (CoreIPC::Connection::open):

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

8 years ago[Qt] Improve the readability of FrameLoaderClientQt::createPlugin()
benjamin.poulain@nokia.com [Mon, 20 Dec 2010 14:57:30 +0000 (14:57 +0000)]
[Qt] Improve the readability of FrameLoaderClientQt::createPlugin()
https://bugs.webkit.org/show_bug.cgi?id=51330

Reviewed by Andreas Kling.

Redefine the scopes to improve readability. Objects are now created in
the scope they are used in.

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

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

8 years ago2010-12-20 Andrei Popescu <andreip@google.com>
andreip@google.com [Mon, 20 Dec 2010 14:41:29 +0000 (14:41 +0000)]
2010-12-20  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        IDBTransactionBackedImpl instances can be accidentally deleted during calls to abort/commit.
        https://bugs.webkit.org/show_bug.cgi?id=51112

        * storage/indexeddb/transaction-crash-on-abort-expected.txt: Added.
        * storage/indexeddb/transaction-crash-on-abort.html: Added.

2010-12-20  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        IDBTransactionBackedImpl instances can be accidentally deleted during calls to abort/commit.
        https://bugs.webkit.org/show_bug.cgi?id=51112

        Makes IDBTransactionBackendImpl objects take a self reference while executing commit and abort.

        Test: storage/indexeddb/transaction-crash-on-abort.html

        * storage/IDBTransactionBackendImpl.cpp:
        (WebCore::IDBTransactionBackendImpl::abort):
        (WebCore::IDBTransactionBackendImpl::commit):

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

8 years ago2010-12-20 Andrei Popescu <andreip@google.com>
andreip@google.com [Mon, 20 Dec 2010 14:31:27 +0000 (14:31 +0000)]
2010-12-20  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        IDBCursor::delete is not implemented.
        https://bugs.webkit.org/show_bug.cgi?id=51110

        * storage/indexeddb/cursor-delete-expected.txt: Added.
        * storage/indexeddb/cursor-delete.html: Added.
        * storage/indexeddb/cursor-index-delete-expected.txt: Added.
        * storage/indexeddb/cursor-index-delete.html: Added.
2010-12-20  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        IDBCursor::delete is not implemented.
        https://bugs.webkit.org/show_bug.cgi?id=51110

        Implement IDBCursor::delete.
        See http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#widl-IDBCursor-delete

        Tests: storage/indexeddb/cursor-delete.html
               storage/indexeddb/cursor-index-delete.html

        * storage/IDBCursor.cpp:
        (WebCore::IDBCursor::deleteFunction):
        * storage/IDBCursor.h:
        * storage/IDBCursor.idl:
        * storage/IDBCursorBackendImpl.cpp:
        (WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
        (WebCore::IDBCursorBackendImpl::deleteFunction):
        (WebCore::IDBCursorBackendImpl::loadCurrentRow):
        * storage/IDBCursorBackendImpl.h:
        (WebCore::IDBCursorBackendImpl::create):
        * storage/IDBCursorBackendInterface.h:
        * storage/IDBIndexBackendImpl.cpp:
        (WebCore::IDBIndexBackendImpl::openCursorInternal):
        * storage/IDBKey.cpp:
        (WebCore::IDBKey::fromQuery):
        * storage/IDBObjectStoreBackendImpl.cpp:
        (WebCore::IDBObjectStoreBackendImpl::deleteInternal):
        (WebCore::IDBObjectStoreBackendImpl::openCursorInternal):
2010-12-20  Andrei Popescu  <andreip@google.com>

        Reviewed by Jeremy Orlow.

        IDBCursor::delete is not implemented.
        https://bugs.webkit.org/show_bug.cgi?id=51110

        * public/WebIDBCursor.h:
        (WebKit::WebIDBCursor::remove):
        (WebKit::WebIDBCursor::deleteFunction):
        * src/IDBCursorBackendProxy.cpp:
        (WebCore::IDBCursorBackendProxy::deleteFunction):
        * src/IDBCursorBackendProxy.h:
        * src/WebIDBCursorImpl.cpp:
        (WebKit::WebIDBCursorImpl::deleteFunction):
        * src/WebIDBCursorImpl.h:

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

8 years ago2010-12-20 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Mon, 20 Dec 2010 14:30:04 +0000 (14:30 +0000)]
2010-12-20  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Update Chromium test expectations.

        * platform/chromium/test_expectations.txt:

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

8 years ago2010-12-20 Alejandro G. Castro <alex@igalia.com>
alex@webkit.org [Mon, 20 Dec 2010 11:13:06 +0000 (11:13 +0000)]
2010-12-20  Alejandro G. Castro  <alex@igalia.com>

        Unreviewed expectation results update. Added also the tests
        failing due to the pixman rounding color issue to the same section
        of the skipped file: bug 49964.

        * platform/gtk/Skipped:
        * platform/gtk/fast/repaint/text-emphasis-h-expected.txt: Added.
        * platform/gtk/fast/repaint/text-emphasis-v-expected.txt: Added.
        * platform/gtk/fast/text/emphasis-overlap.html: Added.

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

8 years ago2010-12-20 Xan Lopez <xlopez@igalia.com>
xan@webkit.org [Mon, 20 Dec 2010 10:52:26 +0000 (10:52 +0000)]
2010-12-20  Xan Lopez  <xlopez@igalia.com>

        [GTK] editing/selection/extend-by-character-003.html is flakey
        https://bugs.webkit.org/show_bug.cgi?id=51325

        Skip flakey test.

        * platform/gtk/Skipped:

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

8 years ago2010-12-20 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Mon, 20 Dec 2010 10:36:39 +0000 (10:36 +0000)]
2010-12-20  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Update Chromium test expectations.

        * platform/chromium/test_expectations.txt:

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

8 years agoUnreviewed.
ossy@webkit.org [Mon, 20 Dec 2010 09:55:23 +0000 (09:55 +0000)]
Unreviewed.

[Qt] fast/text/emphasis-overlap.html fails
https://bugs.webkit.org/show_bug.cgi?id=51324

* platform/qt/Skipped: fast/text/emphasis-overlap.html added until fix.

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

8 years agoUnreviewed.
ossy@webkit.org [Mon, 20 Dec 2010 09:40:22 +0000 (09:40 +0000)]
Unreviewed.

[Qt] Add platform specific expected result for new test introduced in r74321.

* platform/qt/fast/parser/xml-colon-entity-expected.txt: Copied from LayoutTests/fast/parser/xml-colon-entity-expected.txt.

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

8 years agoUnreviewed.
ossy@webkit.org [Mon, 20 Dec 2010 09:23:58 +0000 (09:23 +0000)]
Unreviewed.

Add new tests to the Skipped list, because of missing layoutTestController.testRepaint()

* platform/qt/Skipped:
 - fast/repaint/text-emphasis-h.html added
 - fast/repaint/text-emphasis-v.html added

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

8 years ago2010-12-20 Ryuan Choi <ryuan.choi@samsung.com>
commit-queue@webkit.org [Mon, 20 Dec 2010 09:08:26 +0000 (09:08 +0000)]
2010-12-20  Ryuan Choi  <ryuan.choi@samsung.com>

        Reviewed by Antonio Gomes.

        [CMAKE] Rename WEBKITTOOLS_DIR to TOOLS_DIR
        https://bugs.webkit.org/show_bug.cgi?id=51319

        Change WEBKITTOOLS_DIR variable's name and value to TOOLS_DIR and tools/.

        * CMakeLists.txt:
2010-12-20  Ryuan Choi  <ryuan.choi@samsung.com>

        Reviewed by Antonio Gomes.

        [CMAKE] Rename WEBKITTOOLS_DIR to TOOLS_DIR
        https://bugs.webkit.org/show_bug.cgi?id=51319

        * CMakeListsEfl.txt:

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

8 years ago2010-12-20 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Mon, 20 Dec 2010 08:53:18 +0000 (08:53 +0000)]
2010-12-20  Yury Semikhatsky  <yurys@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: After a multiline command execution Console does not show the command prompt
        https://bugs.webkit.org/show_bug.cgi?id=51257

        * inspector/front-end/TextPrompt.js:
        (WebInspector.TextPrompt.prototype._moveBackInHistory):
        (WebInspector.TextPrompt.prototype._moveForwardInHistory):

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

8 years agoMove WebKitExamplePlugins to Examples
commit-queue@webkit.org [Mon, 20 Dec 2010 06:44:33 +0000 (06:44 +0000)]
Move WebKitExamplePlugins to Examples
https://bugs.webkit.org/show_bug.cgi?id=51291

Reviewed by Sam Weinig.

.:

* Examples: Copied from WebKitExamplePlugins.
* WebKitExamplePlugins: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/English.lproj: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/English.lproj/InfoPlist.strings: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/Info.plist: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/MenuHandler.h: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/MenuHandler.m: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/NetscapeCocoaPlugin.xcodeproj/project.pbxproj: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/main.m: Removed.
* WebKitExamplePlugins/NetscapeCocoaPlugin/test.html: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/English.lproj: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/English.lproj/InfoPlist.strings: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/Info.plist: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/MovieControllerLayer.h: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/MovieControllerLayer.m: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/NetscapeCoreAnimationMoviePlugin.xcodeproj/project.pbxproj: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/Pause.tiff: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/Play.tiff: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/SliderTrackCenter.tiff: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/SliderTrackLeft.tiff: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/SliderTrackRight.tiff: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/Thumb.tiff: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/main.m: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationMoviePlugin/test.html: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin/Composition.qtz: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin/English.lproj: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin/English.lproj/InfoPlist.strings: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin/Info.plist: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin/NetscapeCoreAnimationPlugin.xcodeproj/project.pbxproj: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin/main.m: Removed.
* WebKitExamplePlugins/NetscapeCoreAnimationPlugin/test.html: Removed.
* WebKitExamplePlugins/NetscapeInputMethodPlugin: Removed.
* WebKitExamplePlugins/NetscapeInputMethodPlugin/English.lproj: Removed.
* WebKitExamplePlugins/NetscapeInputMethodPlugin/English.lproj/InfoPlist.strings: Removed.
* WebKitExamplePlugins/NetscapeInputMethodPlugin/Info.plist: Removed.
* WebKitExamplePlugins/NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj: Removed.
* WebKitExamplePlugins/NetscapeInputMethodPlugin/NetscapeInputMethodPlugin.xcodeproj/project.pbxproj: Removed.
* WebKitExamplePlugins/NetscapeInputMethodPlugin/main.m: Removed.
* WebKitExamplePlugins/NetscapeInputMethodPlugin/test.html: Removed.
* cmake/WebKitPackaging.cmake:

BugsSite:

* PrettyPatch/PrettyPatch.rb:

Tools:

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

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

8 years ago2010-12-19 Benjamin Kalman <kalman@chromium.org>
commit-queue@webkit.org [Mon, 20 Dec 2010 05:24:21 +0000 (05:24 +0000)]
2010-12-19  Benjamin Kalman  <kalman@chromium.org>

        Reviewed by Antonio Gomes.

        [chromium] editing/selection/extend-selection-home-end.html should have one expected result
        https://bugs.webkit.org/show_bug.cgi?id=49873

        Change 100px to 5em in editing/selection/extend-selection-home-end.html so that chromium
        results are the same as the non-chromium results.

        * editing/selection/resources/extend-selection.js: Change 100px to 5em.
        * platform/chromium-win/editing/selection/extend-selection-home-end-expected.txt: Removed.

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

8 years agoImprove the fix for <rdar://problem/8769525>.
mitz@apple.com [Mon, 20 Dec 2010 03:05:52 +0000 (03:05 +0000)]
Improve the fix for <rdar://problem/8769525>.

Reviewed by Sam Weinig.

* UIProcess/API/mac/WKView.mm:
(-[WKView performKeyEquivalent:]): Do not retain the view. Doing so is necessary in
-[WebHTMLView performKeyEquivalent:], which this method was based upon, but not here, because
there is no way for the web process to cause the WKView to be released while it is handling
the event.

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

8 years ago<rdar://problem/8769525> WKView leak when performing key equivalents
mitz@apple.com [Mon, 20 Dec 2010 02:42:52 +0000 (02:42 +0000)]
<rdar://problem/8769525> WKView leak when performing key equivalents
https://bugs.webkit.org/show_bug.cgi?id=51315

Reviewed by Sam Weinig.

* UIProcess/API/mac/WKView.mm:
(-[WKView performKeyEquivalent:]): Use a RetainPtr to ensure that the view is released in the
early return code path.

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

8 years ago2010-12-19 Helder Correia <helder@sencha.com>
commit-queue@webkit.org [Mon, 20 Dec 2010 01:02:20 +0000 (01:02 +0000)]
2010-12-19  Helder Correia  <helder@sencha.com>

        Reviewed by Ariya Hidayat.

        [Qt] Blur distance should not be affected by transformations
        https://bugs.webkit.org/show_bug.cgi?id=51161

        From the spec at http://dev.w3.org/html5/2dcontext/#dom-context-2d-shadowblur:
        "The shadowBlur attribute specifies the level of the blurring effect.
        (The units do not map to coordinate space units, and are not affected
        by the current transformation matrix.)"

        Add test to ensure that the blur radius is not affected by the CTM.

        * fast/canvas/canvas-scale-shadowBlur-expected.txt: Added.
        * fast/canvas/canvas-scale-shadowBlur.html: Added.
        * fast/canvas/canvas-scale-strokePath-shadow-expected.txt: Increase
          shadowBlur and test tolerance to ease testing and support the
          different blurring algorithms.
        * fast/canvas/script-tests/canvas-scale-shadowBlur.js: Added.
        * fast/canvas/script-tests/canvas-scale-strokePath-shadow.js:
2010-12-19  Helder Correia  <helder@sencha.com>

        Reviewed by Ariya Hidayat.

        [Qt] Blur distance should not be affected by transformations
        https://bugs.webkit.org/show_bug.cgi?id=51161

        From the spec at http://dev.w3.org/html5/2dcontext/#dom-context-2d-shadowblur:
        "The shadowBlur attribute specifies the level of the blurring effect.
        (The units do not map to coordinate space units, and are not affected
        by the current transformation matrix.)"

        Test: fast/canvas/canvas-scale-shadowBlur.html

        * platform/graphics/ContextShadow.cpp:
        (WebCore::ContextShadow::adjustBlurDistance):
        * platform/graphics/ContextShadow.h:
        * platform/graphics/cairo/ContextShadowCairo.cpp:
        (WebCore::ContextShadow::beginShadowLayer):
        * platform/graphics/qt/ContextShadowQt.cpp:
        (WebCore::ContextShadow::beginShadowLayer):

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

8 years ago2010-12-19 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain@nokia.com [Sun, 19 Dec 2010 21:34:51 +0000 (21:34 +0000)]
2010-12-19  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] [WK2] QWKPagePrivate::paint() does not need to save the graphics context
        https://bugs.webkit.org/show_bug.cgi?id=51300

        Remove the unnecessary save() and restore() on the QPainter.

        * UIProcess/API/qt/qwkpage.cpp:
        (QWKPagePrivate::paint):

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

8 years agoText emphasis marks are not repainted correctly in flipped writing modes
mitz@apple.com [Sun, 19 Dec 2010 21:29:35 +0000 (21:29 +0000)]
Text emphasis marks are not repainted correctly in flipped writing modes
https://bugs.webkit.org/show_bug.cgi?id=51307

Reviewed by Cameron Zwarich.

WebCore:

Tests: fast/repaint/text-emphasis-h.html
       fast/repaint/text-emphasis-v.html

* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::addTextBoxVisualOverflow): Added flippedness check.

LayoutTests:

* fast/repaint/text-emphasis-h-expected.checksum: Added.
* fast/repaint/text-emphasis-h-expected.png: Added.
* fast/repaint/text-emphasis-h-expected.txt: Added.
* fast/repaint/text-emphasis-h.html: Added.
* fast/repaint/text-emphasis-v-expected.checksum: Added.
* fast/repaint/text-emphasis-v-expected.png: Added.
* fast/repaint/text-emphasis-v-expected.txt: Added.
* fast/repaint/text-emphasis-v.html: Added.

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

8 years ago2010-12-19 Rob Buis <rwlbuis@gmail.com>
rwlbuis@webkit.org [Sun, 19 Dec 2010 18:44:24 +0000 (18:44 +0000)]
2010-12-19  Rob Buis  <rwlbuis@gmail.com>

        Reviewed by Andreas Kling.

        Remove m_drawsContents from RenderSVGContainer.h
        https://bugs.webkit.org/show_bug.cgi?id=51305

        Remove m_drawsContents, its getter and setter and the call
        sites, since it has no effect anymore.

        * WebCore.order:
        * rendering/RenderSVGContainer.cpp:
        (WebCore::RenderSVGContainer::RenderSVGContainer):
        (WebCore::RenderSVGContainer::paint):
        * rendering/RenderSVGContainer.h:
        * rendering/RenderSVGResourceContainer.h:
        * rendering/SVGImageBufferTools.cpp:
        (WebCore::SVGImageBufferTools::renderSubtreeToImageBuffer):

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

8 years ago2010-12-19 Kenneth Rohde Christiansen <kenneth@webkit.org>
kenneth@webkit.org [Sun, 19 Dec 2010 17:24:07 +0000 (17:24 +0000)]
2010-12-19  Kenneth Rohde Christiansen  <kenneth@webkit.org>

        Reviewed by Andreas Kling.

        [Qt] [WK2] Client are expected to render their own background for WebPages
        https://bugs.webkit.org/show_bug.cgi?id=51296

        Remove the rendering of the checkerboard from the tiled DrawingAreaProxy

        * UIProcess/TiledDrawingAreaProxy.cpp:
        (WebKit::TiledDrawingAreaProxy::paint):
        * UIProcess/TiledDrawingAreaTile.h:
        * UIProcess/qt/TiledDrawingAreaTileQt.cpp:

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

8 years ago2010-12-19 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain@nokia.com [Sun, 19 Dec 2010 15:57:12 +0000 (15:57 +0000)]
2010-12-19  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        WebKit does not build with worker but without the javascript debugger
        https://bugs.webkit.org/show_bug.cgi?id=51293

        Add missing guard for calls depending on the debugger.

        * inspector/InspectorController.cpp:
        (WebCore::InspectorController::populateScriptObjects):
        (WebCore::InspectorController::postWorkerNotificationToFrontend):

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

8 years ago2010-12-19 Benjamin Poulain <benjamin.poulain@nokia.com>
benjamin.poulain@nokia.com [Sun, 19 Dec 2010 15:28:30 +0000 (15:28 +0000)]
2010-12-19  Benjamin Poulain  <benjamin.poulain@nokia.com>

        Reviewed by Kenneth Rohde Christiansen.

        [Qt] [WK2] Client are expected to render their own background for WebPages
        https://bugs.webkit.org/show_bug.cgi?id=51296

        Do not render a white background before rendering the page with DrawingAreaProxy.

        * UIProcess/API/qt/qwkpage.cpp:
        (QWKPagePrivate::paint):

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

8 years ago2010-12-18 Tom Sepez <tsepez@chromium.org>
commit-queue@webkit.org [Sun, 19 Dec 2010 06:51:21 +0000 (06:51 +0000)]
2010-12-18  Tom Sepez  <tsepez@chromium.org>

        Reviewed by David Levin.

        https://bugs.webkit.org/show_bug.cgi?id=51055
        Fix a null de-reference when an XML file contains a malformed entity
        of the form "&:;".

        * fast/parser/resources/xml-colon-entity.xml: Added.
        * fast/parser/xml-colon-entity-expected.txt: Added.
        * fast/parser/xml-colon-entity.html: Added.
2010-12-18  Tom Sepez  <tsepez@chromium.org>

        Reviewed by David Levin.

        https://bugs.webkit.org/show_bug.cgi?id=51055
        Fix a null de-reference when an XML file contains a malformed entity
        of the form "&:;".

        Test: fast/parser/xml-colon-entity.html

        * html/parser/HTMLEntitySearch.cpp:
        (WebCore::HTMLEntitySearch::advance):

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

8 years ago2010-12-18 Noel Gordon <noel.gordon@gmail.com>
commit-queue@webkit.org [Sun, 19 Dec 2010 02:55:34 +0000 (02:55 +0000)]
2010-12-18  Noel Gordon  <noel.gordon@gmail.com>

        Reviewed by David Levin.

        [chromium] Simplify the PNG encoder.
        https://bugs.webkit.org/show_bug.cgi?id=50905

        Remove PNGEncoderState class - it was a proxy for the encoder output, and
        that is a Vector<>, so just write into it directly using append() to make
        use of Vector<>'s resize() smarts. Simplify the preMultipliedBGRAtoRGBA()
        and encode() routines, replace the OwnArrayPtr<> with a Vector<>.

        canvas.toDataURL("image/png") is covered by existing tests.

        * platform/image-encoders/skia/PNGImageEncoder.cpp:
        (WebCore::writeOutput): Use a Vector<>, append() the encoded data to it.
        (WebCore::preMultipliedBGRAtoRGBA): simplified.
        (WebCore::PNGImageEncoder::encode): ditto.

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

8 years agoText emphasis marks are not always included in the selection highlight
mitz@apple.com [Sat, 18 Dec 2010 23:32:32 +0000 (23:32 +0000)]
Text emphasis marks are not always included in the selection highlight
https://bugs.webkit.org/show_bug.cgi?id=51299

Reviewed by Cameron Zwarich.

WebCore:

Affects pixel results of fast/text/emphasis.html

Account for annotations in selectionTop() and selectionBottom().

* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::selectionTop):
(WebCore::RootInlineBox::selectionBottom):

LayoutTests:

* platform/mac/fast/text/emphasis-expected.checksum:
* platform/mac/fast/text/emphasis-expected.png:

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

8 years agoIn flipped writing modes, opposite text emphasis marks from adjacent lines overlap
mitz@apple.com [Sat, 18 Dec 2010 22:49:45 +0000 (22:49 +0000)]
In flipped writing modes, opposite text emphasis marks from adjacent lines overlap
https://bugs.webkit.org/show_bug.cgi?id=51298

Reviewed by Cameron Zwarich.

WebCore:

Test: fast/text/emphasis-overlap.html

* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::beforeAnnotationsAdjustment): Changed + to -.

LayoutTests:

* fast/text/emphasis-overlap-expected.checksum: Added.
* fast/text/emphasis-overlap-expected.png: Added.
* fast/text/emphasis-overlap-expected.txt: Added.
* fast/text/emphasis-overlap.html: Added.

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

8 years ago2010-12-18 Helder Correia <helder@sencha.com> and Martin Robinson <mrobinson@igali...
mrobinson@webkit.org [Sat, 18 Dec 2010 18:44:48 +0000 (18:44 +0000)]
2010-12-18  Helder Correia  <helder@sencha.com> and Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Ariya Hidayat.

        [Qt] Canvas shadow offset should not be affected by any transformation
        https://bugs.webkit.org/show_bug.cgi?id=50422

        On a canvas context, shadows are currently affected by all
        transformations except scaling. According to the spec:
        http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#shadows

        "The shadowOffsetX and shadowOffsetY attributes specify the distance
        that the shadow will be offset in the positive horizontal and positive
        vertical distance respectively. Their values are in coordinate space
        units. They are not affected by the current transformation matrix."

        NOTE: this applies only to canvas, not to box shadows.

        Add new test to ensure that shadows are correctly transformed keeping
        the relative offset to the shape.

        * fast/canvas/canvas-scale-strokePath-shadow-expected.txt: See strokePath below.
        * fast/canvas/canvas-transforms-fillRect-shadow-expected.txt: Added.
        * fast/canvas/canvas-transforms-fillRect-shadow.html: Added.
        * fast/canvas/script-tests/canvas-scale-fillPath-shadow.js:
        * fast/canvas/script-tests/canvas-scale-fillRect-shadow.js:
        * fast/canvas/script-tests/canvas-scale-strokePath-shadow.js: Now using
          a lineWidth > 1 to make it easier to test and more fair among all
          ports, since there can be different transformation smoothness or
          aliasing settings.
        * fast/canvas/script-tests/canvas-transforms-fillRect-shadow.js: Added.
        * platform/gtk/Skipped: GTK port needs to implement this feature.
        * platform/gtk/fast/canvas/canvas-scale-fillPath-shadow-expected.txt: Removed.
        * platform/gtk/fast/canvas/canvas-scale-fillRect-shadow-expected.txt: Removed.
        * platform/gtk/fast/canvas/canvas-scale-strokePath-shadow-expected.txt: Removed.
2010-12-18  Helder Correia  <helder@sencha.com> and Martin Robinson  <mrobinson@igalia.com>

        Reviewed by Ariya Hidayat.

        [Qt] Canvas shadow offset should not be affected by any transformation
        https://bugs.webkit.org/show_bug.cgi?id=50422

        On a canvas context, shadows are currently affected by all
        transformations except scaling. According to the spec:
        http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#shadows

        "The shadowOffsetX and shadowOffsetY attributes specify the distance
        that the shadow will be offset in the positive horizontal and positive
        vertical distance respectively. Their values are in coordinate space
        units. They are not affected by the current transformation matrix."

        NOTE: this applies only to canvas, not to box shadows.

        Test: fast/canvas/canvas-transforms-fillRect-shadow.html

        * platform/graphics/ContextShadow.cpp:
        (WebCore::ContextShadow::ContextShadow):
        (WebCore::ContextShadow::calculateLayerBoundingRect):
        * platform/graphics/ContextShadow.h:
        (WebCore::ContextShadow::setShadowsIgnoreTransforms):
        (WebCore::ContextShadow::shadowsIgnoreTransforms):
        (WebCore::ContextShadow::offset):
        * platform/graphics/qt/ContextShadowQt.cpp:
        (WebCore::ContextShadow::beginShadowLayer):
        (WebCore::ContextShadow::endShadowLayer):
        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::mustUseContextShadow):
        (WebCore::GraphicsContext::fillPath):
        (WebCore::GraphicsContext::strokePath):
        (WebCore::GraphicsContext::fillRect):
        (WebCore::GraphicsContext::fillRoundedRect):
        (WebCore::GraphicsContext::setPlatformShadow):

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

8 years ago2010-12-18 Ariya Hidayat <ariya@sencha.com>
ariya@webkit.org [Sat, 18 Dec 2010 17:41:05 +0000 (17:41 +0000)]
2010-12-18  Ariya Hidayat  <ariya@sencha.com>

        Reviewed by Andreas Kling.

        [Qt] TransparencyLayer should inherit its container render hints
        https://bugs.webkit.org/show_bug.cgi?id=51283

        * platform/graphics/qt/TransparencyLayer.h:
        (WebCore::TransparencyLayer::TransparencyLayer):

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

8 years ago2010-12-18 Tony Gentilcore <tonyg@chromium.org>
tonyg@chromium.org [Sat, 18 Dec 2010 09:23:56 +0000 (09:23 +0000)]
2010-12-18  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Laszlo Gombos.

        [Web Timing] Rename domContentLoaded{Start,End}->domContentLoadedEvent{Start,End}
        https://bugs.webkit.org/show_bug.cgi?id=50943

        * fast/dom/Window/window-properties-performance-expected.txt:
        * fast/dom/script-tests/webtiming.js:
        (checkTimingBeforeLoad):
        (checkTimingWhileDeferred):
        (checkWebTimingOnDOMContentLoaded):
        (checkWebTimingWhileAsync):
        (checkWebTimingOnLoad):
        (checkWebTimingAfterLoad):
        * fast/dom/webtiming-document-open-expected.txt:
        * fast/dom/webtiming-expected.txt:
        * fast/dom/webtiming-navigate-within-document-expected.txt:
2010-12-18  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Laszlo Gombos.

        [Web Timing] Rename domContentLoaded{Start,End}->domContentLoadedEvent{Start,End}
        https://bugs.webkit.org/show_bug.cgi?id=50943

        See: http://test.w3.org/webperf/specs/NavigationTiming/#nt-dom-content-event-start

        * dom/Document.cpp:
        (WebCore::Document::finishedParsing):
        * dom/DocumentTiming.h:
        (WebCore::DocumentTiming::DocumentTiming):
        * page/PerformanceTiming.cpp:
        (WebCore::PerformanceTiming::domContentLoadedEventStart):
        (WebCore::PerformanceTiming::domContentLoadedEventEnd):
        * page/PerformanceTiming.h:
        * page/PerformanceTiming.idl:
2010-12-18  Tony Gentilcore  <tonyg@chromium.org>

        Reviewed by Laszlo Gombos.

        [Web Timing] Rename domContentLoaded{Start,End}->domContentLoadedEvent{Start,End}
        https://bugs.webkit.org/show_bug.cgi?id=50943

        Exposes all dom* times to the chromium port. I'm particularly interested in
        domContentLoadedEventEnd as it compares to the FinishDoc metric.

        * public/WebPerformance.h:
        * src/WebPerformance.cpp:
        (WebKit::WebPerformance::domLoading):
        (WebKit::WebPerformance::domInteractive):
        (WebKit::WebPerformance::domContentLoadedEventStart):
        (WebKit::WebPerformance::domContentLoadedEventEnd):
        (WebKit::WebPerformance::domComplete):

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

8 years ago2010-12-17 Tony Gentilcore <tonyg@chromium.org>
tonyg@chromium.org [Sat, 18 Dec 2010 06:20:39 +0000 (06:20 +0000)]
2010-12-17  Tony Gentilcore  <tonyg@chromium.org>

        Unreviewed.

        [chromium] Mark fast/text/emphasis* failing
        https://bugs.webkit.org/show_bug.cgi?id=51288

        They have square characters that appear broken.

        * platform/chromium/test_expectations.txt:

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

8 years ago2010-12-17 Tony Gentilcore <tonyg@chromium.org>
tonyg@chromium.org [Sat, 18 Dec 2010 05:20:41 +0000 (05:20 +0000)]
2010-12-17  Tony Gentilcore  <tonyg@chromium.org>

        Unreviewed fix.

        Fix JS syntax to avoid V8 error message
        https://bugs.webkit.org/show_bug.cgi?id=51287

        * transitions/interrupted-accelerated-transition.html:

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

8 years ago2010-12-17 Justin Schuh <jschuh@chromium.org>
jschuh@chromium.org [Sat, 18 Dec 2010 04:22:55 +0000 (04:22 +0000)]
2010-12-17  Justin Schuh  <jschuh@chromium.org>

        Reviewed by Andreas Kling.

        Style fix for r73927
        https://bugs.webkit.org/show_bug.cgi?id=51194

        No functionality change. No new tests needed.

        * html/HTMLCanvasElement.h:

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

8 years ago2010-12-17 Carlos Garcia Campos <cgarcia@igalia.com>
commit-queue@webkit.org [Sat, 18 Dec 2010 02:37:35 +0000 (02:37 +0000)]
2010-12-17  Carlos Garcia Campos  <cgarcia@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] Buttons rendering was broken in r74129
        https://bugs.webkit.org/show_bug.cgi?id=51173

        * platform/gtk/RenderThemeGtk.cpp:
        (WebCore::RenderThemeGtk::paintRenderObject):

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

8 years ago2010-12-17 Zoltan Herczeg <zherczeg@webkit.org>
zherczeg@webkit.org [Sat, 18 Dec 2010 02:32:24 +0000 (02:32 +0000)]
2010-12-17  Zoltan Herczeg  <zherczeg@webkit.org>

        Reviewed by Dirk Schulze.

        Improve 'arithmetic' operator on feComposite
        https://bugs.webkit.org/show_bug.cgi?id=51105

        Fixing style errors and bug description for r74177.

        * platform/graphics/filters/FEComposite.cpp:
        (WebCore::arithmetic):

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

8 years ago2010-12-17 Michael Saboff <msaboff@apple.com>
msaboff@apple.com [Sat, 18 Dec 2010 02:01:13 +0000 (02:01 +0000)]
2010-12-17  Michael Saboff  <msaboff@apple.com>

        Reviewed by Oliver Hunt.

        RegExp Jit'ed expression crashes clicking link on yelp.com
        https://bugs.webkit.org/show_bug.cgi?id=51284

        When transitioning between an non-repeating beginning of line
        anchored expression and the remaining refactored repeating
        expression, we should not clear any residual datalabel in
        state's m_backtrack.  It will be resolved and cleared in subsequent
        code when linkAlternativeBacktracks() is called for the repeating
        alternative(s).

        * yarr/RegexJIT.cpp:
        (JSC::Yarr::RegexGenerator::BacktrackDestination::clear):
        (JSC::Yarr::RegexGenerator::TermGenerationState::clearBacktrack):
2010-12-17  Michael Saboff  <msaboff@apple.com>

        Reviewed by Oliver Hunt.

        RegExp Jit'ed expression crashes clicking link on yelp.com
        https://bugs.webkit.org/show_bug.cgi?id=51284

        New tests to validate changes made in regex JIT.

        * fast/regex/parentheses-expected.txt:
        * fast/regex/script-tests/parentheses.js:

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

8 years agoUpdated for the renaming of WebKitTools to Tools
mitz@apple.com [Sat, 18 Dec 2010 01:57:20 +0000 (01:57 +0000)]
Updated for the renaming of WebKitTools to Tools

Rubber-stamped by Mark Rowe.

JavaScriptCore:

* JavaScriptCore.vcproj/JavaScriptCore/build-generated-files.sh:

WebCore:

* WebCore.vcproj/build-generated-files.sh:
* WebCore.vcproj/migrate-scripts.sh:

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

8 years ago2010-12-17 Tony Gentilcore <tonyg@chromium.org>
tonyg@chromium.org [Sat, 18 Dec 2010 01:56:16 +0000 (01:56 +0000)]
2010-12-17  Tony Gentilcore  <tonyg@chromium.org>

        Unreviewed, build fix.

        Add WebKitTools -> Tools rename that got missed.

        * WebKit.gyp:

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

8 years ago2010-12-17 Darin Adler <darin@apple.com>
darin@apple.com [Sat, 18 Dec 2010 01:42:54 +0000 (01:42 +0000)]
2010-12-17  Darin Adler  <darin@apple.com>

        Reviewed by Dan Bernstein.

        Window title for image documents shows corrupted characters instead of multiplication sign when using WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=43505

        * WebProcess/WebCoreSupport/WebPlatformStrategies.cpp: Changed UI_STRING macros to return
        WebCore::String objects instead of C strings.
        (WebKit::formatLocalizedString): Added. Uses the Core Foundation string formatting function for
        reasons explained in the comment.
        (WebKit::WebPlatformStrategies::multipleFileUploadText): Use formatLocalizedString instead of
        String::format.
        (WebKit::WebPlatformStrategies::imageTitle): Ditto.
        (WebKit::WebPlatformStrategies::localizedMediaTimeDescription): Ditto.

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

8 years agoAdd expected results for Windows XP to get the bot green for
jberlin@webkit.org [Sat, 18 Dec 2010 01:24:00 +0000 (01:24 +0000)]
Add expected results for Windows XP to get the bot green for
http://trac.webkit.org/changeset/74281.
Unreviewed.

* platform/win-xp/fast/text/emphasis-expected.txt: Added.
* platform/win-xp/fast/text/emphasis-vertical-expected.txt: Added.

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

8 years ago2010-12-17 Dirk Pranke <dpranke@chromium.org>
dpranke@chromium.org [Sat, 18 Dec 2010 01:14:59 +0000 (01:14 +0000)]
2010-12-17  Dirk Pranke  <dpranke@chromium.org>

        Unreviewed, build fix.

        Add WebKitTools -> Tools rename that got missed.

        * WebKit.gyp:

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

8 years ago2010-12-17 Anders Carlsson <andersca@apple.com>
andersca@apple.com [Sat, 18 Dec 2010 01:07:25 +0000 (01:07 +0000)]
2010-12-17  Anders Carlsson  <andersca@apple.com>

        Reviewed by Sam Weinig.

        Resizing a WKView while loading a page can leave the page at a size that doesn't match the window
        https://bugs.webkit.org/show_bug.cgi?id=51282
        <rdar://problem/8133142>

        Fix a race condition in waitForMessage. If we time out on the wait condition, we would keep the
        m_waitForMessageMutex mutex unlocked for a brief period of time before taking the lock again and
        then removing the messageID/destinationID pair from the hash map. Under some circumstances, the
        connection queue would update the hash map right before we removed it, leading to a lost message.

        * Platform/CoreIPC/Connection.cpp:
        (CoreIPC::Connection::waitForMessage):

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

8 years agoUnreviewed Qt buildfix after r74301.
ossy@webkit.org [Sat, 18 Dec 2010 00:30:09 +0000 (00:30 +0000)]
Unreviewed Qt buildfix after r74301.

Rename WebKitTools to Tools
https://bugs.webkit.org/show_bug.cgi?id=49861

* MiniBrowser/DerivedSources.pro:
* MiniBrowser/qt/MiniBrowser.pro:

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

8 years agoRename WebKitTools to Tools
mitz@apple.com [Sat, 18 Dec 2010 00:02:12 +0000 (00:02 +0000)]
Rename WebKitTools to Tools
https://bugs.webkit.org/show_bug.cgi?id=49861

Reviewed by Simon Fraser.

.:

* DerivedSources.pro:
* GNUmakefile.am:
* MakeFile:
* MakeFile.shared:
* Tools: Renamed from WebKitTools.
* WebKit.pro:
* cmake/WebKitPackaging.cmake:
* wscript:

BugsSite:

* PrettyPatch/PrettyPatch.rb:
* committers-autocomplete.js:

Tools:

* BuildSlaveSupport/build.webkit.org-config/master.cfg:
* CodeCoverage/README:
* DumpRenderTree/qt/DumpRenderTreeQt.cpp:
(WebCore::DumpRenderTree::initializeFonts):
* EWSTools/start-commit-queue.sh:
* EWSTools/start-queue.sh:
* GNUmakefile.am:
* MIDLWrapper/MIDLWrapper.cpp:
(wmain):
* MiniBrowser/qt/MiniBrowser.pro:
* Scripts/build-api-tests:
* Scripts/build-dumprendertree:
* Scripts/build-webkit:
* Scripts/build-webkittestrunner:
* Scripts/generate-coverage-data:
* Scripts/old-run-webkit-tests:
* Scripts/run-api-tests:
* Scripts/run-iexploder-tests:
* Scripts/run-javascriptcore-tests:
* Scripts/run-mangleme-tests:
* Scripts/run-sunspider:
* Scripts/run-webkit-websocketserver:
* Scripts/sunspider-compare-results:
* Scripts/test-webkitperl:
* Scripts/test-webkitpy:
* Scripts/update-iexploder-cssproperties:
* Scripts/update-webkit:
* Scripts/update-webkit-localizable-strings:
* Scripts/webkitdirs.pm:
* Scripts/webkitpy/common/checkout/scm.py:
* Scripts/webkitpy/common/checkout/scm_unittest.py:
* Scripts/webkitpy/common/config/committervalidator.py:
* Scripts/webkitpy/common/config/committervalidator_unittest.py:
* Scripts/webkitpy/common/config/ports.py:
* Scripts/webkitpy/common/config/ports_unittest.py:
* Scripts/webkitpy/common/system/logutils_unittest.py:
* Scripts/webkitpy/common/system/ospath_unittest.py:
* Scripts/webkitpy/layout_tests/port/chromium.py:
* Scripts/webkitpy/layout_tests/port/config.py:
* Scripts/webkitpy/layout_tests/port/config_unittest.py:
* Scripts/webkitpy/layout_tests/port/http_server.py:
* Scripts/webkitpy/layout_tests/port/test.py:
* Scripts/webkitpy/style/checker.py:
* Scripts/webkitpy/style/checker_unittest.py:
* Scripts/webkitpy/tool/bot/feeders_unittest.py:
* Scripts/webkitpy/tool/commands/queues_unittest.py:
* Scripts/webkitpy/tool/steps/steps_unittest.py:
* WebKitTestRunner/DerivedSources.pro:
* WebKitTestRunner/InjectedBundle/qt/ActivateFontsQt.cpp:
(WTR::activateFonts):
* WebKitTestRunner/InjectedBundle/qt/InjectedBundle.pro:
* wx/build/build_utils.py:

WebKitSite:

* asking_questions.html:
* building/tools.html:
* coding/scripts.html:

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

8 years agoClean up ChunkedUpdateDrawingAreaProxy
andersca@apple.com [Fri, 17 Dec 2010 23:35:30 +0000 (23:35 +0000)]
Clean up ChunkedUpdateDrawingAreaProxy
https://bugs.webkit.org/show_bug.cgi?id=51277

Reviewed by Simon Fraser.

Get rid of m_lastSetViewSize since it was always equal to m_size.

* UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
(WebKit::ChunkedUpdateDrawingAreaProxy::sizeDidChange):
Call sendSetSize().

(WebKit::ChunkedUpdateDrawingAreaProxy::didSetSize):
Call sendSetSize if the size differs.

(WebKit::ChunkedUpdateDrawingAreaProxy::sendSetSize):
Move code from sizeDidChange over here.

* UIProcess/ChunkedUpdateDrawingAreaProxy.h:
* UIProcess/DrawingAreaProxy.cpp:
(WebKit::DrawingAreaProxy::setSize):
Add back the early return if the sizes are equal.

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

8 years ago2010-12-17 Ariya Hidayat <ariya@sencha.com>
ariya@webkit.org [Fri, 17 Dec 2010 23:28:29 +0000 (23:28 +0000)]
2010-12-17  Ariya Hidayat  <ariya@sencha.com>

        Reviewed by Oliver Hunt.

        [JSC] parseAssignmentExpression should use TreeBuilder::CreatesAST
        https://bugs.webkit.org/show_bug.cgi?id=51268

        * parser/JSParser.cpp:
        (JSC::JSParser::parseAssignmentExpression):

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

8 years agoUnreviewed build fix.
bfulgham@webkit.org [Fri, 17 Dec 2010 23:03:24 +0000 (23:03 +0000)]
Unreviewed build fix.

* WebProcess/WebPage/win/WebPageWin.cpp:
(WebKit::WebPage::canHandleRequest): Provide alternative for
non-CFNetwork implementation.

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

8 years ago2010-12-17 Geoffrey Garen <ggaren@apple.com>
ggaren@apple.com [Fri, 17 Dec 2010 22:48:40 +0000 (22:48 +0000)]
2010-12-17  Geoffrey Garen  <ggaren@apple.com>

        Reviewed by Oliver Hunt.

        Removed RChunk from PageAllocation/PageReservation, since it's now unused.
        https://bugs.webkit.org/show_bug.cgi?id=51276

        * wtf/PageAllocation.h:
        (WTF::PageAllocation::PageAllocation):
        * wtf/PageReservation.h:
        (WTF::PageReservation::PageReservation):

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

8 years ago Reviewed by Anders Carlsson.
adachan@apple.com [Fri, 17 Dec 2010 22:43:49 +0000 (22:43 +0000)]
    Reviewed by Anders Carlsson.

        Implement WKView::setInitialFocus().
        https://bugs.webkit.org/show_bug.cgi?id=51274

        * UIProcess/API/C/win/WKView.cpp:
        (WKViewSetInitialFocus):
        * UIProcess/API/C/win/WKView.h:
        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::setInitialFocus): Send message to the Web Process to set
        initial focus.
        * UIProcess/WebPageProxy.h:
        * UIProcess/win/WebView.cpp:
        (WebKit::WebView::setInitialFocus):
        * UIProcess/win/WebView.h:
        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::setInitialFocus): Set the focused node to null initially.  Then
        ask FocusController to set the initial focus based on the focus direction.
        * WebProcess/WebPage/WebPage.h:
        * WebProcess/WebPage/WebPage.messages.in: Add a new message for SetInitialFocus.

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

8 years agoRemove a check that probably uncovered a resizing bug.
andersca@apple.com [Fri, 17 Dec 2010 22:24:05 +0000 (22:24 +0000)]
Remove a check that probably uncovered a resizing bug.

Reviewed by Sam Weinig.

* UIProcess/DrawingAreaProxy.cpp:
(WebKit::DrawingAreaProxy::setSize):

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

8 years ago2010-12-17 Brian Weinstein <bweinstein@apple.com>
andersca@apple.com [Fri, 17 Dec 2010 22:11:32 +0000 (22:11 +0000)]
2010-12-17  Brian Weinstein  <bweinstein@apple.com>

        Qt build fix.

        * UIProcess/qt/WebPopupMenuProxyQt.h:

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

8 years ago2010-12-17 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Fri, 17 Dec 2010 21:54:11 +0000 (21:54 +0000)]
2010-12-17  Simon Fraser  <simon.fraser@apple.com>

        Change this test to use the pause API by testing the individual properties,
        rather than the compound property.

        * transitions/mask-transitions-expected.txt: Removed.
        * transitions/mask-transitions.html:

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

8 years ago2010-12-17 Carol Szabo <carol.szabo@nokia.com>
carol.szabo@nokia.com [Fri, 17 Dec 2010 21:39:19 +0000 (21:39 +0000)]
2010-12-17  Carol Szabo  <carol.szabo@nokia.com>

        Reviewed by Darin Adler.

        A corrupted counter tree is created when renderers are added to the
        tree bypassing RenderObject::addChild
        https://bugs.webkit.org/show_bug.cgi?id=51270

        This patch replaces the hack introduced for fixing bug 43812
        with code that addresses the underlying problem for that bug.
        No new layout tests provided as there is no identified scenario when
        visible behavior would be different, the internal datastructures
        are maintained properly through this fix so the previous hack
        introduced for bug 43812 is now removed. The fact that the
        layout test introduced for 43812 continues to pass is proof that the
        code works.

        * rendering/RenderCounter.cpp:
        (WebCore::findPlaceForCounter):
          Removed hack.
        * rendering/RenderObject.cpp:
        (WebCore::RenderObject::addChild):
          Moved call to counter nodes updater to lower level
          functions to avoid bypass.
        * rendering/RenderObjectChildList.cpp:
        (WebCore::RenderObjectChildList::appendChildNode):
        (WebCore::RenderObjectChildList::insertChildNode):
          Changed to update the values of the counters that
          may be inserted in the tree.

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

8 years ago2010-12-17 Oliver Hunt <oliver@apple.com>
oliver@apple.com [Fri, 17 Dec 2010 21:38:49 +0000 (21:38 +0000)]
2010-12-17  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough.

        Incorrect encoding of some constants in ARMv7 JIT
        https://bugs.webkit.org/show_bug.cgi?id=51273
        <rdar://problem/8650210>

        When using immediate encoding 3 we need to write the byte
        that holds a duplicated value.

        * assembler/ARMv7Assembler.h:
        (JSC::ARMThumbImmediate::makeEncodedImm):
2010-12-17  Oliver Hunt  <oliver@apple.com>

        Reviewed by Gavin Barraclough.

        Incorrect encoding of some constants in ARMv7 JIT
        https://bugs.webkit.org/show_bug.cgi?id=51273

        Add a few tests for different byte patterns in immediates.

        * fast/js/constant-encoding-expected.txt: Added.
        * fast/js/constant-encoding.html: Added.
        * fast/js/script-tests/constant-encoding.js: Added.

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

8 years agoAdd Windows-specific expected results for the the tests added in
jberlin@webkit.org [Fri, 17 Dec 2010 21:37:16 +0000 (21:37 +0000)]
Add Windows-specific expected results for the the tests added in
http://trac.webkit.org/changeset/74281.

Rubber-stamped by Dan Bernstein.

* platform/win/fast/text/emphasis-expected.checksum: Added.
* platform/win/fast/text/emphasis-expected.png: Added.
* platform/win/fast/text/emphasis-expected.txt: Added.
* platform/win/fast/text/emphasis-vertical-expected.checksum: Added.
* platform/win/fast/text/emphasis-vertical-expected.png: Added.
* platform/win/fast/text/emphasis-vertical-expected.txt: Added.

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

8 years agoQt build fix.
bweinstein@apple.com [Fri, 17 Dec 2010 21:29:30 +0000 (21:29 +0000)]
Qt build fix.

* UIProcess/qt/WebPopupMenuProxyQt.h:

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

8 years ago2010-12-17 Shimeng (Simon) Wang <swang@google.com>
commit-queue@webkit.org [Fri, 17 Dec 2010 21:24:43 +0000 (21:24 +0000)]
2010-12-17  Shimeng (Simon) Wang  <swang@google.com>

        Reviewed by Steve Block.

        Fix V8 JNI binding.
        https://bugs.webkit.org/show_bug.cgi?id=51156

        There're LayoutTests in:
        http://trac.webkit.org/browser/trunk/LayoutTests/java/lc3/JSNumber
        to exercise these code paths.
        Though Chromium don't run them.
        Tested on Android fast/events/touch tests.

        * bridge/jni/v8/JNIUtilityPrivate.cpp:
        (JSC::Bindings::convertNPVariantToJValue):

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

8 years ago2010-12-17 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Fri, 17 Dec 2010 21:22:47 +0000 (21:22 +0000)]
2010-12-17  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Chris Marrin.

        Interrupted accelerated animation can break later transitions
        <rdar://problem/8767714>
        https://bugs.webkit.org/show_bug.cgi?id=51264

        If we're still waiting for the 'animationDidStart' callback when renderers
        get destroyed, then the m_waitingForStartTimeResponse flag could be left
        set to 'true', which causes later transitions to never start.

        Fix by clearing the m_waitingForStartTimeResponse flag when the m_startTimeResponseWaiters
        becomes empty.

        Test: transitions/interrupted-accelerated-transition.html

        * page/animation/AnimationController.cpp:
        (WebCore::AnimationControllerPrivate::removeFromStartTimeResponseWaitList):

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

8 years ago2010-12-17 Simon Fraser <simon.fraser@apple.com>
simon.fraser@apple.com [Fri, 17 Dec 2010 21:22:34 +0000 (21:22 +0000)]
2010-12-17  Simon Fraser  <simon.fraser@apple.com>

        Reviewed by Chris Marrin.

        Interrupted accelerated animation can break later transitions
        https://bugs.webkit.org/show_bug.cgi?id=51264

        Step 1: code cleanup.
        Rename "responseWait" variables to "startTimeResponseWait", to make it clear
        the kind of response that is being waited for.

        Make a couple of methods private.

        No behavioral changes, so no tests.

        * page/animation/AnimationController.cpp:
        (WebCore::AnimationControllerPrivate::AnimationControllerPrivate):
        (WebCore::AnimationControllerPrivate::endAnimationUpdate):
        (WebCore::AnimationControllerPrivate::receivedStartTimeResponse):
        (WebCore::AnimationControllerPrivate::addToStartTimeResponseWaitList):
        (WebCore::AnimationControllerPrivate::removeFromStartTimeResponseWaitList):
        (WebCore::AnimationControllerPrivate::startTimeResponse):
        * page/animation/AnimationControllerPrivate.h:

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

8 years agoText area does not update when you arrow through a <select> in WebKit2
bweinstein@apple.com [Fri, 17 Dec 2010 21:08:36 +0000 (21:08 +0000)]
Text area does not update when you arrow through a <select> in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=51269
<rdar://problem/8612853>

Reviewed by Anders Carlsson.

Patch by Sam Weinig.

Insteaed of keeping track of the selected index of a <select> just in the UI process, we
need to pass this information along to the web process so that the web process can draw
the correct text in the text field at the top of the select, when the selection changes (via
the arrows or other typing while the select is opened).

When the selected item in a popup changes, the UI process sends a message to the web process, telling
it about the new selected index. The web process gets this message, and then sets the text that
is visible in the select element.

* UIProcess/API/mac/PageClientImpl.h: CreatePopupMenuProxy now takes a WebPageProxy.
* UIProcess/API/mac/PageClientImpl.mm:
(WebKit::PageClientImpl::createPopupMenuProxy): Pass the WebPageProxy to create.
* UIProcess/API/qt/qwkpage.cpp:
(QWKPagePrivate::createPopupMenuProxy):
* UIProcess/API/qt/qwkpage_p.h: CreatePopupMenuProxy now takes a WebPageProxy.
* UIProcess/PageClient.h: CreatePopupMenuProxy now takes a WebPageProxy.
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::valueChangedForPopupMenu): Send that the selected index changed to the
    web process.selected
(WebKit::WebPageProxy::setTextFromItemForPopupMenu): Send that we should update the text for the
    active popup menu (with the index of the item to show).
(WebKit::WebPageProxy::showPopupMenu): Pass the WebPageProxy to createPopupMenuProxy.
* UIProcess/WebPageProxy.h:
* UIProcess/WebPopupMenuProxy.h: Add a client who has virtual functions for the state changing of the
    popup menu. ShowPopupMenu doesn't take a new selected index anymore, that is handled by the client,
    and calling down to the web process.
(WebKit::WebPopupMenuProxy::Client::~Client):
(WebKit::WebPopupMenuProxy::WebPopupMenuProxy): Initialize the client.
* UIProcess/mac/WebPopupMenuProxyMac.h:
(WebKit::WebPopupMenuProxyMac::create): Takes a WebPopupMenuProxy::Client, and passes it to the constructor.
* UIProcess/mac/WebPopupMenuProxyMac.mm:
(WebKit::WebPopupMenuProxyMac::WebPopupMenuProxyMac): Update what's initialized by the constructor.
(WebKit::WebPopupMenuProxyMac::showPopupMenu): Call through to the web process that the value changed.
* UIProcess/qt/WebPopupMenuProxyQt.cpp:
(WebKit::WebPopupMenuProxyQt::WebPopupMenuProxyQt): Update what's initialized by the constructor.
* UIProcess/win/WebPopupMenuProxyWin.cpp:
(WebKit::WebPopupMenuProxyWin::WebPopupMenuProxyWin): Ditto.
(WebKit::WebPopupMenuProxyWin::showPopupMenu): Call through to the web process that the value changed.
(WebKit::WebPopupMenuProxyWin::setFocusedIndex): Resolve a FIXME to set the text of the popup menu.
* UIProcess/win/WebPopupMenuProxyWin.h:
(WebKit::WebPopupMenuProxyWin::create): Take in a WebPopupMenuProxy::client, and pass it to the constructor.
* UIProcess/win/WebView.cpp:
(WebKit::WebView::createPopupMenuProxy): Pass the WebPageProxy to create.
* UIProcess/win/WebView.h:
* WebProcess/WebCoreSupport/WebPopupMenu.cpp:
(WebKit::WebPopupMenu::setTextForIndex): Call through to setTextFromItem to set the select text.
* WebProcess/WebCoreSupport/WebPopupMenu.h:
* WebProcess/WebPage/WebPage.cpp: Call through to setTextForIndex on the active popup menu.
(WebKit::WebPage::setTextForActivePopupMenu):
* WebProcess/WebPage/WebPage.h:
* WebProcess/WebPage/WebPage.messages.in: Add a new message.

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

8 years agoAdd a WebPageProxy parameter to the DrawingAreaProxy constructor
andersca@apple.com [Fri, 17 Dec 2010 21:06:48 +0000 (21:06 +0000)]
Add a WebPageProxy parameter to the DrawingAreaProxy constructor
https://bugs.webkit.org/show_bug.cgi?id=51271

Reviewed by Sam Weinig.

* UIProcess/API/mac/WKView.mm:
(-[WKView initWithFrame:contextRef:pageGroupRef:]):
(-[WKView _switchToDrawingAreaTypeIfNecessary:DrawingAreaInfo::]):
* UIProcess/API/qt/qgraphicswkview.cpp:
(QGraphicsWKView::QGraphicsWKView):
* UIProcess/ChunkedUpdateDrawingAreaProxy.cpp:
(WebKit::ChunkedUpdateDrawingAreaProxy::create):
(WebKit::ChunkedUpdateDrawingAreaProxy::ChunkedUpdateDrawingAreaProxy):
* UIProcess/ChunkedUpdateDrawingAreaProxy.h:
* UIProcess/DrawingAreaProxy.cpp:
(WebKit::DrawingAreaProxy::DrawingAreaProxy):
* UIProcess/DrawingAreaProxy.h:
* UIProcess/LayerBackedDrawingAreaProxy.cpp:
(WebKit::LayerBackedDrawingAreaProxy::create):
(WebKit::LayerBackedDrawingAreaProxy::LayerBackedDrawingAreaProxy):
* UIProcess/LayerBackedDrawingAreaProxy.h:
* UIProcess/TiledDrawingAreaProxy.cpp:
(WebKit::TiledDrawingAreaProxy::create):
(WebKit::TiledDrawingAreaProxy::TiledDrawingAreaProxy):
* UIProcess/TiledDrawingAreaProxy.h:
* UIProcess/win/WebView.cpp:
(WebKit::WebView::WebView):
(WebKit::WebView::switchToDrawingAreaTypeIfNecessary):

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

8 years agoAdd API for "Always Use the Complex Text Code Path"
mitz@apple.com [Fri, 17 Dec 2010 19:45:12 +0000 (19:45 +0000)]
Add API for "Always Use the Complex Text Code Path"
https://bugs.webkit.org/show_bug.cgi?id=51265

Reviewed by Darin Adler.

* Shared/WebProcessCreationParameters.cpp:
(WebKit::WebProcessCreationParameters::WebProcessCreationParameters): Initialize shouldAlwaysUseComplexTextCodePath.
(WebKit::WebProcessCreationParameters::encode): Encode shouldAlwaysUseComplexTextCodePath.
(WebKit::WebProcessCreationParameters::decode): Decode shouldAlwaysUseComplexTextCodePath.
* Shared/WebProcessCreationParameters.h:
* UIProcess/API/C/WKContext.cpp:
(_WKContextSetAlwaysUsesComplexTextCodePath): Added.
* UIProcess/API/C/WKContextPrivate.h:
* UIProcess/WebContext.cpp:
(WebKit::WebContext::WebContext): Initialize m_alwaysUsesComplexTextCodePath.
(WebKit::WebContext::ensureWebProcess): Set shouldAlwaysUseComplexTextCodePath in the creation parameters.
(WebKit::WebContext::setAlwaysUsesComplexTextCodePath): Added. Sets m_alwaysUsesComplexTextCodePath and
sends a message to the WebProcess.
* UIProcess/WebContext.h:
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::initializeWebProcess): Call setAlwaysUsesComplexTextCodePath() based on the creation
parameters.
(WebKit::WebProcess::setAlwaysUsesComplexTextCodePath): Added.
* WebProcess/WebProcess.h:
* WebProcess/WebProcess.messages.in: Added SetAlwaysUsesComplexTextCodePath.

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

8 years agoWebKit2: Implement a title attribute per frame
weinig@apple.com [Fri, 17 Dec 2010 19:35:46 +0000 (19:35 +0000)]
WebKit2: Implement a title attribute per frame
https://bugs.webkit.org/show_bug.cgi?id=51266

Reviewed by Darin Adler.

Cache the title of each frame on the WebFrameProxy. Removes
the WebPageProxy's cache of the main frame title to just
access the main frame.

We clear the cached title on new committed loads and on failures
to load.

* UIProcess/API/C/WKFrame.cpp:
(WKFrameCopyTitle):
* UIProcess/API/C/WKFrame.h:
* UIProcess/WebFrameProxy.cpp:
(WebKit::WebFrameProxy::didCommitLoad):
(WebKit::WebFrameProxy::didFailLoad):
(WebKit::WebFrameProxy::didChangeTitle):
* UIProcess/WebFrameProxy.h:
(WebKit::WebFrameProxy::title):
* UIProcess/WebPageProxy.cpp:
(WebKit::WebPageProxy::close):
(WebKit::WebPageProxy::pageTitle):
(WebKit::WebPageProxy::didReceiveTitleForFrame):
(WebKit::WebPageProxy::processDidCrash):
* UIProcess/WebPageProxy.h:

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

8 years agoWebCore: Layout and rendering of CSS text-emphasis
mitz@apple.com [Fri, 17 Dec 2010 19:31:16 +0000 (19:31 +0000)]
WebCore: Layout and rendering of CSS text-emphasis
Final part of <rdar://problem/7720300> Support the CSS3 text-emphasis property
https://bugs.webkit.org/show_bug.cgi?id=48539

Reviewed by Dave Hyatt.

Tests: fast/text/emphasis-vertical.html
       fast/text/emphasis.html

Emphasis marks behave like they are stuck just above the ascender (or just below the
descender). They occupy space in the leading and in padding, and only grow the line space
if they cannot fit.

* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::placeBoxesInBlockDirection): Renamed the containsRuby parameter to
hasAnnotationsBefore, and added hasAnnotationsAfter. Line annotations include ruby and text emphasis
marks.
(WebCore::InlineFlowBox::addTextBoxVisualOverflow): Added overflow from emphasis marks.
(WebCore::InlineFlowBox::computeOverAnnotationAdjustment): Remaned computeBlockDirectionRubyAdjustment()
to this and added adjustment for text emphasis marks.
(WebCore::InlineFlowBox::computeUnderAnnotationAdjustment): Added. Similar to the previous function,
but for annotations under the glyphs. These can only be text emphasis marks.
* rendering/InlineFlowBox.h:
* rendering/InlineTextBox.cpp:
(WebCore::paintTextWithShadows): Paint emphasis marks.
(WebCore::InlineTextBox::paint): Ditto.
* rendering/RenderBlockLineLayout.cpp:
(WebCore::RenderBlock::layoutInlineChildren): Generalized the code that adjusts the last line for
ruby in flipped writing mode to also adjust the last line for emphasis marks under the line in non-
flipped writing mode.
* rendering/RenderObject.cpp:
(WebCore::RenderObject::selectionColor): Added this helper method which generalizes selectionForegroundColor().
(WebCore::RenderObject::selectionForegroundColor): Moved most of the code to selectionColor().
(WebCore::RenderObject::selectionEmphasisMarkColor): Added.
* rendering/RenderObject.h:
* rendering/RootInlineBox.cpp:
(WebCore::RootInlineBox::RootInlineBox): Updated initialization for new members.
(WebCore::RootInlineBox::alignBoxesInBlockDirection): Update new members.
(WebCore::RootInlineBox::beforeAnnotationsAdjustment): Renamed blockDirectionRubyAdjustment() to this
and extended to deal with annotations over and under the line and the previous line. If both lines have
annotations into the space between the lines, maintain separation so that the annotations do not overlap.
* rendering/RootInlineBox.h:
(WebCore::RootInlineBox::hasAnnotationsBefore): Added this accessor.
(WebCore::RootInlineBox::hasAnnotationsAfter): Ditto.

LayoutTests: <rdar://problem/7720300> Support the CSS3 text-emphasis property
https://bugs.webkit.org/show_bug.cgi?id=48539

Reviewed by Dave Hyatt.

* fast/text/emphasis-vertical.html: Added.
* fast/text/emphasis.html: Added.
* platform/mac/fast/text/emphasis-expected.checksum: Added.
* platform/mac/fast/text/emphasis-expected.png: Added.
* platform/mac/fast/text/emphasis-expected.txt: Added.
* platform/mac/fast/text/emphasis-vertical-expected.checksum: Added.
* platform/mac/fast/text/emphasis-vertical-expected.png: Added.
* platform/mac/fast/text/emphasis-vertical-expected.txt: Added.

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

8 years ago2010-12-17 Antonio Gomes <agomes@rim.com>
tonikitoo@webkit.org [Fri, 17 Dec 2010 19:12:44 +0000 (19:12 +0000)]
2010-12-17  Antonio Gomes  <agomes@rim.com>

        Unreviewed fix for Windows bots.

        r74270 removed the windows specific result for extend-selection-home-end.html
        since it was matching the cross platform expectation result. However, when there is
        no win specific test result but there is a mac one for the same test, the later
        is picked before the cross platform one.

        * platform/win/editing/selection/extend-selection-home-end-expected.txt: Added.

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

8 years ago2010-12-17 Ryosuke Niwa <rniwa@webkit.org>
rniwa@webkit.org [Fri, 17 Dec 2010 18:58:23 +0000 (18:58 +0000)]
2010-12-17  Ryosuke Niwa  <rniwa@webkit.org>

        Reviewed by Antonio Gomes.

        editing/execCommand/toggle-compound-styles-expected should use LayoutTestController::setEditingBehavior
        https://bugs.webkit.org/show_bug.cgi?id=51261

        Modified the test to run each test case using each editing behavior, eliminating the need for
        platform-specific expected results.

        * editing/execCommand/script-tests/toggle-compound-styles.js:
        (testSingleToggle):
        * platform/gtk/editing/execCommand/toggle-compound-styles-expected.txt: Removed.
        * platform/mac/editing/execCommand/toggle-compound-styles-expected.txt: Removed.
        * platform/qt/editing/execCommand/toggle-compound-styles-expected.txt: Removed.
        * platform/win/editing/execCommand/toggle-compound-styles-expected.txt: Removed.

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

8 years ago2010-12-17 W. James MacLean <wjmaclean@chromium.org>
commit-queue@webkit.org [Fri, 17 Dec 2010 18:56:27 +0000 (18:56 +0000)]
2010-12-17  W. James MacLean  <wjmaclean@chromium.org>

        Reviewed by James Robinson.

        [chromium] Add support to compositor to composite to offscreen texture.
        https://bugs.webkit.org/show_bug.cgi?id=50833

        A patch to extend compositor to be able to composite into an offscreen texture instead
        of just directly to the display buffer. Builds on RenderSurfaceChromium support.

        External behaviour not changed, so no tests.

        * platform/graphics/chromium/LayerRendererChromium.cpp:
        (WebCore::LayerRendererChromium::LayerRendererChromium):
        (WebCore::LayerRendererChromium::prepareToDrawLayers):
        (WebCore::LayerRendererChromium::drawLayers):
        (WebCore::LayerRendererChromium::setCompositeOffscreen):
        (WebCore::LayerRendererChromium::useRenderSurface):
        (WebCore::LayerRendererChromium::setScissorToRect):
        * platform/graphics/chromium/LayerRendererChromium.h:
        (WebCore::LayerRendererChromium::isCompositingOffscreen):
        (WebCore::LayerRendererChromium::getOffscreenLayerTexture):

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

8 years ago2010-12-17 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Fri, 17 Dec 2010 18:37:24 +0000 (18:37 +0000)]
2010-12-17  Ojan Vafai  <ojan@chromium.org>

        Increment psuedo-version number to avoid pulling cached version.

        * PrettyPatch/PrettyPatch.rb:

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

8 years ago2010-12-17 Ojan Vafai <ojan@chromium.org>
ojan@chromium.org [Fri, 17 Dec 2010 18:33:47 +0000 (18:33 +0000)]
2010-12-17  Ojan Vafai  <ojan@chromium.org>

        Speculative fix for the code review tool in Firefox.
        Fixes a JS error and makes the status bubble mostly work
        if postMessage is not supported.

        * PrettyPatch/PrettyPatch.rb:
        * code-review.js:

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

8 years ago2010-12-16 Darin Adler <darin@apple.com>
darin@apple.com [Fri, 17 Dec 2010 17:57:44 +0000 (17:57 +0000)]
2010-12-16  Darin Adler  <darin@apple.com>

        Reviewed by Maciej Stachowiak.

        Add text encoding menu API for WebKit2
        https://bugs.webkit.org/show_bug.cgi?id=51226

        * UIProcess/API/C/WKPage.cpp:
        (WKPageSupportsTextEncoding): Added.
        (WKPageCopyCustomTextEncodingName): Added.
        (WKPageSetCustomTextEncodingName): Added.
        * UIProcess/API/C/WKPage.h: Added the functions above.

        * UIProcess/WebPageProxy.cpp:
        (WebKit::WebPageProxy::WebPageProxy): Initialize
        m_mainFrameHasCustomRepresentation to false.
        (WebKit::WebPageProxy::supportsTextEncoding): Added.
        (WebKit::WebPageProxy::setCustomTextEncodingName): Added.
        (WebKit::WebPageProxy::didCommitLoadForFrame): Set
        m_mainFrameHasCustomRepresentation.

        * UIProcess/WebPageProxy.h: Added supportsTextEncoding,
        setCustomTextEncodingName, customTextEncodingName, and
        m_mainFrameHasCustomRepresentation.

        * UIProcess/WebPageProxy.messages.in: Tweaked formatting
        (added a blank line).

        * WebProcess/WebPage/WebPage.cpp:
        (WebKit::WebPage::setCustomTextEncodingName): Added.
        * WebProcess/WebPage/WebPage.h: Added setCustomTextEncodingName.

        * WebProcess/WebPage/WebPage.messages.in: Added the
        SetCustomTextEncodingName message. Tweaked formatting of the
        dummy message.

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

8 years ago2010-12-17 John Knottenbelt <jknotten@chromium.org>
commit-queue@webkit.org [Fri, 17 Dec 2010 17:37:04 +0000 (17:37 +0000)]
2010-12-17  John Knottenbelt  <jknotten@chromium.org>

        Reviewed by Jeremy Orlow.

        Fix test failures where NULL GeolocationClient is provided
        https://bugs.webkit.org/show_bug.cgi?id=51256

        * src/GeolocationClientProxy.cpp:
        (WebKit::GeolocationClientProxy::geolocationDestroyed):

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

8 years ago2010-12-17 Antonio Gomes <agomes@rim.com>
tonikitoo@webkit.org [Fri, 17 Dec 2010 17:12:56 +0000 (17:12 +0000)]
2010-12-17  Antonio Gomes  <agomes@rim.com>

        Unreviewed expectation result update.

        editing/execCommand/toggle-compound-styles.html needs new expected results after r74269.

        Default editing behavior of GTK+ DRT was changed from Mac to Unix, and this test is wrongly
        going through platform specific editing behavior code path without making calls to
        LayoutTestController::setEditingBehavior. Filed bug 51261 for the proper fix.

        * platform/gtk/editing/execCommand/toggle-compound-styles-expected.txt:

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

8 years ago2010-12-17 Ariya Hidayat <ariya@sencha.com>
ariya@webkit.org [Fri, 17 Dec 2010 16:43:05 +0000 (16:43 +0000)]
2010-12-17  Ariya Hidayat  <ariya@sencha.com>

        Reviewed by Andreas Kling.

        [Qt] Default image interpolation should reset the render hint
        https://bugs.webkit.org/show_bug.cgi?id=51233

        Save initial SmoothPixmapTransform render hint so that it can be used
        with default image interpolation quality to reset back the render hints.

        * platform/graphics/qt/GraphicsContextQt.cpp:
        (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
        (WebCore::GraphicsContext::setImageInterpolationQuality):

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

8 years ago2010-12-17 Ariya Hidayat <ariya@sencha.com>
ariya@webkit.org [Fri, 17 Dec 2010 16:26:55 +0000 (16:26 +0000)]
2010-12-17  Ariya Hidayat  <ariya@sencha.com>

        Reviewed by Antonio Gomes.

        [Qt] GraphicsContext should respect QWebView render hints
        https://bugs.webkit.org/show_bug.cgi?id=51208

        Adjust the test since SmoothPixmapTransform is set by default.

        * tests/qwebview/tst_qwebview.cpp:
        (tst_QWebView::renderHints):

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

8 years ago2010-12-05 Antonio Gomes <agomes@rim.com>
tonikitoo@webkit.org [Fri, 17 Dec 2010 16:16:08 +0000 (16:16 +0000)]
2010-12-05 Antonio Gomes <agomes@rim.com>

        Reviewed by Ariya Hidayat.

        [Qt] Fix caret browsing navigation mode
        https://bugs.webkit.org/show_bug.cgi?id=50536

        WebKit/qt:

        Caret browsing can consume editing commands even when the start
        of current selection is not a editable content. r69582 missed this
        case because caret browsing feature testing is very poor today.

        This commit reintroduces part of the removed code in r69582 but
        guarded by a isCaretBrowsingEnabled() check. No regression found.

        * WebCoreSupport/EditorClientQt.cpp:
        (WebCore::EditorClientQt::handleKeyboardEvent):

        LayoutTests:

        /platform/gtk/editing/selection/caret-mode-paragraph-keys-navigation.html
        is one of the few tests actually tests the caret browsing feature.
        Patch makes the test not Gtk+ specific, and Qt now passes on it.

        * editing/selection/caret-mode-paragraph-keys-navigation-expected.txt: Renamed from LayoutTests/platform/gtk/editing/selection/caret-mode-paragraph-keys-navigation-expected.tx       t.
        * editing/selection/caret-mode-paragraph-keys-navigation.html: Renamed from LayoutTests/platform/gtk/editing/selection/caret-mode-paragraph-keys-navigation.html.
        * fast/events/multiline-link-arrow-navigation.html:

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

8 years ago2010-12-16 Antonio Gomes <agomes@rim.com>
tonikitoo@webkit.org [Fri, 17 Dec 2010 16:15:41 +0000 (16:15 +0000)]
2010-12-16  Antonio Gomes  <agomes@rim.com>

        Reviewed by Martin Robinson.

        Settings::editingBehaviorType() incorrectly returns mac for the gtk build when running tests
        https://bugs.webkit.org/show_bug.cgi?id=51163

        WebKitTools:
        Since GTK+'s default editing behavior was changed to UNIX in r70975 (see webkitwebsettings.cpp),
        GTK+'s DRT should also reset to UNIX after each test execution.

        * DumpRenderTree/gtk/DumpRenderTree.cpp:
        (resetDefaultsToConsistentValues):

        LayoutTests:
        Removed platform specific expected result files for gtk and windows
        for editing/selection/extend-selection-home-end.html, since they all match
        the cross platform result file.

        Note: chromium-win and mac still have their own expected file each.

        * platform/gtk/editing/selection/extend-selection-home-end-expected.txt: Removed.
        * platform/win/editing/selection/extend-selection-home-end-expected.txt: Removed.

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

8 years ago2010-12-17 Sheriff Bot <webkit.review.bot@gmail.com>
commit-queue@webkit.org [Fri, 17 Dec 2010 15:54:44 +0000 (15:54 +0000)]
2010-12-17  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r74201.
        http://trac.webkit.org/changeset/74201
        https://bugs.webkit.org/show_bug.cgi?id=51248

        It broke ~6000 layout tests (Requested by Ossy_ on #webkit).

        * UIProcess/API/qt/qgraphicswkview.cpp:
        (QGraphicsWKView::setGeometry):
        (QGraphicsWKView::itemChange):

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

8 years ago2010-12-17 Yury Semikhatsky <yurys@chromium.org>
yurys@chromium.org [Fri, 17 Dec 2010 15:11:51 +0000 (15:11 +0000)]
2010-12-17  Yury Semikhatsky  <yurys@chromium.org>

        Unreviewed. Remove custom expectations for fast/js/regexp-ranges-and-escaped-hyphens.html

        * platform/chromium/test_expectations.txt:

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

8 years ago2010-12-17 Hans Wennborg <hans@chromium.org>
hans@chromium.org [Fri, 17 Dec 2010 15:10:21 +0000 (15:10 +0000)]
2010-12-17  Hans Wennborg  <hans@chromium.org>

        Reviewed by Jeremy Orlow.

        IndexedDB: Support Date objects as keys.
        https://bugs.webkit.org/show_bug.cgi?id=51193

        Update layout tests to check that having Date objects as keys work.

        * storage/indexeddb/objectstore-basics-expected.txt:
        * storage/indexeddb/objectstore-basics.html:
2010-12-17  Hans Wennborg  <hans@chromium.org>

        Reviewed by Jeremy Orlow.

        IndexedDB: Support Date objects as keys.
        https://bugs.webkit.org/show_bug.cgi?id=51193

        * bindings/v8/IDBBindingUtilities.cpp:
        (WebCore::createIDBKeyFromValue):
        Use the new IDBKey factory functions, and support Date objects.
        * bindings/v8/custom/V8IDBKeyCustom.cpp:
        (WebCore::toV8):
        Create Date objects from DateType keys.
        * storage/IDBKey.cpp:
        (WebCore::IDBKey::fromQuery):
        (WebCore::IDBKey::isEqual):
        (WebCore::IDBKey::whereSyntax):
        (WebCore::IDBKey::lowerCursorWhereFragment):
        (WebCore::IDBKey::upperCursorWhereFragment):
        (WebCore::IDBKey::bind):
        (WebCore::IDBKey::bindWithNulls):
        Update all SQL related functions to handle Date keys.
        * storage/IDBKey.h:
        (WebCore::IDBKey::createNull):
        (WebCore::IDBKey::createNumber):
        (WebCore::IDBKey::createString):
        (WebCore::IDBKey::createDate):
        Rename the create factories; since both number and date is just a
        double, function overloading can't be used to discriminate between
        the factories.
        (WebCore::IDBKey::date):
        Add getter for the date value.
2010-12-17  Hans Wennborg  <hans@chromium.org>

        Reviewed by Jeremy Orlow.

        IndexedDB: Support Date objects as keys.
        https://bugs.webkit.org/show_bug.cgi?id=51193

        Update to match the underlying WebCore IDBKey class:
        add the DateType, add create() functions for each type,
        deprecate the public constructors (will be removed once
        Chromium side is updated).

        * public/WebIDBKey.h:
        (WebKit::WebIDBKey::WebIDBKey):
        * src/AssertMatchingEnums.cpp:
        * src/WebIDBKey.cpp:
        (WebKit::WebIDBKey::createString):
        (WebKit::WebIDBKey::createDate):
        (WebKit::WebIDBKey::createNumber):
        (WebKit::WebIDBKey::assignNull):
        (WebKit::WebIDBKey::assignString):
        (WebKit::WebIDBKey::assignDate):
        (WebKit::WebIDBKey::assignNumber):
        (WebKit::WebIDBKey::date):

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

8 years ago2010-12-17 Sergio Villar Senin <svillar@igalia.com>
sergio@webkit.org [Fri, 17 Dec 2010 14:55:18 +0000 (14:55 +0000)]
2010-12-17  Sergio Villar Senin  <svillar@igalia.com>

        Unreviewed, tests were skipped due to a bug in libsoup
        https://bugzilla.gnome.org/show_bug.cgi?id=631679. Now that it was
        fixed we can safely unskip them again.

        [GTK] Failing http/tests/xmlhttprequest tests
        https://bugs.webkit.org/show_bug.cgi?id=30582

        * platform/gtk/Skipped:

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

8 years ago2010-12-17 Pavel Podivilov <podivilov@chromium.org>
podivilov@chromium.org [Fri, 17 Dec 2010 14:47:45 +0000 (14:47 +0000)]
2010-12-17  Pavel Podivilov  <podivilov@chromium.org>

        Reviewed by Pavel Feldman.

        Web Inspector: add scripts parsed after resource load to SourceFrame.
        https://bugs.webkit.org/show_bug.cgi?id=51243

        * inspector/front-end/ScriptsPanel.js:
        (WebInspector.ScriptsPanel.prototype._addScript):
        * inspector/front-end/SourceFrame.js:
        (WebInspector.SourceFrame.prototype.addScript):

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