JavaScriptCore:
authorggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 Jun 2006 16:09:27 +0000 (16:09 +0000)
committerggaren <ggaren@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 10 Jun 2006 16:09:27 +0000 (16:09 +0000)
        - http://bugzilla.opendarwin.org/show_bug.cgi?id=8515
        Linux porting compile bug

        Fix by Mike Emmel, Reviewed by Darin.

        * JavaScriptCoreSources.bkl:
        * jscore.bkl:
        * wtf/Platform.h:

WebCore:

        - http://bugzilla.opendarwin.org/show_bug.cgi?id=8515
        Linux porting compile bug

        Fix by Mike Emmel, Reviewed by Darin.

        * Projects/gdk/webcore-gdk.bkl:
        * WebCoreSources.bkl:
        * css/maketokenizer:
        * html/HTMLCanvasElement.cpp:
        * html/HTMLImageElement.h:
        * icon/IconDatabase.cpp:
        * make-generated-sources.sh:
        * page/Frame.h:
        * page/FramePrivate.h:
        * platform/Cursor.h:
        * platform/FontData.h:
        (WebCore::FontData::getGlyphIndex):
        * platform/GlyphBuffer.h:
        (WebCore::GlyphBuffer::glyphAt):
        (WebCore::GlyphBuffer::advanceAt):
        (WebCore::GlyphBuffer::add):
        * platform/GraphicsContext.h:
        * platform/PlatformKeyboardEvent.h:
        * platform/PlatformMouseEvent.h:
        * platform/PlatformWheelEvent.h:
        * platform/ScrollView.h:
        * platform/TransferJob.h:
        (WebCore::TransferJob::getInternal):
        * platform/TransferJobInternal.h:
        (WebCore::TransferJobInternal::TransferJobInternal):
        * platform/Widget.h:
        * platform/cairo/GraphicsContextCairo.cpp:
        (WebCore::GraphicsContext::GraphicsContext):
        (WebCore::GraphicsContext::roundToDevicePixels):
        * webcore-base.bkl:
        * xpath/impl/XPathValue.cpp:

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

28 files changed:
JavaScriptCore/ChangeLog
JavaScriptCore/JavaScriptCoreSources.bkl
JavaScriptCore/jscore.bkl
JavaScriptCore/wtf/Platform.h
WebCore/ChangeLog
WebCore/Projects/gdk/webcore-gdk.bkl
WebCore/WebCoreSources.bkl
WebCore/css/maketokenizer
WebCore/html/HTMLCanvasElement.cpp
WebCore/html/HTMLImageElement.h
WebCore/icon/IconDatabase.cpp
WebCore/make-generated-sources.sh
WebCore/page/Frame.h
WebCore/page/FramePrivate.h
WebCore/platform/Cursor.h
WebCore/platform/FontData.h
WebCore/platform/GlyphBuffer.h
WebCore/platform/GraphicsContext.h
WebCore/platform/PlatformKeyboardEvent.h
WebCore/platform/PlatformMouseEvent.h
WebCore/platform/PlatformWheelEvent.h
WebCore/platform/ScrollView.h
WebCore/platform/TransferJob.h
WebCore/platform/TransferJobInternal.h
WebCore/platform/Widget.h
WebCore/platform/cairo/GraphicsContextCairo.cpp
WebCore/webcore-base.bkl
WebCore/xpath/impl/XPathValue.cpp

index 5b91bc5..0342649 100644 (file)
@@ -1,3 +1,14 @@
+2006-06-10  Geoffrey Garen  <ggaren@apple.com>
+
+        - http://bugzilla.opendarwin.org/show_bug.cgi?id=8515
+        Linux porting compile bug
+        
+        Fix by Mike Emmel, Reviewed by Darin.
+
+        * JavaScriptCoreSources.bkl:
+        * jscore.bkl:
+        * wtf/Platform.h:
+
 2006-06-09  Geoffrey Garen  <ggaren@apple.com>
 
         Build fix -- I think :).
index d46ab6f..ebc8c56 100644 (file)
@@ -1,7 +1,8 @@
 <?xml version="1.0" ?>
 <makefile>
        <set append="1" var="JSCORE_SOURCES_KJS">
-               
+
+               DerivedSources/JavaScriptCore/grammar.cpp       
                kjs/array_object.cpp
                kjs/bool_object.cpp
                kjs/collector.cpp
@@ -12,7 +13,6 @@
                kjs/fpconst.cpp
                kjs/function.cpp
                kjs/function_object.cpp
-               <!-- ./grammarWrapper.cpp -->
                kjs/identifier.cpp
                kjs/internal.cpp
                kjs/interpreter.cpp
index efffb8e..24da982 100644 (file)
@@ -103,6 +103,9 @@ JavaScriptCore Bakefile project file.
             $(JSCORE_SOURCES_PCRE)
             $(JSCORE_SOURCES_KJS)
         </sources>
+        <if cond="PLATFORM_WIN32=='1'">
+            $(JSCORE_SOURCES_WIN)
+               </if>
                <install-to>$(BUILDDIR)</install-to>
     </lib>
 
index 276ffaf..e1b9ec6 100644 (file)
 #elif PLATFORM(WIN_OS)
 #define KXMLCORE_PLATFORM_WIN 1
 #endif
+#if defined(BUILDING_GDK__)
+#define KXMLCORE_PLATFORM_GDK 1
+#endif
+
 
 // CPU
 
