Remove an unused variable.

* WebView/WebDynamicScrollBarsView.mm:
(-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fixed the change log entry for r73548.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Unreviewed Chromium test expectations update.

Mark some Mac tests as timing out after r73518 and r73522.

* platform/chromium/test_expectations.txt:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73554 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed; Removed old expected results for caret-rtl.html and caret-rtl-2.html on Mac Leopard.

        * platform/mac-leopard/editing/selection/caret-rtl-2-expected.checksum: Removed.
        * platform/mac-leopard/editing/selection/caret-rtl-2-expected.png: Removed.
        * platform/mac-leopard/editing/selection/caret-rtl-expected.checksum: Removed.
        * platform/mac-leopard/editing/selection/caret-rtl-expected.png: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73555 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Martin Robinson  <mrobinson@igalia.com>

        Replace some GTK+ test results after r73548.

        * platform/gtk/fast/dom/horizontal-scrollbar-in-rtl-expected.txt:
        * platform/gtk/fast/dom/vertical-scrollbar-in-rtl-expected.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73557 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed Chromium rebaseline for r73548.

        * platform/chromium-linux/editing/selection/caret-ltr-2-expected.checksum: Added.
        * platform/chromium-linux/editing/selection/caret-ltr-2-expected.png: Added.
        * platform/chromium-linux/editing/selection/caret-ltr-2-left-expected.checksum: Added.
        * platform/chromium-linux/editing/selection/caret-ltr-2-left-expected.png: Added.
        * platform/chromium-linux/editing/selection/caret-ltr-expected.checksum: Added.
        * platform/chromium-linux/editing/selection/caret-ltr-expected.png: Added.
        * platform/chromium-linux/editing/selection/caret-ltr-right-expected.checksum: Added.
        * platform/chromium-linux/editing/selection/caret-ltr-right-expected.png: Added.
        * platform/chromium-linux/editing/selection/caret-rtl-2-expected.checksum: Added.
        * platform/chromium-linux/editing/selection/caret-rtl-2-expected.png: Added.
        * platform/chromium-linux/editing/selection/caret-rtl-2-left-expected.checksum: Added.
        * platform/chromium-linux/editing/selection/caret-rtl-2-left-expected.png: Added.
        * platform/chromium-linux/editing/selection/caret-rtl-expected.checksum:
        * platform/chromium-linux/editing/selection/caret-rtl-expected.png:
        * platform/chromium-linux/editing/selection/caret-rtl-right-expected.checksum: Added.
        * platform/chromium-linux/editing/selection/caret-rtl-right-expected.png: Added.
        * platform/chromium-mac/editing/selection/caret-ltr-2-expected.checksum: Added.
        * platform/chromium-mac/editing/selection/caret-ltr-2-expected.png: Added.
        * platform/chromium-mac/editing/selection/caret-ltr-2-left-expected.checksum: Added.
        * platform/chromium-mac/editing/selection/caret-ltr-2-left-expected.png: Added.
        * platform/chromium-mac/editing/selection/caret-ltr-expected.checksum: Added.
        * platform/chromium-mac/editing/selection/caret-ltr-expected.png: Added.
        * platform/chromium-mac/editing/selection/caret-ltr-right-expected.checksum: Added.
        * platform/chromium-mac/editing/selection/caret-ltr-right-expected.png: Added.
        * platform/chromium-mac/editing/selection/caret-rtl-2-expected.checksum: Added.
        * platform/chromium-mac/editing/selection/caret-rtl-2-expected.png: Added.
        * platform/chromium-mac/editing/selection/caret-rtl-2-left-expected.checksum: Added.
        * platform/chromium-mac/editing/selection/caret-rtl-2-left-expected.png: Added.
        * platform/chromium-mac/editing/selection/caret-rtl-expected.checksum:
        * platform/chromium-mac/editing/selection/caret-rtl-expected.png:
        * platform/chromium-mac/editing/selection/caret-rtl-right-expected.checksum: Added.
        * platform/chromium-mac/editing/selection/caret-rtl-right-expected.png: Added.
        * platform/chromium-win/editing/selection/caret-ltr-2-expected.checksum: Added.
        * platform/chromium-win/editing/selection/caret-ltr-2-expected.png: Added.
        * platform/chromium-win/editing/selection/caret-ltr-2-expected.txt: Added.
        * platform/chromium-win/editing/selection/caret-ltr-2-left-expected.checksum: Added.
        * platform/chromium-win/editing/selection/caret-ltr-2-left-expected.png: Added.
        * platform/chromium-win/editing/selection/caret-ltr-2-left-expected.txt: Added.
        * platform/chromium-win/editing/selection/caret-ltr-expected.checksum: Added.
        * platform/chromium-win/editing/selection/caret-ltr-expected.png: Added.
        * platform/chromium-win/editing/selection/caret-ltr-expected.txt: Added.
        * platform/chromium-win/editing/selection/caret-ltr-right-expected.checksum: Added.
        * platform/chromium-win/editing/selection/caret-ltr-right-expected.png: Added.
        * platform/chromium-win/editing/selection/caret-ltr-right-expected.txt: Added.
        * platform/chromium-win/editing/selection/caret-rtl-2-expected.checksum:
        * platform/chromium-win/editing/selection/caret-rtl-2-expected.png:
        * platform/chromium-win/editing/selection/caret-rtl-2-expected.txt:
        * platform/chromium-win/editing/selection/caret-rtl-2-left-expected.checksum: Added.
        * platform/chromium-win/editing/selection/caret-rtl-2-left-expected.png: Added.
        * platform/chromium-win/editing/selection/caret-rtl-2-left-expected.txt: Added.
        * platform/chromium-win/editing/selection/caret-rtl-expected.checksum:
        * platform/chromium-win/editing/selection/caret-rtl-expected.png:
        * platform/chromium-win/editing/selection/caret-rtl-expected.txt:
        * platform/chromium-win/editing/selection/caret-rtl-right-expected.checksum: Added.
        * platform/chromium-win/editing/selection/caret-rtl-right-expected.png: Added.
        * platform/chromium-win/editing/selection/caret-rtl-right-expected.txt: Added.
        * platform/chromium/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73558 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Dimitri Glazkov.

        Detach node iterator and move to new document when node gets moved.
        https://bugs.webkit.org/show_bug.cgi?id=50697

        Test: fast/dom/node-iterator-document-moved-crash.html

        * dom/Document.cpp: Method that takes a node and new document as argument.
        It detaches the node iterators belonging to the current document and attaches
        them to the new document.
        (WebCore::Document::moveNodeIteratorsToNewDocument):
        * dom/Document.h: Function definition.
        * dom/Node.cpp: When node is moved to another document, call the function to move
        the iterators appropriately.
        (WebCore::Node::setDocument):
2010-12-08  Abhishek Arya  <inferno@chromium.org>

        Reviewed by Dimitri Glazkov.

        Tests that we do not crash when node iterator gets moved across documents.
        https://bugs.webkit.org/show_bug.cgi?id=50697

        * fast/dom/node-iterator-document-moved-crash-expected.txt: Added.
        * fast/dom/node-iterator-document-moved-crash.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73559 268f45cc-cd09-0410-ab3c-d52691b4dbfc
REGRESSION: r73429-r73490: Some Contextual menu items non-functional, such as Open Link in New Tab
https://bugs.webkit.org/show_bug.cgi?id=50683
        
Reviewed by John Sullivan.

If our context menu item already has an action, don't overwrite the action with the context menu
forwarder.

* WebView/WebHTMLView.mm:
(setMenuItemTarget):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Carlos Garcia Campos  <cgarcia@igalia.com>

        Reviewed by Martin Robinson.

        [GTK] Use gtk_icon_set_render_icon() to render icons in RenderThemeGtk
        https://bugs.webkit.org/show_bug.cgi?id=50623

        We don't need to cache the icons since the will be cached by GTK+,
        and they will be rendered using the state and text direction.

        * platform/gtk/RenderThemeGtk.cpp:
        (WebCore::paintStockIcon):
        (WebCore::getMediaButtonIconSize):
        (WebCore::RenderThemeGtk::initMediaColors):
        (WebCore::RenderThemeGtk::initMediaButtons):
        (WebCore::RenderThemeGtk::RenderThemeGtk):
        (WebCore::RenderThemeGtk::~RenderThemeGtk):
        (WebCore::RenderThemeGtk::gtkIconState):
        (WebCore::RenderThemeGtk::adjustSearchFieldResultsDecorationStyle):
        (WebCore::centerRectVerticallyInParentInputElement):
        (WebCore::RenderThemeGtk::paintSearchFieldResultsDecoration):
        (WebCore::RenderThemeGtk::adjustSearchFieldCancelButtonStyle):
        (WebCore::RenderThemeGtk::paintSearchFieldCancelButton):
        (WebCore::RenderThemeGtk::platformColorsDidChange):
        (WebCore::RenderThemeGtk::paintMediaButton):
        (WebCore::RenderThemeGtk::paintMediaFullscreenButton):
        (WebCore::RenderThemeGtk::paintMediaMuteButton):
        (WebCore::RenderThemeGtk::paintMediaPlayButton):
        (WebCore::RenderThemeGtk::paintMediaSeekBackButton):
        (WebCore::RenderThemeGtk::paintMediaSeekForwardButton):
        * platform/gtk/RenderThemeGtk.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73561 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Ryosuke Niwa  <rniwa@webkit.org>

        Unreviewed Chromium rebaseline for r73548.

        * platform/chromium-linux/fast/text/international/khmer-selection-expected.checksum:
        * platform/chromium-linux/fast/text/international/khmer-selection-expected.png:
        * platform/chromium-linux/fast/text/international/khmer-selection-expected.txt:
        * platform/chromium-win-xp/fast/text/international/khmer-selection-expected.checksum: Removed.
        * platform/chromium-win-xp/fast/text/international/khmer-selection-expected.png: Removed.
        * platform/chromium-win-xp/fast/text/international/khmer-selection-expected.txt: Removed.
        * platform/chromium-win/fast/text/international/khmer-selection-expected.checksum:
        * platform/chromium-win/fast/text/international/khmer-selection-expected.png:
        * platform/chromium-win/fast/text/international/khmer-selection-expected.txt:
        * platform/chromium/test_expectations.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73562 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Tony Chang  <tony@chromium.org>

        Reviewed by Eric Seidel.

        make starting the websocket server more reliable on windows
        https://bugs.webkit.org/show_bug.cgi?id=50712

        * Scripts/webkitpy/common/system/filesystem.py:
        (remove): Substitute method for os.remove to retry on error on Windows
        * Scripts/webkitpy/common/system/filesystem_unittest.py:
        * Scripts/webkitpy/layout_tests/port/http_server_base.py: Use FileSystem.remove

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Andy Estes  <aestes@apple.com>

        Reviewed by Darin Adler.

        Reflected unsigned attributes should be in the range [0, 2^31).
        https://bugs.webkit.org/show_bug.cgi?id=50472

        HTML5 says that unsigned reflected attributes should be in the range
        [0, 2^31). When a value isn't in this range, a default value (or 0)
        should be returned instead. Update the JS bindings code generator to
        ensure 0 is returned when a content attribute value falls outside of
        this range.

        Tests: bindings/scripts/test/TestObj.idl
               fast/html/marquee-element.html

        * bindings/scripts/CodeGeneratorJS.pm: Return the maximum of 0 and the
        content attribute as a 32-bit signed int when converting a native value
        to an unsigned JS value.
        * bindings/scripts/test/TestObj.idl: Add a reflected unsigned attribute
        to test code generation.
        * bindings/scripts/test/CPP/WebDOMTestObj.cpp: Update test results.
        * bindings/scripts/test/CPP/WebDOMTestObj.h: Ditto.
        * bindings/scripts/test/GObject/WebKitDOMTestObj.cpp: Ditto.
        * bindings/scripts/test/GObject/WebKitDOMTestObj.h: Ditto.
        * bindings/scripts/test/JS/JSTestObj.cpp: Ditto.
        * bindings/scripts/test/JS/JSTestObj.h: Ditto.
        * bindings/scripts/test/ObjC/DOMTestObj.h: Ditto.
        * bindings/scripts/test/ObjC/DOMTestObj.mm: Ditto.
        * bindings/scripts/test/V8/V8TestObj.cpp: Ditto.
2010-12-08  Andy Estes  <aestes@apple.com>

        Reviewed by Darin Adler.

        Reflected unsigned attributes should be in the range [0, 2^31).
        https://bugs.webkit.org/show_bug.cgi?id=50472

        * fast/html/marquee-element.html: Give hspace and vspace negative values
        and test what their corresponding IDL attributes reflect.
        * fast/html/marquee-element-expected.txt:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73564 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Move canShowMIMEType to Frame
https://bugs.webkit.org/show_bug.cgi?id=50723

Reviewed by Sam Weinig.

* UIProcess/API/C/WKFrame.cpp:
(WKFrameCanShowMIMEType):
* UIProcess/API/C/WKFrame.h:
* UIProcess/API/C/WKPage.cpp:
* UIProcess/API/C/WKPage.h:
* UIProcess/WebFrameProxy.cpp:
(WebKit::WebFrameProxy::canShowMIMEType):
* UIProcess/WebFrameProxy.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Yensign hack should work with Shift_JIS and ISO-2022-JP encodings.
https://bugs.webkit.org/show_bug.cgi?id=49714

Reviewed by Alexey Proskuryakov.

WebCore:

IE chooses a font which shows a yensign for 0x5c code point for a page
encoded in x-mac-japanese, ISO-2022-JP, EUC-JP, Shift_JIS, Shift_JIS_X0213-2000,
x-sjis, and Windows-31J.
We have emulated this behavior by replacing 0x5c with 0xa5 for EUC-JP and
Shift_JIS_X0213-2000. This change adds other encodings above.

Also, we move the HashSet initialization for isJapanese() and
backslashAsCurrencySymbol() to TextEncodingRegistry.cpp because of
ease of making them multi-thread safe.

* platform/text/TextEncoding.cpp:
(WebCore::TextEncoding::isJapanese): Just calls isJapaneseEncoding().
(WebCore::TextEncoding::backslashAsCurrencySymbol): Uses shouldShowBackslashAsCurrencySymbolIn().
* platform/text/TextEncodingRegistry.cpp:
(WebCore::addEncodingName): Moved from TextEncoding.cpp, and stop using atomicCanonicalTextEncodingName().
(WebCore::buildQuirksSets): Added. Initializes HashSets for isJapaneseEncoding() and shouldShowBackslashAsCurrencySymbolIn().
(WebCore::isJapaneseEncoding):
(WebCore::shouldShowBackslashAsCurrencySymbolIn):
(WebCore::extendTextCodecMaps): Add a call to buildQuirksSets().
* platform/text/TextEncodingRegistry.h:

LayoutTests:

Use Shift_JIS instead of Shift_JIS_X0213-2000 because Shift_JIS_X0213-2000
encoding is available only on Mac.
Add a test for ISO-2022-JP.

* editing/selection/find-yensign-and-backslash-expected.txt:
* editing/selection/find-yensign-and-backslash.html:
* platform/chromium/test_expectations.txt:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73566 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebMenuTarget implemented in both WebKit and WebKit2
https://bugs.webkit.org/show_bug.cgi?id=50665
<rdar://problem/8742640>
        
Reviewed by Brady Eidson.

Rename WebMenuTarget to WKMenuTarget to prevent this warning and stay consistent with
other WebKit2 namings.

* UIProcess/mac/WebContextMenuProxyMac.mm:
(+[WKMenuTarget sharedMenuTarget]):
(WebKit::nsMenuItemVector):
(WebKit::WebContextMenuProxyMac::showContextMenu):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73567 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2010-12-08  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Add web audio files to mac port Xcode projects
        https://bugs.webkit.org/show_bug.cgi?id=50721

        * JavaScriptCore.xcodeproj/project.pbxproj:
2010-12-08  Chris Rogers  <crogers@google.com>

        Reviewed by Kenneth Russell.

        Add web audio files to mac port Xcode projects
        https://bugs.webkit.org/show_bug.cgi?id=50721

        No new tests since audio API is not yet implemented.

        * WebCore.xcodeproj/project.pbxproj:
        * bindings/js/JSDOMWindowCustom.cpp:
        (WebCore::JSDOMWindow::webkitAudioContext):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73568 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebFrameProxy::canShowMIMEType should return true for PDF MIME types in the main frame
https://bugs.webkit.org/show_bug.cgi?id=50724

Reviewed by Darin Adler.

* UIProcess/WebContext.cpp:
(WebKit::WebContext::pdfAndPostScriptMIMETypes):
* UIProcess/WebContext.h:
* UIProcess/WebFrameProxy.cpp:
(WebKit::WebFrameProxy::canShowMIMEType):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73569 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Migrated OS-specific allocation code from PageReservation and PageAllocation to OSAllocator
https://bugs.webkit.org/show_bug.cgi?id=50653

Reviewed by Sam Weinig.

* JavaScriptCore.exp: Updated for new function signature.

* interpreter/RegisterFile.h:
(JSC::RegisterFile::RegisterFile):
(JSC::RegisterFile::grow):
* jit/ExecutableAllocatorFixedVMPool.cpp:
(JSC::FixedVMPoolAllocator::reuse):
(JSC::FixedVMPoolAllocator::FixedVMPoolAllocator): Removed checkAllocatedOkay.
OSAllocator is now the central location for verifying that allocation succeeds.
This allowed me to remove some complicating cross-platform cruft.

* runtime/AlignedMemoryAllocator.h:
(JSC::::allocate): Updated for code motion.

* wtf/OSAllocator.h: Added Usage, writable, and executable parameters, to
support VM features required by clients of PageAllocation and PageReservation.

* wtf/OSAllocatorPosix.cpp:
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit): Moved PageAllocation support for randomizing
executable memory here.

