JavaScriptCore:
authordarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 29 Jul 2006 15:44:20 +0000 (15:44 +0000)
committerdarin <darin@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 29 Jul 2006 15:44:20 +0000 (15:44 +0000)
        Reviewed by Darin.

        - fixes for Linux build

        * JavaScriptCoreSources.bkl: Added new files to build, kjs/PropertyNameArray.cpp
        and kjs/testkjs.cpp, and removed old files.

WebCore:

        Reviewed and tweaked by Darin.

        - fixes for Linux build
          (still might not compile, since Darin tweaked but was unable to test).

        * WebCoreSources.bkl: Added some new sources, removed some obsolete ones.
        * Projects/gdk/webcore-gdk.bkl: Added RenderPopupMenuGdk.cpp

        * html/HTMLPlugInElement.h: Removed incorrect syntax with class name
        before ::.

        * platform/gdk/FrameGdk.h:
        * platform/gdk/FrameGdk.cpp: Updated parameters of constructor. Moved a couple stubs
        out of this file.
        * platform/gdk/RenderPopupMenuGdk.h: Added.
        * platform/gdk/RenderPopupMenuGdk.cpp: Added. Just a file full of empty stubs.
        * platform/gdk/RenderThemeGdk.h:
        * platform/gdk/RenderThemeGdk.cpp: (WebCore::RenderThemeGdk::createPopupMenu): Added.

        * platform/gdk/TemporaryLinkStubs.cpp: Add some new stubs.

WebKitTools:

        Reviewed by Darin.

        - fixes for Linux build

        * GdkLauncher/mk: Added call to bakefile_gen before calling make.
        * GdkLauncher/gdklauncher.bkl: Tweak comment.

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

16 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/JavaScriptCoreSources.bkl
WebCore/ChangeLog
WebCore/Projects/gdk/webcore-gdk.bkl
WebCore/WebCoreSources.bkl
WebCore/html/HTMLPlugInElement.h
WebCore/platform/gdk/FrameGdk.cpp
WebCore/platform/gdk/FrameGdk.h
WebCore/platform/gdk/RenderPopupMenuGdk.cpp [new file with mode: 0644]
WebCore/platform/gdk/RenderPopupMenuGdk.h [new file with mode: 0644]
WebCore/platform/gdk/RenderThemeGdk.cpp
WebCore/platform/gdk/RenderThemeGdk.h
WebCore/platform/gdk/TemporaryLinkStubs.cpp
WebKitTools/ChangeLog
WebKitTools/GdkLauncher/gdklauncher.bkl
WebKitTools/GdkLauncher/mk

index 2c389b2..e98dad6 100644 (file)
@@ -1,3 +1,12 @@
+2006-07-29  Mike Emmel  <mike.emmel@gmail.com>
+
+        Reviewed by Darin.
+
+        - fixes for Linux build
+
+        * JavaScriptCoreSources.bkl: Added new files to build, kjs/PropertyNameArray.cpp
+        and kjs/testkjs.cpp, and removed old files.
+
 2006-07-24  Dan Waylonis  <waylonis@google.com>
 
         Reviewed and tweaked a bit by Darin.
index 20188cc..c368504 100644 (file)
                kjs/list.cpp
                kjs/lookup.cpp
                kjs/math_object.cpp
-               kjs/nodes.cpp
                kjs/nodes2string.cpp
+               kjs/nodes.cpp
                kjs/number_object.cpp
                kjs/object.cpp
                kjs/object_object.cpp
                kjs/operations.cpp
                kjs/Parser.cpp
                kjs/property_map.cpp
+               kjs/PropertyNameArray.cpp
                kjs/property_slot.cpp
-               kjs/reference.cpp
-               kjs/reference_list.cpp
                kjs/regexp.cpp
                kjs/regexp_object.cpp
                kjs/scope_chain.cpp
                kjs/string_object.cpp
+               kjs/testkjs.cpp
                kjs/ustring.cpp
                kjs/value.cpp
 