index 0ad14f9..d5e59d3 100644 (file)
@@ -1,3 +1,42 @@
+2006-06-10  Geoffrey Garen  <ggaren@apple.com>
+
+        - http://bugzilla.opendarwin.org/show_bug.cgi?id=8515
+        Linux porting compile bug
+        
+        Fix by Mike Emmel, Reviewed by Darin.
+
+        * Projects/gdk/webcore-gdk.bkl:
+        * WebCoreSources.bkl:
+        * css/maketokenizer:
+        * html/HTMLCanvasElement.cpp:
+        * html/HTMLImageElement.h:
+        * icon/IconDatabase.cpp:
+        * make-generated-sources.sh:
+        * page/Frame.h:
+        * page/FramePrivate.h:
+        * platform/Cursor.h:
+        * platform/FontData.h:
+        (WebCore::FontData::getGlyphIndex):
+        * platform/GlyphBuffer.h:
+        (WebCore::GlyphBuffer::glyphAt):
+        (WebCore::GlyphBuffer::advanceAt):
+        (WebCore::GlyphBuffer::add):
+        * platform/GraphicsContext.h:
+        * platform/PlatformKeyboardEvent.h:
+        * platform/PlatformMouseEvent.h:
+        * platform/PlatformWheelEvent.h:
+        * platform/ScrollView.h:
+        * platform/TransferJob.h:
+        (WebCore::TransferJob::getInternal):
+        * platform/TransferJobInternal.h:
+        (WebCore::TransferJobInternal::TransferJobInternal):
+        * platform/Widget.h:
+        * platform/cairo/GraphicsContextCairo.cpp:
+        (WebCore::GraphicsContext::GraphicsContext):
+        (WebCore::GraphicsContext::roundToDevicePixels):
+        * webcore-base.bkl:
+        * xpath/impl/XPathValue.cpp:
+
 2006-06-09  John Sullivan  <sullivan@apple.com>
 
         Reviewed by Tim Omernick and Dave Hyatt.
index bd4d756..41c1621 100644 (file)
@@ -9,28 +9,72 @@
 
 <makefile>
 
-    <include file="../../webcore-base.bkl"/>
-    
-    <dll id="webcore-gdk" template="webcore_base,freetype,gtk">        
+               <option name="ENCODINGS_FILE">
+               <default-value>platform/gdk/gdk-encodings.txt</default-value>
+               <values>platform/gdk/gdk-encodings.txt</values>
+               </option>
+
+               <option name="FEATURE_DEFINES" never_empty="1" >
+               <!-- SVG_SUPPORT XPATH_SUPPORT-->
+               <default-value>XPATH_SUPPORT</default-value>
+               <values>XPATH_SUPPORT,SVG_SUPPORT</values>
+               </option>
+               <set var="FEATURE_DEFINES">XPATH_SUPPORT</set>
+               <set var="ENCODINGS_FILE">$(SRCDIR)/platform/gdk/gdk-encodings.txt</set>
+
+       <include file="../../webcore-base.bkl"/>
+
+   <action id=".DerivedSources">
+   <!-- This causes a full rebuild everytime
+     <is-phony/>
+        -->
+        <command>bash -c "cd ../..; ./move-js-headers.sh"</command>
+        <command>
+               bash -c "cd ../..;\
+               export FEATURE_DEFINES=$(FEATURE_DEFINES);\
+               ./make-generated-sources.sh $(ENCODINGS_FILE)"
+               </command>
+        <command>bash -c "touch .DerivedSources"</command>
+   </action>
+
+    <dll id="webcore-gdk" template="webcore_base,freetype,gtk,curl,cairo,sqlite3">        
+       <!-- FIXME: create a debug option and set these accordingly -->
+       <!-- check for undefined symbols for debugging reasons -->
+       <!--
+       <ldflags>W,undefined</ldflags>
+       -->
+
+               <pre-build-target>.DerivedSources</pre-build-target>
         <dirname>.</dirname>
         <pic>on</pic>
         <threading>multi</threading>
         <warnings>no</warnings>
                <cxxflags>-w</cxxflags>
+        <include>$(SRCDIR)/platform/gdk</include>
                <cflags>-w</cflags>
        <define>BUILDING_GDK__</define>
        <define>BUILDING_CAIRO__</define>
+               <include>platform/gdk</include>
+               <include>platform/cairo</include>
+           <include>$(SRCDIR)/kcanvas/device/cairo</include>
+       <define>XPATH_SUPPORT</define>
  
         <sources>              
+          platform/cairo/GraphicsContextCairo.cpp
+          platform/cairo/ImageCairo.cpp
+          platform/cairo/ImageSourceCairo.cpp
+          platform/gdk/CookieJarGdk.cpp
           platform/gdk/CursorGdk.cpp
-          platform/gdk/FontFtCairo.cpp
-          platform/gdk/FontPlatformDataFtCairo.cpp
+          platform/gdk/FontCacheGdk.cpp
+          platform/gdk/FontDataGdk.cpp
+          platform/gdk/FontGdk.cpp
+          platform/gdk/FontPlatformDataGdk.cpp
           platform/gdk/FrameGdk.cpp
-          platform/gdk/GtkGraphicsContext.cpp
-          platform/gdk/GtkIntPoint.cpp
-          platform/gdk/GtkIntRect.cpp
-          platform/gdk/GtkMouseEvent.cpp
+          platform/gdk/GlyphMapGdk.cpp
+          platform/gdk/KeyEventGdk.cpp
+          platform/gdk/MouseEventGdk.cpp
           platform/gdk/PageGdk.cpp
+          platform/gdk/TransferJobManager.cpp
           platform/gdk/RenderThemeGdk.cpp
           platform/gdk/ScreenGdk.cpp
           platform/gdk/ScrollViewGdk.cpp
           platform/gdk/SystemTimeLinux.cpp
           platform/gdk/TemporaryLinkStubs.cpp
           platform/gdk/TransferJobCurl.cpp
+          platform/gdk/WheelEventGdk.cpp
           platform/gdk/WidgetGdk.cpp
                </sources>
-        <include>$(SRCDIR)/platform/gdk</include>
+
+               <clean-files>
+               .DerivedSources
+               rm -rf $(SRCDIR)/DerivedSources
+               rm -rf $(SRCDIR)/include/JavaScripCore
+               rm -rf $(SRCDIR)/Projects/gdk/obj-gnu
+               </clean-files>
+               <!--HACK block dependencies on the phony target -->
     </dll>
 </makefile>
 
index e69d713..43dcd5b 100644 (file)
@@ -7,11 +7,11 @@
 
        </set>
        <set append="1" var="WEBCORE_SOURCES_DERIVEDSOURCES">
-               
                DerivedSources/WebCore/CharsetData.cpp
                DerivedSources/WebCore/ColorData.c
                DerivedSources/WebCore/CSSGrammar.cpp
                DerivedSources/WebCore/HTMLEntityNames.c