* wtf/OSAllocatorSymbian.cpp:
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit): Updated for new function signatures.

* wtf/OSAllocatorWin.cpp:
(WTF::protection):
(WTF::OSAllocator::reserve):
(WTF::OSAllocator::reserveAndCommit):
(WTF::OSAllocator::commit):
(WTF::OSAllocator::release): Updated for new function signatures. Moved
some protection-related and WINCE-related code from PageAllocation here.

* wtf/PageAllocation.cpp: Nixed cross-platform lastError abstraction, since
it was only used by checkAllocatedOkay, which is now gone.

* wtf/PageAllocation.h:
(WTF::PageAllocation::allocate):
(WTF::PageAllocation::allocateAligned):
(WTF::PageAllocation::deallocate):
(WTF::PageAllocation::isPowerOfTwo):
(WTF::PageAllocation::systemAllocateAligned): Removed system* functions,
and replaced calls to them with calls to OSAllocator.

* wtf/PageReservation.h:
(WTF::PageReservation::commit):
(WTF::PageReservation::decommit):
(WTF::PageReservation::reserve):
(WTF::PageReservation::deallocate):
(WTF::PageReservation::PageReservation): Ditto. Added m_writable and
m_executable because these flags are now required when committing memory.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73570 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Try to fix GTK Linux build.

