2010-10-24  Patrick Gansterer  <paroga@webkit.org>

        Reviewed by David Kilzer.

        Add WTF_ARRAY_LENGTH macro to WTF
        https://bugs.webkit.org/show_bug.cgi?id=32828

        Unify the different implementations and usages.

        * interpreter/Interpreter.cpp:
        (JSC::Interpreter::privateExecute):
        * runtime/DatePrototype.cpp:
        (JSC::formatLocaleDate):
        * runtime/JSGlobalObject.cpp:
        (JSC::JSGlobalObject::reset):
        * runtime/JSONObject.cpp:
        (JSC::Stringifier::appendQuotedString):
        (JSC::Stringifier::toJSON):
        (JSC::Stringifier::appendStringifiedValue):
        * runtime/UString.cpp:
        (JSC::UString::number):
        * wtf/DateMath.cpp:
        (WTF::parseDateFromNullTerminatedCharacters):
        * wtf/StdLibExtras.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70425 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-24  Patrick Gansterer  <paroga@webkit.org>

        Unreviewed build fix for chromium.

        * wtf/DateMath.cpp: Added missing include.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70426 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-24  Patrick Gansterer  <paroga@webkit.org>

        Unreviewed, fix typo of last build fix.

        * wtf/DateMath.cpp:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70427 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Need a way to determine the screen rect for a form control in WebKit2
<rdar://problem/8530670>
https://bugs.webkit.org/show_bug.cgi?id=48216

Reviewed by Dan Bernstein.

WebCore: 

* WebCore.exp.in: Add export.
* dom/Element.cpp:
(WebCore::Element::boundsInWindowSpace):
* dom/Element.h:
Add function to return the bounding box in window (in ScrollView terminology) space,
this is the same space as the root viewport.

WebKit2: 

* Shared/API/c/WKSharedAPICast.h:
(WebKit::toAPI):
Add conversion from IntRect to WKRect.

* WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
(WKBundleNodeHandleGetElementBounds):
* WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
(WebKit::InjectedBundleNodeHandle::elementBounds):
* WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
Add SPI to get the rect in window space. The client can then convert this to screen
space if they wish to.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70428 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-22  MORITA Hajime  <morrita@google.com>

        Reviewed by Tony Chang.

        Text test conversion: editing/spelling/spelling-linebreak.html
        https://bugs.webkit.org/show_bug.cgi?id=47649

        Rewrote verification part using hasSpellingMarker().

        * editing/spelling/spelling-linebreak-expected.txt: Added.
        * editing/spelling/spelling-linebreak.html:
        * platform/gtk/editing/spelling/spelling-linebreak-expected.txt: Removed.
        * platform/mac/editing/spelling/spelling-linebreak-expected.checksum: Removed.
        * platform/mac/editing/spelling/spelling-linebreak-expected.png: Removed.
        * platform/mac/editing/spelling/spelling-linebreak-expected.txt: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70429 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-24  Sheriff Bot  <webkit.review.bot@gmail.com>

        Unreviewed, rolling out r70361.
        http://trac.webkit.org/changeset/70361
        https://bugs.webkit.org/show_bug.cgi?id=48217

        Chromium tests NoInitialAutocompleteForReadOnly and
        InitialAutocomplete don't complete (Requested by yuzo on
        #webkit).

        * public/WebDocument.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70430 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-24  Kent Tamura  <tkent@chromium.org>

        Reviewed by David Kilzer.

        Remove unnecessary test results.
        https://bugs.webkit.org/show_bug.cgi?id=47711

        The following tests were converted to dumpAsText() in
        http://trac.webkit.org/changeset/47608. So corresponding PNG files
        are unnecessary.
         - editing/execCommand/italicizeByCharacter.html
         - editing/execCommand/modifyForeColorByCharacter.html
         - editing/execCommand/strikethroughSelection.html

        The following tests were converted to dumpAsText() in
        http://trac.webkit.org/changeset/47543.
         - editing/style/remove-underline-across-paragraph.html
         - editing/style/remove-underline-across-paragraph-in-bold.html

        The following tests were converted to dumpAsText() in
        http://trac.webkit.org/changeset/47542.
         - editing/style/remove-underline-after-paragraph.html
         - editing/style/remove-underline-after-paragraph-in-bold.html

        * platform/mac/editing/execCommand/italicizeByCharacter-expected.png: Removed.
        * platform/mac/editing/execCommand/modifyForeColorByCharacter-expected.png: Removed.
        * platform/mac/editing/execCommand/strikethroughSelection-expected.png: Removed.
        * platform/mac/editing/style/remove-underline-across-paragraph-expected.png: Removed.
        * platform/mac/editing/style/remove-underline-across-paragraph-in-bold-expected.png: Removed.
        * platform/mac/editing/style/remove-underline-after-paragraph-expected.png: Removed.
        * platform/mac/editing/style/remove-underline-after-paragraph-in-bold-expected.png: Removed.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-24  MORITA Hajime  <morrita@google.com>

        Unreviewed skip.

        Added editing/spelling/spelling-linebreak.html to skip,
        which was originally tested against a wrong expectation.

        * platform/gtk/Skipped:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70432 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Removed empty directories.