+               DerivedSources/WebCore/HTMLNames.cpp
                DerivedSources/WebCore/JSAttr.cpp
                DerivedSources/WebCore/JSCanvasGradient.cpp
                DerivedSources/WebCore/JSCanvasPattern.cpp
                DerivedSources/WebCore/JSCounter.cpp
                DerivedSources/WebCore/JSCSSPrimitiveValue.cpp
                DerivedSources/WebCore/JSCSSRule.cpp
+               DerivedSources/WebCore/JSCSSRuleList.cpp
                DerivedSources/WebCore/JSCSSStyleDeclaration.cpp
                DerivedSources/WebCore/JSCSSValue.cpp
+               DerivedSources/WebCore/JSCSSValueList.cpp
                DerivedSources/WebCore/JSDocument.cpp
+               DerivedSources/WebCore/JSDocumentFragment.cpp
                DerivedSources/WebCore/JSDocumentType.cpp
                DerivedSources/WebCore/JSDOMImplementation.cpp
                DerivedSources/WebCore/JSDOMWindow.cpp
                DerivedSources/WebCore/JSElement.cpp
                DerivedSources/WebCore/JSEntity.cpp
                DerivedSources/WebCore/JSEvent.cpp
+               DerivedSources/WebCore/JSHTMLAnchorElement.cpp
+               DerivedSources/WebCore/JSHTMLAppletElement.cpp
+               DerivedSources/WebCore/JSHTMLAreaElement.cpp
+               DerivedSources/WebCore/JSHTMLBaseElement.cpp
+               DerivedSources/WebCore/JSHTMLBaseFontElement.cpp
+               DerivedSources/WebCore/JSHTMLBlockquoteElement.cpp
+               DerivedSources/WebCore/JSHTMLBodyElement.cpp
+               DerivedSources/WebCore/JSHTMLBRElement.cpp
+               DerivedSources/WebCore/JSHTMLButtonElement.cpp
                DerivedSources/WebCore/JSHTMLCanvasElement.cpp
+               DerivedSources/WebCore/JSHTMLDirectoryElement.cpp
+               DerivedSources/WebCore/JSHTMLDivElement.cpp
+               DerivedSources/WebCore/JSHTMLDListElement.cpp
+               DerivedSources/WebCore/JSHTMLDocument.cpp
+               DerivedSources/WebCore/JSHTMLElement.cpp
+               DerivedSources/WebCore/JSHTMLFieldSetElement.cpp
+               DerivedSources/WebCore/JSHTMLFontElement.cpp
+               DerivedSources/WebCore/JSHTMLFormElement.cpp
+               DerivedSources/WebCore/JSHTMLHeadElement.cpp
+               DerivedSources/WebCore/JSHTMLHeadingElement.cpp
+               DerivedSources/WebCore/JSHTMLHRElement.cpp
+               DerivedSources/WebCore/JSHTMLHtmlElement.cpp
+               DerivedSources/WebCore/JSHTMLImageElement.cpp
+               DerivedSources/WebCore/JSHTMLInputElement.cpp
+               DerivedSources/WebCore/JSHTMLIsIndexElement.cpp
+               DerivedSources/WebCore/JSHTMLLabelElement.cpp
+               DerivedSources/WebCore/JSHTMLLegendElement.cpp
+               DerivedSources/WebCore/JSHTMLLIElement.cpp
+               DerivedSources/WebCore/JSHTMLLinkElement.cpp
+               DerivedSources/WebCore/JSHTMLMapElement.cpp
+               DerivedSources/WebCore/JSHTMLMenuElement.cpp
+               DerivedSources/WebCore/JSHTMLMetaElement.cpp
+               DerivedSources/WebCore/JSHTMLModElement.cpp
+               DerivedSources/WebCore/JSHTMLOListElement.cpp
+               DerivedSources/WebCore/JSHTMLOptGroupElement.cpp
+               DerivedSources/WebCore/JSHTMLOptionElement.cpp
+               DerivedSources/WebCore/JSHTMLParagraphElement.cpp
+               DerivedSources/WebCore/JSHTMLParamElement.cpp
+               DerivedSources/WebCore/JSHTMLPreElement.cpp
+               DerivedSources/WebCore/JSHTMLQuoteElement.cpp
+               DerivedSources/WebCore/JSHTMLScriptElement.cpp
+               DerivedSources/WebCore/JSHTMLStyleElement.cpp
+               DerivedSources/WebCore/JSHTMLTextAreaElement.cpp
+               DerivedSources/WebCore/JSHTMLTitleElement.cpp
+               DerivedSources/WebCore/JSHTMLUListElement.cpp
                DerivedSources/WebCore/JSKeyboardEvent.cpp
                DerivedSources/WebCore/JSMouseEvent.cpp
                DerivedSources/WebCore/JSMutationEvent.cpp
                DerivedSources/WebCore/JSXPathExpression.cpp
                DerivedSources/WebCore/JSXPathNSResolver.cpp
                DerivedSources/WebCore/JSXPathResult.cpp
-               DerivedSources/WebCore/JSWheelEvent.cpp
                DerivedSources/WebCore/UserAgentStyleSheetsData.cpp
+               DerivedSources/WebCore/XLinkNames.cpp
                DerivedSources/WebCore/XPathGrammar.cpp
-
        </set>
-       <set append="1" var="WEBCORE_SOURCES_KHTML">
-               
 
+       <set append="1" var="WEBCORE_SOURCES_KHTML">
        </set>
-       <set append="1" var="WEBCORE_SOURCES_MISC">
-               
 
+       <set append="1" var="WEBCORE_SOURCES_MISC">
        </set>
+
        <set append="1" var="WEBCORE_SOURCES_PAGE">
                
                page/DOMWindow.cpp
                loader/Decoder.cpp
                loader/DocLoader.cpp
                loader/FormData.cpp
+               loader/ImageDocument.cpp
                loader/loader.cpp
                loader/Request.cpp
                loader/TextDocument.cpp
                platform/FloatRect.cpp
                platform/FloatSize.cpp
                platform/Font.cpp
+               platform/FontCache.cpp
+               platform/FontData.cpp
+               platform/FontFallbackList.cpp
                platform/FontFamily.cpp
