Reviewed by Nikolas Zimmermann and Mark Rowe.

        Add support for build-webkit --chromium
        https://bugs.webkit.org/show_bug.cgi?id=22515
        More cleanups changing isCygwin calls to isAppleWinWebKit and deploying isAppleWebKit where necessary.

        * Scripts/build-dumprendertree:
        * Scripts/build-jsc:
        * Scripts/build-webkit:
        * Scripts/gdb-safari:
        * Scripts/run-webkit-tests:
        * Scripts/webkitdirs.pm:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38800 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Added a folder for hosted plug-ins

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38801 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.

        Add plug-in host .defs.

        * Plugins/Hosted/WebKitPluginAgent.defs: Added.
        * Plugins/Hosted/WebKitPluginAgentReply.defs: Added.
        * Plugins/Hosted/WebKitPluginClient.defs: Added.
        * Plugins/Hosted/WebKitPluginHost.defs: Added.
        * Plugins/Hosted/WebKitPluginHostTypes.defs: Added.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38802 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein.
        
        * Plugins/Hosted/WebKitPluginHost.defs:
        Add copyright headers.
        
        * Plugins/Hosted/WebKitPluginHostTypes.h: Added.
        Forgot to add this.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe.

        * Plugins/Hosted/WebKitPluginHostTypes.h:
        Add copyright headers and fix the spacing around the *'s.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38804 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-10-31  Tony Chang  <tony@chromium.org>

        Reviewed by Oliver Hunt.

        Add a new platform specific method cleanupAfterSystemDrag
        that platforms can ue to clean up drag state after a
        system drag.  Use this method on PLAFORM(MAC).
        https://bugs.webkit.org/show_bug.cgi?id=21956

        * ChangeLog:
        * page/DragController.cpp:
        (WebCore::DragController::doSystemDrag):
        * page/DragController.h:
        * page/gtk/DragControllerGtk.cpp:
        (WebCore::DragController::cleanupAfterSystemDrag):
        * page/mac/DragControllerMac.mm:
        (WebCore::DragController::cleanupAfterSystemDrag):
        * page/qt/DragControllerQt.cpp:
        (WebCore::DragController::cleanupAfterSystemDrag):
        * page/win/DragControllerWin.cpp:
        (WebCore::DragController::cleanupAfterSystemDrag):
        * page/wx/DragControllerWx.cpp:
      (WebCore::DragController::cleanupAfterSystemDrag):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38805 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-10  Glenn Wilson  <gwilson@chromium.org>

        Reviewed by Dan Bernstein.

        Fixed bug http://bugs.webkit.org/show_bug.cgi?id=21953

        This fixes the crash when the small-caps font variant is used
        on a lower-case glyph that does not have a corresponding
        upper-case glyph defined in the set of available fonts.

        This changes Font.cpp to check if the font being used exists before trying to apply the small-caps variant.
        
        Test: fast/css/small-caps-crash.html

        * platform/graphics/Font.cpp:
        (WebCore::Font::glyphDataForCharacter):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38806 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Rubber stamped by Mark Rowe.
