1. 08 Dec, 2010 40 commits
    • ggaren@apple.com's avatar
      Try to fix crash-on-launch seen on Windows builder. · 6cca6347
      ggaren@apple.com authored
      Reviewed by Sam Weinig.
      
      * wtf/OSAllocatorWin.cpp:
      (WTF::OSAllocator::release): Disabled an ASSERT, because it checks for
      a bug that hasn't been fixed yet.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73592 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6cca6347
    • weinig@apple.com's avatar
      Fix typo: Diplaying -> Displaying · ea11ee66
      weinig@apple.com authored
      Reviewed by Geoffrey "Error" Garen.
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameIsDisplayingStandaloneImageDocument):
      (WKFrameIsDisplayingMarkupDocument):
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::canProvideSource):
      (WebKit::WebFrameProxy::isDisplayingStandaloneImageDocument):
      (WebKit::WebFrameProxy::isDisplayingMarkupDocument):
      * UIProcess/WebFrameProxy.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73591 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ea11ee66
    • wsiegrist@apple.com's avatar
      2010-12-08 William Siegrist <wsiegrist@apple.com> · 570769ae
      wsiegrist@apple.com authored
              Reviewed by Eric Seidel.
      
              Migrate buildbot.py from xmlrpc to json.
              https://bugs.webkit.org/show_bug.cgi?id=50647
      
              * Scripts/webkitpy/common/net/buildbot.py:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73590 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      570769ae
    • arv@chromium.org's avatar
      2010-12-08 Erik Arvidsson <arv@chromium.org> · f8bc3579
      arv@chromium.org authored
              Reviewed by Darin Adler.
      
              Replace getAttribute().isNull() with fastHasAttribute()
              https://bugs.webkit.org/show_bug.cgi?id=50719
      
              Covered by existing tests.
      
              * dom/SelectElement.cpp:
              (WebCore::SelectElement::reset):
              * html/HTMLAppletElement.cpp:
              (WebCore::HTMLAppletElement::rendererIsNeeded):
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::itemAfter):
              * html/HTMLFormControlElement.cpp:
              (WebCore::HTMLFormControlElement::formNoValidate):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::noValidate):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultChecked):
              (WebCore::HTMLInputElement::multiple):
              (WebCore::HTMLInputElement::webkitdirectory):
              * html/HTMLOptionElement.cpp:
              (WebCore::HTMLOptionElement::defaultSelected):
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::asyncAttributeValue):
              (WebCore::HTMLScriptElement::deferAttributeValue):
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::allowsMultipleFiles):
              (WebCore::RenderFileUploadControl::allowsDirectoryUpload):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73589 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8bc3579
    • rniwa@webkit.org's avatar
      2010-12-08 Ryosuke Niwa <rniwa@webkit.org> · 0e991f12
      rniwa@webkit.org authored
              Unreviewed; Yet another Chromium rebaselines for r73548.
      
              * platform/chromium-mac-leopard/editing/selection/caret-rtl-2-expected.checksum: Removed.
              * platform/chromium-mac-leopard/editing/selection/caret-rtl-2-expected.png: Removed.
              * platform/chromium-mac/fast/text/international/khmer-selection-expected.checksum: Added.
              * platform/chromium-mac/fast/text/international/khmer-selection-expected.png: Added.
              * platform/chromium/test_expectations.txt:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73588 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0e991f12
    • commit-queue@webkit.org's avatar
      2010-12-08 Nicolas Dufresne <nicolas.dufresne@collabora.co.uk> · 435f1a32
      commit-queue@webkit.org authored
              Reviewed by Martin Robinson.
      
              Full page size flash plugins do not show in all situations
              https://bugs.webkit.org/show_bug.cgi?id=47742
      
              This patch moves the plugin widget size allocation after the
              NPP_SetWindow is called with the effect that the resize of Flash
              content no longer result in grey flash. This seems logical since the
              widget tree cannot be fully constructed before the plugin receives
              the new container window.
      
              Test: manual-tests/plugins/gtk-windowed-grey-glitch.html
      
              * plugins/gtk/PluginViewGtk.cpp:
              (WebCore::PluginView::setNPWindowIfNeeded):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73587 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      435f1a32
    • hyatt@apple.com's avatar
      Fix regression from xji's wheel scroll patch. The vertical case is looking at the horizontal · 2a3ea472
      hyatt@apple.com authored
      maximum position and not the vertical position.
      
      Reviewed by Simon Fraser.
      
      * platform/ScrollView.cpp:
      (WebCore::ScrollView::wheelEvent):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73586 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a3ea472
    • aestes@apple.com's avatar
      2010-12-08 Andy Estes <aestes@apple.com> · 5c20f2f3
      aestes@apple.com authored
              Reviewed by Darin Adler.
      
              Enable pre-HTML5 parser quirks for Apple Mail.app
              https://bugs.webkit.org/show_bug.cgi?id=50727
      
              * WebView/WebView.mm:
              (-[WebView _needsPreHTML5ParserQuirks]): Return true if the embedding
              application is Mail.app.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73585 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5c20f2f3
    • commit-queue@webkit.org's avatar
      2010-12-08 Qi Zhang <qi.2.zhang@nokia.com> · b54d90b2
      commit-queue@webkit.org authored
              Reviewed by Kenneth Rohde Christiansen.
      
              [Qt] Support OrientationChange event
              https://bugs.webkit.org/show_bug.cgi?id=50685
      
              Get OrientationChange event from qtmobility then send to webkit.
      
              * Api/qwebframe.cpp:
              (QWebFrame::orientationChanged):
              (QWebFrame::QWebFrame):
              * Api/qwebframe.h:
              * Api/qwebframe_p.h:
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73584 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b54d90b2
    • weinig@apple.com's avatar
      Need a way to get a WKBundleFrameRef from JS HTMLIFrameElement · ff21562d
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=50726
      
      Reviewed by Darin Adler.
      
      * WebCore.xcodeproj/project.pbxproj: Expose HTMLIFrameElement.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73583 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ff21562d
    • weinig@apple.com's avatar
      Add WebKit2 Preference for TabsToLinks behavior. · 2cabd2a2
      weinig@apple.com authored
      <rdar://problem/8664263>
      
      Reviewed by Gavin Barraclough.
      
      * Shared/WebPreferencesStore.h:
      * UIProcess/API/C/WKPreferences.cpp:
      (WKPreferencesSetTabsToLinks):
      (WKPreferencesGetTabsToLinks):
      * UIProcess/API/C/WKPreferences.h:
      * WebProcess/WebCoreSupport/WebChromeClient.cpp:
      (WebKit::WebChromeClient::tabsToLinks):
      * WebProcess/WebPage/WebPage.cpp:
      (WebKit::WebPage::WebPage):
      (WebKit::WebPage::updatePreferences):
      * WebProcess/WebPage/WebPage.h:
      (WebKit::WebPage::tabsToLinks):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2cabd2a2
    • benjamin.poulain@nokia.com's avatar
      2010-12-08 Benjamin Poulain <benjamin.poulain@nokia.com> · 56b44d53
      benjamin.poulain@nokia.com authored
              Reviewed by Andreas Kling.
      
              WebTouchEvent::isTouchEventType() does not take into account the type TouchCancel
              https://bugs.webkit.org/show_bug.cgi?id=50680
      
              Add the missing type check to WebTouchEvent::isTouchEventType().
      
              * Shared/WebTouchEvent.cpp:
              (WebKit::WebTouchEvent::isTouchEventType):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73581 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      56b44d53
    • ggaren@apple.com's avatar
      Try to fix Windows build. · f28d174d
      ggaren@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Updated .def file.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73580 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f28d174d
    • weinig@apple.com's avatar
      Need a way to get a WKBundleFrameRef from JS HTMLIFrameElement · 7b9d6b96
      weinig@apple.com authored
      https://bugs.webkit.org/show_bug.cgi?id=50726
      
      Reviewed by Darin Adler.
      
      Adds WKBundleNodeHandleCopyDocumentFrame, WKBundleNodeHandleCopyHTMLFrameElementContentFrame
      and WKBundleNodeHandleCopyHTMLIFrameElementContentFrame, to handle the document, <frame>
      and <iframe> cases.
      
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandle.cpp:
      (WKBundleNodeHandleCopyDocumentFrame):
      (WKBundleNodeHandleCopyHTMLFrameElementContentFrame):
      (WKBundleNodeHandleCopyHTMLIFrameElementContentFrame):
      * WebProcess/InjectedBundle/API/c/WKBundleNodeHandlePrivate.h:
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.cpp:
      (WebKit::InjectedBundleNodeHandle::copyDocumentFrame):
      (WebKit::InjectedBundleNodeHandle::copyHTMLFrameElementContentFrame):
      (WebKit::InjectedBundleNodeHandle::copyHTMLIFrameElementContentFrame):
      * WebProcess/InjectedBundle/DOM/InjectedBundleNodeHandle.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7b9d6b96
    • mdelaney@apple.com's avatar
      2010-12-08 Matthew Delaney <mdelaney@apple.com> · 2d30b0ca
      mdelaney@apple.com authored
              Reviewed by Simon Fraser.
      
              Add getter and setters for acceleratesRendering flag on layers
              https://bugs.webkit.org/show_bug.cgi?id=50717
      
              * platform/graphics/GraphicsLayer.cpp:
              * platform/graphics/ca/GraphicsLayerCA.cpp:
              * platform/graphics/ca/mac/PlatformCALayerMac.mm:
              Plumbed through acceleratedRendering flag.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73578 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2d30b0ca
    • ggaren@apple.com's avatar
      Try to fix Windows build. · cd899b83
      ggaren@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Updated .def
      file to remove a symbol -- the next build failure will say which symbol
      to add back.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73577 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd899b83
    • tkent@chromium.org's avatar
      2010-12-08 Kent Tamura <tkent@chromium.org> · 71949aa2
      tkent@chromium.org authored
              Unreviewed, test expectation update.
      
              Update expectations for r73566.
      
              * platform/gtk/editing/selection/find-yensign-and-backslash-expected.txt:
              * platform/qt/editing/selection/find-yensign-and-backslash-expected.txt: Removed.
              * platform/win/editing/selection/find-yensign-and-backslash-expected.txt: Removed.
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71949aa2
    • ggaren@apple.com's avatar
      Try to fix Windows build. · f620a193
      ggaren@apple.com authored
      * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.def: Updated .def file.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73575 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f620a193
    • weinig@apple.com's avatar
      Need a WebKit2 way to test whether a frame is displaying a standalone image · 1e3580ed
      weinig@apple.com authored
      <rdar://problem/8443059>
      WebKit2: Need a way to test whether a page or frame is showing HTML content
      <rdar://problem/8642563>
      
      Reviewed by Gavin Barraclough.
      
      Add WKFrameIsDiplayingStandaloneImageDocument and WKFrameIsDiplayingMarkupDocument.
      
      * UIProcess/API/C/WKFrame.cpp:
      (WKFrameIsDiplayingStandaloneImageDocument):
      (WKFrameIsDiplayingMarkupDocument):
      * UIProcess/API/C/WKFrame.h:
      * UIProcess/WebFrameProxy.cpp:
      (WebKit::WebFrameProxy::canProvideSource): This now just calls isDiplayingMarkupDocument.
      (WebKit::WebFrameProxy::isDiplayingStandaloneImageDocument):
      (WebKit::WebFrameProxy::isDiplayingMarkupDocument):
      * UIProcess/WebFrameProxy.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73574 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1e3580ed
    • zmo@google.com's avatar
      2010-12-07 Zhenyao Mo <zmo@google.com> · 32c2739e
      zmo@google.com authored
              Reviewed by Kenneth Russell.
      
              WebGLUniformLocation objects must be invalidated during linkProgram
              https://bugs.webkit.org/show_bug.cgi?id=37118
      
              * html/canvas/WebGLProgram.cpp:
              (WebCore::WebGLProgram::WebGLProgram): Initialize link count to 0.
              (WebCore::WebGLProgram::cacheActiveAttribLocations): Don't check link status through gl call; use the cached status instead.
              * html/canvas/WebGLProgram.h:
              (WebCore::WebGLProgram::getLinkCount): Get link count.
              (WebCore::WebGLProgram::increaseLinkCount): Increase link count by 1.
              * html/canvas/WebGLRenderingContext.cpp:
              (WebCore::WebGLRenderingContext::getUniform): Fix a bug where wrong error is generated.
              (WebCore::WebGLRenderingContext::linkProgram): call increaseLinkCount after linkProgram.
              * html/canvas/WebGLUniformLocation.cpp:
              (WebCore::WebGLUniformLocation::WebGLUniformLocation): Set program's link count upon creation.
              (WebCore::WebGLUniformLocation::program): Return null if count doesn't match the program's.
              (WebCore::WebGLUniformLocation::location): Return -1 if count doesn't match the program's.
              * html/canvas/WebGLUniformLocation.h:
      2010-12-07  Zhenyao Mo  <zmo@google.com>
      
              Reviewed by Kenneth Russell.
      
              WebGLUniformLocation objects must be invalidated during linkProgram
              https://bugs.webkit.org/show_bug.cgi?id=37118
      
              * fast/canvas/webgl/uniform-location-expected.txt:
              * fast/canvas/webgl/uniform-location.html: Check that after linkProgram, all previous uniform locations become invalid.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73573 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32c2739e
    • adele@apple.com's avatar
      WebCore: Fix for https://bugs.webkit.org/show_bug.cgi?id=50725 · 39f77bae
      adele@apple.com authored
      <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
      39f77bae
    • ggaren@apple.com's avatar
      Try to fix GTK Linux build. · b8c036d2
      ggaren@apple.com authored
      * 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
      b8c036d2
    • ggaren@apple.com's avatar
      Migrated OS-specific allocation code from PageReservation and PageAllocation to OSAllocator · 05fad660
      ggaren@apple.com authored
      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
      05fad660
    • andersca@apple.com's avatar
      WebFrameProxy::canShowMIMEType should return true for PDF MIME types in the main frame · 2e689a96
      andersca@apple.com authored
      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
      2e689a96
    • crogers@google.com's avatar
      2010-12-08 Chris Rogers <crogers@google.com> · bcb38a7f
      crogers@google.com authored
              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
      bcb38a7f
    • bweinstein@apple.com's avatar
      WebMenuTarget implemented in both WebKit and WebKit2 · 1463fafa
      bweinstein@apple.com authored
      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
      1463fafa
    • tkent@chromium.org's avatar
      Yensign hack should work with Shift_JIS and ISO-2022-JP encodings. · 68ad9ecb
      tkent@chromium.org authored
      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
      68ad9ecb
    • andersca@apple.com's avatar
      Move canShowMIMEType to Frame · 61fe784b
      andersca@apple.com authored
      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
      61fe784b
    • aestes@apple.com's avatar
      2010-12-08 Andy Estes <aestes@apple.com> · f5af0ce9
      aestes@apple.com authored
              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
      f5af0ce9
    • tony@chromium.org's avatar
      2010-12-08 Tony Chang <tony@chromium.org> · 1053edd0
      tony@chromium.org authored
              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
      1053edd0
    • rniwa@webkit.org's avatar
      2010-12-08 Ryosuke Niwa <rniwa@webkit.org> · ec87a918
      rniwa@webkit.org authored
              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
      ec87a918
    • commit-queue@webkit.org's avatar
      2010-12-08 Carlos Garcia Campos <cgarcia@igalia.com> · a9201efc
      commit-queue@webkit.org authored
              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
      a9201efc
    • bweinstein@apple.com's avatar
      REGRESSION: r73429-r73490: Some Contextual menu items non-functional, such as Open Link in New Tab · 314d4fe8
      bweinstein@apple.com authored
      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
      314d4fe8
    • inferno@chromium.org's avatar
      2010-12-08 Abhishek Arya <inferno@chromium.org> · b0f943fd
      inferno@chromium.org authored
              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
      b0f943fd
    • rniwa@webkit.org's avatar
      2010-12-08 Ryosuke Niwa <rniwa@webkit.org> · 4f152427
      rniwa@webkit.org authored
              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
      4f152427
    • mrobinson@webkit.org's avatar
      2010-12-08 Martin Robinson <mrobinson@igalia.com> · d29c1fb7
      mrobinson@webkit.org authored
              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
      d29c1fb7
    • rniwa@webkit.org's avatar
      2010-12-08 Ryosuke Niwa <rniwa@webkit.org> · 083475d0
      rniwa@webkit.org authored
              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
      083475d0
    • pkasting@chromium.org's avatar
      Unreviewed Chromium test expectations update. · dbeba7f1
      pkasting@chromium.org authored
      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
      dbeba7f1
    • rniwa@webkit.org's avatar
      Fixed the change log entry for r73548. · def5b10d
      rniwa@webkit.org authored
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      def5b10d
    • andersca@apple.com's avatar
      Remove an unused variable. · 7062a340
      andersca@apple.com authored
      * WebView/WebDynamicScrollBarsView.mm:
      (-[WebDynamicScrollBarsView setScrollOrigin:updatePosition:]):
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73552 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7062a340