index 68126ee..cb3bd97 100644 (file)
@@ -1,3 +1,26 @@
+2006-07-29  Mike Emmel  <mike.emmel@gmail.com>
+
+        Reviewed and tweaked by Darin.
+
+        - fixes for Linux build
+          (still might not compile, since Darin tweaked but was unable to test).
+
+        * WebCoreSources.bkl: Added some new sources, removed some obsolete ones.
+        * Projects/gdk/webcore-gdk.bkl: Added RenderPopupMenuGdk.cpp
+
+        * html/HTMLPlugInElement.h: Removed incorrect syntax with class name
+        before ::.
+
+        * platform/gdk/FrameGdk.h:
+        * platform/gdk/FrameGdk.cpp: Updated parameters of constructor. Moved a couple stubs
+        out of this file.
+        * platform/gdk/RenderPopupMenuGdk.h: Added.
+        * platform/gdk/RenderPopupMenuGdk.cpp: Added. Just a file full of empty stubs.
+        * platform/gdk/RenderThemeGdk.h:
+        * platform/gdk/RenderThemeGdk.cpp: (WebCore::RenderThemeGdk::createPopupMenu): Added.
+
+        * platform/gdk/TemporaryLinkStubs.cpp: Add some new stubs.
+
 2006-07-29  Mark Rowe  <opendarwin.org@bdash.net.nz>
 
         Reviewed by Darin.
index 855a618..a794333 100644 (file)
@@ -1,5 +1,4 @@
 <?xml version="1.0" ?>
-<!-- $Id: gtkWebCore.bkl 199 2005-07-05 20:44:34Z vslavik $ -->
 <!-- generate GnuMakefile with
        bakefile -f gnu gtkwebcore.bkl
        consider forcing includes agian
@@ -78,6 +77,7 @@
           platform/gdk/PageGdk.cpp
           platform/gdk/TransferJobManager.cpp
           platform/gdk/RenderThemeGdk.cpp
+          platform/gdk/RenderPopupMenuGdk.cpp
           platform/gdk/ScreenGdk.cpp
           platform/gdk/ScrollViewGdk.cpp
           platform/gdk/SharedTimerLinux.cpp
index 9b4d880..6eef678 100644 (file)
@@ -1,6 +1,6 @@
 <?xml version="1.0" ?>
 <makefile>
-       <set append="1" var="WEBCORE_SOURCES_KWQ">
+     <set append="1" var="WEBCORE_SOURCES_KWQ">
                
        </set>
        <set append="1" var="WEBCORE_SOURCES_DERIVEDSOURCES">
@@ -65,6 +65,7 @@
                DerivedSources/WebCore/JSHTMLModElement.cpp
                DerivedSources/WebCore/JSHTMLOListElement.cpp
                DerivedSources/WebCore/JSHTMLOptGroupElement.cpp
+               DerivedSources/WebCore/JSHTMLOptionsCollection.cpp
                DerivedSources/WebCore/JSHTMLOptionElement.cpp
                DerivedSources/WebCore/JSHTMLParagraphElement.cpp
                DerivedSources/WebCore/JSHTMLParamElement.cpp
@@ -84,6 +85,7 @@
                DerivedSources/WebCore/JSProcessingInstruction.cpp
                DerivedSources/WebCore/JSRange.cpp
                DerivedSources/WebCore/JSText.cpp
+               DerivedSources/WebCore/JSOverflowEvent.cpp
                DerivedSources/WebCore/JSUIEvent.cpp
                DerivedSources/WebCore/JSWheelEvent.cpp
                DerivedSources/WebCore/JSXPathEvaluator.cpp
                loader/FormData.cpp
                loader/ImageDocument.cpp
                loader/loader.cpp
-               loader/PluginDocument.cpp
                loader/Request.cpp
                loader/TextDocument.cpp
                loader/PluginDocument.cpp
                platform/RegularExpression.cpp
                platform/SegmentedString.cpp
                platform/StreamingTextDecoder.cpp
+               platform/StreamingTextDecoderICU.cpp
                platform/String.cpp
                platform/StringImpl.cpp
                platform/TextEncoding.cpp
                rendering/AutoTableLayout.cpp
                rendering/bidi.cpp
                rendering/break_lines.cpp
-               rendering/DeprecatedRenderSelect.cpp
-               rendering/DeprecatedSlider.cpp
                rendering/EllipsisBox.cpp
                rendering/FixedTableLayout.cpp
                rendering/InlineBox.cpp
                rendering/RenderLineEdit.cpp
                rendering/RenderListItem.cpp
                rendering/RenderListMarker.cpp
+               rendering/RenderMenuList.cpp
                rendering/RenderObject.cpp
                rendering/RenderPart.cpp
                rendering/RenderPartObject.cpp
+               rendering/RenderPopupMenu.cpp
                rendering/RenderReplaced.cpp
                rendering/DeprecatedRenderSelect.cpp
                rendering/DeprecatedSlider.cpp
        <set append="1" var="WEBCORE_SOURCES_XML">
                
                xml/xmlhttprequest.cpp