Fix nine failing tests on the build bot. Update mac-tiger results.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38807 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Dan Bernstein, Mark Rowe and Kevin Decker.

        Add the plug-in host manager singleton.
        
        * Plugins/Hosted/NetscapePluginHostManager.h: Added.
        * Plugins/Hosted/NetscapePluginHostManager.mm: Added.
        
        (WebKit::NetscapePluginHostManager::hostForPackage):
        If there's an existing host proxy available, just return it. Otherwise spawn a new plug-in host and
        create a new plug-in host proxy from the new plug-in host port.
        
        (WebKit::NetscapePluginHostManager::spawnPluginHost):
        Pass the plug-in host path and the preferred CPU type to the plug-in agent. When the plug-in host has
        finished launching, pass it the path to the plug-in bundle.
        
        (WebKit::NetscapePluginHostManager::initializeVendorPort):
        Check in with the plug-in agent and get the new plug-in vendor port back.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38808 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe.

        Add the plug-in host proxy and plug-in instance proxy objects.

        These are just simple objects that forward their calls to the plug-in host.
        
        * Plugins/Hosted/NetscapePluginHostProxy.h: Added.
        (WebKit::NetscapePluginHostProxy::create):
        (WebKit::NetscapePluginHostProxy::port):
        * Plugins/Hosted/NetscapePluginHostProxy.mm: Added.
        (WebKit::NetscapePluginHostProxy::NetscapePluginHostProxy):
        (WebKit::NetscapePluginHostProxy::instantiatePlugin):
        * Plugins/Hosted/NetscapePluginInstanceProxy.h: Added.
        (WebKit::NetscapePluginInstanceProxy::create):
        (WebKit::NetscapePluginInstanceProxy::renderContextID):
        (WebKit::NetscapePluginInstanceProxy::useSoftwareRenderer):
        * Plugins/Hosted/NetscapePluginInstanceProxy.mm: Added.
        (WebKit::NetscapePluginInstanceProxy::NetscapePluginInstanceProxy):
        (WebKit::NetscapePluginInstanceProxy::resize):
        (WebKit::NetscapePluginInstanceProxy::destroy):
        (WebKit::NetscapePluginInstanceProxy::focusChanged):
        (WebKit::NetscapePluginInstanceProxy::windowFocusChanged):
        (WebKit::NetscapePluginInstanceProxy::windowFrameChanged):
        (WebKit::NetscapePluginInstanceProxy::startTimers):
        (WebKit::NetscapePluginInstanceProxy::mouseEvent):
        (WebKit::NetscapePluginInstanceProxy::stopTimers):



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38809 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe.

        Add plug-in host related files to the Xcode project.
        
        * WebKit.xcodeproj/project.pbxproj:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38810 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Reviewed by Mark Rowe.

        Move WebHostedNetscapePluginView.{h|mm} to Plugins/Hosted.
        
        (-[WebHostedNetscapePluginView handleMouseMoved:]):
        (-[WebHostedNetscapePluginView setAttributeKeys:andValues:]):
        Fix a leak.
        
        (-[WebHostedNetscapePluginView createPlugin]):
        Instantiate the plug-in, store the plug-in proxy in the _proxy ivar.
        
        (-[WebHostedNetscapePluginView loadStream]):
        (-[WebHostedNetscapePluginView shouldStop]):
        Add stubs for these.
        
        (-[WebHostedNetscapePluginView updateAndSetWindow]):
        (-[WebHostedNetscapePluginView windowFocusChanged:]):
        (-[WebHostedNetscapePluginView destroyPlugin]):
        (-[WebHostedNetscapePluginView startTimers]):
        (-[WebHostedNetscapePluginView stopTimers]):
        (-[WebHostedNetscapePluginView focusChanged]):
        (-[WebHostedNetscapePluginView windowFrameDidChange:]):
        (-[WebHostedNetscapePluginView mouseDown:]):
        (-[WebHostedNetscapePluginView mouseUp:]):
        (-[WebHostedNetscapePluginView mouseDragged:]):
        (-[WebHostedNetscapePluginView mouseEntered:]):
        (-[WebHostedNetscapePluginView mouseExited:]):
        Call the proxy.
        
        (-[WebHostedNetscapePluginView addWindowObservers]):
        (-[WebHostedNetscapePluginView removeWindowObservers]):
        Add/remove observers for when the window frame changes.
        
        * Plugins/WebHostedNetscapePluginView.h: Removed.
        * Plugins/WebHostedNetscapePluginView.mm: Removed.



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38811 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-26  Anders Carlsson  <andersca@apple.com>

        Fix build.
        
        * Configurations/Base.xcconfig:



git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38812 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Build fix.  Fix up the references to files under WebKit/mac/Plugins/Hosted.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38813 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fix the Tiger build.

mig.h does not always define __MigTypeCheck on Tiger, which leads to problems when the generated
code is built with -Wundef.

* Plugins/Hosted/WebKitPluginHostTypes.h:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38814 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Not reviewed. Forgot to include this layout test update in the last commit.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Reviewed by George Staikos.

Fixes: https://bugs.webkit.org/show_bug.cgi?id=22522

Catch WML errors (invalid variable name/reference, multiple access elements, etc)
while parsing the document, and stop parsing immediately and wrap the document
fragment in a XHTML error document, just like it's done from XML parsing errors.

Until now all card elements were hidden by default (no renderer created), and
WMLDocument::finishedParsing() took care of showing the right card (either the first,
or any named card in the document, specified by document URL reference). Change this
behaviour to support displaying partially parsed WML document fragments: Mark the first
WMLCardElement inserted into the document as visible. If the document parsing finishes
without problems, WMLDocument::finishedParsing() will be called, which takes care of
showing the desired card (common case: first card in the document, which is already
visible, so nothing actually has to be done). If an error occours, the document is
correctly rendered until the error happened - wrapped in a XHTML document.

Fixes: fast/wml/err-event-binding-conflict.wml
       fast/wml/err-invalid-variable-name.wml
       fast/wml/err-multi-access.wml
       fast/wml/err-unallowed-task-in-anchor.wml


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38816 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-27  Alp Toker  <alp@nuanti.com>

        Remove C++ comment from JavaScriptCore API headers (introduced r35449).
        Fixes build for ANSI C applications using the public API.

        * API/WebKitAvailability.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38817 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Fixed ChangeLog dates.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@38818 268f45cc-cd09-0410-ab3c-d52691b4dbfc
2008-11-27  Alp Toker  <alp@nuanti.com>

        Change recently introduced C++ comments in Platform.h to C comments to
        fix the minidom build with traditional C.

        Build GtkLauncher and minidom with the '-ansi' compiler flag to detect
        API header breakage at build time.


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