* jit/ExecutableAllocator.cpp:
(JSC::ExecutablePool::systemAlloc):
* runtime/AlignedMemoryAllocator.h:
(JSC::::AlignedMemoryAllocator): Updated for Usage enum moving to OSAllocator.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73571 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore: Fix for https://bugs.webkit.org/show_bug.cgi?id=50725
<rdar://problem/8694972> REGRESSION (r72052): "Search" placeholder in MobileMe mail is positioned too high

Reviewed by Darin Adler.

Test: fast/forms/placeholder-position.html

Since we center the inner text element for single line text controls, 
we should ask the subclass to give us the y offset instead of trying to calculate it in the RenderTextControl class.

* rendering/RenderTextControl.cpp: (WebCore::RenderTextControl::paintPlaceholder):
* rendering/RenderTextControl.h:
* rendering/RenderTextControlMultiLine.cpp: (WebCore::RenderTextControlMultiLine::textBlockInsetTop):
* rendering/RenderTextControlMultiLine.h:
* rendering/RenderTextControlSingleLine.cpp: (WebCore::RenderTextControlSingleLine::textBlockInsetTop):
* rendering/RenderTextControlSingleLine.h:

LayoutTests: Test for https://bugs.webkit.org/show_bug.cgi?id=50725
<rdar://problem/8694972> REGRESSION (r72052): "Search" placeholder in MobileMe mail is positioned too high

Reviewed by Darin Adler.

* fast/forms/placeholder-position.html: Added.
* platform/mac/fast/forms/placeholder-position-expected.checksum: Added.
* platform/mac/fast/forms/placeholder-position-expected.png: Added.
* platform/mac/fast/forms/placeholder-position-expected.txt: Added.



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