+        xml/XSLImportRule.cpp
                xml/XSLStyleSheet.cpp
                xml/XSLTProcessor.cpp
 
                dom/NodeFilterCondition.cpp
                dom/NodeList.cpp
                dom/Notation.cpp
+          dom/OverflowEvent.cpp
                dom/Position.cpp
                dom/ProcessingInstruction.cpp
                dom/QualifiedName.cpp
                bindings/js/JSCanvasRenderingContext2DCustom.cpp
                bindings/js/JSDOMParser.cpp
                bindings/js/JSHTMLElementWrapperFactory.cpp
-               bindings/js/JSHTMLFormElementCustom.cpp
+          bindings/js/JSHTMLFormElementCustom.cpp
                bindings/js/JSHTMLInputElementBase.cpp
+          bindings/js/JSHTMLOptionsCollectionCustom.cpp
                bindings/js/JSHTMLOptionElementConstructor.cpp
                bindings/js/JSXMLHttpRequest.cpp
                bindings/js/JSXMLSerializer.cpp
index b1fe03f..42ee66e 100644 (file)
@@ -37,7 +37,7 @@ class HTMLPlugInElement : public HTMLElement
 {
 public:
     HTMLPlugInElement(const QualifiedName& tagName, Document*);
-    HTMLPlugInElement::~HTMLPlugInElement();
+    ~HTMLPlugInElement();
 
     virtual bool mapToEntry(const QualifiedName& attrName, MappedAttributeEntry& result) const;
     virtual void parseMappedAttribute(MappedAttribute*);
index 17feaf1..5879cfd 100644 (file)
@@ -53,8 +53,6 @@
 #include "KeyboardCodes.h"
 #include <gdk/gdk.h>
 
-DeprecatedStringList SSLKeyGenerator::supportedKeySizes(){return DeprecatedStringList();};
-DeprecatedString SSLKeyGenerator::signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url){return DeprecatedString();};
 
 // This function loads resources from WebKit
 // This does not belong here and I'm not sure where