+               platform/GlyphMap.cpp
+               platform/GlyphWidthMap.cpp
                platform/GraphicsContext.cpp
                platform/GraphicsTypes.cpp
                platform/Image.cpp
        </set>
        <set append="1" var="WEBCORE_SOURCES_WIN">
                
+               platform/win/CookieJarWin.cpp
                platform/win/CursorWin.cpp
+               platform/win/FontCacheWin.cpp
+               platform/win/FontDataWin.cpp
                platform/win/FontPlatformDataWin.cpp
                platform/win/FontWin.cpp
+               platform/win/GlyphMapWin.cpp
                platform/win/IntPointWin.cpp
                platform/win/IntRectWin.cpp
                platform/win/IntSizeWin.cpp
                platform/image-decoders/gif/GIFImageReader.cpp
 
        </set>
+
+       <set append="1" var="WEBCORE_SOURCES_XBM">
+               platform/image-decoders/xbm/XBMImageDecoder.cpp
+       </set>
+
+       <set append="1" var="WEBCORE_SOURCES_ICO">
+               platform/image-decoders/ico/ICOImageDecoder.cpp
+       </set>
+
+       <set append="1" var="WEBCORE_SOURCES_BMP">
+               platform/image-decoders/bmp/BMPImageDecoder.cpp
+       </set>
+
        <set append="1" var="WEBCORE_SOURCES_PNG">
                
                platform/image-decoders/png/png.c
                platform/image-decoders/png/pngwutil.c
 
        </set>
+
        <set append="1" var="WEBCORE_SOURCES_ZLIB">
                
                platform/image-decoders/zlib/adler32.c
                platform/cairo/pixman/src/renderedge.c
 
        </set>
-       <set append="1" var="WEBCORE_SOURCES_CAIRO">
+       <set append="1" var="WEBCORE_SOURCES_CAIRO_CAIRO">
                
                platform/cairo/cairo/src/cairo-arc.c
                platform/cairo/cairo/src/cairo-array.c
        </set>
        <set append="1" var="WEBCORE_SOURCES_CSS">
                
-               css/css_base.cpp
-               css/css_ruleimpl.cpp
-               css/css_stylesheetimpl.cpp
-               css/css_valueimpl.cpp
+               css/CSSBorderImageValue.cpp
                css/CSSComputedStyleDeclaration.cpp
+               css/CSSFontFaceRule.cpp
                css/csshelper.cpp
+               css/CSSImageValue.cpp
+               css/CSSImportRule.cpp
+               css/CSSInheritedValue.cpp
+               css/CSSInitialValue.cpp
+               css/CSSMediaRule.cpp
+               css/CSSMutableStyleDeclaration.cpp
+               css/CSSPageRule.cpp
                css/cssparser.cpp
+               css/CSSPrimitiveValue.cpp
+               css/CSSProperty.cpp
+               css/CSSRule.cpp
+               css/CSSRuleList.cpp
+               css/CSSSelector.cpp
+               css/CSSStyleDeclaration.cpp
+               css/CSSStyleRule.cpp
                css/cssstyleselector.cpp
+               css/CSSStyleSheet.cpp
+               css/CSSValueList.cpp
+               css/FontFamilyValue.cpp
+               css/FontValue.cpp
+               css/MediaList.cpp
+               css/ShadowValue.cpp
+               css/StyleBase.cpp
+               css/StyleList.cpp
+               css/StyleSheet.cpp
+               css/StyleSheetList.cpp
 
        </set>
        <set append="1" var="WEBCORE_SOURCES_RENDERING">
                
+               rendering/AutoTableLayout.cpp
                rendering/bidi.cpp
                rendering/break_lines.cpp
+               rendering/EllipsisBox.cpp
+               rendering/FixedTableLayout.cpp
+               rendering/InlineBox.cpp
+               rendering/InlineFlowBox.cpp
                rendering/InlineTextBox.cpp
-               rendering/render_button.cpp
-               rendering/render_form.cpp
-               rendering/render_frames.cpp
-               rendering/render_line.cpp
-               rendering/render_list.cpp
-               rendering/render_replaced.cpp
+               rendering/ListMarkerBox.cpp
                rendering/render_style.cpp
                rendering/RenderApplet.cpp
                rendering/RenderArena.cpp
                rendering/RenderBlock.cpp
                rendering/RenderBox.cpp
                rendering/RenderBR.cpp
-               rendering/RenderCanvas.cpp
+               rendering/RenderButton.cpp
                rendering/RenderContainer.cpp
+               rendering/RenderFieldset.cpp
+               rendering/RenderFileButton.cpp
                rendering/RenderFlexibleBox.cpp
                rendering/RenderFlow.cpp
+               rendering/RenderView.cpp
+               rendering/RenderFormElement.cpp
+               rendering/RenderFrame.cpp
+               rendering/RenderFrameSet.cpp
                rendering/RenderHTMLCanvas.cpp
                rendering/RenderImage.cpp
+               rendering/RenderImageButton.cpp
                rendering/RenderInline.cpp
+               rendering/RenderLabel.cpp
                rendering/RenderLayer.cpp
+               rendering/RenderLegend.cpp
+               rendering/RenderLineEdit.cpp
+               rendering/RenderListItem.cpp
+               rendering/RenderListMarker.cpp
                rendering/RenderObject.cpp
+               rendering/RenderPart.cpp
+               rendering/RenderPartObject.cpp
+               rendering/RenderReplaced.cpp
+               rendering/RenderSelect.cpp
+               rendering/RenderSlider.cpp
                rendering/RenderTable.cpp
                rendering/RenderTableCell.cpp
                rendering/RenderTableCol.cpp
                rendering/RenderTableRow.cpp
                rendering/RenderTableSection.cpp
                rendering/RenderText.cpp
+               rendering/RenderTextArea.cpp
                rendering/RenderTextField.cpp
                rendering/RenderTextFragment.cpp
                rendering/RenderTheme.cpp
-               <!-- rendering/RenderThemeWin.cpp -->
                rendering/RenderTreeAsText.cpp