Rubber-stamped by Dave Kilzer.

* JavaScriptCore: Removed.
* JavaScriptCore/runtime: Removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-24  Kwang Yul Seo  <skyul@company100.net>

        Reviewed by David Kilzer.

        Check endianness with __BIG_ENDIAN in RVCT.
        https://bugs.webkit.org/show_bug.cgi?id=46122

        RVCT defines __BIG_ENDIAN if compiling for a big-endian target.

        * wtf/Platform.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Expose HitTestResult::absoluteMediaURL() via WebKit API
https://bugs.webkit.org/show_bug.cgi?id=48219

Reviewed by Anders Carlsson.

WebCore: 

* WebCore.exp.in: Export HitTestResult::absoluteMediaURL().

WebKit/mac: 

* Misc/WebElementDictionary.mm:
(+[WebElementDictionary initializeLookupTable]): Map WebElementMediaURLKey to
_absoluteMediaURL.
(-[WebElementDictionary _absoluteMediaURL]): Added. Returns absoluteMediaURL().
* WebKit.exp: Export WebElementMediaURLKey.
* WebView/WebView.mm: Define WebElementMediaURLKey.
* WebView/WebViewPrivate.h: Declare WebElementMediaURLKey.

WebKit/win: 

* Interfaces/IWebView.idl: Added WebElementMediaURLKey.
* WebElementPropertyBag.cpp:
(WebElementPropertyBag::Read): Map WebElementMediaURLKey to absoluteMediaURL().



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

* Interfaces/WebKit.idl: Touched.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70436 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-24  Adam Barth  <abarth@webkit.org>

        Reviewed by David Kilzer.

        webkit-patch upload fails when the patch removes a file
        https://bugs.webkit.org/show_bug.cgi?id=48187

        We need to use "--" to separate file names from the rest of the
        command.

        * Scripts/webkitpy/common/checkout/scm.py:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70437 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-20  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Jian Li.

        Renumber FileError/FileException error codes per latest File API spec changes
        https://bugs.webkit.org/show_bug.cgi?id=47936

        * public/WebFileError.h:
        * src/AssertMatchingEnums.cpp:
        * src/AsyncFileWriterChromium.cpp:
        (WebCore::AsyncFileWriterChromium::didFail):
2010-10-20  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Jian Li.

        Renumber FileError/FileException error codes per latest File API spec changes
        https://bugs.webkit.org/show_bug.cgi?id=47936

        * bindings/js/JSDOMBinding.cpp:
        (WebCore::setDOMException): Added FileExceptionType case.
        * bindings/v8/V8Proxy.cpp:
        (WebCore::V8Proxy::setDOMException): Added FileExceptionType case.
        * dom/ExceptionCode.cpp:
        (WebCore::getExceptionCodeDescription): Added code for FileException.
        * dom/ExceptionCode.h:
        * fileapi/AsyncFileWriterClient.h:
        * fileapi/DirectoryEntry.cpp:
        (WebCore::DirectoryEntry::getFile):
        (WebCore::DirectoryEntry::getDirectory):
        (WebCore::DirectoryEntry::removeRecursively):
        * fileapi/DirectoryEntrySync.cpp:
        (WebCore::DirectoryEntrySync::getFile):
        (WebCore::DirectoryEntrySync::getDirectory):
        (WebCore::DirectoryEntrySync::removeRecursively):
        * fileapi/DirectoryReaderSync.cpp:
        (WebCore::DirectoryReaderSync::readEntries):
        * fileapi/Entry.cpp:
        (WebCore::Entry::getMetadata):
        (WebCore::Entry::moveTo):
        (WebCore::Entry::copyTo):
        (WebCore::Entry::remove):
        (WebCore::Entry::getParent):
        * fileapi/EntrySync.cpp:
        (WebCore::EntrySync::getMetadata):
        (WebCore::EntrySync::moveTo):
        (WebCore::EntrySync::copyTo):
        (WebCore::EntrySync::remove):
        * fileapi/FileError.h: Added error code enum.
        (WebCore::FileError::create):
        (WebCore::FileError::code):
        (WebCore::FileError::FileError):
        * fileapi/FileError.idl: Rebased error code numbers.
        * fileapi/FileException.h: Added exception code enum.
        (WebCore::FileException::ErrorCodeToExceptionCode): Added.
        * fileapi/FileException.idl: Rebased exception code numbers.
        * fileapi/FileReader.cpp:
        (WebCore::FileReader::abort):
        (WebCore::FileReader::failed):
        (WebCore::FileReader::httpStatusCodeToErrorCode): Changed from
        httpStatuCodeToExceptionCode.
        * fileapi/FileReader.h:
        * fileapi/FileReaderSync.cpp:
        (WebCore::FileReaderSyncLoader::start):
        * fileapi/FileSystemCallbacks.cpp:
        (WebCore::FileSystemCallbacksBase::didFail):
        * fileapi/FileWriter.cpp:
        (WebCore::FileWriter::write):
        (WebCore::FileWriter::seek):
        (WebCore::FileWriter::truncate):
        (WebCore::FileWriter::abort):
        (WebCore::FileWriter::didFail):
        (WebCore::FileWriter::setError):
        * fileapi/FileWriter.h:
        * fileapi/SyncCallbackHelper.h:
        (WebCore::SyncCallbackHelper::SyncCallbackHelper):
        (WebCore::SyncCallbackHelper::getResult):
        (WebCore::SyncCallbackHelper::setError):
        * page/DOMWindow.cpp:
        (WebCore::DOMWindow::requestFileSystem):
        * workers/WorkerContext.cpp:
        (WebCore::WorkerContext::requestFileSystem):
        (WebCore::WorkerContext::requestFileSystemSync):