@@ -71,7 +69,6 @@ Vector<char> loadResourceIntoArray(const char* resourceName)
 
 namespace WebCore {
 
-
 static void doScroll(const RenderObject* r, bool isHorizontal, int multiplier)
 {
     // FIXME: The scrolling done here should be done in the default handlers
@@ -123,8 +120,8 @@ FrameGdk::FrameGdk(GdkDrawable* gdkdrawable)
     view->ScrollView::setDrawable(gdkdrawable);
 }
 
-FrameGdk::FrameGdk(Page* page, RenderPart* renderPart, FrameGdkClient* client)
-    : Frame(page, renderPart)
+FrameGdk::FrameGdk(Page* page, Element* element)
+    : Frame(page,element)
 {
     d->m_extension = new BrowserExtensionGdk(this);
     Settings* settings = new Settings;
index 4f14dbb..ef435a2 100644 (file)
@@ -34,6 +34,8 @@
 
 namespace WebCore {
 
+class Element;
+
 class FrameGdkClient {
 public:
     virtual void openURL(const DeprecatedString&) = 0;
@@ -41,7 +43,7 @@ public:
 
 class FrameGdk : public Frame, TransferJobClient {
 public:
-    FrameGdk(Page*, RenderPart*, FrameGdkClient*);
+    FrameGdk(Page*, Element*);
     FrameGdk(GdkDrawable*);
     ~FrameGdk();
 
@@ -55,7 +57,6 @@ public:
 
     virtual ObjectContentType objectContentType(const KURL&, const String& mimeType);
     virtual Plugin* createPlugin(Element*, const KURL&, const Vector<String>&, const Vector<String>&, const String&);
-    virtual Frame* createFrame(const KURL&, const String& name, RenderPart*, const String& referrer);
 
     virtual void scheduleClose();
 
@@ -130,6 +131,7 @@ public:
 
     IntRect frameGeometry() const;
     void setFrameGeometry(const IntRect&);
+    virtual Frame* createFrame(const KURL&, const String& name, Element* ownerElement, const String& referrer);
 
 private:
     virtual bool passMouseDownEventToWidget(Widget*);
diff --git a/WebCore/platform/gdk/RenderPopupMenuGdk.cpp b/WebCore/platform/gdk/RenderPopupMenuGdk.cpp
new file mode 100644 (file)
index 0000000..5dc9bad
--- /dev/null
@@ -0,0 +1,62 @@
+/*
+ * This file is part of the popup menu implementation for <select> elements in WebCore.
+ *
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ */
+
+#include "config.h"
+#include "RenderPopupMenuGdk.h"
+
+namespace WebCore {
+
+RenderPopupMenuGdk::RenderPopupMenuGdk(Node* element)
+    : RenderPopupMenu(element)
+{
+}
+
+RenderPopupMenuGdk::~RenderPopupMenuGdk()
+{
+}
+
+void RenderPopupMenuGdk::clear()
+{
+}
+
+void RenderPopupMenuGdk::populate()
+{
+}
+
+void RenderPopupMenuGdk::showPopup(const IntRect&, FrameView*, int)
+{
+}
+
+void RenderPopupMenuGdk::addSeparator()
+{
+}
+
+void RenderPopupMenuGdk::addGroupLabel(HTMLOptGroupElement*)
+{
+}
+
+void RenderPopupMenuGdk::addOption(HTMLOptionElement*)
+{
+}
+
+}
diff --git a/WebCore/platform/gdk/RenderPopupMenuGdk.h b/WebCore/platform/gdk/RenderPopupMenuGdk.h
new file mode 100644 (file)
index 0000000..b625d9b
--- /dev/null
@@ -0,0 +1,52 @@
+/*
+ * This file is part of the popup menu implementation for <select> elements in WebCore.
+ *
+ * Copyright (C) 2006 Apple Computer, Inc.
+ * Copyright (C) 2006 Michael Emmel mike.emmel@gmail.com 
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Library General Public License for more details.
+ *
+ * You should have received a copy of the GNU Library General Public License
+ * along with this library; see the file COPYING.LIB.  If not, write to
+ * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ *
+ */
+
+#ifndef RENDER_POPUPMENU_GDK_H
+#define RENDER_POPUPMENU_GDK_H
+
+#include "RenderPopupMenu.h"
+
+namespace WebCore {
+
+class HTMLOptionElement;
+class HTMLOptGroupElement;
+
+class RenderPopupMenuGdk : public RenderPopupMenu {
+public:
+    RenderPopupMenuGdk(Node*);
+    ~RenderPopupMenuGdk();
+
+    virtual void clear();
+    virtual void populate();
+    virtual void showPopup(const IntRect&, FrameView*, int index);
+    
+protected:
+    virtual void addSeparator();
+    virtual void addGroupLabel(HTMLOptGroupElement*);
+    virtual void addOption(HTMLOptionElement*);
+
+};
+
+}
+
+#endif
index 5a9703b..e7a2390 100644 (file)
@@ -24,6 +24,8 @@
 
 #include "config.h"
 #include "RenderThemeGdk.h"
+#include "RenderPopupMenuGdk.h"
+#include "Document.h"
 
 #include "GraphicsContext.h"
 #include <cairo.h>
@@ -155,4 +157,9 @@ void RenderThemeGdk::adjustButtonStyle(CSSStyleSelector* selector, RenderStyle*
     addIntrinsicMargins(style);
 }
 
+RenderPopupMenu* RenderThemeGdk::createPopupMenu(RenderArena* arena, Document* doc)
+{
+    return new (arena) RenderPopupMenuGdk(doc);
+}
+
 }
index dfc40de..b56f101 100644 (file)
@@ -58,6 +58,8 @@ public:
     virtual void adjustTextFieldStyle(CSSStyleSelector*, RenderStyle*, Element*) const;
     virtual bool paintTextField(RenderObject*, const RenderObject::PaintInfo&, const IntRect&);
 
+    virtual RenderPopupMenu* createPopupMenu(RenderArena*, Document*);
+
 private:
     void addIntrinsicMargins(RenderStyle*) const;
     void close();
index ffac985..697af45 100644 (file)
@@ -47,7 +47,6 @@
 #include "KURL.h"
 #include "ScrollBar.h"
 #include "JavaAppletWidget.h"
-#include "WebCoreScrollBar.h"
 #include "Path.h"
 #include "PlatformMouseEvent.h"
 #include "CookieJar.h"
 #include "RenderThemeGdk.h"
 #include "TextBoundaries.h"
 #include "AXObjectCache.h"
+#include "DeprecatedString.h"
+#include "DeprecatedStringList.h"
+#include "SSLKeyGenerator.h"
 
 using namespace WebCore;
 
 static void notImplemented() { puts("Not yet implemented"); }
 
-
 void FrameView::updateBorder() { notImplemented(); }
-//bool FrameView::isFrameView() const { notImplemented(); return 0; }
 
 TextBox::TextBox(Widget*) { notImplemented(); }
 TextBox::~TextBox() { notImplemented(); }
@@ -181,14 +181,12 @@ bool FrameGdk::canUndo() const { notImplemented(); return 0; }
 void FrameGdk::registerCommandForRedo(WebCore::EditCommandPtr const&) { notImplemented(); }
 bool FrameGdk::runJavaScriptPrompt(String const&, String const&, String &) { notImplemented(); return 0; }
 bool FrameGdk::shouldInterruptJavaScript() { notImplemented(); return false; }
-//bool FrameWin::openURL(KURL const&) { notImplemented(); return 0; }
 void FrameGdk::print() { notImplemented(); }
 KJS::Bindings::Instance* FrameGdk::getAppletInstanceForWidget(Widget*) { notImplemented(); return 0; }
 bool FrameGdk::passMouseDownEventToWidget(Widget*) { notImplemented(); return 0; }
 void FrameGdk::issueCutCommand() { notImplemented(); }
 void FrameGdk::issueCopyCommand() { notImplemented(); }
 void FrameGdk::openURLRequest(struct WebCore::ResourceRequest const&) { notImplemented(); }
-//bool FrameWin::passWheelEventToChildWidget(Node*) { notImplemented(); return 0; }
 void FrameGdk::issueUndoCommand() { notImplemented(); }
 String FrameGdk::mimeTypeForFileName(String const&) const { notImplemented(); return String(); }
 void FrameGdk::issuePasteCommand() { notImplemented(); }
@@ -250,8 +248,8 @@ bool FrameGdk::lastEventIsMouseUp() const { return false; }
 void FrameGdk::addMessageToConsole(String const&, unsigned int, String const&) { }
 bool FrameGdk::shouldChangeSelection(SelectionController const&, SelectionController const&, WebCore::EAffinity, bool) const { return true; }
 void FrameGdk::respondToChangedSelection(WebCore::SelectionController const&, bool) { }
-static int frameNumber = 0;
-Frame* FrameGdk::createFrame(KURL const&, String const&, RenderPart*, String const&) { return 0; }
+Frame* FrameGdk::createFrame(const KURL& url, const String& name, Element* ownerElement, const String& referrer) { return 0; }
+
 void FrameGdk::saveDocumentState() { }
 void FrameGdk::registerCommandForUndo(WebCore::EditCommandPtr const&) { }
 void FrameGdk::clearUndoRedoOperations(void) { }
@@ -380,3 +378,10 @@ FloatRect Font::selectionRectForComplexText(const TextRun&, const TextStyle&, co
 void Font::drawComplexText(GraphicsContext*, const TextRun&, const TextStyle&, const FloatPoint&) const { notImplemented(); }
 float Font::floatWidthForComplexText(const TextRun&, const TextStyle&) const { notImplemented(); return 0; }
 int Font::offsetForPositionForComplexText(const TextRun&, const TextStyle&, int, bool) const { notImplemented(); return 0; }
+
+namespace WebCore {
+
+DeprecatedStringList supportedKeySizes(){return DeprecatedStringList();};
+DeprecatedString signedPublicKeyAndChallengeString(unsigned keySizeIndex, const DeprecatedString &challengeString, const KURL &url){return DeprecatedString();};
+
+}
index c21a998..c7094ab 100644 (file)
@@ -1,3 +1,12 @@
+2006-07-29  Mike Emmel  <mike.emmel@gmail.com>
+
+        Reviewed by Darin.
+
+        - fixes for Linux build
+
+        * GdkLauncher/mk: Added call to bakefile_gen before calling make.
+        * GdkLauncher/gdklauncher.bkl: Tweak comment.
+
 2006-07-24  Dan Waylonis  <waylonis@google.com>
 
         Reviewed and tweaked a bit by Darin.
index 1e4092a..3525fcf 100644 (file)
@@ -1,5 +1,4 @@
 <?xml version="1.0" ?>
-<!-- $Id: gdklauncher.bkl,v 1.1 2006/04/27 23:38:34 eme018 Exp $ -->
 <!-- generate GnuMakefile with
        bakefile -f gnu gdkwebcore.bkl
        consider forcing includes agian
index 55f97a6..60c46a7 100644 (file)
@@ -1,3 +1,5 @@
+cd ../../Bakefiles; bakefile_gen
+cd -
 cd ../../WebCore/Projects/gdk
 make 
 cd -