-               rendering/table_layout.cpp
+               rendering/RenderWidget.cpp
+               rendering/RootInlineBox.cpp
 
        </set>
        <set append="1" var="WEBCORE_SOURCES_XPATH">
                dom/DocumentFragment.cpp
                dom/DocumentType.cpp
                dom/dom2_eventsimpl.cpp
-               dom/dom2_traversalimpl.cpp
-               dom/dom_xmlimpl.cpp
                dom/DOMImplementation.cpp
                dom/EditingText.cpp
                dom/Element.cpp
+               dom/Entity.cpp
+               dom/EntityReference.cpp
                dom/EventNames.cpp
                dom/EventTargetNode.cpp
                dom/MappedAttribute.cpp
                dom/NamedAttrMap.cpp
                dom/NamedMappedAttrMap.cpp
+               dom/NodeIterator.cpp
                dom/NameNodeList.cpp
                dom/Node.cpp
+               dom/NodeFilter.cpp
+               dom/NodeFilterCondition.cpp
                dom/NodeList.cpp
+               dom/Notation.cpp
                dom/Position.cpp
+               dom/ProcessingInstruction.cpp
                dom/QualifiedName.cpp
                dom/Range.cpp
                dom/StyledElement.cpp
                dom/Text.cpp
+               dom/Traversal.cpp
+               dom/TreeWalker.cpp
                dom/xml_tokenizer.cpp
 
        </set>
+
+       <set append="1" var="WEBCORE_SOURCES_ICON">
+
+               icon/IconDatabase.cpp
+       </set>
+
        <set append="1" var="WEBCORE_SOURCES_BRIDGE">
                
 
                editing/HTMLInterchange.cpp
                editing/InsertIntoTextNodeCommand.cpp
                editing/InsertLineBreakCommand.cpp
+               editing/InsertListCommand.cpp
                editing/InsertNodeBeforeCommand.cpp
                editing/InsertParagraphSeparatorCommand.cpp
                editing/InsertTextCommand.cpp
                editing/JSEditor.cpp
                editing/markup.cpp
                editing/MergeIdenticalElementsCommand.cpp
-               editing/ModifySelectionListLevelCommand.cpp
+               editing/ModifySelectionListLevel.cpp
                editing/MoveSelectionCommand.cpp
                editing/RebalanceWhitespaceCommand.cpp
                editing/RemoveCSSPropertyCommand.cpp
                html/CanvasRenderingContext2D.cpp
                html/CanvasStyle.cpp
                html/FormDataList.cpp
-               html/html_baseimpl.cpp
-               html/html_blockimpl.cpp
-               html/html_headimpl.cpp
-               html/html_imageimpl.cpp
-               html/html_inlineimpl.cpp
-               html/html_listimpl.cpp
-               html/html_objectimpl.cpp
-               html/html_tableimpl.cpp
+               html/HTMLAnchorElement.cpp
+               html/HTMLAppletElement.cpp
+               html/HTMLAreaElement.cpp
+               html/HTMLBaseElement.cpp
                html/HTMLBaseFontElement.cpp
+               html/HTMLBlockquoteElement.cpp
+               html/HTMLBodyElement.cpp
+               html/HTMLBRElement.cpp
                html/HTMLButtonElement.cpp
                html/HTMLCanvasElement.cpp
                html/HTMLCollection.cpp
+               html/HTMLDirectoryElement.cpp
+               html/HTMLDivElement.cpp
+               html/HTMLDListElement.cpp
                html/HTMLDocument.cpp
                html/HTMLElement.cpp
                html/HTMLElementFactory.cpp
+               html/HTMLEmbedElement.cpp
                html/HTMLFieldSetElement.cpp
+               html/HTMLFontElement.cpp
                html/HTMLFormCollection.cpp
                html/HTMLFormElement.cpp
+               html/HTMLFrameElement.cpp
+               html/HTMLFrameSetElement.cpp
                html/HTMLGenericFormElement.cpp
+               html/HTMLHeadElement.cpp
+               html/HTMLHeadingElement.cpp
+               html/HTMLHRElement.cpp
+               html/HTMLHtmlElement.cpp
+               html/HTMLIFrameElement.cpp
+               html/HTMLImageElement.cpp
+               html/HTMLImageLoader.cpp
                html/HTMLInputElement.cpp
                html/HTMLIsIndexElement.cpp
                html/HTMLKeygenElement.cpp
                html/HTMLLabelElement.cpp
                html/HTMLLegendElement.cpp
+               html/HTMLLIElement.cpp
+               html/HTMLLinkElement.cpp
+               html/HTMLMapElement.cpp
+               html/HTMLMarqueeElement.cpp
+               html/HTMLMenuElement.cpp
+               html/HTMLMetaElement.cpp
+               html/HTMLModElement.cpp
                html/HTMLNameCollection.cpp
-               html/HTMLNames.cpp
+               html/HTMLObjectElement.cpp
+               html/HTMLOListElement.cpp
                html/HTMLOptGroupElement.cpp
                html/HTMLOptionElement.cpp
                html/HTMLOptionsCollection.cpp
+               html/HTMLParagraphElement.cpp
+               html/HTMLParamElement.cpp
                html/HTMLParser.cpp
+               html/HTMLPlugInElement.cpp
+               html/HTMLPreElement.cpp
+               html/HTMLQuoteElement.cpp
+               html/HTMLScriptElement.cpp
                html/HTMLSelectElement.cpp
+               html/HTMLStyleElement.cpp
+               html/HTMLTableCaptionElement.cpp
+               html/HTMLTableCellElement.cpp
+               html/HTMLTableColElement.cpp
+               html/HTMLTableElement.cpp
+               html/HTMLTablePartElement.cpp
+               html/HTMLTableRowElement.cpp
+               html/HTMLTableSectionElement.cpp
                html/HTMLTextAreaElement.cpp
                html/HTMLTextFieldInnerElement.cpp
+               html/HTMLTitleElement.cpp
                html/HTMLTokenizer.cpp
+               html/HTMLUListElement.cpp
 
        </set>
        <set append="1" var="WEBCORE_SOURCES_BINDINGS">
        </set>
        <set append="1" var="WEBCORE_SOURCES_JS">
                