2010-10-20  Kinuko Yasuda  <kinuko@chromium.org>

        Reviewed by Jian Li.

        Renumber FileError/FileException error codes per latest File API spec changes
        https://bugs.webkit.org/show_bug.cgi?id=47936

        Updated test expectations to match with the new error code.

        * fast/files/read-blob-async-expected.txt:
        * fast/files/read-file-async-expected.txt:
        * fast/files/workers/worker-read-blob-async-expected.txt:
        * fast/files/workers/worker-read-blob-sync-expected.txt:
        * fast/files/workers/worker-read-file-async-expected.txt:
        * fast/files/workers/worker-read-file-sync-expected.txt:
        * fast/filesystem/op-copy-expected.txt:
        * fast/filesystem/op-get-entry-expected.txt:
        * fast/filesystem/op-move-expected.txt:
        * fast/filesystem/op-remove-expected.txt:
        * fast/filesystem/op-restricted-chars-expected.txt:
        * fast/filesystem/op-restricted-names-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70438 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix Qt minimal build break revealed by r70413.
https://bugs.webkit.org/show_bug.cgi?id=48185

Reviewed by David Kilzer.

* rendering/RenderMeter.h: Missing include added, needless include removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
<http://webkit.org/b/48185> build-webkit: add support for --progress-tag switch
(Re-landing r70413 after Qt minimal buildfix: r70440.)

Patch by David Kilzer <ddkilzer@apple.com> on 2010-10-25
Reviewed by Kenneth Rohde Christiansen.

* Scripts/build-webkit: Added support for --progress-tag switch.
It should have been added with r57051.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70441 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Make http locking default in NRWT.
https://bugs.webkit.org/show_bug.cgi?id=48053

Patch by Gabor Rapcsanyi <rgabor@inf.u-szeged.hu> on 2010-10-25
Reviewed by Ojan Vafai.