-               bindings/js/JSCanvasRenderingContext2DBase.cpp
+               bindings/js/JSCanvasRenderingContext2DCustom.cpp
                bindings/js/JSDOMParser.cpp
                bindings/js/JSHTMLElementWrapperFactory.cpp
+               bindings/js/JSHTMLFormElementCustom.cpp
+               bindings/js/JSHTMLInputElementBase.cpp
+               bindings/js/JSHTMLOptionElementConstructor.cpp
                bindings/js/JSXMLHttpRequest.cpp
                bindings/js/JSXMLSerializer.cpp
                bindings/js/JSXSLTProcessor.cpp
                bindings/js/kjs_proxy.cpp
                bindings/js/kjs_traversal.cpp
                bindings/js/kjs_window.cpp
-
        </set>
+
 </makefile>
index af09587..8779f28 100644 (file)
@@ -43,6 +43,33 @@ print <<END;
 
 END
 
+# Not sure what the earliest version with the defines is
+# Using the OS for now
+$os=`uname`;
+if( $os = ~/Linux/ ) {
+print<<END
+/* C99 systems have <inttypes.h>. Non-C99 systems may or may not. */
+
+#if defined __STDC_VERSION__ && __STDC_VERSION__ >= 199901L
+#include <inttypes.h>
+typedef int8_t flex_int8_t;
+typedef uint8_t flex_uint8_t;
+typedef int16_t flex_int16_t;
+typedef uint16_t flex_uint16_t;
+typedef int32_t flex_int32_t;
+typedef uint32_t flex_uint32_t;
+#else
+typedef signed char flex_int8_t;
+typedef short int flex_int16_t;
+typedef int flex_int32_t;
+typedef unsigned char flex_uint8_t;
+typedef unsigned short int flex_uint16_t;
+typedef unsigned int flex_uint32_t;
+#endif /* ! C99 */
+END
+}
+
+
 while (<>) {
     last if /YY_NUM_RULES/;
 }
index e99ad7e..8edce8c 100644 (file)
@@ -35,6 +35,7 @@
 #include "GraphicsContext.h"
 #include "HTMLNames.h"
 #include "RenderHTMLCanvas.h"
+#include <math.h>
 
 namespace WebCore {
 
index 4950171..f8b7cd1 100644 (file)
@@ -30,6 +30,7 @@
 #include "HTMLImageLoader.h"
 
 namespace WebCore {
+    class HTMLFormElement;
 
 class HTMLImageElement : public HTMLElement {
     friend class HTMLFormElement;
index f788bea..d19f075 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <sys/types.h>
 #include <sys/stat.h>
+#include <errno.h>
 
 const char* DefaultIconDatabaseFilename = "/icon.db";
 
index 2d8d609..5e23020 100755 (executable)
@@ -6,5 +6,7 @@ export CREATE_HASH_TABLE="$SRCROOT/../JavaScriptCore/kjs/create_hash_table"
 mkdir -p DerivedSources/WebCore
 cd DerivedSources/WebCore
 
-make -f ../../DerivedSources.make ENCODINGS_FILE=$1 ENCODINGS_PREFIX=""
+# note ENCODINGS_PREFIX needs to be a ws string so it does not turn into
+# a null value
+make -f ../../DerivedSources.make ENCODINGS_FILE=$1 ENCODINGS_PREFIX=" "
 cd ../..
index 49a6061..acac61b 100644 (file)
@@ -774,10 +774,13 @@ protected:
 public:
   friend class FrameMac;
   friend class FrameWin;
+#if PLATFORM(GDK)
+  friend class FrameGdk;
+#endif
 
   RenderObject::NodeInfo nodeInfoAtPoint(const IntPoint&, bool allowShadowContent);
   bool hasSelection();
-  String Frame::documentTypeString() const;
+  String documentTypeString() const;
 
   void checkEmitLoadEvent();
   bool didOpenURL(const KURL&);
index b994423..cbaf485 100644 (file)
@@ -37,6 +37,8 @@
 #include "kjs_proxy.h"
 #include "KWQKIOGlobal.h"
 #include <wtf/HashMap.h>
+#include "CSSMutableStyleDeclaration.h"
+#include "Decoder.h"
 
 namespace WebCore {
 
index d3bbebb..8693695 100644 (file)
@@ -28,6 +28,8 @@
 
 #ifdef WIN32
 #include <windows.h>
+#elif PLATFORM(GDK)
+#include <gdk/gdk.h>
 #endif
 
 #ifdef __APPLE__
@@ -46,6 +48,8 @@ namespace WebCore {
     typedef HCURSOR PlatformCursor;
 #elif defined(__APPLE__)
     typedef NSCursor* PlatformCursor;
+#elif PLATFORM(GDK)
+    typedef GdkCursor* PlatformCursor;
 #else
     typedef void* PlatformCursor;
 #endif
index 19de140..e848404 100644 (file)
@@ -78,6 +78,11 @@ public:
     void setIsMLangFont() { m_isMLangFont = true; }
 #endif
 
+#if PLATFORM(GDK)
+    void setFont(cairo_t*) const;
+    Glyph getGlyphIndex(UChar c) const { return m_font.index(c); }
+#endif
+
 private:
     void platformInit();
     void platformDestroy();
index 94aafa6..33ac6b6 100644 (file)
@@ -36,7 +36,7 @@
 
 #if __APPLE__
 #include <ApplicationServices/ApplicationServices.h>
-#elif PLATFORM(WIN)
+#elif PLATFORM(WIN) || PLATFORM(GDK)
 #include <cairo.h>
 #include "FloatSize.h"
 #endif
@@ -51,7 +51,7 @@ class FontData;
 #if __APPLE__
 typedef Glyph GlyphBufferGlyph;
 typedef CGSize GlyphBufferAdvance;
-#elif PLATFORM(WIN)
+#elif PLATFORM(WIN) || PLATFORM(GDK)
 typedef cairo_glyph_t GlyphBufferGlyph;
 typedef FloatSize GlyphBufferAdvance;
 #endif
@@ -95,7 +95,7 @@ public:
     {
 #if __APPLE__
         return m_glyphs[index];
-#elif PLATFORM(WIN)
+#elif PLATFORM(WIN) || PLATFORM(GDK)
         return m_glyphs[index].index;
 #endif
     }
@@ -104,7 +104,7 @@ public:
     {
 #if __APPLE__
         return m_advances[index].width;
-#elif PLATFORM(WIN)
+#elif PLATFORM(WIN) || PLATFORM(GDK)
         return m_advances[index].width();
 #endif
     }
@@ -118,7 +118,7 @@ public:
         advance.width = width;
         advance.height = 0;
         m_advances.append(advance);
-#elif PLATFORM(WIN)
+#elif PLATFORM(WIN) || PLATFORM(GDK)
         cairo_glyph_t cairoGlyph;
         cairoGlyph.index = glyph;
         cairoGlyph.y = 0;
index 35ad7b6..d30ee50 100644 (file)
@@ -40,6 +40,8 @@ typedef struct CGContext PlatformGraphicsContext;
 #elif WIN32
 typedef struct HDC__* HDC;
 typedef struct _cairo PlatformGraphicsContext;
+#elif PLATFORM(GDK)
+typedef struct _cairo PlatformGraphicsContext;
 #else
 typedef void PlatformGraphicsContext;
 #endif
index e3cdc8d..31df8b5 100644 (file)
@@ -40,6 +40,11 @@ typedef unsigned    WPARAM;
 typedef long        LPARAM;
 #endif
 
+#if PLATFORM(GDK)
+typedef union _GdkEvent GdkEvent;
+#endif
+
+
 namespace WebCore {
 
     class PlatformKeyboardEvent {
@@ -64,6 +69,10 @@ namespace WebCore {
         PlatformKeyboardEvent(HWND, WPARAM, LPARAM);
 #endif
 
+#if PLATFORM(GDK)
+        PlatformKeyboardEvent(GdkEvent*);
+#endif
+
     private:
         String m_text;
         String m_unmodifiedText;
index 8ae285e..15d264b 100644 (file)
@@ -42,6 +42,10 @@ typedef unsigned WPARAM;
 typedef long LPARAM;
 #endif
 
+#if PLATFORM(GDK)
+typedef union _GdkEvent GdkEvent;
+#endif
+
 namespace WebCore {
 
     // These button numbers match the one used in the DOM API.
@@ -75,6 +79,9 @@ namespace WebCore {
 #if WIN32
         PlatformMouseEvent(HWND, WPARAM, LPARAM, int clickCount);
 #endif
+#if PLATFORM(GDK) 
+        PlatformMouseEvent(GdkEvent*);
+#endif
 
     private:
         IntPoint m_position;
index b8b0b3a..027229e 100644 (file)
@@ -36,6 +36,10 @@ class NSEvent;
 #endif
 #endif
 
+#if PLATFORM(GDK)
+typedef union _GdkEvent GdkEvent;
+#endif
+
 namespace WebCore {
 
     class PlatformWheelEvent {
@@ -62,6 +66,10 @@ namespace WebCore {
         PlatformWheelEvent(NSEvent*);
 #endif
 
+#if PLATFORM(GDK)
+        PlatformWheelEvent(GdkEvent*);
+#endif
+
     private:
         IntPoint m_position;
         IntPoint m_globalPosition;
index a712bbd..10eda43 100644 (file)
@@ -86,6 +86,20 @@ namespace WebCore {
         class ScrollViewPrivate;
         ScrollViewPrivate* m_data;
 #endif
+
+#if  PLATFORM(GDK)
+        void updateView(const IntRect&, bool now = false);
+        virtual void setDrawable(GdkDrawable* drawable);
+        virtual void setFrameGeometry(const IntRect&);
+        ScrollView();
+        ~ScrollView();
+    private:
+        void updateScrollBars();
+        IntSize maximumScroll() const;
+        int updateScrollInfo(short type, int current, int max, int pageSize);
+        class ScrollViewPrivate;
+        ScrollViewPrivate* m_data;
+#endif
     };
 
 }
index e408403..bfaae60 100644 (file)
@@ -89,6 +89,10 @@ public:
     friend LRESULT __stdcall TransferJobWndProc(HWND, unsigned message, WPARAM, LPARAM);
 #endif
 
+#if PLATFORM(GDK)
+    TransferJobInternal * getInternal() { return d;}
+#endif
+
     void cancel();
     
     TransferJobClient* client() const;
index d6b6896..a9b4f20 100644 (file)
 typedef void* HANDLE;
 #endif
 
+#if PLATFORM(GDK)
+typedef void CURL;
+#endif
+
 // The allocations and releases in TransferJobInternal are
 // Cocoa-exception-free (either simple Foundation classes or
 // KWQResourceLoader which avoids doing work in dealloc).
@@ -67,6 +71,9 @@ namespace WebCore {
             , m_formDataLength(0)
             , m_bytesRemainingToWrite(0)
 #endif
+#if PLATFORM(GDK)
+            , m_handle(0)
+#endif
         {
         }
         
@@ -94,6 +101,9 @@ namespace WebCore {
             , m_formDataLength(0)
             , m_bytesRemainingToWrite(0)
 #endif
+#if PLATFORM(GDK)
+            , m_handle(0)
+#endif
         {
         }
 
@@ -128,6 +138,9 @@ namespace WebCore {
         int m_bytesRemainingToWrite;
         DeprecatedString m_postReferrer;
 #endif
+#if PLATFORM(GDK)
+        CURL *m_handle;
+#endif
         };
 
 } // namespace WebCore
index 0058b6c..cec8cb7 100644 (file)
@@ -43,6 +43,10 @@ typedef struct HWND__ *HWND;
 typedef struct HINSTANCE__ *HINSTANCE;
 #endif
 
+#if PLATFORM(GDK)
+typedef struct _GdkDrawable GdkDrawable;
+#endif
+
 namespace WebCore {
 
     class Cursor;
@@ -132,6 +136,12 @@ namespace WebCore {
         static HINSTANCE instanceHandle;
 #endif
 
+#if PLATFORM(GDK)
+      Widget(GdkDrawable* drawable);
+      virtual void setDrawable(GdkDrawable* drawable);
+      GdkDrawable* drawable() const;
+#endif
+
 #if __APPLE__
         Widget(NSView* view);
 
index f52db6f..dafda28 100644 (file)
 #include "Font.h"
 #include "IntPointArray.h"
 #include "IntRect.h"
+#include <cairo.h>
+#include <math.h>
+#if WIN32
 #include <cairo-win32.h>
+#endif
 
 #ifndef M_PI
 #define M_PI 3.14159265358979323846
@@ -72,6 +76,7 @@ GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate()
     cairo_destroy(context);
 }
 
+#if WIN32
 GraphicsContext::GraphicsContext(HDC dc)
     : m_common(createGraphicsContextPrivate())
     , m_data(new GraphicsContextPlatformPrivate)
@@ -79,13 +84,16 @@ GraphicsContext::GraphicsContext(HDC dc)
     cairo_surface_t* surface = cairo_win32_surface_create(dc);
     m_data->context = cairo_create(surface);
 }
+#endif
 
-GraphicsContext::GraphicsContext(cairo_t* context)
+#if PLATFORM(GDK)
+GraphicsContext::GraphicsContext(PlatformGraphicsContext* context)
     : m_common(createGraphicsContextPrivate())
     , m_data(new GraphicsContextPlatformPrivate)
 {
     m_data->context = cairo_reference(context);
 }
+#endif
 
 GraphicsContext::~GraphicsContext()
 {
@@ -414,4 +422,27 @@ void GraphicsContext::drawLineForMisspelling(const IntPoint& point, int width)
     // FIXME: Implement.
 }
 
+FloatRect GraphicsContext::roundToDevicePixels(const FloatRect& frect)
+{
+    FloatRect result;
+    double x =frect.x();
+    double y = frect.y();
+    cairo_t* context = m_data->context;
+    cairo_user_to_device(context,&x,&y);
+    x = round(x);
+    y = round(y);
+    cairo_device_to_user(context,&x,&y);
+    result.setX((float)x);
+    result.setY((float)y);
+    x = frect.width();
+    y = frect.height();
+    cairo_user_to_device_distance(context,&x,&y);
+    x = round(x);
+    y = round(y);
+    cairo_device_to_user_distance(context,&x,&y);
+    result.setWidth((float)x);
+    result.setHeight((float)y);
+    return result; 
+}
+
 }
index 4d0a229..74f7dba 100644 (file)
@@ -47,8 +47,12 @@ Base settings shared by all Bakefile-based ports.
                $(WEBCORE_SOURCES_LOADER)
                $(WEBCORE_SOURCES_PLATFORM)
                $(WEBCORE_SOURCES_IMAGE-DECODERS)
+               $(WEBCORE_SOURCES_BMP)
                $(WEBCORE_SOURCES_GIF)
+               $(WEBCORE_SOURCES_ICO)
+               $(WEBCORE_SOURCES_ICON)
                $(WEBCORE_SOURCES_PNG)
+               $(WEBCORE_SOURCES_XBM)
                $(WEBCORE_SOURCES_ZLIB)
                $(WEBCORE_SOURCES_JPEG)
                $(WEBCORE_SOURCES_CSS)
@@ -60,6 +64,8 @@ Base settings shared by all Bakefile-based ports.
                $(WEBCORE_SOURCES_HTML)
                $(WEBCORE_SOURCES_BINDINGS)
                $(WEBCORE_SOURCES_JS)
+               $(WEBCORE_SOURCES_XPATH)
+               $(WEBCORE_SOURCES_IMPL)
        </set>
 
     <set var="BUILDDIR">obj-$(FORMAT)</set>
@@ -88,25 +94,31 @@ Base settings shared by all Bakefile-based ports.
         <include>$(SRCDIR)/page</include>
         <include>$(SRCDIR)/platform</include>
         <include>$(SRCDIR)/platform/image-decoders</include>
+        <include>$(SRCDIR)/platform/image-decoders/bmp</include>
         <include>$(SRCDIR)/platform/image-decoders/gif</include>
+        <include>$(SRCDIR)/platform/image-decoders/ico</include>
         <include>$(SRCDIR)/platform/image-decoders/jpeg</include>
+        <include>$(SRCDIR)/platform/image-decoders/xbm</include>
         <include>$(SRCDIR)/platform/image-decoders/png</include>
         <include>$(SRCDIR)/platform/image-decoders/zlib</include>
         <include>$(SRCDIR)/rendering</include>
         <include>$(SRCDIR)/xml</include>
         <include>$(SRCDIR)/xpath</include>
         <include>$(SRCDIR)/xpath/impl</include>
+        <include>$(SRCDIR)/kcanvas</include>
+        <include>$(SRCDIR)/kcanvas/device</include>
         
         <sources>$(WEBCORE_BASE_SOURCES)</sources>
 
 
 <!-- HACK ALERT! FIX THESE LATER!! -->
+      <if cond="PLATFORM_MACOSX=='1'">
         <include>$(SRCDIR)/platform/mac</include> <!-- when building on Mac, ExtraCFEncodings.h is needed -->      
+         </if>
 <!-- END HACKS -->
 
         <define>APPLE_CHANGES=1</define>
         <define>KHTML_XSLT=1</define>
-        <define>XPATH_SUPPORT=1</define>
 
         <!-- TODO: is there a Linux-specific platform define? -->
         <if cond="PLATFORM_UNIX=='1'">
@@ -126,9 +138,6 @@ Base settings shared by all Bakefile-based ports.
         <if cond="FORMAT=='gnu'">
             <!-- FIXME: we need proper configure checks -->
             <define>HAVE_FUNC_ISNAN</define>
-            <!-- check for undefined symbols for debugging reasons -->
-            <!-- FIXME: create a debug option and set these accordingly -->
-            <ldflags>-Wl,--no-undefined</ldflags>
         </if>
 
         <if cond="PLATFORM_WIN32=='1'">
index 5103e15..6894af1 100644 (file)
  */
 
 #include "config.h"
-#include "XPathValue.h"
 
 #if XPATH_SUPPORT
 
+#include "XPathValue.h"
 #include "Node.h"
 #include <wtf/MathExtras.h>
+#include <math.h>
 
 namespace WebCore {
 namespace XPath {