* Scripts/webkitpy/layout_tests/layout_package/dump_render_tree_thread.py:
* Scripts/webkitpy/layout_tests/run_webkit_tests.py:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-25  Yuzo Fujishima  <yuzo@google.com>

        Unreviewed Chromium test expectation change.

        fast/frames/frame-src-attribute.html now passes for Mac.

        * platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70443 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-25  Yuzo Fujishima  <yuzo@google.com>

        Unreviewed Chromium test expectation change.

        editing/spelling/spellcheck-attribute.html now passes for Mac.

        * platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@70444 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-10-24  Pavel Feldman  <pfeldman@chromium.org>

        Reviewed by Timothy Hatcher.

        Web Inspector: add support for errors, warnings and search to the storage panel.
        https://bugs.webkit.org/show_bug.cgi?id=48206

        * inspector/front-end/ConsoleView.js:
        (WebInspector.ConsoleView.prototype.addMessage):
        (WebInspector.ConsoleView.prototype.clearMessages):
        * inspector/front-end/Resource.js:
        (WebInspector.Resource.prototype.set errors):
        (WebInspector.Resource.prototype.set warnings):
        (WebInspector.Resource.prototype.get searchMatches):
        (WebInspector.Resource.prototype.set searchMatches):
        (WebInspector.Resource.prototype.clearErrorsAndWarnings):
        * inspector/front-end/ResourceManager.js:
        (WebInspector.ResourceManager):
        (WebInspector.ResourceManager.prototype.identifierForInitialRequest):
        (WebInspector.ResourceManager.prototype._createResource):
        (WebInspector.ResourceManager.prototype._appendRedirect):
        (WebInspector.ResourceManager.prototype.didReceiveResponse):
        (WebInspector.ResourceManager.prototype.didFinishLoading):
        (WebInspector.ResourceManager.prototype.didFailLoading):
        (WebInspector.ResourceManager.prototype.didLoadResourceFromMemoryCache):
        (WebInspector.ResourceManager.prototype.didCommitLoadForFrame):
        (WebInspector.ResourceManager.prototype.frameDetachedFromParent):
        (WebInspector.ResourceManager.prototype._addFramesRecursively):
        (WebInspector.ResourceManager.prototype.resourceForURL):
        (WebInspector.ResourceManager.prototype.addConsoleMessage):
        (WebInspector.ResourceManager.prototype.clearConsoleMessages):
        (WebInspector.ResourceTreeModel):
        (WebInspector.ResourceTreeModel.prototype.addOrUpdateFrame):
        (WebInspector.ResourceTreeModel.prototype.didCommitLoadForFrame):
        (WebInspector.ResourceTreeModel.prototype.frameDetachedFromParent):
        (WebInspector.ResourceTreeModel.prototype._clearChildFramesAndResources):
        (WebInspector.ResourceTreeModel.prototype.addResourceToFrame):
        (WebInspector.ResourceTreeModel.prototype._clearResources):
        (WebInspector.ResourceTreeModel.prototype._bindResourceURL):
        (WebInspector.ResourceTreeModel.prototype._unbindResourceURL):
        (WebInspector.ResourceTreeModel.prototype.resourceForURL):
        (WebInspector.ResourceTreeModel.prototype.forAllResources):
        (WebInspector.ResourceTreeModel.prototype._callForFrameResources):
        * inspector/front-end/StoragePanel.js:
        (WebInspector.StoragePanel):
        (WebInspector.StoragePanel.prototype.get toolbarItemLabel):
        (WebInspector.StoragePanel.prototype.reset):
        (WebInspector.StoragePanel.prototype.removeFrame):
        (WebInspector.StoragePanel.prototype.canShowSourceLine):
        (WebInspector.StoragePanel.prototype.showSourceLine):
        (WebInspector.StoragePanel.prototype.showResource):
        (WebInspector.StoragePanel.prototype._showResourceView):
        (WebInspector.StoragePanel.prototype.updateMainViewWidth):
        (WebInspector.StoragePanel.prototype.get searchableViews.callback):
        (WebInspector.StoragePanel.prototype.get searchableViews):
        (WebInspector.StoragePanel.prototype._forAllResourceTreeElements):
        (WebInspector.StoragePanel.prototype.searchMatchFound):
        (WebInspector.StoragePanel.prototype.searchCanceled.callback):
        (WebInspector.StoragePanel.prototype.searchCanceled):
        (WebInspector.StoragePanel.prototype.performSearch):
        (WebInspector.StoragePanel.prototype.showView):
        (WebInspector.BaseStorageTreeElement.prototype.onattach):
        (WebInspector.BaseStorageTreeElement.prototype.set titleText):
        (WebInspector.BaseStorageTreeElement.prototype.isEventWithinDisclosureTriangle):
        (WebInspector.FrameResourceTreeElement):
        (WebInspector.FrameResourceTreeElement.prototype.onselect):
        (WebInspector.FrameResourceTreeElement.prototype.ondblclick):
        (WebInspector.FrameResourceTreeElement.prototype.onattach):
        (WebInspector.FrameResourceTreeElement.prototype._ondragstart):
        (WebInspector.FrameResourceTreeElement.prototype._setBubbleText):
        (WebInspector.FrameResourceTreeElement.prototype._resetBubble):
        (WebInspector.FrameResourceTreeElement.prototype._searchMatchesUpdated):
        (WebInspector.FrameResourceTreeElement.prototype._errorsWarningsUpdated):
        * inspector/front-end/inspector.css:
        (.storage.panel .sidebar):
        (.storage.panel .outline-disclosure li):
        (.storage.panel .outline-disclosure li.parent):
        (.storage.panel .outline-disclosure li .selection):
        (.storage.panel .outline-disclosure .icon):
        (.storage.panel .base-storage-tree-element-title):
        (.storage.panel .status):
        (.storage.panel li .status .bubble):
        (li .status):
        (li .status:empty):
        (li .status .bubble):
        (li .status .bubble:empty):
        (li.selected .status .bubble):
        (:focus li.selected .status .bubble):
        (body.inactive li.selected .status .bubble):
        (li.selected .bubble.search-matches):
        (:focus li.selected .bubble.search-matches):
        (body.inactive li.selected .bubble.search-matches):


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