[webkit-changes] cvs commit: WebCore/kwq DOM-CSS.mm DOM.mm DOMEvents.mm DOMHTML.mm DOMInternal.mm DOMUtility.mm DOMViews.mm KWQAccObject.mm KWQAccObjectCache.mm KWQApplication.mm KWQArrayImpl.h KWQArrayImpl.mm KWQBuffer.mm KWQButton.mm KWQCString.mm KWQCharsets.mm KWQClipboard.mm KWQCollection.mm KWQColor.mm KWQComboBox.mm KWQCursor.mm KWQDateTime.mm KWQDictImpl.mm KWQEditCommand.mm KWQEvent.mm KWQExceptions.mm KWQFile.mm KWQFileButton.mm KWQFont.mm KWQFontFamily.h KWQFontFamily.mm KWQFontMetrics.mm KWQFormData.mm KWQFrame.mm KWQGlobal.mm KWQGuardedPtr.mm KWQKCharsets.mm KWQKConfigBase.mm KWQKCookieJar.mm KWQKCursor.mm KWQKGlobal.mm KWQKGlobalSettings.mm KWQKHTMLFactory.mm KWQKHTMLPart.cpp KWQKHTMLPart.mm KWQKHTMLPartBrowserExtension.mm KWQKHTMLView.mm KWQKHistoryProvider.mm KWQKJavaAppletWidget.mm KWQKJob.mm KWQKJobClasses.mm KWQKLocale.mm KWQKPartsBrowserInterface.mm KWQKPartsEvent.mm KWQKPartsPart.mm KWQKSSLKeyGen.mm KWQKStandardDirs.mm KWQKStringHandler.mm KWQKURL.mm KWQKWin.mm K WQKWinModule.mm KWQLabel.mm KWQLineEdit.mm KWQListBox.mm KWQListImpl.mm KWQLoader.mm KWQMapImpl.h KWQMapImpl.mm KWQMovie.mm KWQObject.mm KWQPageState.mm KWQPaintDeviceMetrics.mm KWQPainter.mm KWQPalette.mm KWQPen.mm KWQPixmap.mm KWQPoint.mm KWQPointArray.mm KWQPtrDictImpl.mm KWQPushButton.mm KWQRect.mm KWQRegExp.mm KWQRegion.mm KWQRenderTreeDebug.cpp KWQResourceLoader.mm KWQScrollBar.mm KWQScrollView.mm KWQSignal.mm KWQSignalStubs.mm KWQSize.mm KWQSlider.mm KWQSlot.mm KWQString.h KWQString.mm KWQStringList.mm KWQStyle.mm KWQTextArea.mm KWQTextCodec.mm KWQTextEdit.mm KWQTextField.mm KWQTextStream.mm KWQTextUtilities.mm KWQTimer.mm KWQValueListImpl.h KWQValueListImpl.mm KWQVariant.mm KWQVectorImpl.mm KWQWMatrix.mm KWQWidget.mm KWQWindowWidget.mm WebCoreBridge.mm WebCoreCache.mm WebCoreEncodings.mm WebCoreJavaScript.mm WebCoreScriptDebugger.mm WebCoreSettings.mm WebCoreTextRendererFactory.mm can-convert.mm

Maciej mjs at opensource.apple.com
Mon Oct 3 14:13:36 PDT 2005


mjs         05/10/03 14:13:35

  Modified:    .        ChangeLog JavaScriptCorePrefix.h
               JavaScriptCore.xcodeproj project.pbxproj
               bindings NP_jsobject.cpp npruntime.cpp runtime.cpp
                        runtime_array.cpp runtime_method.cpp
                        runtime_object.cpp runtime_root.cpp
                        testbindings.cpp testbindings.mm
               bindings/c c_class.cpp c_instance.cpp c_runtime.cpp
                        c_utility.cpp
               bindings/jni jni_class.cpp jni_instance.cpp jni_jsobject.cpp
                        jni_objc.mm jni_runtime.cpp jni_utility.cpp
               bindings/objc WebScriptObject.mm objc_class.mm
                        objc_instance.mm objc_runtime.mm objc_utility.mm
               kjs      array_object.cpp bool_object.cpp collector.cpp
                        config.h debugger.cpp error_object.cpp fpconst.cpp
                        function.cpp function_object.cpp identifier.cpp
                        internal.cpp interpreter.cpp lexer.cpp list.cpp
                        lookup.cpp math_object.cpp nodes.cpp nodes.h
                        nodes2string.cpp number_object.cpp object.cpp
                        object_object.cpp operations.cpp property_map.cpp
                        property_slot.cpp protected_values.cpp
                        reference.cpp reference_list.cpp regexp.cpp
                        regexp_object.cpp scope_chain.cpp scope_chain.h
                        string_object.cpp testkjs.cpp ustring.h value.cpp
               kxmlcore Assertions.mm FastMalloc.cpp FastMalloc.h
                        HashTable.cpp TCSpinLock.h TCSystemAlloc.cpp
               .        ChangeLog WebCorePrefix.h
               WebCore.xcodeproj project.pbxproj
               khtml    khtml_events.cpp khtml_part.cpp khtmlview.cpp
               khtml/css css_base.cpp css_base.h css_computedstyle.cpp
                        css_ruleimpl.cpp css_stylesheetimpl.cpp
                        css_valueimpl.cpp css_valueimpl.h csshelper.cpp
                        cssparser.cpp cssstyleselector.cpp
                        cssstyleselector.h parser.y
               khtml/dom dom2_events.cpp dom2_traversal.cpp dom_misc.cpp
                        dom_string.cpp
               khtml/ecma domparser.cpp kjs_binding.cpp kjs_css.cpp
                        kjs_dom.cpp kjs_events.cpp kjs_html.cpp
                        kjs_navigator.cpp kjs_proxy.cpp kjs_range.cpp
                        kjs_traversal.cpp kjs_views.cpp kjs_window.cpp
                        xmlhttprequest.cpp xmlserializer.cpp
               khtml/editing SelectionController.cpp
                        append_node_command.cpp apply_style_command.cpp
                        break_blockquote_command.cpp
                        composite_edit_command.cpp
                        delete_from_text_node_command.cpp
                        delete_selection_command.cpp edit_command.cpp
                        html_interchange.cpp htmlediting.cpp
                        insert_into_text_node_command.cpp
                        insert_line_break_command.cpp
                        insert_node_before_command.cpp
                        insert_paragraph_separator_command.cpp
                        insert_text_command.cpp join_text_nodes_command.cpp
                        jsediting.cpp markup.cpp
                        merge_identical_elements_command.cpp
                        move_selection_command.cpp
                        rebalance_whitespace_command.cpp
                        remove_css_property_command.cpp
                        remove_node_attribute_command.cpp
                        remove_node_command.cpp
                        remove_node_preserving_children_command.cpp
                        replace_selection_command.cpp
                        set_node_attribute_command.cpp
                        split_element_command.cpp
                        split_text_node_command.cpp
                        split_text_node_containing_element.cpp
                        typing_command.cpp visible_position.cpp
                        visible_range.cpp visible_text.cpp
                        visible_units.cpp
                        wrap_contents_in_dummy_span_command.cpp
               khtml/html html_baseimpl.cpp html_blockimpl.cpp
                        html_canvasimpl.cpp html_documentimpl.cpp
                        html_elementimpl.cpp html_formimpl.cpp
                        html_headimpl.cpp html_imageimpl.cpp
                        html_inlineimpl.cpp html_listimpl.cpp
                        html_miscimpl.cpp html_objectimpl.cpp
                        html_tableimpl.cpp htmlfactory.cpp htmlnames.cpp
                        htmlparser.cpp htmltokenizer.cpp
               khtml/misc arena.cpp arena.h decoder.cpp formdata.cpp
                        helper.cpp loader.cpp stringit.cpp
               khtml/rendering bidi.cpp break_lines.cpp font.cpp
                        render_arena.cpp render_block.cpp render_box.cpp
                        render_br.cpp render_canvas.cpp
                        render_canvasimage.cpp render_container.cpp
                        render_flexbox.cpp render_flow.cpp render_form.cpp
                        render_frames.cpp render_image.cpp
                        render_inline.cpp render_layer.cpp render_line.cpp
                        render_list.cpp render_object.cpp
                        render_replaced.cpp render_style.cpp render_style.h
                        render_table.cpp render_text.cpp render_theme.cpp
                        render_theme_mac.mm table_layout.cpp
               khtml/xbl xbl_binding.cpp xbl_binding_manager.cpp
                        xbl_docimpl.cpp xbl_protobinding.cpp
                        xbl_protohandler.cpp xbl_protoimplementation.cpp
                        xbl_tokenizer.cpp
               khtml/xml EventNames.cpp dom2_eventsimpl.cpp
                        dom2_eventsimpl.h dom2_rangeimpl.cpp
                        dom2_rangeimpl.h dom2_traversalimpl.cpp
                        dom2_traversalimpl.h dom2_viewsimpl.cpp
                        dom2_viewsimpl.h dom_atomicstring.cpp
                        dom_docimpl.cpp dom_docimpl.h dom_elementimpl.cpp
                        dom_elementimpl.h dom_nodeimpl.cpp dom_nodeimpl.h
                        dom_position.cpp dom_qname.cpp dom_stringimpl.cpp
                        dom_stringimpl.h dom_textimpl.cpp dom_xmlimpl.cpp
                        xml_tokenizer.cpp
               khtml/xsl xsl_stylesheetimpl.cpp xslt_processorimpl.cpp
               kwq      DOM-CSS.mm DOM.mm DOMEvents.mm DOMHTML.mm
                        DOMInternal.mm DOMUtility.mm DOMViews.mm
                        KWQAccObject.mm KWQAccObjectCache.mm
                        KWQApplication.mm KWQArrayImpl.h KWQArrayImpl.mm
                        KWQBuffer.mm KWQButton.mm KWQCString.mm
                        KWQCharsets.mm KWQClipboard.mm KWQCollection.mm
                        KWQColor.mm KWQComboBox.mm KWQCursor.mm
                        KWQDateTime.mm KWQDictImpl.mm KWQEditCommand.mm
                        KWQEvent.mm KWQExceptions.mm KWQFile.mm
                        KWQFileButton.mm KWQFont.mm KWQFontFamily.h
                        KWQFontFamily.mm KWQFontMetrics.mm KWQFormData.mm
                        KWQFrame.mm KWQGlobal.mm KWQGuardedPtr.mm
                        KWQKCharsets.mm KWQKConfigBase.mm KWQKCookieJar.mm
                        KWQKCursor.mm KWQKGlobal.mm KWQKGlobalSettings.mm
                        KWQKHTMLFactory.mm KWQKHTMLPart.cpp KWQKHTMLPart.mm
                        KWQKHTMLPartBrowserExtension.mm KWQKHTMLView.mm
                        KWQKHistoryProvider.mm KWQKJavaAppletWidget.mm
                        KWQKJob.mm KWQKJobClasses.mm KWQKLocale.mm
                        KWQKPartsBrowserInterface.mm KWQKPartsEvent.mm
                        KWQKPartsPart.mm KWQKSSLKeyGen.mm
                        KWQKStandardDirs.mm KWQKStringHandler.mm KWQKURL.mm
                        KWQKWin.mm KWQKWinModule.mm KWQLabel.mm
                        KWQLineEdit.mm KWQListBox.mm KWQListImpl.mm
                        KWQLoader.mm KWQMapImpl.h KWQMapImpl.mm KWQMovie.mm
                        KWQObject.mm KWQPageState.mm
                        KWQPaintDeviceMetrics.mm KWQPainter.mm
                        KWQPalette.mm KWQPen.mm KWQPixmap.mm KWQPoint.mm
                        KWQPointArray.mm KWQPtrDictImpl.mm KWQPushButton.mm
                        KWQRect.mm KWQRegExp.mm KWQRegion.mm
                        KWQRenderTreeDebug.cpp KWQResourceLoader.mm
                        KWQScrollBar.mm KWQScrollView.mm KWQSignal.mm
                        KWQSignalStubs.mm KWQSize.mm KWQSlider.mm
                        KWQSlot.mm KWQString.h KWQString.mm
                        KWQStringList.mm KWQStyle.mm KWQTextArea.mm
                        KWQTextCodec.mm KWQTextEdit.mm KWQTextField.mm
                        KWQTextStream.mm KWQTextUtilities.mm KWQTimer.mm
                        KWQValueListImpl.h KWQValueListImpl.mm
                        KWQVariant.mm KWQVectorImpl.mm KWQWMatrix.mm
                        KWQWidget.mm KWQWindowWidget.mm WebCoreBridge.mm
                        WebCoreCache.mm WebCoreEncodings.mm
                        WebCoreJavaScript.mm WebCoreScriptDebugger.mm
                        WebCoreSettings.mm WebCoreTextRendererFactory.mm
                        can-convert.mm
  Added:       kxmlcore FastMallocInternal.h
  Removed:     ForwardingHeaders config.h
  Log:
  JavaScriptCore:
  
          Reviewed by Darin.
  
  	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
  	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
  
  	A number of optimizations to the new threadsafe malloc that make it actually as fast
  	as dlmalloc (I measured wrong before) and as memory-efficient as the system malloc.
  
  	- use fastMalloc for everything - it now gets applied to all new/delete allocations
  	via a private inline operator new that is now included into every file via config.h.
  
  	- tweaked some of the numeric parameters for size classes and amount of wasted memory
  	allowed per allocation - this saves on memory use and consequently improves speed.
  
  	- so long as the allocator is not being used on background threads, get the per-thread
  	cache from a global variable instead of from pthread_getspecific, since the latter is slow.
  
  	- inline more functions, and force the ones GCC refuses to inline with
  	attribute(always_inline), nearly all of these have one call site so inlining them has
  	to be a win.
  
  	- use some tricks to calculate allocation size more efficiently and fewer times for small
  	allocations, to avoid hitting the huge size table array.
  
  	- avoid hitting the per-thread cache on code paths that don't need it.
  
  	- implement inline assembly version of spinlock for PowerPC (was already done for x86)
  
          * bindings/NP_jsobject.cpp:
          * bindings/c/c_class.cpp:
          * bindings/c/c_instance.cpp:
          * bindings/c/c_runtime.cpp:
          * bindings/c/c_utility.cpp:
          * bindings/jni/jni_class.cpp:
          * bindings/jni/jni_instance.cpp:
          * bindings/jni/jni_jsobject.cpp:
          * bindings/jni/jni_objc.mm:
          * bindings/jni/jni_runtime.cpp:
          * bindings/jni/jni_utility.cpp:
          * bindings/npruntime.cpp:
          * bindings/objc/WebScriptObject.mm:
          * bindings/objc/objc_class.mm:
          * bindings/objc/objc_instance.mm:
          * bindings/objc/objc_runtime.mm:
          * bindings/objc/objc_utility.mm:
          * bindings/runtime.cpp:
          * bindings/runtime_array.cpp:
          * bindings/runtime_method.cpp:
          * bindings/runtime_object.cpp:
          * bindings/runtime_root.cpp:
          * bindings/testbindings.cpp:
          * bindings/testbindings.mm:
          * kjs/array_object.cpp:
          (ArrayInstanceImp::ArrayInstanceImp):
          (ArrayInstanceImp::~ArrayInstanceImp):
          (ArrayInstanceImp::resizeStorage):
          * kjs/bool_object.cpp:
          * kjs/collector.cpp:
          (KJS::Collector::registerThread):
          * kjs/config.h:
          * kjs/debugger.cpp:
          * kjs/error_object.cpp:
          * kjs/function.cpp:
          * kjs/function_object.cpp:
          * kjs/identifier.cpp:
          (KJS::Identifier::rehash):
          * kjs/internal.cpp:
          (KJS::Parser::saveNewNode):
          (KJS::clearNewNodes):
          * kjs/interpreter.cpp:
          * kjs/lexer.cpp:
          (Lexer::doneParsing):
          (Lexer::makeIdentifier):
          (Lexer::makeUString):
          * kjs/list.cpp:
          * kjs/math_object.cpp:
          * kjs/nodes.cpp:
          * kjs/nodes.h:
          * kjs/nodes2string.cpp:
          * kjs/number_object.cpp:
          (integer_part_noexp):
          (char_sequence):
          * kjs/object.cpp:
          * kjs/object_object.cpp:
          * kjs/property_map.cpp:
          * kjs/property_slot.cpp:
          * kjs/protected_values.cpp:
          (KJS::ProtectedValues::rehash):
          * kjs/reference.cpp:
          * kjs/reference_list.cpp:
          * kjs/regexp.cpp:
          * kjs/regexp_object.cpp:
          * kjs/scope_chain.cpp:
          * kjs/scope_chain.h:
          * kjs/string_object.cpp:
          * kjs/testkjs.cpp:
          * kjs/ustring.h:
          * kjs/value.cpp:
          * kxmlcore/Assertions.mm:
          * kxmlcore/FastMalloc.cpp:
          (KXMLCore::InitSizeClasses):
          (KXMLCore::DLL_IsEmpty):
          (KXMLCore::DLL_Prepend):
          (KXMLCore::TCMalloc_Central_FreeList::Insert):
          (KXMLCore::TCMalloc_Central_FreeList::Remove):
          (KXMLCore::TCMalloc_Central_FreeList::Populate):
          (KXMLCore::TCMalloc_ThreadCache::Allocate):
          (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache):
          (KXMLCore::fastMallocRegisterThread):
          (KXMLCore::TCMalloc_ThreadCache::GetCache):
          (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent):
          (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary):
          (KXMLCore::do_malloc):
          (KXMLCore::do_free):
          (KXMLCore::realloc):
          * kxmlcore/FastMalloc.h:
          (operator new):
          (operator delete):
          (operator new[]):
          (operator delete[]):
          * kxmlcore/HashTable.cpp:
          * kxmlcore/TCSpinLock.h:
          (TCMalloc_SpinLock::Lock):
          (TCMalloc_SpinLock::Unlock):
          (TCMalloc_SlowLock):
          * kxmlcore/TCSystemAlloc.cpp:
  
  WebCore:
  
          Reviewed by Darin.
  
  	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
  	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
  
  	- use fastMalloc for everything - it now gets applied to all new/delete allocations
          via a private inline operator new that is now included into every file via config.h
  
          * WebCore.xcodeproj/project.pbxproj:
          * WebCorePrefix.h:
          * khtml/css/css_base.cpp:
          * khtml/css/css_base.h:
          * khtml/css/css_computedstyle.cpp:
          * khtml/css/css_ruleimpl.cpp:
          * khtml/css/css_stylesheetimpl.cpp:
          * khtml/css/css_valueimpl.cpp:
          * khtml/css/css_valueimpl.h:
          * khtml/css/csshelper.cpp:
          * khtml/css/cssparser.cpp:
          (ValueList::ValueList):
          (ValueList::~ValueList):
          (ValueList::addValue):
          (CSSParser::CSSParser):
          (CSSParser::~CSSParser):
          (CSSParser::setupParser):
          (CSSParser::addProperty):
          * khtml/css/cssstyleselector.cpp:
          * khtml/css/cssstyleselector.h:
          * khtml/dom/dom2_events.cpp:
          * khtml/dom/dom2_traversal.cpp:
          * khtml/dom/dom_misc.cpp:
          * khtml/dom/dom_string.cpp:
          * khtml/ecma/domparser.cpp:
          * khtml/ecma/kjs_binding.cpp:
          * khtml/ecma/kjs_css.cpp:
          * khtml/ecma/kjs_dom.cpp:
          * khtml/ecma/kjs_events.cpp:
          * khtml/ecma/kjs_html.cpp:
          (KJS::KJS::Context2DFunction::callAsFunction):
          (KJS::Gradient::~Gradient):
          (KJS::Gradient::addColorStop):
          (KJS::Gradient::colorStops):
          * khtml/ecma/kjs_navigator.cpp:
          * khtml/ecma/kjs_proxy.cpp:
          * khtml/ecma/kjs_range.cpp:
          * khtml/ecma/kjs_traversal.cpp:
          * khtml/ecma/kjs_views.cpp:
          * khtml/ecma/kjs_window.cpp:
          * khtml/ecma/xmlhttprequest.cpp:
          * khtml/ecma/xmlserializer.cpp:
          * khtml/editing/SelectionController.cpp:
          * khtml/editing/append_node_command.cpp:
          * khtml/editing/apply_style_command.cpp:
          * khtml/editing/break_blockquote_command.cpp:
          * khtml/editing/composite_edit_command.cpp:
          * khtml/editing/delete_from_text_node_command.cpp:
          * khtml/editing/delete_selection_command.cpp:
          * khtml/editing/edit_command.cpp:
          * khtml/editing/html_interchange.cpp:
          * khtml/editing/htmlediting.cpp:
          * khtml/editing/insert_into_text_node_command.cpp:
          * khtml/editing/insert_line_break_command.cpp:
          * khtml/editing/insert_node_before_command.cpp:
          * khtml/editing/insert_paragraph_separator_command.cpp:
          * khtml/editing/insert_text_command.cpp:
          * khtml/editing/join_text_nodes_command.cpp:
          * khtml/editing/jsediting.cpp:
          * khtml/editing/markup.cpp:
          * khtml/editing/merge_identical_elements_command.cpp:
          * khtml/editing/move_selection_command.cpp:
          * khtml/editing/rebalance_whitespace_command.cpp:
          * khtml/editing/remove_css_property_command.cpp:
          * khtml/editing/remove_node_attribute_command.cpp:
          * khtml/editing/remove_node_command.cpp:
          * khtml/editing/remove_node_preserving_children_command.cpp:
          * khtml/editing/replace_selection_command.cpp:
          * khtml/editing/set_node_attribute_command.cpp:
          * khtml/editing/split_element_command.cpp:
          * khtml/editing/split_text_node_command.cpp:
          * khtml/editing/split_text_node_containing_element.cpp:
          * khtml/editing/typing_command.cpp:
          * khtml/editing/visible_position.cpp:
          * khtml/editing/visible_range.cpp:
          * khtml/editing/visible_text.cpp:
          (khtml::CircularSearchBuffer::~CircularSearchBuffer):
          (khtml::CircularSearchBuffer::CircularSearchBuffer):
          * khtml/editing/visible_units.cpp:
          * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
          * khtml/html/html_baseimpl.cpp:
          * khtml/html/html_blockimpl.cpp:
          * khtml/html/html_canvasimpl.cpp:
          * khtml/html/html_documentimpl.cpp:
          * khtml/html/html_elementimpl.cpp:
          * khtml/html/html_formimpl.cpp:
          * khtml/html/html_headimpl.cpp:
          * khtml/html/html_imageimpl.cpp:
          * khtml/html/html_inlineimpl.cpp:
          * khtml/html/html_listimpl.cpp:
          * khtml/html/html_miscimpl.cpp:
          * khtml/html/html_objectimpl.cpp:
          * khtml/html/html_tableimpl.cpp:
          * khtml/html/htmlfactory.cpp:
          * khtml/html/htmlnames.cpp:
          * khtml/html/htmlparser.cpp:
          * khtml/html/htmltokenizer.cpp:
          (khtml::HTMLTokenizer::enlargeBuffer):
          (khtml::HTMLTokenizer::enlargeScriptBuffer):
          * khtml/khtml_events.cpp:
          * khtml/khtml_part.cpp:
          * khtml/khtmlview.cpp:
          * khtml/misc/arena.cpp:
          * khtml/misc/arena.h:
          * khtml/misc/decoder.cpp:
          * khtml/misc/formdata.cpp:
          * khtml/misc/helper.cpp:
          * khtml/misc/loader.cpp:
          * khtml/misc/stringit.cpp:
          * khtml/rendering/bidi.cpp:
          * khtml/rendering/break_lines.cpp:
          * khtml/rendering/font.cpp:
          * khtml/rendering/render_arena.cpp:
          * khtml/rendering/render_block.cpp:
          * khtml/rendering/render_box.cpp:
          * khtml/rendering/render_br.cpp:
          * khtml/rendering/render_canvas.cpp:
          * khtml/rendering/render_canvasimage.cpp:
          (RenderCanvasImage::~RenderCanvasImage):
          (RenderCanvasImage::createDrawingContext):
          * khtml/rendering/render_container.cpp:
          * khtml/rendering/render_flexbox.cpp:
          * khtml/rendering/render_flow.cpp:
          * khtml/rendering/render_form.cpp:
          * khtml/rendering/render_frames.cpp:
          * khtml/rendering/render_image.cpp:
          * khtml/rendering/render_inline.cpp:
          * khtml/rendering/render_layer.cpp:
          * khtml/rendering/render_line.cpp:
          * khtml/rendering/render_list.cpp:
          * khtml/rendering/render_object.cpp:
          * khtml/rendering/render_replaced.cpp:
          * khtml/rendering/render_style.cpp:
          * khtml/rendering/render_style.h:
          * khtml/rendering/render_table.cpp:
          * khtml/rendering/render_text.cpp:
          * khtml/rendering/render_theme.cpp:
          * khtml/rendering/render_theme_mac.mm:
          * khtml/rendering/table_layout.cpp:
          * khtml/xbl/xbl_binding.cpp:
          * khtml/xbl/xbl_binding_manager.cpp:
          * khtml/xbl/xbl_docimpl.cpp:
          * khtml/xbl/xbl_protobinding.cpp:
          * khtml/xbl/xbl_protohandler.cpp:
          * khtml/xbl/xbl_protoimplementation.cpp:
          * khtml/xbl/xbl_tokenizer.cpp:
          * khtml/xml/EventNames.cpp:
          * khtml/xml/dom2_eventsimpl.cpp:
          * khtml/xml/dom2_eventsimpl.h:
          * khtml/xml/dom2_rangeimpl.cpp:
          * khtml/xml/dom2_rangeimpl.h:
          * khtml/xml/dom2_traversalimpl.cpp:
          * khtml/xml/dom2_traversalimpl.h:
          * khtml/xml/dom2_viewsimpl.cpp:
          * khtml/xml/dom2_viewsimpl.h:
          * khtml/xml/dom_atomicstring.cpp:
          * khtml/xml/dom_docimpl.cpp:
          * khtml/xml/dom_docimpl.h:
          * khtml/xml/dom_elementimpl.cpp:
          * khtml/xml/dom_elementimpl.h:
          * khtml/xml/dom_nodeimpl.cpp:
          * khtml/xml/dom_nodeimpl.h:
          * khtml/xml/dom_position.cpp:
          * khtml/xml/dom_qname.cpp:
          * khtml/xml/dom_stringimpl.cpp:
          * khtml/xml/dom_stringimpl.h:
          * khtml/xml/dom_textimpl.cpp:
          * khtml/xml/dom_xmlimpl.cpp:
          * khtml/xml/xml_tokenizer.cpp:
          * khtml/xsl/xsl_stylesheetimpl.cpp:
          * khtml/xsl/xslt_processorimpl.cpp:
          * kwq/DOM-CSS.mm:
          * kwq/DOM.mm:
          * kwq/DOMEvents.mm:
          * kwq/DOMHTML.mm:
          * kwq/DOMInternal.mm:
          (DOMString::DOMString):
          * kwq/DOMUtility.mm:
          * kwq/DOMViews.mm:
          * kwq/KWQAccObject.mm:
          * kwq/KWQAccObjectCache.mm:
          * kwq/KWQApplication.mm:
          * kwq/KWQArrayImpl.h:
          * kwq/KWQArrayImpl.mm:
          * kwq/KWQBuffer.mm:
          * kwq/KWQButton.mm:
          * kwq/KWQCString.mm:
          * kwq/KWQCharsets.mm:
          * kwq/KWQClipboard.mm:
          * kwq/KWQCollection.mm:
          * kwq/KWQColor.mm:
          * kwq/KWQComboBox.mm:
          * kwq/KWQCursor.mm:
          * kwq/KWQDateTime.mm:
          * kwq/KWQDictImpl.mm:
          * kwq/KWQEditCommand.mm:
          * kwq/KWQEvent.mm:
          * kwq/KWQExceptions.mm:
          * kwq/KWQFile.mm:
          * kwq/KWQFileButton.mm:
          * kwq/KWQFont.mm:
          * kwq/KWQFontFamily.h:
          * kwq/KWQFontFamily.mm:
          * kwq/KWQFontMetrics.mm:
          * kwq/KWQFormData.mm:
          * kwq/KWQFrame.mm:
          * kwq/KWQGlobal.mm:
          * kwq/KWQGuardedPtr.mm:
          * kwq/KWQKCharsets.mm:
          * kwq/KWQKConfigBase.mm:
          * kwq/KWQKCookieJar.mm:
          * kwq/KWQKCursor.mm:
          * kwq/KWQKGlobal.mm:
          * kwq/KWQKGlobalSettings.mm:
          * kwq/KWQKHTMLFactory.mm:
          * kwq/KWQKHTMLPart.cpp:
          * kwq/KWQKHTMLPart.mm:
          * kwq/KWQKHTMLPartBrowserExtension.mm:
          * kwq/KWQKHTMLView.mm:
          * kwq/KWQKHistoryProvider.mm:
          * kwq/KWQKJavaAppletWidget.mm:
          * kwq/KWQKJob.mm:
          * kwq/KWQKJobClasses.mm:
          * kwq/KWQKLocale.mm:
          * kwq/KWQKPartsBrowserInterface.mm:
          * kwq/KWQKPartsEvent.mm:
          * kwq/KWQKPartsPart.mm:
          * kwq/KWQKSSLKeyGen.mm:
          * kwq/KWQKStandardDirs.mm:
          * kwq/KWQKStringHandler.mm:
          * kwq/KWQKURL.mm:
          (KURL::KURL):
          (KURL::decode_string):
          (KURL::parse):
          (KURL::encode_string):
          (encodeRelativeString):
          * kwq/KWQKWin.mm:
          * kwq/KWQKWinModule.mm:
          * kwq/KWQLabel.mm:
          * kwq/KWQLineEdit.mm:
          * kwq/KWQListBox.mm:
          * kwq/KWQListImpl.mm:
          * kwq/KWQLoader.mm:
          (KWQIsResponseURLEqualToURL):
          * kwq/KWQMapImpl.h:
          * kwq/KWQMapImpl.mm:
          * kwq/KWQMovie.mm:
          * kwq/KWQObject.mm:
          * kwq/KWQPageState.mm:
          * kwq/KWQPaintDeviceMetrics.mm:
          * kwq/KWQPainter.mm:
          * kwq/KWQPalette.mm:
          * kwq/KWQPen.mm:
          * kwq/KWQPixmap.mm:
          * kwq/KWQPoint.mm:
          * kwq/KWQPointArray.mm:
          * kwq/KWQPtrDictImpl.mm:
          * kwq/KWQPushButton.mm:
          * kwq/KWQRect.mm:
          * kwq/KWQRegExp.mm:
          * kwq/KWQRegion.mm:
          * kwq/KWQRenderTreeDebug.cpp:
          * kwq/KWQResourceLoader.mm:
          * kwq/KWQScrollBar.mm:
          * kwq/KWQScrollView.mm:
          * kwq/KWQSignal.mm:
          * kwq/KWQSignalStubs.mm:
          * kwq/KWQSize.mm:
          * kwq/KWQSlider.mm:
          * kwq/KWQSlot.mm:
          * kwq/KWQString.h:
          * kwq/KWQString.mm:
          (ALLOC_CHAR):
          (REALLOC_CHAR):
          (DELETE_CHAR):
          (ALLOC_QCHAR):
          (REALLOC_QCHAR):
          (DELETE_QCHAR):
          (_printQStringAllocationStatistics):
          (allocateHandle):
          (KWQStringData::operator new):
          (KWQStringData::operator delete):
          (freeHandle):
          * kwq/KWQStringList.mm:
          * kwq/KWQStyle.mm:
          * kwq/KWQTextArea.mm:
          * kwq/KWQTextCodec.mm:
          * kwq/KWQTextEdit.mm:
          * kwq/KWQTextField.mm:
          * kwq/KWQTextStream.mm:
          * kwq/KWQTextUtilities.mm:
          * kwq/KWQTimer.mm:
          * kwq/KWQValueListImpl.h:
          * kwq/KWQValueListImpl.mm:
          * kwq/KWQVariant.mm:
          * kwq/KWQVectorImpl.mm:
          (KWQVectorImpl::KWQVectorImpl):
          (KWQVectorImpl::~KWQVectorImpl):
          (KWQVectorImpl::clear):
          (KWQVectorImpl::resize):
          (KWQVectorImpl::assign):
          * kwq/KWQWMatrix.mm:
          * kwq/KWQWidget.mm:
          * kwq/KWQWindowWidget.mm:
          * kwq/WebCoreBridge.mm:
          * kwq/WebCoreCache.mm:
          * kwq/WebCoreEncodings.mm:
          * kwq/WebCoreJavaScript.mm:
          * kwq/WebCoreScriptDebugger.mm:
          * kwq/WebCoreSettings.mm:
          * kwq/WebCoreTextRendererFactory.mm:
          * kwq/can-convert.mm:
  
  Revision  Changes    Path
  1.849     +129 -0    JavaScriptCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/ChangeLog,v
  retrieving revision 1.848
  retrieving revision 1.849
  diff -u -r1.848 -r1.849
  --- ChangeLog	30 Sep 2005 16:16:12 -0000	1.848
  +++ ChangeLog	3 Oct 2005 21:11:38 -0000	1.849
  @@ -1,3 +1,132 @@
  +2005-10-02  Maciej Stachowiak  <mjs at apple.com>
  +
  +        Reviewed by Darin.
  +
  +	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
  +	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
  +	
  +	A number of optimizations to the new threadsafe malloc that make it actually as fast
  +	as dlmalloc (I measured wrong before) and as memory-efficient as the system malloc.
  +
  +	- use fastMalloc for everything - it now gets applied to all new/delete allocations
  +	via a private inline operator new that is now included into every file via config.h.
  +
  +	- tweaked some of the numeric parameters for size classes and amount of wasted memory
  +	allowed per allocation - this saves on memory use and consequently improves speed.
  +
  +	- so long as the allocator is not being used on background threads, get the per-thread
  +	cache from a global variable instead of from pthread_getspecific, since the latter is slow.
  +
  +	- inline more functions, and force the ones GCC refuses to inline with 
  +	attribute(always_inline), nearly all of these have one call site so inlining them has 
  +	to be a win.
  +
  +	- use some tricks to calculate allocation size more efficiently and fewer times for small
  +	allocations, to avoid hitting the huge size table array.
  +
  +	- avoid hitting the per-thread cache on code paths that don't need it.
  +
  +	- implement inline assembly version of spinlock for PowerPC (was already done for x86)
  +
  +        * bindings/NP_jsobject.cpp:
  +        * bindings/c/c_class.cpp:
  +        * bindings/c/c_instance.cpp:
  +        * bindings/c/c_runtime.cpp:
  +        * bindings/c/c_utility.cpp:
  +        * bindings/jni/jni_class.cpp:
  +        * bindings/jni/jni_instance.cpp:
  +        * bindings/jni/jni_jsobject.cpp:
  +        * bindings/jni/jni_objc.mm:
  +        * bindings/jni/jni_runtime.cpp:
  +        * bindings/jni/jni_utility.cpp:
  +        * bindings/npruntime.cpp:
  +        * bindings/objc/WebScriptObject.mm:
  +        * bindings/objc/objc_class.mm:
  +        * bindings/objc/objc_instance.mm:
  +        * bindings/objc/objc_runtime.mm:
  +        * bindings/objc/objc_utility.mm:
  +        * bindings/runtime.cpp:
  +        * bindings/runtime_array.cpp:
  +        * bindings/runtime_method.cpp:
  +        * bindings/runtime_object.cpp:
  +        * bindings/runtime_root.cpp:
  +        * bindings/testbindings.cpp:
  +        * bindings/testbindings.mm:
  +        * kjs/array_object.cpp:
  +        (ArrayInstanceImp::ArrayInstanceImp):
  +        (ArrayInstanceImp::~ArrayInstanceImp):
  +        (ArrayInstanceImp::resizeStorage):
  +        * kjs/bool_object.cpp:
  +        * kjs/collector.cpp:
  +        (KJS::Collector::registerThread):
  +        * kjs/config.h:
  +        * kjs/debugger.cpp:
  +        * kjs/error_object.cpp:
  +        * kjs/function.cpp:
  +        * kjs/function_object.cpp:
  +        * kjs/identifier.cpp:
  +        (KJS::Identifier::rehash):
  +        * kjs/internal.cpp:
  +        (KJS::Parser::saveNewNode):
  +        (KJS::clearNewNodes):
  +        * kjs/interpreter.cpp:
  +        * kjs/lexer.cpp:
  +        (Lexer::doneParsing):
  +        (Lexer::makeIdentifier):
  +        (Lexer::makeUString):
  +        * kjs/list.cpp:
  +        * kjs/math_object.cpp:
  +        * kjs/nodes.cpp:
  +        * kjs/nodes.h:
  +        * kjs/nodes2string.cpp:
  +        * kjs/number_object.cpp:
  +        (integer_part_noexp):
  +        (char_sequence):
  +        * kjs/object.cpp:
  +        * kjs/object_object.cpp:
  +        * kjs/property_map.cpp:
  +        * kjs/property_slot.cpp:
  +        * kjs/protected_values.cpp:
  +        (KJS::ProtectedValues::rehash):
  +        * kjs/reference.cpp:
  +        * kjs/reference_list.cpp:
  +        * kjs/regexp.cpp:
  +        * kjs/regexp_object.cpp:
  +        * kjs/scope_chain.cpp:
  +        * kjs/scope_chain.h:
  +        * kjs/string_object.cpp:
  +        * kjs/testkjs.cpp:
  +        * kjs/ustring.h:
  +        * kjs/value.cpp:
  +        * kxmlcore/Assertions.mm:
  +        * kxmlcore/FastMalloc.cpp:
  +        (KXMLCore::InitSizeClasses):
  +        (KXMLCore::DLL_IsEmpty):
  +        (KXMLCore::DLL_Prepend):
  +        (KXMLCore::TCMalloc_Central_FreeList::Insert):
  +        (KXMLCore::TCMalloc_Central_FreeList::Remove):
  +        (KXMLCore::TCMalloc_Central_FreeList::Populate):
  +        (KXMLCore::TCMalloc_ThreadCache::Allocate):
  +        (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache):
  +        (KXMLCore::fastMallocRegisterThread):
  +        (KXMLCore::TCMalloc_ThreadCache::GetCache):
  +        (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent):
  +        (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary):
  +        (KXMLCore::do_malloc):
  +        (KXMLCore::do_free):
  +        (KXMLCore::realloc):
  +        * kxmlcore/FastMalloc.h:
  +        (operator new):
  +        (operator delete):
  +        (operator new[]):
  +        (operator delete[]):
  +        * kxmlcore/HashTable.cpp:
  +        * kxmlcore/TCSpinLock.h:
  +        (TCMalloc_SpinLock::Lock):
  +        (TCMalloc_SpinLock::Unlock):
  +        (TCMalloc_SlowLock):
  +        * kxmlcore/TCSystemAlloc.cpp:
  +
   2005-09-30  Geoffrey Garen  <ggaren at apple.com>
   
           - Second cut at fixing <rdar://problem/4275206> Denver Regression: Seed: 
  
  
  
  1.6       +4 -2      JavaScriptCore/JavaScriptCorePrefix.h
  
  Index: JavaScriptCorePrefix.h
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/JavaScriptCorePrefix.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- JavaScriptCorePrefix.h	8 Feb 2004 21:13:06 -0000	1.5
  +++ JavaScriptCorePrefix.h	3 Oct 2005 21:11:39 -0000	1.6
  @@ -4,8 +4,6 @@
   #define NULL ((void *)0)
   #endif
   
  -#include <config.h>
  -
   #include <assert.h>
   #include <ctype.h>
   #include <float.h>
  @@ -42,4 +40,8 @@
   #include <list>
   #include <typeinfo>
   
  +#ifdef __cplusplus
  +#define new ("if you use new/delete make sure to include config.h at the top of the file"()) 
  +#define delete ("if you use new/delete make sure to include config.h at the top of the file"()) 
  +#endif
   #endif
  
  
  
  1.17      +4 -0      JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj
  
  Index: project.pbxproj
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/JavaScriptCore.xcodeproj/project.pbxproj,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- project.pbxproj	29 Sep 2005 07:24:16 -0000	1.16
  +++ project.pbxproj	3 Oct 2005 21:11:41 -0000	1.17
  @@ -44,6 +44,7 @@
   		65621E6E089E859700760F35 /* property_slot.h in Headers */ = {isa = PBXBuildFile; fileRef = 65621E6C089E859700760F35 /* property_slot.h */; settings = {ATTRIBUTES = (Private, ); }; };
   		65621E6F089E85D300760F35 /* property_slot.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65621E6B089E859700760F35 /* property_slot.cpp */; };
   		65621E70089E85D300760F35 /* property_slot.h in Headers */ = {isa = PBXBuildFile; fileRef = 65621E6C089E859700760F35 /* property_slot.h */; settings = {ATTRIBUTES = (Private, ); }; };
  +		65D7D19C08F10B5B0015ABD8 /* FastMallocInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 65D7D19B08F10B5B0015ABD8 /* FastMallocInternal.h */; };
   		65DFC93008EA173A00F7300B /* HashFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = 65DFC92A08EA173A00F7300B /* HashFunctions.h */; settings = {ATTRIBUTES = (Private, ); }; };
   		65DFC93108EA173A00F7300B /* HashMap.h in Headers */ = {isa = PBXBuildFile; fileRef = 65DFC92B08EA173A00F7300B /* HashMap.h */; settings = {ATTRIBUTES = (Private, ); }; };
   		65DFC93208EA173A00F7300B /* HashSet.h in Headers */ = {isa = PBXBuildFile; fileRef = 65DFC92C08EA173A00F7300B /* HashSet.h */; settings = {ATTRIBUTES = (Private, ); }; };
  @@ -515,6 +516,7 @@
   		65621E6B089E859700760F35 /* property_slot.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; path = property_slot.cpp; sourceTree = "<group>"; };
   		65621E6C089E859700760F35 /* property_slot.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = property_slot.h; sourceTree = "<group>"; };
   		65C02FBB0637462A003E7EE6 /* protect.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = protect.h; sourceTree = "<group>"; };
  +		65D7D19B08F10B5B0015ABD8 /* FastMallocInternal.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = FastMallocInternal.h; sourceTree = "<group>"; };
   		65DFC92A08EA173A00F7300B /* HashFunctions.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HashFunctions.h; sourceTree = "<group>"; };
   		65DFC92B08EA173A00F7300B /* HashMap.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HashMap.h; sourceTree = "<group>"; };
   		65DFC92C08EA173A00F7300B /* HashSet.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = HashSet.h; sourceTree = "<group>"; };
  @@ -847,6 +849,7 @@
   		65162EF108E6A21C007556CD /* kxmlcore */ = {
   			isa = PBXGroup;
   			children = (
  +				65D7D19B08F10B5B0015ABD8 /* FastMallocInternal.h */,
   				6557E8F708EA5D4D0049CDFC /* HashMapPtrSpec.h */,
   				65DFC92A08EA173A00F7300B /* HashFunctions.h */,
   				65DFC92B08EA173A00F7300B /* HashMap.h */,
  @@ -1029,6 +1032,7 @@
   				65DFC93408EA173A00F7300B /* HashTable.h in Headers */,
   				65DFC93508EA173A00F7300B /* HashTraits.h in Headers */,
   				6557E8F808EA5D4D0049CDFC /* HashMapPtrSpec.h in Headers */,
  +				65D7D19C08F10B5B0015ABD8 /* FastMallocInternal.h in Headers */,
   			);
   			runOnlyForDeploymentPostprocessing = 0;
   		};
  
  
  
  1.24      +1 -0      JavaScriptCore/bindings/NP_jsobject.cpp
  
  Index: NP_jsobject.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/NP_jsobject.cpp,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- NP_jsobject.cpp	19 Sep 2005 06:57:26 -0000	1.23
  +++ NP_jsobject.cpp	3 Oct 2005 21:11:41 -0000	1.24
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <NP_jsobject.h>
   
   #include <JavaScriptCore/npruntime.h>
  
  
  
  1.20      +1 -0      JavaScriptCore/bindings/npruntime.cpp
  
  Index: npruntime.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/npruntime.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- npruntime.cpp	16 Aug 2005 22:01:29 -0000	1.19
  +++ npruntime.cpp	3 Oct 2005 21:11:41 -0000	1.20
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <CoreFoundation/CoreFoundation.h>
   
   #include <npruntime.h>
  
  
  
  1.21      +1 -0      JavaScriptCore/bindings/runtime.cpp
  
  Index: runtime.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/runtime.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- runtime.cpp	19 Sep 2005 06:57:26 -0000	1.20
  +++ runtime.cpp	3 Oct 2005 21:11:41 -0000	1.21
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <value.h>
   #include <interpreter.h>
   
  
  
  
  1.12      +1 -0      JavaScriptCore/bindings/runtime_array.cpp
  
  Index: runtime_array.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/runtime_array.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- runtime_array.cpp	16 Aug 2005 00:47:21 -0000	1.11
  +++ runtime_array.cpp	3 Oct 2005 21:11:41 -0000	1.12
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <identifier.h>
   #include <interpreter.h>
   #include <runtime.h>
  
  
  
  1.14      +1 -0      JavaScriptCore/bindings/runtime_method.cpp
  
  Index: runtime_method.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/runtime_method.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- runtime_method.cpp	8 Aug 2005 04:07:22 -0000	1.13
  +++ runtime_method.cpp	3 Oct 2005 21:11:41 -0000	1.14
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
    
  +#include "config.h"
   #include "context.h"
   #include "internal.h"
   #include "runtime_method.h"
  
  
  
  1.29      +1 -0      JavaScriptCore/bindings/runtime_object.cpp
  
  Index: runtime_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/runtime_object.cpp,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- runtime_object.cpp	8 Aug 2005 04:07:22 -0000	1.28
  +++ runtime_object.cpp	3 Oct 2005 21:11:41 -0000	1.29
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "error_object.h"
   #include "function.h"
   #include "interpreter.h"
  
  
  
  1.12      +1 -0      JavaScriptCore/bindings/runtime_root.cpp
  
  Index: runtime_root.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/runtime_root.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- runtime_root.cpp	21 Sep 2005 00:33:16 -0000	1.11
  +++ runtime_root.cpp	3 Oct 2005 21:11:42 -0000	1.12
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <jni_jsobject.h>
   #include <runtime_root.h>
   
  
  
  
  1.7       +1 -0      JavaScriptCore/bindings/testbindings.cpp
  
  Index: testbindings.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/testbindings.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- testbindings.cpp	19 Sep 2005 06:57:26 -0000	1.6
  +++ testbindings.cpp	3 Oct 2005 21:11:42 -0000	1.7
  @@ -19,6 +19,7 @@
    *  Boston, MA 02111-1307, USA.
    *
    */
  +#include "config.h"
   #include <assert.h>
   #include <stdio.h>
   #include <string.h>
  
  
  
  1.12      +1 -0      JavaScriptCore/bindings/testbindings.mm
  
  Index: testbindings.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/testbindings.mm,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- testbindings.mm	19 Sep 2005 06:57:26 -0000	1.11
  +++ testbindings.mm	3 Oct 2005 21:11:42 -0000	1.12
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include <Foundation/Foundation.h>
   
   #import <WebKit/WebScriptObject.h>
  
  
  
  1.10      +1 -0      JavaScriptCore/bindings/c/c_class.cpp
  
  Index: c_class.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/c/c_class.cpp,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- c_class.cpp	24 Nov 2004 01:06:47 -0000	1.9
  +++ c_class.cpp	3 Oct 2005 21:11:43 -0000	1.10
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <c_class.h>
   #include <c_instance.h>
   #include <c_runtime.h>
  
  
  
  1.14      +1 -0      JavaScriptCore/bindings/c/c_instance.cpp
  
  Index: c_instance.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/c/c_instance.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- c_instance.cpp	8 Aug 2005 04:07:23 -0000	1.13
  +++ c_instance.cpp	3 Oct 2005 21:11:44 -0000	1.14
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <c_class.h>
   #include <c_instance.h>
   #include <c_runtime.h>
  
  
  
  1.8       +1 -0      JavaScriptCore/bindings/c/c_runtime.cpp
  
  Index: c_runtime.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/c/c_runtime.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- c_runtime.cpp	8 Aug 2005 04:07:23 -0000	1.7
  +++ c_runtime.cpp	3 Oct 2005 21:11:44 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include <JavaScriptCore/internal.h>
   
   #include <c_instance.h>
  
  
  
  1.12      +1 -0      JavaScriptCore/bindings/c/c_utility.cpp
  
  Index: c_utility.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/c/c_utility.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- c_utility.cpp	16 Aug 2005 22:01:30 -0000	1.11
  +++ c_utility.cpp	3 Oct 2005 21:11:44 -0000	1.12
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "c_utility.h"
   
   #include "c_instance.h" 
  
  
  
  1.16      +1 -0      JavaScriptCore/bindings/jni/jni_class.cpp
  
  Index: jni_class.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/jni/jni_class.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- jni_class.cpp	16 Sep 2005 22:42:28 -0000	1.15
  +++ jni_class.cpp	3 Oct 2005 21:11:45 -0000	1.16
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <jni_class.h>
   
   #include <jni_utility.h>
  
  
  
  1.31      +1 -0      JavaScriptCore/bindings/jni/jni_instance.cpp
  
  Index: jni_instance.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/jni/jni_instance.cpp,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- jni_instance.cpp	16 Sep 2005 22:42:28 -0000	1.30
  +++ jni_instance.cpp	3 Oct 2005 21:11:45 -0000	1.31
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <jni_class.h>
   #include <jni_instance.h>
   #include <jni_runtime.h>
  
  
  
  1.15      +1 -0      JavaScriptCore/bindings/jni/jni_jsobject.cpp
  
  Index: jni_jsobject.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/jni/jni_jsobject.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- jni_jsobject.cpp	19 Sep 2005 06:57:26 -0000	1.14
  +++ jni_jsobject.cpp	3 Oct 2005 21:11:45 -0000	1.15
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <CoreFoundation/CoreFoundation.h>
   
   #include <assert.h>
  
  
  
  1.5       +1 -0      JavaScriptCore/bindings/jni/jni_objc.mm
  
  Index: jni_objc.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/jni/jni_objc.mm,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- jni_objc.mm	8 Aug 2005 04:07:24 -0000	1.4
  +++ jni_objc.mm	3 Oct 2005 21:11:45 -0000	1.5
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #import <Foundation/Foundation.h>
   #import <JavaScriptCore/jni_utility.h>
   #import <JavaScriptCore/objc_utility.h>
  
  
  
  1.30      +1 -0      JavaScriptCore/bindings/jni/jni_runtime.cpp
  
  Index: jni_runtime.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/jni/jni_runtime.cpp,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- jni_runtime.cpp	16 Sep 2005 22:42:28 -0000	1.29
  +++ jni_runtime.cpp	3 Oct 2005 21:11:45 -0000	1.30
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <internal.h>
   #include <ustring.h>
   #include <value.h>
  
  
  
  1.26      +1 -0      JavaScriptCore/bindings/jni/jni_utility.cpp
  
  Index: jni_utility.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/jni/jni_utility.cpp,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- jni_utility.cpp	16 Aug 2005 22:01:30 -0000	1.25
  +++ jni_utility.cpp	3 Oct 2005 21:11:45 -0000	1.26
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "jni_utility.h"
   
   #include "interpreter.h"
  
  
  
  1.26      +1 -0      JavaScriptCore/bindings/objc/WebScriptObject.mm
  
  Index: WebScriptObject.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/objc/WebScriptObject.mm,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- WebScriptObject.mm	19 Sep 2005 06:57:27 -0000	1.25
  +++ WebScriptObject.mm	3 Oct 2005 21:11:46 -0000	1.26
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "WebScriptObjectPrivate.h"
   
   #import "internal.h"
  
  
  
  1.11      +1 -0      JavaScriptCore/bindings/objc/objc_class.mm
  
  Index: objc_class.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/objc/objc_class.mm,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- objc_class.mm	8 Aug 2005 04:07:26 -0000	1.10
  +++ objc_class.mm	3 Oct 2005 21:11:46 -0000	1.11
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <Foundation/Foundation.h>
   
   #include <objc_class.h>
  
  
  
  1.14      +1 -0      JavaScriptCore/bindings/objc/objc_instance.mm
  
  Index: objc_instance.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/objc/objc_instance.mm,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- objc_instance.mm	8 Aug 2005 04:07:26 -0000	1.13
  +++ objc_instance.mm	3 Oct 2005 21:11:47 -0000	1.14
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #import <Foundation/Foundation.h>
   
   #import <JavaScriptCore/objc_instance.h>
  
  
  
  1.22      +1 -0      JavaScriptCore/bindings/objc/objc_runtime.mm
  
  Index: objc_runtime.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/objc/objc_runtime.mm,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- objc_runtime.mm	16 Sep 2005 22:42:29 -0000	1.21
  +++ objc_runtime.mm	3 Oct 2005 21:11:47 -0000	1.22
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #include <Foundation/Foundation.h>
   
   
  
  
  
  1.21      +1 -0      JavaScriptCore/bindings/objc/objc_utility.mm
  
  Index: objc_utility.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/bindings/objc/objc_utility.mm,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- objc_utility.mm	16 Aug 2005 00:47:23 -0000	1.20
  +++ objc_utility.mm	3 Oct 2005 21:11:47 -0000	1.21
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "objc_utility.h"
   
   #include <Foundation/Foundation.h>
  
  
  
  1.52      +5 -4      JavaScriptCore/kjs/array_object.cpp
  
  Index: array_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/array_object.cpp,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- array_object.cpp	16 Aug 2005 00:47:24 -0000	1.51
  +++ array_object.cpp	3 Oct 2005 21:11:48 -0000	1.52
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "array_object.h"
   
   #include "error_object.h"
  @@ -49,7 +50,7 @@
     , length(initialLength)
     , storageLength(initialLength < sparseArrayCutoff ? initialLength : 0)
     , capacity(storageLength)
  -  , storage(capacity ? (ValueImp **)calloc(capacity, sizeof(ValueImp *)) : 0)
  +  , storage(capacity ? (ValueImp **)fastCalloc(capacity, sizeof(ValueImp *)) : 0)
   {
   }
   
  @@ -58,7 +59,7 @@
     , length(list.size())
     , storageLength(length)
     , capacity(storageLength)
  -  , storage(capacity ? (ValueImp **)malloc(sizeof(ValueImp *) * capacity) : 0)
  +  , storage(capacity ? (ValueImp **)fastMalloc(sizeof(ValueImp *) * capacity) : 0)
   {
     ListIterator it = list.begin();
     unsigned l = length;
  @@ -69,7 +70,7 @@
   
   ArrayInstanceImp::~ArrayInstanceImp()
   {
  -  free(storage);
  +  fastFree(storage);
   }
   
   ValueImp *ArrayInstanceImp::lengthGetter(ExecState *exec, const Identifier& propertyName, const PropertySlot& slot)
  @@ -215,7 +216,7 @@
             newCapacity = sparseArrayCutoff;
           }
         }
  -      storage = (ValueImp **)realloc(storage, newCapacity * sizeof (ValueImp *));
  +      storage = (ValueImp **)fastRealloc(storage, newCapacity * sizeof (ValueImp *));
         memset(storage + capacity, 0, sizeof(ValueImp *) * (newCapacity - capacity));
         capacity = newCapacity;
       }
  
  
  
  1.14      +1 -0      JavaScriptCore/kjs/bool_object.cpp
  
  Index: bool_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/bool_object.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- bool_object.cpp	16 Aug 2005 00:47:24 -0000	1.13
  +++ bool_object.cpp	3 Oct 2005 21:11:48 -0000	1.14
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "value.h"
   #include "object.h"
   #include "types.h"
  
  
  
  1.48      +3 -0      JavaScriptCore/kjs/collector.cpp
  
  Index: collector.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/collector.cpp,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- collector.cpp	28 Sep 2005 02:25:49 -0000	1.47
  +++ collector.cpp	3 Oct 2005 21:11:48 -0000	1.48
  @@ -19,9 +19,11 @@
    *
    */
   
  +#include "config.h"
   #include "collector.h"
   
   #include <kxmlcore/FastMalloc.h>
  +#include <kxmlcore/FastMallocInternal.h>
   #include "internal.h"
   #include "list.h"
   #include "value.h"
  @@ -224,6 +226,7 @@
   
     if (!pthread_getspecific(registeredThreadKey)) {
       pthread_t pthread = pthread_self();
  +    KXMLCore::fastMallocRegisterThread(pthread);
       Collector::Thread *thread = new Collector::Thread(pthread, pthread_mach_thread_np(pthread));
       thread->next = registeredThreads;
       registeredThreads = thread;
  
  
  
  1.10      +6 -0      JavaScriptCore/kjs/config.h
  
  Index: config.h
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/config.h,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- config.h	27 Sep 2005 22:36:48 -0000	1.9
  +++ config.h	3 Oct 2005 21:11:48 -0000	1.10
  @@ -32,3 +32,9 @@
   #undef DEBUG_COLLECTOR
   
   #define KXC_CHANGES 1
  +
  +#ifdef __cplusplus
  +#undef new
  +#undef delete
  +#include <kxmlcore/FastMalloc.h>
  +#endif
  
  
  
  1.7       +1 -0      JavaScriptCore/kjs/debugger.cpp
  
  Index: debugger.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/debugger.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- debugger.cpp	8 Aug 2005 04:07:27 -0000	1.6
  +++ debugger.cpp	3 Oct 2005 21:11:48 -0000	1.7
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "debugger.h"
   #include "value.h"
   #include "object.h"
  
  
  
  1.19      +1 -0      JavaScriptCore/kjs/error_object.cpp
  
  Index: error_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/error_object.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- error_object.cpp	14 Aug 2005 16:04:19 -0000	1.18
  +++ error_object.cpp	3 Oct 2005 21:11:48 -0000	1.19
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "value.h"
   #include "object.h"
   #include "types.h"
  
  
  
  1.2       +1 -1      JavaScriptCore/kjs/fpconst.cpp
  
  Index: fpconst.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/fpconst.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- fpconst.cpp	29 Apr 2003 18:26:29 -0000	1.1
  +++ fpconst.cpp	3 Oct 2005 21:11:48 -0000	1.2
  @@ -17,7 +17,7 @@
    *
    */
   
  -#include <config.h>
  +#include "config.h"
   
   // This file exists because JavaScriptCore needs to define the NaN and Inf globals in a way
   // that does not use a static initializer so we don't have a framework initialization routine.
  
  
  
  1.60      +1 -0      JavaScriptCore/kjs/function.cpp
  
  Index: function.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/function.cpp,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- function.cpp	27 Sep 2005 22:36:48 -0000	1.59
  +++ function.cpp	3 Oct 2005 21:11:48 -0000	1.60
  @@ -22,6 +22,7 @@
    *
    */
   
  +#include "config.h"
   #include "function.h"
   
   #include "internal.h"
  
  
  
  1.33      +1 -0      JavaScriptCore/kjs/function_object.cpp
  
  Index: function_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/function_object.cpp,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- function_object.cpp	27 Sep 2005 22:36:49 -0000	1.32
  +++ function_object.cpp	3 Oct 2005 21:11:48 -0000	1.33
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "function_object.h"
   #include "internal.h"
   #include "function.h"
  
  
  
  1.21      +3 -2      JavaScriptCore/kjs/identifier.cpp
  
  Index: identifier.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/identifier.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- identifier.cpp	27 Sep 2005 22:36:49 -0000	1.20
  +++ identifier.cpp	3 Oct 2005 21:11:49 -0000	1.21
  @@ -33,6 +33,7 @@
   #define KJS_IDENTIFIER_HIDE_GLOBALS 1
   #endif
   
  +#include "config.h"
   #include "identifier.h"
   
   #include <kxmlcore/FastMalloc.h>
  @@ -287,13 +288,13 @@
   
       _tableSize = newTableSize;
       _tableSizeMask = newTableSize - 1;
  -    _table = (UString::Rep **)calloc(newTableSize, sizeof(UString::Rep *));
  +    _table = (UString::Rep **)fastCalloc(newTableSize, sizeof(UString::Rep *));
   
       for (int i = 0; i != oldTableSize; ++i)
           if (UString::Rep *key = oldTable[i])
               insert(key);
   
  -    free(oldTable);
  +    fastFree(oldTable);
   }
   
   // Global constants for property name strings.
  
  
  
  1.75      +3 -2      JavaScriptCore/kjs/internal.cpp
  
  Index: internal.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/internal.cpp,v
  retrieving revision 1.74
  retrieving revision 1.75
  diff -u -r1.74 -r1.75
  --- internal.cpp	28 Sep 2005 22:01:16 -0000	1.74
  +++ internal.cpp	3 Oct 2005 21:11:49 -0000	1.75
  @@ -21,6 +21,7 @@
    *
    */
   
  +#include "config.h"
   #include <stdio.h>
   #include <math.h>
   #include <assert.h>
  @@ -367,7 +368,7 @@
   {
     if (numNewNodes == newNodesCapacity) {
       newNodesCapacity = (newNodesCapacity == 0) ? initialCapacity : newNodesCapacity * growthFactor;
  -    newNodes = (Node **)realloc(newNodes, sizeof(Node *) * newNodesCapacity);
  +    newNodes = (Node **)fastRealloc(newNodes, sizeof(Node *) * newNodesCapacity);
     }
   
     newNodes[numNewNodes++] = node;
  @@ -379,7 +380,7 @@
       if (newNodes[i]->refcount() == 0)
         delete newNodes[i];
     }
  -  delete newNodes;
  +  fastFree(newNodes);
     newNodes = 0;
     numNewNodes = 0;
     newNodesCapacity = 0;
  
  
  
  1.31      +1 -0      JavaScriptCore/kjs/interpreter.cpp
  
  Index: interpreter.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/interpreter.cpp,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- interpreter.cpp	19 Sep 2005 06:57:27 -0000	1.30
  +++ interpreter.cpp	3 Oct 2005 21:11:49 -0000	1.31
  @@ -22,6 +22,7 @@
    *
    */
   
  +#include "config.h"
   #include "value.h"
   #include "object.h"
   #include "types.h"
  
  
  
  1.21      +4 -4      JavaScriptCore/kjs/lexer.cpp
  
  Index: lexer.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/lexer.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- lexer.cpp	21 Sep 2005 05:53:05 -0000	1.20
  +++ lexer.cpp	3 Oct 2005 21:11:49 -0000	1.21
  @@ -834,7 +834,7 @@
     for (unsigned i = 0; i < numIdentifiers; i++) {
       delete identifiers[i];
     }
  -  free (identifiers);
  +  fastFree(identifiers);
     identifiers = 0;
     numIdentifiers = 0;
     identifiersCapacity = 0;
  @@ -842,7 +842,7 @@
     for (unsigned i = 0; i < numStrings; i++) {
       delete strings[i];
     }
  -  free (strings);
  +  fastFree(strings);
     strings = 0;
     numStrings = 0;
     stringsCapacity = 0;
  @@ -855,7 +855,7 @@
   {
     if (numIdentifiers == identifiersCapacity) {
       identifiersCapacity = (identifiersCapacity == 0) ? initialCapacity : identifiersCapacity *growthFactor;
  -    identifiers = (KJS::Identifier **)realloc(identifiers, sizeof(KJS::Identifier *) * identifiersCapacity);
  +    identifiers = (KJS::Identifier **)fastRealloc(identifiers, sizeof(KJS::Identifier *) * identifiersCapacity);
     }
   
     KJS::Identifier *identifier = new KJS::Identifier(buffer16, pos16);
  @@ -867,7 +867,7 @@
   {
     if (numStrings == stringsCapacity) {
       stringsCapacity = (stringsCapacity == 0) ? initialCapacity : stringsCapacity *growthFactor;
  -    strings = (UString **)realloc(strings, sizeof(UString *) * stringsCapacity);
  +    strings = (UString **)fastRealloc(strings, sizeof(UString *) * stringsCapacity);
     }
   
     UString *string = new UString(buffer16, pos16);
  
  
  
  1.17      +1 -0      JavaScriptCore/kjs/list.cpp
  
  Index: list.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/list.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- list.cpp	4 Sep 2005 01:18:12 -0000	1.16
  +++ list.cpp	3 Oct 2005 21:11:49 -0000	1.17
  @@ -19,6 +19,7 @@
    *
    */
   
  +#include "config.h"
   #include "list.h"
   
   #include "internal.h"
  
  
  
  1.12      +1 -1      JavaScriptCore/kjs/lookup.cpp
  
  Index: lookup.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/lookup.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- lookup.cpp	14 Jul 2005 18:27:02 -0000	1.11
  +++ lookup.cpp	3 Oct 2005 21:11:49 -0000	1.12
  @@ -20,13 +20,13 @@
    *
    */
   
  +#include "config.h"
   #include <stdio.h>
   #include <string.h>
   
   #include "lookup.h"
   
   #ifdef HAVE_CONFIG_H
  -#include <config.h>
   #endif
   
   using namespace KJS;
  
  
  
  1.19      +1 -0      JavaScriptCore/kjs/math_object.cpp
  
  Index: math_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/math_object.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- math_object.cpp	4 Sep 2005 01:18:12 -0000	1.18
  +++ math_object.cpp	3 Oct 2005 21:11:49 -0000	1.19
  @@ -19,6 +19,7 @@
    *
    */
   
  +#include "config.h"
   #include <math.h>
   #include <stdlib.h>
   #include <assert.h>
  
  
  
  1.85      +1 -0      JavaScriptCore/kjs/nodes.cpp
  
  Index: nodes.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/nodes.cpp,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- nodes.cpp	28 Sep 2005 18:51:14 -0000	1.84
  +++ nodes.cpp	3 Oct 2005 21:11:49 -0000	1.85
  @@ -21,6 +21,7 @@
    *
    */
   
  +#include "config.h"
   #include "nodes.h"
   
   #include <math.h>
  
  
  
  1.38      +1 -2      JavaScriptCore/kjs/nodes.h
  
  Index: nodes.h
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/nodes.h,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- nodes.h	28 Sep 2005 18:51:14 -0000	1.37
  +++ nodes.h	3 Oct 2005 21:11:50 -0000	1.38
  @@ -25,7 +25,6 @@
   #ifndef _NODES_H_
   #define _NODES_H_
   
  -#include <kxmlcore/FastMalloc.h>
   #include <kxmlcore/SharedPtr.h>
   
   #include "internal.h"
  @@ -71,7 +70,7 @@
   		  OpInstanceOf
     };
   
  -  class Node : public FastAllocated {
  +  class Node {
     public:
       Node();
       virtual ~Node();
  
  
  
  1.20      +1 -0      JavaScriptCore/kjs/nodes2string.cpp
  
  Index: nodes2string.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/nodes2string.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- nodes2string.cpp	28 Sep 2005 18:51:14 -0000	1.19
  +++ nodes2string.cpp	3 Oct 2005 21:11:50 -0000	1.20
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "nodes.h"
   
   namespace KJS {
  
  
  
  1.23      +6 -5      JavaScriptCore/kjs/number_object.cpp
  
  Index: number_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/number_object.cpp,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- number_object.cpp	4 Sep 2005 01:18:12 -0000	1.22
  +++ number_object.cpp	3 Oct 2005 21:11:50 -0000	1.23
  @@ -19,6 +19,7 @@
    *
    */
   
  +#include "config.h"
   #include "value.h"
   #include "object.h"
   #include "types.h"
  @@ -96,17 +97,17 @@
           char *buf;
           
           if (length <= decimalPoint) {
  -            buf = (char*)malloc(decimalPoint+1);
  +            buf = (char*)fastMalloc(decimalPoint+1);
               strcpy(buf,result);
               memset(buf+length,'0',decimalPoint-length);
           } else {
  -            buf = (char*)malloc(decimalPoint+1);
  +            buf = (char*)fastMalloc(decimalPoint+1);
               strncpy(buf,result,decimalPoint);
           }
           
           buf[decimalPoint] = '\0';
           str += UString(buf);
  -        free(buf);
  +        fastFree(buf);
       }
       
       kjs_freedtoa(result);
  @@ -116,11 +117,11 @@
   
   static UString char_sequence(char c, int count)
   {
  -    char *buf = (char*)malloc(count+1);
  +    char *buf = (char*)fastMalloc(count+1);
       memset(buf,c,count);
       buf[count] = '\0';
       UString s(buf);
  -    free(buf);
  +    fastFree(buf);
       return s;
   }
   
  
  
  
  1.52      +1 -0      JavaScriptCore/kjs/object.cpp
  
  Index: object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/object.cpp,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- object.cpp	16 Aug 2005 00:47:26 -0000	1.51
  +++ object.cpp	3 Oct 2005 21:11:50 -0000	1.52
  @@ -22,6 +22,7 @@
    *
    */
   
  +#include "config.h"
   #include "value.h"
   #include "object.h"
   #include "types.h"
  
  
  
  1.15      +1 -0      JavaScriptCore/kjs/object_object.cpp
  
  Index: object_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/object_object.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- object_object.cpp	16 Aug 2005 00:47:26 -0000	1.14
  +++ object_object.cpp	3 Oct 2005 21:11:50 -0000	1.15
  @@ -19,6 +19,7 @@
    *
    */
   
  +#include "config.h"
   #include "value.h"
   #include "object.h"
   #include "types.h"
  
  
  
  1.11      +1 -1      JavaScriptCore/kjs/operations.cpp
  
  Index: operations.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/operations.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- operations.cpp	4 Sep 2005 01:18:12 -0000	1.10
  +++ operations.cpp	3 Oct 2005 21:11:50 -0000	1.11
  @@ -20,9 +20,9 @@
    *
    */
   
  +#include "config.h"
   #include "operations.h"
   
  -#include "config.h"
   
   #include <stdio.h>
   #include <assert.h>
  
  
  
  1.50      +1 -0      JavaScriptCore/kjs/property_map.cpp
  
  Index: property_map.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/property_map.cpp,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- property_map.cpp	27 Sep 2005 22:36:50 -0000	1.49
  +++ property_map.cpp	3 Oct 2005 21:11:50 -0000	1.50
  @@ -19,6 +19,7 @@
    *
    */
   
  +#include "config.h"
   #include "property_map.h"
   
   #include <kxmlcore/FastMalloc.h>
  
  
  
  1.3       +1 -0      JavaScriptCore/kjs/property_slot.cpp
  
  Index: property_slot.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/property_slot.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- property_slot.cpp	8 Aug 2005 04:07:29 -0000	1.2
  +++ property_slot.cpp	3 Oct 2005 21:11:50 -0000	1.3
  @@ -21,6 +21,7 @@
    */
   
   
  +#include "config.h"
   #include "property_slot.h"
   
   namespace KJS {
  
  
  
  1.7       +3 -2      JavaScriptCore/kjs/protected_values.cpp
  
  Index: protected_values.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/protected_values.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- protected_values.cpp	19 Sep 2005 06:57:28 -0000	1.6
  +++ protected_values.cpp	3 Oct 2005 21:11:51 -0000	1.7
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "protected_values.h"
   
   #include "pointer_hash.h"
  @@ -184,13 +185,13 @@
   
       _tableSize = newTableSize;
       _tableSizeMask = newTableSize - 1;
  -    _table = (KeyValue *)calloc(newTableSize, sizeof(KeyValue));
  +    _table = (KeyValue *)fastCalloc(newTableSize, sizeof(KeyValue));
   
       for (int i = 0; i != oldTableSize; ++i)
           if (oldTable[i].key)
               insert(oldTable[i].key, oldTable[i].value);
   
  -    free(oldTable);
  +    fastFree(oldTable);
   }
   
   } // namespace
  
  
  
  1.16      +2 -0      JavaScriptCore/kjs/reference.cpp
  
  Index: reference.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/reference.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- reference.cpp	24 Sep 2005 22:34:14 -0000	1.15
  +++ reference.cpp	3 Oct 2005 21:11:51 -0000	1.16
  @@ -20,7 +20,9 @@
    *
    */
   
  +#include "config.h"
   #include "reference.h"
  +
   #include "internal.h"
   
   namespace KJS {
  
  
  
  1.9       +2 -0      JavaScriptCore/kjs/reference_list.cpp
  
  Index: reference_list.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/reference_list.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- reference_list.cpp	19 Sep 2005 06:57:28 -0000	1.8
  +++ reference_list.cpp	3 Oct 2005 21:11:51 -0000	1.9
  @@ -20,7 +20,9 @@
    *
    */
   
  +#include "config.h"
   #include "reference_list.h"
  +
   #include "protected_reference.h"
   
   namespace KJS {
  
  
  
  1.13      +1 -0      JavaScriptCore/kjs/regexp.cpp
  
  Index: regexp.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/regexp.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- regexp.cpp	4 Sep 2005 01:18:12 -0000	1.12
  +++ regexp.cpp	3 Oct 2005 21:11:51 -0000	1.13
  @@ -19,6 +19,7 @@
    *
    */
   
  +#include "config.h"
   #include "regexp.h"
   
   #include <assert.h>
  
  
  
  1.25      +3 -2      JavaScriptCore/kjs/regexp_object.cpp
  
  Index: regexp_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/regexp_object.cpp,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- regexp_object.cpp	16 Sep 2005 22:42:30 -0000	1.24
  +++ regexp_object.cpp	3 Oct 2005 21:11:51 -0000	1.25
  @@ -20,8 +20,10 @@
    *
    */
   
  -#include <stdio.h>
  +#include "config.h"
  +#include "regexp_object.h"
   
  +#include <stdio.h>
   #include "value.h"
   #include "object.h"
   #include "types.h"
  @@ -29,7 +31,6 @@
   #include "operations.h"
   #include "internal.h"
   #include "regexp.h"
  -#include "regexp_object.h"
   #include "error_object.h"
   
   using namespace KJS;
  
  
  
  1.12      +1 -0      JavaScriptCore/kjs/scope_chain.cpp
  
  Index: scope_chain.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/scope_chain.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- scope_chain.cpp	14 Jul 2005 18:27:03 -0000	1.11
  +++ scope_chain.cpp	3 Oct 2005 21:11:51 -0000	1.12
  @@ -19,6 +19,7 @@
    *
    */
   
  +#include "config.h"
   #include "scope_chain.h"
   
   #include "object.h"
  
  
  
  1.12      +1 -3      JavaScriptCore/kjs/scope_chain.h
  
  Index: scope_chain.h
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/scope_chain.h,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- scope_chain.h	27 Sep 2005 22:36:50 -0000	1.11
  +++ scope_chain.h	3 Oct 2005 21:11:51 -0000	1.12
  @@ -22,13 +22,11 @@
   #ifndef KJS_SCOPE_CHAIN_H
   #define KJS_SCOPE_CHAIN_H
   
  -#include <kxmlcore/FastMalloc.h>
  -
   namespace KJS {
   
       class ObjectImp;
       
  -    class ScopeChainNode : public FastAllocated {
  +    class ScopeChainNode {
       public:
           ScopeChainNode(ScopeChainNode *n, ObjectImp *o)
               : next(n), object(o), refCount(1) { }
  
  
  
  1.47      +3 -1      JavaScriptCore/kjs/string_object.cpp
  
  Index: string_object.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/string_object.cpp,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- string_object.cpp	27 Sep 2005 22:36:50 -0000	1.46
  +++ string_object.cpp	3 Oct 2005 21:11:51 -0000	1.47
  @@ -20,6 +20,9 @@
    *
    */
   
  +#include "config.h"
  +#include "string_object.h"
  +
   #include "value.h"
   #include "object.h"
   #include "types.h"
  @@ -27,7 +30,6 @@
   #include "operations.h"
   #include "regexp.h"
   #include "regexp_object.h"
  -#include "string_object.h"
   #include "error_object.h"
   #include <stdio.h>
   #include "string_object.lut.h"
  
  
  
  1.16      +1 -0      JavaScriptCore/kjs/testkjs.cpp
  
  Index: testkjs.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/testkjs.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- testkjs.cpp	19 Sep 2005 06:57:28 -0000	1.15
  +++ testkjs.cpp	3 Oct 2005 21:11:51 -0000	1.16
  @@ -21,6 +21,7 @@
    *
    */
   
  +#include "config.h"
   #include <stdio.h>
   #include <stdlib.h>
   #include <string.h>
  
  
  
  1.42      +1 -3      JavaScriptCore/kjs/ustring.h
  
  Index: ustring.h
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/ustring.h,v
  retrieving revision 1.41
  retrieving revision 1.42
  diff -u -r1.41 -r1.42
  --- ustring.h	27 Sep 2005 22:36:50 -0000	1.41
  +++ ustring.h	3 Oct 2005 21:11:51 -0000	1.42
  @@ -193,7 +193,7 @@
     /**
      * @short Unicode string class
      */
  -  class UString : public FastAllocated {
  +  class UString {
       friend bool operator==(const UString&, const UString&);
       friend class UCharReference;
       friend class Identifier;
  @@ -205,8 +205,6 @@
        */
       struct Rep {
   
  -      FAST_ALLOCATED_POD;
  -
         static Rep *create(UChar *d, int l);
         static Rep *createCopying(const UChar *d, int l);
         static Rep *create(Rep *base, int offset, int length);
  
  
  
  1.30      +1 -0      JavaScriptCore/kjs/value.cpp
  
  Index: value.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kjs/value.cpp,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- value.cpp	16 Sep 2005 22:42:30 -0000	1.29
  +++ value.cpp	3 Oct 2005 21:11:52 -0000	1.30
  @@ -21,6 +21,7 @@
    *
    */
   
  +#include "config.h"
   #include "value.h"
   
   #include "object.h"
  
  
  
  1.2       +1 -0      JavaScriptCore/kxmlcore/Assertions.mm
  
  Index: Assertions.mm
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kxmlcore/Assertions.mm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Assertions.mm	27 Sep 2005 22:36:53 -0000	1.1
  +++ Assertions.mm	3 Oct 2005 21:11:57 -0000	1.2
  @@ -24,6 +24,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "Assertions.h"
   
   #define SUPPORT_OBJC_LOGGING 1
  
  
  
  1.2       +73 -30    JavaScriptCore/kxmlcore/FastMalloc.cpp
  
  Index: FastMalloc.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kxmlcore/FastMalloc.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FastMalloc.cpp	27 Sep 2005 22:36:53 -0000	1.1
  +++ FastMalloc.cpp	3 Oct 2005 21:11:58 -0000	1.2
  @@ -62,6 +62,7 @@
   // * allocation of a reasonably complicated struct
   //   goes from about 1100 ns to about 300 ns.
   
  +#include "config.h"
   #include "FastMalloc.h"
   
   #ifndef NDEBUG
  @@ -98,7 +99,6 @@
   
   #else
   
  -#include "config.h"
   #include <new>
   #include <stdio.h>
   #include <stddef.h>
  @@ -120,6 +120,12 @@
   
   #include "Assertions.h"
   
  +#ifdef __GNUC__
  +#define ALWAYS_INLINE inline __attribute__((always_inline))
  +#else
  +#define ALWAYS_INLINE inline
  +#endif
  +
   #if KXC_CHANGES
   namespace KXMLCore {
   
  @@ -154,6 +160,7 @@
   static const size_t kAlignShift = 3;
   static const size_t kAlignment  = 1 << kAlignShift;
   static const size_t kNumClasses = 170;
  +static const size_t kMaxTinySize = 1 << 8;
   
   // Minimum number of pages to fetch from system at a time.  Must be
   // significantly bigger than kBlockSize to amortize system-call
  @@ -285,11 +292,11 @@
         // Increase alignment every so often.
         //
         // Since we double the alignment every time size doubles and
  -      // size >= 128, this means that space wasted due to alignment is
  -      // at most 16/128 i.e., 12.5%.  Plus we cap the alignment at 256
  +      // size >= 256, this means that space wasted due to alignment is
  +      // at most 16/256 i.e., 6.25%.  Plus we cap the alignment at 512
         // bytes, so the space wasted as a percentage starts falling for
  -      // sizes > 2K.
  -      if ((lg >= 7) && (alignshift < 8)) {
  +      // sizes > 4K.
  +      if ((lg >= 8) && (alignshift < 9)) {
           alignshift++;
         }
         size_base[lg] = next_class - ((size-1) >> alignshift);
  @@ -309,11 +316,11 @@
     // Initialize the number of pages we should allocate to split into
     // small objects for a given class.
     for (size_t cl = 1; cl < next_class; cl++) {
  -    // Allocate enough pages so leftover is less than 1/8 of total.
  -    // This bounds wasted space to at most 12.5%.
  +    // Allocate enough pages so leftover is less than 1/16 of total.
  +    // This bounds wasted space to at most 6.25%.
       size_t psize = kPageSize;
       const size_t s = class_to_size[cl];
  -    while ((psize % s) > (psize >> 3)) {
  +    while ((psize % s) > (psize >> 4)) {
         psize += kPageSize;
       }
       class_to_pages[cl] = psize >> kPageShift;
  @@ -517,7 +524,7 @@
     span->next = NULL;
   }
   
  -static inline bool DLL_IsEmpty(const Span* list) {
  +static ALWAYS_INLINE bool DLL_IsEmpty(const Span* list) {
     return list->next == list;
   }
   
  @@ -541,7 +548,7 @@
   }
   #endif
   
  -static void DLL_Prepend(Span* list, Span* span) {
  +static inline void DLL_Prepend(Span* list, Span* span) {
     ASSERT(span->next == NULL);
     ASSERT(span->prev == NULL);
     span->next = list->next;
  @@ -1017,7 +1024,7 @@
     void* Allocate(size_t size);
     void Deallocate(void* ptr, size_t size_class);
   
  -  void FetchFromCentralCache(size_t cl);
  +  void FetchFromCentralCache(size_t cl, size_t allocationSize);
     void ReleaseToCentralCache(size_t cl, int N);
     void Scavenge();
     void Print() const;
  @@ -1135,7 +1142,7 @@
     counter_ = 0;
   }
   
  -inline void TCMalloc_Central_FreeList::Insert(void* object) {
  +ALWAYS_INLINE void TCMalloc_Central_FreeList::Insert(void* object) {
     const PageID p = reinterpret_cast<uintptr_t>(object) >> kPageShift;
     Span* span = pageheap->GetDescriptor(p);
     ASSERT(span != NULL);
  @@ -1180,7 +1187,7 @@
     }
   }
   
  -inline void* TCMalloc_Central_FreeList::Remove() {
  +ALWAYS_INLINE void* TCMalloc_Central_FreeList::Remove() {
     if (DLL_IsEmpty(&nonempty_)) return NULL;
     Span* span = nonempty_.next;
   
  @@ -1199,7 +1206,7 @@
   }
   
   // Fetch memory from the system and add to the central cache freelist.
  -inline void TCMalloc_Central_FreeList::Populate() {
  +ALWAYS_INLINE void TCMalloc_Central_FreeList::Populate() {
     // Release central list lock while operating on pageheap
     lock_.Unlock();
     const size_t npages = class_to_pages[size_class_];
  @@ -1282,15 +1289,16 @@
     }
   }
   
  -inline void* TCMalloc_ThreadCache::Allocate(size_t size) {
  +ALWAYS_INLINE void* TCMalloc_ThreadCache::Allocate(size_t size) {
     ASSERT(size <= kMaxSize);
     const size_t cl = SizeClass(size);
     FreeList* list = &list_[cl];
  +  size_t allocationSize = (size <= kMaxTinySize) ? (size + 7) & ~0x7 : ByteSizeForClass(cl);
     if (list->empty()) {
  -    FetchFromCentralCache(cl);
  +    FetchFromCentralCache(cl, allocationSize);
       if (list->empty()) return NULL;
     }
  -  size_ -= ByteSizeForClass(cl);
  +  size_ -= allocationSize;
     return list->Pop();
   }
   
  @@ -1306,7 +1314,7 @@
   }
   
   // Remove some objects of class "cl" from central cache and add to thread heap
  -inline void TCMalloc_ThreadCache::FetchFromCentralCache(size_t cl) {
  +ALWAYS_INLINE void TCMalloc_ThreadCache::FetchFromCentralCache(size_t cl, size_t byteSize) {
     TCMalloc_Central_FreeList* src = &central_cache[cl];
     FreeList* dst = &list_[cl];
     SpinLockHolder h(&src->lock_);
  @@ -1322,7 +1330,7 @@
         }
       }
       dst->Push(object);
  -    size_ += ByteSizeForClass(cl);
  +    size_ += byteSize;
     }
   }
   
  @@ -1368,12 +1376,33 @@
   #endif
   }
   
  +bool isMultiThreaded;
  +TCMalloc_ThreadCache *mainThreadCache;
  +pthread_t mainThreadID;
  +static SpinLock multiThreadedLock = SPINLOCK_INITIALIZER;
  +
  +void fastMallocRegisterThread(pthread_t thread) 
  +{
  +    if (thread != mainThreadID) {
  +        // We lock when writing isMultiThreaded but not when reading it.
  +        // It's ok if the main thread temporarily gets it wrong - the global
  +        // variable cache is the same as the thread-specific cache for the main thread.
  +        // And other threads can't get it wrong because they must have gone through 
  +        // this function before allocating so they've synchronized.
  +        SpinLockHolder lock(&multiThreadedLock);
  +        isMultiThreaded = true;
  +    }
  +}
  +
   inline TCMalloc_ThreadCache* TCMalloc_ThreadCache::GetCache() {
     void* ptr = NULL;
     if (!tsd_inited) {
       InitModule();
     } else {
  -    ptr = pthread_getspecific(heap_key);
  +      if (!isMultiThreaded)
  +          ptr = mainThreadCache;
  +      else
  +          ptr = pthread_getspecific(heap_key);
     }
     if (ptr == NULL) ptr = CreateCacheIfNecessary();
     return reinterpret_cast<TCMalloc_ThreadCache*>(ptr);
  @@ -1383,6 +1412,8 @@
   // because we may be in the thread destruction code and may have
   // already cleaned up the cache for this thread.
   inline TCMalloc_ThreadCache* TCMalloc_ThreadCache::GetCacheIfPresent() {
  +  if (!isMultiThreaded)
  +      return mainThreadCache;
     if (!tsd_inited) return NULL;
     return reinterpret_cast<TCMalloc_ThreadCache*>
       (pthread_getspecific(heap_key));
  @@ -1473,7 +1504,11 @@
         if (thread_heaps != NULL) thread_heaps->prev_ = heap;
         thread_heaps = heap;
         thread_heap_count++;
  -      RecomputeThreadCacheSize();
  +      RecomputeThreadCacheSize(); 
  +      if (!isMultiThreaded) {
  +          mainThreadCache = heap;
  +          mainThreadID = pthread_self();
  +      }
       }
     }
   
  @@ -1801,41 +1836,49 @@
   }
   #endif
   
  -static inline void* do_malloc(size_t size) {
  +static ALWAYS_INLINE void* do_malloc(size_t size) {
   
   #ifndef KXC_CHANGES
     if (TCMallocDebug::level >= TCMallocDebug::kVerbose) 
       MESSAGE("In tcmalloc do_malloc(%" PRIuS")\n", size);
   #endif
   
  +#ifndef KXC_CHANGES
     // The following call forces module initialization
     TCMalloc_ThreadCache* heap = TCMalloc_ThreadCache::GetCache();
  -#ifndef KXC_CHANGES
     if (heap->SampleAllocation(size)) {
       Span* span = DoSampledAllocation(size);
       if (span == NULL) return NULL;
       return reinterpret_cast<void*>(span->start << kPageShift);
     } else
   #endif
  -      if (size > kMaxSize) {
  +  if (size > kMaxSize) {
       // Use page-level allocator
  +    if (!tsd_inited && !phinited)
  +      TCMalloc_ThreadCache::InitModule();
  +
       SpinLockHolder h(&pageheap_lock);
  +
  +
       Span* span = pageheap->New(pages(size));
       if (span == NULL) return NULL;
       return reinterpret_cast<void*>(span->start << kPageShift);
     } else {
  -    return heap->Allocate(size);
  +#ifdef KXC_CHANGES
  +      TCMalloc_ThreadCache* heap = TCMalloc_ThreadCache::GetCache();
  +#endif
  +      return heap->Allocate(size);
     }
   }
   
  -static inline void do_free(void* ptr) {
  +static ALWAYS_INLINE void do_free(void* ptr) {
   #ifndef KXC_CHANGES
     if (TCMallocDebug::level >= TCMallocDebug::kVerbose) 
       MESSAGE("In tcmalloc do_free(%p)\n", ptr);
   #endif
   #if KXC_CHANGES
  -  if (ptr == NULL) return; 
  -#else
  +  if (ptr == NULL) return;
  +#else KXC_CHANGES
     if (ptr == NULL || tcmalloc_is_destroyed) return;
   #endif
   
  @@ -2071,7 +2114,7 @@
   #ifndef KXC_CHANGES
       MallocHook::InvokeDeleteHook(old_ptr);
   #endif
  -    do_free(old_ptr);
  +    free(old_ptr);
       return NULL;
     }
   
  @@ -2100,7 +2143,7 @@
   #ifndef KXC_CHANGES
       MallocHook::InvokeDeleteHook(old_ptr);
   #endif
  -    do_free(old_ptr);
  +    free(old_ptr);
       return new_ptr;
     } else {
       return old_ptr;
  
  
  
  1.2       +12 -16    JavaScriptCore/kxmlcore/FastMalloc.h
  
  Index: FastMalloc.h
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kxmlcore/FastMalloc.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- FastMalloc.h	27 Sep 2005 22:36:53 -0000	1.1
  +++ FastMalloc.h	3 Oct 2005 21:11:58 -0000	1.2
  @@ -32,27 +32,23 @@
       void fastFree(void* p);
       void *fastRealloc(void* p, size_t n);
       
  -    struct FastAllocated {
  -        void* operator new(size_t s) { return fastMalloc(s); }
  -        void operator delete(void* p) { fastFree(p); }
  -        void* operator new[](size_t s) { return fastMalloc(s); }
  -        void operator delete[](void* p) { fastFree(p); }
  -    };
  -    
  -    // POD types can't have a base class, so they have to use a macro to
  -    // add the appropriate operators
  -    #define FAST_ALLOCATED_POD \
  -        void* operator new(size_t s) { return fastMalloc(s); } \
  -        void operator delete(void* p) { fastFree(p); } \
  -        void* operator new[](size_t s) { return fastMalloc(s); } \
  -        void operator delete[](void* p) { fastFree(p); } \
  -
   } // namespace KXMLCore
   
   using KXMLCore::fastMalloc;
   using KXMLCore::fastCalloc;
   using KXMLCore::fastRealloc;
   using KXMLCore::fastFree;
  -using KXMLCore::FastAllocated;
  +
  +#if __GNUC__
  +#define KXMLCORE_PRIVATE_INLINE __private_extern__ inline __attribute__((always_inline))
  +#else
  +#define KXMLCORE_PRIVATE_INLINE inline
  +#endif
  +
  +KXMLCORE_PRIVATE_INLINE void* operator new(size_t s) { return fastMalloc(s); }
  +KXMLCORE_PRIVATE_INLINE void operator delete(void* p) { fastFree(p); }
  +KXMLCORE_PRIVATE_INLINE void* operator new[](size_t s) { return fastMalloc(s); }
  +KXMLCORE_PRIVATE_INLINE void operator delete[](void* p) { fastFree(p); }
  +
   
   #endif /* KXMLCORE_FAST_MALLOC_H */
  
  
  
  1.2       +1 -0      JavaScriptCore/kxmlcore/HashTable.cpp
  
  Index: HashTable.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kxmlcore/HashTable.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HashTable.cpp	28 Sep 2005 22:01:17 -0000	1.1
  +++ HashTable.cpp	3 Oct 2005 21:11:58 -0000	1.2
  @@ -19,6 +19,7 @@
       Boston, MA 02111-1307, USA.
   */
   
  +#include "config.h"
   #include "hashtable.h"
   
   namespace KXMLCore {
  
  
  
  1.2       +36 -4     JavaScriptCore/kxmlcore/TCSpinLock.h
  
  Index: TCSpinLock.h
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kxmlcore/TCSpinLock.h,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TCSpinLock.h	27 Sep 2005 22:36:53 -0000	1.1
  +++ TCSpinLock.h	3 Oct 2005 21:11:58 -0000	1.2
  @@ -45,10 +45,7 @@
   #endif
   #include <stdlib.h>	/* for abort() */
   
  -// FIXME: it would be nice to port the fast version to PowerPC but right now it is not
  -// showing up on the profile
  -#if defined __i386__ && defined __GNUC__
  -
  +#if (defined __i386__ || defined __ppc__) && defined __GNUC__
   static void TCMalloc_SlowLock(volatile unsigned int* lockword);
   
   // The following is a struct so that it can be initialized at compile time
  @@ -60,20 +57,42 @@
       
     inline void Lock() {
       int r;
  +#if  __i386__
       __asm__ __volatile__
         ("xchgl %0, %1"
          : "=r"(r), "=m"(private_lockword_)
          : "0"(1), "m"(private_lockword_)
          : "memory");
  +#else
  +    volatile unsigned int *lockword_ptr = &private_lockword_;
  +    __asm__ __volatile__
  +        ("1: lwarx %0, 0, %1\n\t"
  +         "stwcx. %2, 0, %1\n\t"
  +         "bne- 1b\n\t"
  +         "isync"
  +         : "=&r" (r), "=r" (lockword_ptr)
  +         : "r" (1), "1" (lockword_ptr)
  +         : "memory");
  +#endif
       if (r) TCMalloc_SlowLock(&private_lockword_);
     }
   
     inline void Unlock() {
  +#if  __i386__
       __asm__ __volatile__
         ("movl $0, %0"
          : "=m"(private_lockword_)
          : "m" (private_lockword_)
          : "memory");
  +#else
  +    __asm__ __volatile__
  +      ("isync\n\t"
  +       "eieio\n\t"
  +       "stw %1, %0"
  +       : "=o" (private_lockword_) 
  +       : "r" (0)
  +       : "memory");
  +#endif
     }
   };
   
  @@ -83,11 +102,24 @@
     sched_yield();        // Yield immediately since fast path failed
     while (true) {
       int r;
  +#if __i386__
       __asm__ __volatile__
         ("xchgl %0, %1"
          : "=r"(r), "=m"(*lockword)
          : "0"(1), "m"(*lockword)
          : "memory");
  +
  +#else
  +    int tmp = 1;
  +    __asm__ __volatile__
  +        ("1: lwarx %0, 0, %1\n\t"
  +         "stwcx. %2, 0, %1\n\t"
  +         "bne- 1b\n\t"
  +         "isync"
  +         : "=&r" (r), "=r" (lockword)
  +         : "r" (tmp), "1" (lockword)
  +         : "memory");
  +#endif
       if (!r) {
         return;
       }
  
  
  
  1.2       +2 -2      JavaScriptCore/kxmlcore/TCSystemAlloc.cpp
  
  Index: TCSystemAlloc.cpp
  ===================================================================
  RCS file: /cvs/root/JavaScriptCore/kxmlcore/TCSystemAlloc.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TCSystemAlloc.cpp	27 Sep 2005 22:36:53 -0000	1.1
  +++ TCSystemAlloc.cpp	3 Oct 2005 21:11:58 -0000	1.2
  @@ -66,8 +66,8 @@
   // For 2.2 kernels, it looks like the sbrk address space (500MBish) and
   // the mmap address space (1300MBish) are disjoint, so we need both allocators
   // to get as much virtual memory as possible.
  -static bool use_devmem = true;
  -static bool use_sbrk = true;
  +static bool use_devmem = false;
  +static bool use_sbrk = false;
   static bool use_mmap = true;
   
   // Flags to keep us from retrying allocators that failed.
  
  
  
  1.1                  JavaScriptCore/kxmlcore/FastMallocInternal.h
  
  Index: FastMallocInternal.h
  ===================================================================
  // -*- mode: c++; c-basic-offset: 4 -*-
  /*
   *  This file is part of the KDE libraries
   *  Copyright (C) 2005 Apple Computer, Inc.
   *
   *  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 KXMLCORE_FAST_MALLOC_INTERNAL_H
  #define KXMLCORE_FAST_MALLOC_INTERNAL_H
  
  #include <pthread.h>
  
  namespace KXMLCore {
      void fastMallocRegisterThread(pthread_t thread);
  }
  
  #endif //  KXMLCORE_FAST_MALLOC_INTERNAL_H
  
  
  
  1.188     +323 -0    WebCore/ChangeLog
  
  Index: ChangeLog
  ===================================================================
  RCS file: /cvs/root/WebCore/ChangeLog,v
  retrieving revision 1.187
  retrieving revision 1.188
  diff -u -r1.187 -r1.188
  --- ChangeLog	3 Oct 2005 20:55:00 -0000	1.187
  +++ ChangeLog	3 Oct 2005 21:11:59 -0000	1.188
  @@ -1,3 +1,326 @@
  +2005-09-28  Maciej Stachowiak  <mjs at apple.com>
  +
  +        Reviewed by Darin.
  +
  +	<rdar://problem/4283967> REGRESSION: 3% regression on PLT from new FastMalloc
  +	http://bugzilla.opendarwin.org/show_bug.cgi?id=5243
  +        
  +	- use fastMalloc for everything - it now gets applied to all new/delete allocations
  +        via a private inline operator new that is now included into every file via config.h
  +
  +        * WebCore.xcodeproj/project.pbxproj:
  +        * WebCorePrefix.h:
  +        * khtml/css/css_base.cpp:
  +        * khtml/css/css_base.h:
  +        * khtml/css/css_computedstyle.cpp:
  +        * khtml/css/css_ruleimpl.cpp:
  +        * khtml/css/css_stylesheetimpl.cpp:
  +        * khtml/css/css_valueimpl.cpp:
  +        * khtml/css/css_valueimpl.h:
  +        * khtml/css/csshelper.cpp:
  +        * khtml/css/cssparser.cpp:
  +        (ValueList::ValueList):
  +        (ValueList::~ValueList):
  +        (ValueList::addValue):
  +        (CSSParser::CSSParser):
  +        (CSSParser::~CSSParser):
  +        (CSSParser::setupParser):
  +        (CSSParser::addProperty):
  +        * khtml/css/cssstyleselector.cpp:
  +        * khtml/css/cssstyleselector.h:
  +        * khtml/dom/dom2_events.cpp:
  +        * khtml/dom/dom2_traversal.cpp:
  +        * khtml/dom/dom_misc.cpp:
  +        * khtml/dom/dom_string.cpp:
  +        * khtml/ecma/domparser.cpp:
  +        * khtml/ecma/kjs_binding.cpp:
  +        * khtml/ecma/kjs_css.cpp:
  +        * khtml/ecma/kjs_dom.cpp:
  +        * khtml/ecma/kjs_events.cpp:
  +        * khtml/ecma/kjs_html.cpp:
  +        (KJS::KJS::Context2DFunction::callAsFunction):
  +        (KJS::Gradient::~Gradient):
  +        (KJS::Gradient::addColorStop):
  +        (KJS::Gradient::colorStops):
  +        * khtml/ecma/kjs_navigator.cpp:
  +        * khtml/ecma/kjs_proxy.cpp:
  +        * khtml/ecma/kjs_range.cpp:
  +        * khtml/ecma/kjs_traversal.cpp:
  +        * khtml/ecma/kjs_views.cpp:
  +        * khtml/ecma/kjs_window.cpp:
  +        * khtml/ecma/xmlhttprequest.cpp:
  +        * khtml/ecma/xmlserializer.cpp:
  +        * khtml/editing/SelectionController.cpp:
  +        * khtml/editing/append_node_command.cpp:
  +        * khtml/editing/apply_style_command.cpp:
  +        * khtml/editing/break_blockquote_command.cpp:
  +        * khtml/editing/composite_edit_command.cpp:
  +        * khtml/editing/delete_from_text_node_command.cpp:
  +        * khtml/editing/delete_selection_command.cpp:
  +        * khtml/editing/edit_command.cpp:
  +        * khtml/editing/html_interchange.cpp:
  +        * khtml/editing/htmlediting.cpp:
  +        * khtml/editing/insert_into_text_node_command.cpp:
  +        * khtml/editing/insert_line_break_command.cpp:
  +        * khtml/editing/insert_node_before_command.cpp:
  +        * khtml/editing/insert_paragraph_separator_command.cpp:
  +        * khtml/editing/insert_text_command.cpp:
  +        * khtml/editing/join_text_nodes_command.cpp:
  +        * khtml/editing/jsediting.cpp:
  +        * khtml/editing/markup.cpp:
  +        * khtml/editing/merge_identical_elements_command.cpp:
  +        * khtml/editing/move_selection_command.cpp:
  +        * khtml/editing/rebalance_whitespace_command.cpp:
  +        * khtml/editing/remove_css_property_command.cpp:
  +        * khtml/editing/remove_node_attribute_command.cpp:
  +        * khtml/editing/remove_node_command.cpp:
  +        * khtml/editing/remove_node_preserving_children_command.cpp:
  +        * khtml/editing/replace_selection_command.cpp:
  +        * khtml/editing/set_node_attribute_command.cpp:
  +        * khtml/editing/split_element_command.cpp:
  +        * khtml/editing/split_text_node_command.cpp:
  +        * khtml/editing/split_text_node_containing_element.cpp:
  +        * khtml/editing/typing_command.cpp:
  +        * khtml/editing/visible_position.cpp:
  +        * khtml/editing/visible_range.cpp:
  +        * khtml/editing/visible_text.cpp:
  +        (khtml::CircularSearchBuffer::~CircularSearchBuffer):
  +        (khtml::CircularSearchBuffer::CircularSearchBuffer):
  +        * khtml/editing/visible_units.cpp:
  +        * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
  +        * khtml/html/html_baseimpl.cpp:
  +        * khtml/html/html_blockimpl.cpp:
  +        * khtml/html/html_canvasimpl.cpp:
  +        * khtml/html/html_documentimpl.cpp:
  +        * khtml/html/html_elementimpl.cpp:
  +        * khtml/html/html_formimpl.cpp:
  +        * khtml/html/html_headimpl.cpp:
  +        * khtml/html/html_imageimpl.cpp:
  +        * khtml/html/html_inlineimpl.cpp:
  +        * khtml/html/html_listimpl.cpp:
  +        * khtml/html/html_miscimpl.cpp:
  +        * khtml/html/html_objectimpl.cpp:
  +        * khtml/html/html_tableimpl.cpp:
  +        * khtml/html/htmlfactory.cpp:
  +        * khtml/html/htmlnames.cpp:
  +        * khtml/html/htmlparser.cpp:
  +        * khtml/html/htmltokenizer.cpp:
  +        (khtml::HTMLTokenizer::enlargeBuffer):
  +        (khtml::HTMLTokenizer::enlargeScriptBuffer):
  +        * khtml/khtml_events.cpp:
  +        * khtml/khtml_part.cpp:
  +        * khtml/khtmlview.cpp:
  +        * khtml/misc/arena.cpp:
  +        * khtml/misc/arena.h:
  +        * khtml/misc/decoder.cpp:
  +        * khtml/misc/formdata.cpp:
  +        * khtml/misc/helper.cpp:
  +        * khtml/misc/loader.cpp:
  +        * khtml/misc/stringit.cpp:
  +        * khtml/rendering/bidi.cpp:
  +        * khtml/rendering/break_lines.cpp:
  +        * khtml/rendering/font.cpp:
  +        * khtml/rendering/render_arena.cpp:
  +        * khtml/rendering/render_block.cpp:
  +        * khtml/rendering/render_box.cpp:
  +        * khtml/rendering/render_br.cpp:
  +        * khtml/rendering/render_canvas.cpp:
  +        * khtml/rendering/render_canvasimage.cpp:
  +        (RenderCanvasImage::~RenderCanvasImage):
  +        (RenderCanvasImage::createDrawingContext):
  +        * khtml/rendering/render_container.cpp:
  +        * khtml/rendering/render_flexbox.cpp:
  +        * khtml/rendering/render_flow.cpp:
  +        * khtml/rendering/render_form.cpp:
  +        * khtml/rendering/render_frames.cpp:
  +        * khtml/rendering/render_image.cpp:
  +        * khtml/rendering/render_inline.cpp:
  +        * khtml/rendering/render_layer.cpp:
  +        * khtml/rendering/render_line.cpp:
  +        * khtml/rendering/render_list.cpp:
  +        * khtml/rendering/render_object.cpp:
  +        * khtml/rendering/render_replaced.cpp:
  +        * khtml/rendering/render_style.cpp:
  +        * khtml/rendering/render_style.h:
  +        * khtml/rendering/render_table.cpp:
  +        * khtml/rendering/render_text.cpp:
  +        * khtml/rendering/render_theme.cpp:
  +        * khtml/rendering/render_theme_mac.mm:
  +        * khtml/rendering/table_layout.cpp:
  +        * khtml/xbl/xbl_binding.cpp:
  +        * khtml/xbl/xbl_binding_manager.cpp:
  +        * khtml/xbl/xbl_docimpl.cpp:
  +        * khtml/xbl/xbl_protobinding.cpp:
  +        * khtml/xbl/xbl_protohandler.cpp:
  +        * khtml/xbl/xbl_protoimplementation.cpp:
  +        * khtml/xbl/xbl_tokenizer.cpp:
  +        * khtml/xml/EventNames.cpp:
  +        * khtml/xml/dom2_eventsimpl.cpp:
  +        * khtml/xml/dom2_eventsimpl.h:
  +        * khtml/xml/dom2_rangeimpl.cpp:
  +        * khtml/xml/dom2_rangeimpl.h:
  +        * khtml/xml/dom2_traversalimpl.cpp:
  +        * khtml/xml/dom2_traversalimpl.h:
  +        * khtml/xml/dom2_viewsimpl.cpp:
  +        * khtml/xml/dom2_viewsimpl.h:
  +        * khtml/xml/dom_atomicstring.cpp:
  +        * khtml/xml/dom_docimpl.cpp:
  +        * khtml/xml/dom_docimpl.h:
  +        * khtml/xml/dom_elementimpl.cpp:
  +        * khtml/xml/dom_elementimpl.h:
  +        * khtml/xml/dom_nodeimpl.cpp:
  +        * khtml/xml/dom_nodeimpl.h:
  +        * khtml/xml/dom_position.cpp:
  +        * khtml/xml/dom_qname.cpp:
  +        * khtml/xml/dom_stringimpl.cpp:
  +        * khtml/xml/dom_stringimpl.h:
  +        * khtml/xml/dom_textimpl.cpp:
  +        * khtml/xml/dom_xmlimpl.cpp:
  +        * khtml/xml/xml_tokenizer.cpp:
  +        * khtml/xsl/xsl_stylesheetimpl.cpp:
  +        * khtml/xsl/xslt_processorimpl.cpp:
  +        * kwq/DOM-CSS.mm:
  +        * kwq/DOM.mm:
  +        * kwq/DOMEvents.mm:
  +        * kwq/DOMHTML.mm:
  +        * kwq/DOMInternal.mm:
  +        (DOMString::DOMString):
  +        * kwq/DOMUtility.mm:
  +        * kwq/DOMViews.mm:
  +        * kwq/KWQAccObject.mm:
  +        * kwq/KWQAccObjectCache.mm:
  +        * kwq/KWQApplication.mm:
  +        * kwq/KWQArrayImpl.h:
  +        * kwq/KWQArrayImpl.mm:
  +        * kwq/KWQBuffer.mm:
  +        * kwq/KWQButton.mm:
  +        * kwq/KWQCString.mm:
  +        * kwq/KWQCharsets.mm:
  +        * kwq/KWQClipboard.mm:
  +        * kwq/KWQCollection.mm:
  +        * kwq/KWQColor.mm:
  +        * kwq/KWQComboBox.mm:
  +        * kwq/KWQCursor.mm:
  +        * kwq/KWQDateTime.mm:
  +        * kwq/KWQDictImpl.mm:
  +        * kwq/KWQEditCommand.mm:
  +        * kwq/KWQEvent.mm:
  +        * kwq/KWQExceptions.mm:
  +        * kwq/KWQFile.mm:
  +        * kwq/KWQFileButton.mm:
  +        * kwq/KWQFont.mm:
  +        * kwq/KWQFontFamily.h:
  +        * kwq/KWQFontFamily.mm:
  +        * kwq/KWQFontMetrics.mm:
  +        * kwq/KWQFormData.mm:
  +        * kwq/KWQFrame.mm:
  +        * kwq/KWQGlobal.mm:
  +        * kwq/KWQGuardedPtr.mm:
  +        * kwq/KWQKCharsets.mm:
  +        * kwq/KWQKConfigBase.mm:
  +        * kwq/KWQKCookieJar.mm:
  +        * kwq/KWQKCursor.mm:
  +        * kwq/KWQKGlobal.mm:
  +        * kwq/KWQKGlobalSettings.mm:
  +        * kwq/KWQKHTMLFactory.mm:
  +        * kwq/KWQKHTMLPart.cpp:
  +        * kwq/KWQKHTMLPart.mm:
  +        * kwq/KWQKHTMLPartBrowserExtension.mm:
  +        * kwq/KWQKHTMLView.mm:
  +        * kwq/KWQKHistoryProvider.mm:
  +        * kwq/KWQKJavaAppletWidget.mm:
  +        * kwq/KWQKJob.mm:
  +        * kwq/KWQKJobClasses.mm:
  +        * kwq/KWQKLocale.mm:
  +        * kwq/KWQKPartsBrowserInterface.mm:
  +        * kwq/KWQKPartsEvent.mm:
  +        * kwq/KWQKPartsPart.mm:
  +        * kwq/KWQKSSLKeyGen.mm:
  +        * kwq/KWQKStandardDirs.mm:
  +        * kwq/KWQKStringHandler.mm:
  +        * kwq/KWQKURL.mm:
  +        (KURL::KURL):
  +        (KURL::decode_string):
  +        (KURL::parse):
  +        (KURL::encode_string):
  +        (encodeRelativeString):
  +        * kwq/KWQKWin.mm:
  +        * kwq/KWQKWinModule.mm:
  +        * kwq/KWQLabel.mm:
  +        * kwq/KWQLineEdit.mm:
  +        * kwq/KWQListBox.mm:
  +        * kwq/KWQListImpl.mm:
  +        * kwq/KWQLoader.mm:
  +        (KWQIsResponseURLEqualToURL):
  +        * kwq/KWQMapImpl.h:
  +        * kwq/KWQMapImpl.mm:
  +        * kwq/KWQMovie.mm:
  +        * kwq/KWQObject.mm:
  +        * kwq/KWQPageState.mm:
  +        * kwq/KWQPaintDeviceMetrics.mm:
  +        * kwq/KWQPainter.mm:
  +        * kwq/KWQPalette.mm:
  +        * kwq/KWQPen.mm:
  +        * kwq/KWQPixmap.mm:
  +        * kwq/KWQPoint.mm:
  +        * kwq/KWQPointArray.mm:
  +        * kwq/KWQPtrDictImpl.mm:
  +        * kwq/KWQPushButton.mm:
  +        * kwq/KWQRect.mm:
  +        * kwq/KWQRegExp.mm:
  +        * kwq/KWQRegion.mm:
  +        * kwq/KWQRenderTreeDebug.cpp:
  +        * kwq/KWQResourceLoader.mm:
  +        * kwq/KWQScrollBar.mm:
  +        * kwq/KWQScrollView.mm:
  +        * kwq/KWQSignal.mm:
  +        * kwq/KWQSignalStubs.mm:
  +        * kwq/KWQSize.mm:
  +        * kwq/KWQSlider.mm:
  +        * kwq/KWQSlot.mm:
  +        * kwq/KWQString.h:
  +        * kwq/KWQString.mm:
  +        (ALLOC_CHAR):
  +        (REALLOC_CHAR):
  +        (DELETE_CHAR):
  +        (ALLOC_QCHAR):
  +        (REALLOC_QCHAR):
  +        (DELETE_QCHAR):
  +        (_printQStringAllocationStatistics):
  +        (allocateHandle):
  +        (KWQStringData::operator new):
  +        (KWQStringData::operator delete):
  +        (freeHandle):
  +        * kwq/KWQStringList.mm:
  +        * kwq/KWQStyle.mm:
  +        * kwq/KWQTextArea.mm:
  +        * kwq/KWQTextCodec.mm:
  +        * kwq/KWQTextEdit.mm:
  +        * kwq/KWQTextField.mm:
  +        * kwq/KWQTextStream.mm:
  +        * kwq/KWQTextUtilities.mm:
  +        * kwq/KWQTimer.mm:
  +        * kwq/KWQValueListImpl.h:
  +        * kwq/KWQValueListImpl.mm:
  +        * kwq/KWQVariant.mm:
  +        * kwq/KWQVectorImpl.mm:
  +        (KWQVectorImpl::KWQVectorImpl):
  +        (KWQVectorImpl::~KWQVectorImpl):
  +        (KWQVectorImpl::clear):
  +        (KWQVectorImpl::resize):
  +        (KWQVectorImpl::assign):
  +        * kwq/KWQWMatrix.mm:
  +        * kwq/KWQWidget.mm:
  +        * kwq/KWQWindowWidget.mm:
  +        * kwq/WebCoreBridge.mm:
  +        * kwq/WebCoreCache.mm:
  +        * kwq/WebCoreEncodings.mm:
  +        * kwq/WebCoreJavaScript.mm:
  +        * kwq/WebCoreScriptDebugger.mm:
  +        * kwq/WebCoreSettings.mm:
  +        * kwq/WebCoreTextRendererFactory.mm:
  +        * kwq/can-convert.mm:
  +
   2005-10-03  Beth Dakin  <bdakin at apple.com>
   
           Reviewed by Darin.
  
  
  
  1.16      +5 -0      WebCore/WebCorePrefix.h
  
  Index: WebCorePrefix.h
  ===================================================================
  RCS file: /cvs/root/WebCore/WebCorePrefix.h,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- WebCorePrefix.h	16 Aug 2005 19:03:11 -0000	1.15
  +++ WebCorePrefix.h	3 Oct 2005 21:12:00 -0000	1.16
  @@ -67,3 +67,8 @@
   #import <Cocoa/Cocoa.h>
   
   #endif
  +
  +#ifdef __cplusplus
  +#define new ("if you use new/delete make sure to include config.h at the top of the file"()) 
  +#define delete ("if you use new/delete make sure to include config.h at the top of the file"()) 
  +#endif
  
  
  
  1.32      +6 -0      WebCore/WebCore.xcodeproj/project.pbxproj
  
  Index: project.pbxproj
  ===================================================================
  RCS file: /cvs/root/WebCore/WebCore.xcodeproj/project.pbxproj,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- project.pbxproj	2 Oct 2005 19:51:21 -0000	1.31
  +++ project.pbxproj	3 Oct 2005 21:12:02 -0000	1.32
  @@ -65,6 +65,8 @@
   		65AC79A20831ED6D009385CE /* append_node_command.h in Headers */ = {isa = PBXBuildFile; fileRef = 65AC79A00831ED6D009385CE /* append_node_command.h */; };
   		65AC79A90831F006009385CE /* apply_style_command.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65AC79A70831F006009385CE /* apply_style_command.cpp */; };
   		65AC79AA0831F006009385CE /* apply_style_command.h in Headers */ = {isa = PBXBuildFile; fileRef = 65AC79A80831F006009385CE /* apply_style_command.h */; };
  +		65C97AF308EA908800ACD273 /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = 65C97AF208EA908800ACD273 /* config.h */; };
  +		65C97AF408EA908800ACD273 /* config.h in Headers */ = {isa = PBXBuildFile; fileRef = 65C97AF208EA908800ACD273 /* config.h */; };
   		65DC16C40831DD6F0022744E /* composite_edit_command.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 65DC16C20831DD6F0022744E /* composite_edit_command.cpp */; };
   		65DC16C50831DD6F0022744E /* composite_edit_command.h in Headers */ = {isa = PBXBuildFile; fileRef = 65DC16C30831DD6F0022744E /* composite_edit_command.h */; };
   		7E6FEED80898582300C44C3F /* WebCoreScriptDebugger.h in Headers */ = {isa = PBXBuildFile; fileRef = 7E6FEED60898582300C44C3F /* WebCoreScriptDebugger.h */; settings = {ATTRIBUTES = (Private, ); }; };
  @@ -2439,6 +2441,7 @@
   		65AC79A00831ED6D009385CE /* append_node_command.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = append_node_command.h; path = editing/append_node_command.h; sourceTree = "<group>"; };
   		65AC79A70831F006009385CE /* apply_style_command.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = apply_style_command.cpp; path = editing/apply_style_command.cpp; sourceTree = "<group>"; };
   		65AC79A80831F006009385CE /* apply_style_command.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = apply_style_command.h; path = editing/apply_style_command.h; sourceTree = "<group>"; };
  +		65C97AF208EA908800ACD273 /* config.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = config.h; sourceTree = "<group>"; };
   		65DC16C20831DD6F0022744E /* composite_edit_command.cpp */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.cpp; name = composite_edit_command.cpp; path = editing/composite_edit_command.cpp; sourceTree = "<group>"; };
   		65DC16C30831DD6F0022744E /* composite_edit_command.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; name = composite_edit_command.h; path = editing/composite_edit_command.h; sourceTree = "<group>"; };
   		65F80697054D9F86008BF776 /* KWQExceptions.mm */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.cpp.objcpp; path = KWQExceptions.mm; sourceTree = "<group>"; };
  @@ -6310,6 +6313,7 @@
   				BC41978B059293BE0016347F /* xbl */,
   				F523D32402DE4478018635CA /* xml */,
   				BC06F24406D18A35004A6FA3 /* xsl */,
  +				65C97AF208EA908800ACD273 /* config.h */,
   				F523D15202DE42AD018635CA /* khtml_events.h */,
   				F523D15102DE42AD018635CA /* khtml_events.cpp */,
   				F523D15402DE42AD018635CA /* khtml_part.h */,
  @@ -7240,6 +7244,7 @@
   				BC1798DA088DA4F8006068A5 /* render_theme_mac.h in Headers */,
   				7E6FEED80898582300C44C3F /* WebCoreScriptDebugger.h in Headers */,
   				939885C408B7E3D100E707C4 /* EventNames.h in Headers */,
  +				65C97AF308EA908800ACD273 /* config.h in Headers */,
   			);
   			runOnlyForDeploymentPostprocessing = 0;
   		};
  @@ -8122,6 +8127,7 @@
   				A8EA434708E14EAC004BC396 /* render_kcanvaswrapper.h in Headers */,
   				A8EA434908E14EAC004BC396 /* dom_kdomnodetreewrapper.h in Headers */,
   				A8EA434B08E14EAC004BC396 /* dom_kdomdocumentwrapper.h in Headers */,
  +				65C97AF408EA908800ACD273 /* config.h in Headers */,
   			);
   			runOnlyForDeploymentPostprocessing = 0;
   		};
  
  
  
  1.16      +1 -0      WebCore/khtml/khtml_events.cpp
  
  Index: khtml_events.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/khtml_events.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- khtml_events.cpp	16 Sep 2005 22:42:00 -0000	1.15
  +++ khtml_events.cpp	3 Oct 2005 21:12:04 -0000	1.16
  @@ -17,6 +17,7 @@
      Boston, MA 02111-1307, USA.
   */
   
  +#include "config.h"
   #include "khtml_events.h"
   #include "rendering/render_object.h"
   #include "xml/dom_nodeimpl.h"
  
  
  
  1.343     +1 -0      WebCore/khtml/khtml_part.cpp
  
  Index: khtml_part.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/khtml_part.cpp,v
  retrieving revision 1.342
  retrieving revision 1.343
  diff -u -r1.342 -r1.343
  --- khtml_part.cpp	24 Sep 2005 01:18:51 -0000	1.342
  +++ khtml_part.cpp	3 Oct 2005 21:12:04 -0000	1.343
  @@ -24,6 +24,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "khtml_part.h"
   
   #if APPLE_CHANGES
  
  
  
  1.146     +1 -0      WebCore/khtml/khtmlview.cpp
  
  Index: khtmlview.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/khtmlview.cpp,v
  retrieving revision 1.145
  retrieving revision 1.146
  diff -u -r1.145 -r1.146
  --- khtmlview.cpp	5 Sep 2005 22:26:06 -0000	1.145
  +++ khtmlview.cpp	3 Oct 2005 21:12:05 -0000	1.146
  @@ -21,6 +21,7 @@
    * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    * Boston, MA 02111-1307, USA.
    */
  +#include "config.h"
   #include "khtmlview.moc"
   
   #include "khtmlview.h"
  
  
  
  1.20      +1 -0      WebCore/khtml/css/css_base.cpp
  
  Index: css_base.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/css_base.cpp,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -r1.19 -r1.20
  --- css_base.cpp	25 Aug 2005 17:46:57 -0000	1.19
  +++ css_base.cpp	3 Oct 2005 21:12:06 -0000	1.20
  @@ -25,6 +25,7 @@
   
   //#define CSS_DEBUG
   
  +#include "config.h"
   #include "kdebug.h"
   
   #include "css_base.h"
  
  
  
  1.18      +3 -3      WebCore/khtml/css/css_base.h
  
  Index: css_base.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/css_base.h,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- css_base.h	27 Sep 2005 22:37:01 -0000	1.17
  +++ css_base.h	3 Oct 2005 21:12:06 -0000	1.18
  @@ -46,7 +46,7 @@
   
       class DocumentImpl;
   
  -    struct CSSNamespace : public FastAllocated {
  +    struct CSSNamespace {
           AtomicString m_prefix;
           AtomicString m_uri;
           CSSNamespace* m_parent;
  @@ -68,7 +68,7 @@
       };
       
   // this class represents a selector for a StyleRule
  -    class CSSSelector : public FastAllocated
  +    class CSSSelector
       {
       public:
           CSSSelector()
  @@ -194,7 +194,7 @@
       };
   
       // a style class which has a parent (almost all have)
  -    class StyleBaseImpl : public khtml::TreeShared<StyleBaseImpl>, public FastAllocated
  +    class StyleBaseImpl : public khtml::TreeShared<StyleBaseImpl>
       {
       public:
   	StyleBaseImpl()  { m_parent = 0; strictParsing = true; multiLength = false; }
  
  
  
  1.38      +1 -0      WebCore/khtml/css/css_computedstyle.cpp
  
  Index: css_computedstyle.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/css_computedstyle.cpp,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- css_computedstyle.cpp	27 Sep 2005 22:37:01 -0000	1.37
  +++ css_computedstyle.cpp	3 Oct 2005 21:12:06 -0000	1.38
  @@ -20,6 +20,7 @@
    * 02111-1307  USA
    */
   
  +#include "config.h"
   #include "css_computedstyle.h"
   
   #include "cssproperties.h"
  
  
  
  1.24      +1 -0      WebCore/khtml/css/css_ruleimpl.cpp
  
  Index: css_ruleimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/css_ruleimpl.cpp,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- css_ruleimpl.cpp	16 Sep 2005 22:42:01 -0000	1.23
  +++ css_ruleimpl.cpp	3 Oct 2005 21:12:06 -0000	1.24
  @@ -20,6 +20,7 @@
    * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    * Boston, MA 02111-1307, USA.
    */
  +#include "config.h"
   #include "dom/css_rule.h"
   #include "dom/css_stylesheet.h"
   #include "dom/dom_exception.h"
  
  
  
  1.18      +2 -1      WebCore/khtml/css/css_stylesheetimpl.cpp
  
  Index: css_stylesheetimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/css_stylesheetimpl.cpp,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- css_stylesheetimpl.cpp	16 Sep 2005 22:42:01 -0000	1.17
  +++ css_stylesheetimpl.cpp	3 Oct 2005 21:12:06 -0000	1.18
  @@ -19,11 +19,12 @@
    * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    * Boston, MA 02111-1307, USA.
    *
  - * $Id: css_stylesheetimpl.cpp,v 1.17 2005/09/16 22:42:01 adele Exp $
  + * $Id: css_stylesheetimpl.cpp,v 1.18 2005/10/03 21:12:06 mjs Exp $
    */
   
   //#define CSS_STYLESHEET_DEBUG
   
  +#include "config.h"
   #include "dom/dom_string.h"
   #include "dom/dom_exception.h"
   #include "dom/css_stylesheet.h"
  
  
  
  1.78      +1 -0      WebCore/khtml/css/css_valueimpl.cpp
  
  Index: css_valueimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/css_valueimpl.cpp,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- css_valueimpl.cpp	16 Sep 2005 22:42:02 -0000	1.77
  +++ css_valueimpl.cpp	3 Oct 2005 21:12:07 -0000	1.78
  @@ -20,6 +20,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "css/css_valueimpl.h"
   
   #include "dom/css_value.h"
  
  
  
  1.51      +4 -4      WebCore/khtml/css/css_valueimpl.h
  
  Index: css_valueimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/css_valueimpl.h,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- css_valueimpl.h	27 Sep 2005 22:37:01 -0000	1.50
  +++ css_valueimpl.h	3 Oct 2005 21:12:07 -0000	1.51
  @@ -238,7 +238,7 @@
       virtual bool isQuirkValue() { return true; }
   };
   
  -class CounterImpl : public khtml::Shared<CounterImpl>, public FastAllocated {
  +class CounterImpl : public khtml::Shared<CounterImpl> {
   public:
       DOMString identifier() const { return m_identifier; }
       DOMString listStyle() const { return m_listStyle; }
  @@ -249,7 +249,7 @@
       DOMString m_separator;
   };
   
  -class RectImpl : public khtml::Shared<RectImpl>, public FastAllocated {
  +class RectImpl : public khtml::Shared<RectImpl> {
   public:
       RectImpl();
       virtual ~RectImpl();
  @@ -274,7 +274,7 @@
   // and border-spacing (all of which are space-separated sets of two values).  At the moment we are only using it for
   // border-radius, but (FIXME) border-spacing and background-position could be converted over to use it
   // (eliminating some extra -khtml- internal properties).
  -class PairImpl : public khtml::Shared<PairImpl>, public FastAllocated {
  +class PairImpl : public khtml::Shared<PairImpl> {
   public:
       PairImpl();
       virtual ~PairImpl();
  @@ -410,7 +410,7 @@
   // ------------------------------------------------------------------------------
   
   // another helper class
  -class CSSProperty : public FastAllocated
  +class CSSProperty
   {
   public:
       CSSProperty() : m_id(-1), m_bImportant(false), m_value(0)
  
  
  
  1.9       +1 -0      WebCore/khtml/css/csshelper.cpp
  
  Index: csshelper.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/csshelper.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- csshelper.cpp	29 Aug 2005 21:29:09 -0000	1.8
  +++ csshelper.cpp	3 Oct 2005 21:12:07 -0000	1.9
  @@ -19,6 +19,7 @@
    * Boston, MA 02111-1307, USA.
    *
    */
  +#include "config.h"
   #include "csshelper.h"
   
   #include <qfontmetrics.h>
  
  
  
  1.108     +13 -11    WebCore/khtml/css/cssparser.cpp
  
  Index: cssparser.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/cssparser.cpp,v
  retrieving revision 1.107
  retrieving revision 1.108
  diff -u -r1.107 -r1.108
  --- cssparser.cpp	30 Sep 2005 00:03:18 -0000	1.107
  +++ cssparser.cpp	3 Oct 2005 21:12:07 -0000	1.108
  @@ -24,6 +24,7 @@
   // #define TOKEN_DEBUG
   #define YYDEBUG 0
   
  +#include "config.h"
   #include <kdebug.h>
   #include <kurl.h>
   
  @@ -36,6 +37,7 @@
   #include "misc/helper.h"
   #include "xml/dom_docimpl.h"
   #include "csshelper.h"
  +
   using namespace DOM;
   
   #include <stdlib.h>
  @@ -46,7 +48,7 @@
   
   ValueList::ValueList()
   {
  -    values = (Value *) malloc( 16 * sizeof ( Value ) );
  +    values = (Value *)fastMalloc(16 * sizeof(Value));
       numValues = 0;
       currentValue = 0;
       maxValues = 16;
  @@ -61,14 +63,14 @@
   	if ( values[i].unit == Value::Function )
   	    delete values[i].function;
       }
  -    free( values );
  +    fastFree(values);
   }
   
  -void ValueList::addValue( const Value &val )
  +void ValueList::addValue(const Value &val)
   {
  -    if ( numValues >= maxValues ) {
  +    if (numValues >= maxValues) {
   	maxValues += 16;
  -	values = (Value *) realloc( values, maxValues*sizeof( Value ) );
  +	values = (Value *)fastRealloc(values, maxValues*sizeof(Value));
       }
       values[numValues++] = val;
   }
  @@ -91,7 +93,7 @@
   #endif
       strict = strictParsing;
   
  -    parsedProperties = (CSSProperty **) malloc( 32 * sizeof( CSSProperty * ) );
  +    parsedProperties = (CSSProperty **)fastMalloc(32 * sizeof(CSSProperty *));
       numParsedProperties = 0;
       maxParsedProperties = 32;
   
  @@ -116,7 +118,7 @@
   {
       if ( numParsedProperties )
   	clearProperties();
  -    free( parsedProperties );
  +    fastFree(parsedProperties);
   
       delete valueList;
   
  @@ -124,7 +126,7 @@
       kdDebug( 6080 ) << "CSSParser::~CSSParser this=" << this << endl;
   #endif
   
  -    free( data );
  +    fastFree(data);
   
   }
   
  @@ -138,7 +140,7 @@
   {
       int length = string.length() + strlen(prefix) + strlen(suffix) + 2;
       
  -    data = (unsigned short *)malloc( length *sizeof( unsigned short ) );
  +    data = (unsigned short *)fastMalloc( length *sizeof( unsigned short ) );
       for ( unsigned int i = 0; i < strlen(prefix); i++ )
   	data[i] = prefix[i];
       
  @@ -319,8 +321,8 @@
   
       if ( numParsedProperties >= maxParsedProperties ) {
   	maxParsedProperties += 32;
  -	parsedProperties = (CSSProperty **) realloc( parsedProperties,
  -						    maxParsedProperties*sizeof( CSSProperty * ) );
  +	parsedProperties = (CSSProperty **)fastRealloc(parsedProperties,
  +                                                       maxParsedProperties*sizeof(CSSProperty *));
       }
       parsedProperties[numParsedProperties++] = prop;
   }
  
  
  
  1.209     +2 -1      WebCore/khtml/css/cssstyleselector.cpp
  
  Index: cssstyleselector.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/cssstyleselector.cpp,v
  retrieving revision 1.208
  retrieving revision 1.209
  diff -u -r1.208 -r1.209
  --- cssstyleselector.cpp	30 Sep 2005 00:03:19 -0000	1.208
  +++ cssstyleselector.cpp	3 Oct 2005 21:12:07 -0000	1.209
  @@ -20,6 +20,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "css/cssstyleselector.h"
   #include "rendering/render_style.h"
   #include "css/css_stylesheetimpl.h"
  @@ -180,7 +181,7 @@
   
   namespace khtml {
   
  -class CSSRuleSet : public FastAllocated
  +class CSSRuleSet
   {
   public:
       CSSRuleSet();
  
  
  
  1.39      +3 -4      WebCore/khtml/css/cssstyleselector.h
  
  Index: cssstyleselector.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/cssstyleselector.h,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- cssstyleselector.h	28 Sep 2005 22:01:29 -0000	1.38
  +++ cssstyleselector.h	3 Oct 2005 21:12:08 -0000	1.39
  @@ -29,7 +29,6 @@
   #include "dom/dom_string.h"
   #include "xml/dom_stringimpl.h"
   #include "css/css_ruleimpl.h"
  -#include <kxmlcore/FastMalloc.h>
   
   class KHTMLSettings;
   class KHTMLView;
  @@ -62,7 +61,7 @@
        * for specific implementations of the Selector. At the moment only CSSStyleSelector
        * exists, but someone may wish to implement XSL...
        */
  -    class StyleSelector : public FastAllocated
  +    class StyleSelector
       {
       public:
   	StyleSelector() {};
  @@ -224,7 +223,7 @@
   	void applyProperty(int id, DOM::CSSValueImpl *value);
       };
   
  -    class CSSRuleData : public FastAllocated {
  +    class CSSRuleData {
       public:
           CSSRuleData(uint pos, DOM::CSSStyleRuleImpl* r, DOM::CSSSelector* sel, CSSRuleData* prev = 0)
           :m_position(pos), m_rule(r), m_selector(sel), m_next(0) { if (prev) prev->m_next = this; }
  @@ -242,7 +241,7 @@
           CSSRuleData* m_next;
       };
   
  -    class CSSRuleDataList : public FastAllocated {
  +    class CSSRuleDataList {
       public:
           CSSRuleDataList(uint pos, DOM::CSSStyleRuleImpl* rule, DOM::CSSSelector* sel)
           { m_first = m_last = new CSSRuleData(pos, rule, sel); }
  
  
  
  1.45      +0 -2      WebCore/khtml/css/parser.y
  
  Index: parser.y
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/css/parser.y,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- parser.y	30 Aug 2005 21:36:23 -0000	1.44
  +++ parser.y	3 Oct 2005 21:12:08 -0000	1.45
  @@ -21,9 +21,7 @@
    *
    */
   
  -#ifdef HAVE_CONFIG_H
   #include <config.h>
  -#endif
   #include <string.h>
   #include <stdlib.h>
   
  
  
  
  1.26      +1 -0      WebCore/khtml/dom/dom2_events.cpp
  
  Index: dom2_events.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/dom/dom2_events.cpp,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- dom2_events.cpp	16 Sep 2005 22:42:03 -0000	1.25
  +++ dom2_events.cpp	3 Oct 2005 21:12:11 -0000	1.26
  @@ -21,6 +21,7 @@
    *
    */
   
  +#include "config.h"
   #include "dom/dom2_events.h"
   
   #include "xml/dom2_eventsimpl.h"
  
  
  
  1.7       +1 -0      WebCore/khtml/dom/dom2_traversal.cpp
  
  Index: dom2_traversal.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/dom/dom2_traversal.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- dom2_traversal.cpp	16 Sep 2005 22:42:03 -0000	1.6
  +++ dom2_traversal.cpp	3 Oct 2005 21:12:11 -0000	1.7
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "dom/dom2_traversal.h"
   
   #if !KHTML_NO_CPLUSPLUS_DOM
  
  
  
  1.8       +1 -0      WebCore/khtml/dom/dom_misc.cpp
  
  Index: dom_misc.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/dom/dom_misc.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- dom_misc.cpp	11 May 2005 00:58:28 -0000	1.7
  +++ dom_misc.cpp	3 Oct 2005 21:12:11 -0000	1.8
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "dom_misc.h"
   
   namespace DOM {
  
  
  
  1.22      +1 -0      WebCore/khtml/dom/dom_string.cpp
  
  Index: dom_string.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/dom/dom_string.cpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- dom_string.cpp	12 Sep 2005 03:40:38 -0000	1.21
  +++ dom_string.cpp	3 Oct 2005 21:12:11 -0000	1.22
  @@ -20,6 +20,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "dom/dom_string.h"
   #include "xml/dom_stringimpl.h"
   
  
  
  
  1.7       +1 -0      WebCore/khtml/ecma/domparser.cpp
  
  Index: domparser.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/domparser.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- domparser.cpp	29 Aug 2005 21:29:12 -0000	1.6
  +++ domparser.cpp	3 Oct 2005 21:12:12 -0000	1.7
  @@ -18,6 +18,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "domparser.h"
   #include "domparser.lut.h"
   
  
  
  
  1.45      +1 -0      WebCore/khtml/ecma/kjs_binding.cpp
  
  Index: kjs_binding.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_binding.cpp,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- kjs_binding.cpp	28 Sep 2005 22:01:30 -0000	1.44
  +++ kjs_binding.cpp	3 Oct 2005 21:12:12 -0000	1.45
  @@ -18,6 +18,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_binding.h"
   
   #include "kjs_dom.h"
  
  
  
  1.39      +1 -0      WebCore/khtml/ecma/kjs_css.cpp
  
  Index: kjs_css.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_css.cpp,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- kjs_css.cpp	16 Sep 2005 22:42:04 -0000	1.38
  +++ kjs_css.cpp	3 Oct 2005 21:12:12 -0000	1.39
  @@ -20,6 +20,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_css.h"
   
   #include "css/css_base.h"
  
  
  
  1.99      +1 -0      WebCore/khtml/ecma/kjs_dom.cpp
  
  Index: kjs_dom.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_dom.cpp,v
  retrieving revision 1.98
  retrieving revision 1.99
  diff -u -r1.98 -r1.99
  --- kjs_dom.cpp	27 Sep 2005 22:37:03 -0000	1.98
  +++ kjs_dom.cpp	3 Oct 2005 21:12:12 -0000	1.99
  @@ -18,6 +18,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_dom.h"
   
   #include <kdebug.h>
  
  
  
  1.63      +1 -0      WebCore/khtml/ecma/kjs_events.cpp
  
  Index: kjs_events.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_events.cpp,v
  retrieving revision 1.62
  retrieving revision 1.63
  diff -u -r1.62 -r1.63
  --- kjs_events.cpp	19 Sep 2005 18:52:10 -0000	1.62
  +++ kjs_events.cpp	3 Oct 2005 21:12:12 -0000	1.63
  @@ -18,6 +18,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_events.h"
   #include "kjs_events.lut.h"
   
  
  
  
  1.141     +8 -7      WebCore/khtml/ecma/kjs_html.cpp
  
  Index: kjs_html.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_html.cpp,v
  retrieving revision 1.140
  retrieving revision 1.141
  diff -u -r1.140 -r1.141
  --- kjs_html.cpp	27 Sep 2005 22:37:03 -0000	1.140
  +++ kjs_html.cpp	3 Oct 2005 21:12:13 -0000	1.141
  @@ -19,6 +19,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_html.h"
   
   #include "misc/loader.h"
  @@ -4354,7 +4355,7 @@
                       CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
                       size_t numComponents = CGColorSpaceGetNumberOfComponents(colorSpace);
                       size_t bytesPerRow = BYTES_PER_ROW(csw,BITS_PER_COMPONENT,(numComponents+1)); // + 1 for alpha
  -                    void *_drawingContextData = malloc(csh * bytesPerRow);
  +                    void *_drawingContextData = fastMalloc(csh * bytesPerRow);
                       
                       clippedSourceContext = CGBitmapContextCreate(_drawingContextData, csw, csh, BITS_PER_COMPONENT, bytesPerRow, colorSpace, kCGImageAlphaPremultipliedLast);
                       CGContextTranslateCTM (clippedSourceContext, -sx, -sy);
  @@ -4364,7 +4365,7 @@
                       
                       CGImageRelease (clippedSourceImage);
                       CGContextRelease (clippedSourceContext);
  -                    free (_drawingContextData);
  +                    fastFree (_drawingContextData);
                   }
                   
                   CGImageRelease (sourceImage);
  @@ -5107,10 +5108,10 @@
           _shadingRef = 0;
       }
       
  -    free (stops);
  +    fastFree(stops);
       stops = 0;
       
  -    free (adjustedStops);
  +    fastFree(adjustedStops);
       adjustedStops = 0;
   }
   
  @@ -5144,11 +5145,11 @@
   {
       if (stopCount == 0) {
           maxStops = 4;
  -        stops = (ColorStop *)malloc(maxStops * sizeof(ColorStop));
  +        stops = (ColorStop *)fastMalloc(maxStops * sizeof(ColorStop));
       }
       else if (stopCount+1 > maxStops) {
           maxStops *= 2;
  -        stops = (ColorStop *)realloc(stops, maxStops * sizeof(ColorStop));
  +        stops = (ColorStop *)fastRealloc(stops, maxStops * sizeof(ColorStop));
       }
       stops[stopCount++] = ColorStop (s, r, g, b, a);
       stopsNeedAdjusting = true;
  @@ -5188,7 +5189,7 @@
               adjustedStopCount++;
               
           if (adjustedStopCount != stopCount) {
  -            adjustedStops = (ColorStop *)malloc(adjustedStopCount * sizeof(ColorStop));
  +            adjustedStops = (ColorStop *)fastMalloc(adjustedStopCount * sizeof(ColorStop));
               memcpy (haveZeroStop ? adjustedStops : adjustedStops+1,
                   stops, stopCount*sizeof(ColorStop));
   
  
  
  
  1.36      +1 -0      WebCore/khtml/ecma/kjs_navigator.cpp
  
  Index: kjs_navigator.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_navigator.cpp,v
  retrieving revision 1.35
  retrieving revision 1.36
  diff -u -r1.35 -r1.36
  --- kjs_navigator.cpp	16 Sep 2005 22:42:05 -0000	1.35
  +++ kjs_navigator.cpp	3 Oct 2005 21:12:13 -0000	1.36
  @@ -21,6 +21,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include <klocale.h>
   
   #include <kstandarddirs.h>
  
  
  
  1.24      +1 -0      WebCore/khtml/ecma/kjs_proxy.cpp
  
  Index: kjs_proxy.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_proxy.cpp,v
  retrieving revision 1.23
  retrieving revision 1.24
  diff -u -r1.23 -r1.24
  --- kjs_proxy.cpp	19 Sep 2005 18:52:11 -0000	1.23
  +++ kjs_proxy.cpp	3 Oct 2005 21:12:13 -0000	1.24
  @@ -18,6 +18,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_proxy.h"
   
   #include "kjs_window.h"
  
  
  
  1.17      +1 -0      WebCore/khtml/ecma/kjs_range.cpp
  
  Index: kjs_range.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_range.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- kjs_range.cpp	25 Aug 2005 17:47:01 -0000	1.16
  +++ kjs_range.cpp	3 Oct 2005 21:12:13 -0000	1.17
  @@ -19,6 +19,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_range.h"
   
   #include <kdebug.h>
  
  
  
  1.18      +1 -0      WebCore/khtml/ecma/kjs_traversal.cpp
  
  Index: kjs_traversal.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_traversal.cpp,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- kjs_traversal.cpp	19 Sep 2005 18:52:11 -0000	1.17
  +++ kjs_traversal.cpp	3 Oct 2005 21:12:13 -0000	1.18
  @@ -17,6 +17,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_traversal.h"
   #include "kjs_traversal.lut.h"
   
  
  
  
  1.14      +1 -0      WebCore/khtml/ecma/kjs_views.cpp
  
  Index: kjs_views.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_views.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- kjs_views.cpp	27 Sep 2005 22:37:04 -0000	1.13
  +++ kjs_views.cpp	3 Oct 2005 21:12:14 -0000	1.14
  @@ -18,6 +18,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_views.h"
   
   #include "kjs_css.h"
  
  
  
  1.182     +1 -0      WebCore/khtml/ecma/kjs_window.cpp
  
  Index: kjs_window.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/kjs_window.cpp,v
  retrieving revision 1.181
  retrieving revision 1.182
  diff -u -r1.181 -r1.182
  --- kjs_window.cpp	27 Sep 2005 22:37:05 -0000	1.181
  +++ kjs_window.cpp	3 Oct 2005 21:12:14 -0000	1.182
  @@ -19,6 +19,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "kjs_window.h"
   
   #include <qstylesheet.h>
  
  
  
  1.43      +1 -0      WebCore/khtml/ecma/xmlhttprequest.cpp
  
  Index: xmlhttprequest.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/xmlhttprequest.cpp,v
  retrieving revision 1.42
  retrieving revision 1.43
  diff -u -r1.42 -r1.43
  --- xmlhttprequest.cpp	19 Sep 2005 18:52:11 -0000	1.42
  +++ xmlhttprequest.cpp	3 Oct 2005 21:12:14 -0000	1.43
  @@ -17,6 +17,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "xmlhttprequest.h"
   
   #include "kjs_window.h"
  
  
  
  1.9       +1 -0      WebCore/khtml/ecma/xmlserializer.cpp
  
  Index: xmlserializer.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/ecma/xmlserializer.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- xmlserializer.cpp	25 Aug 2005 17:47:02 -0000	1.8
  +++ xmlserializer.cpp	3 Oct 2005 21:12:14 -0000	1.9
  @@ -18,6 +18,7 @@
    *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    */
   
  +#include "config.h"
   #include "xmlserializer.h"
   #include "xmlserializer.lut.h"
   
  
  
  
  1.97      +1 -0      WebCore/khtml/editing/SelectionController.cpp
  
  Index: SelectionController.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/SelectionController.cpp,v
  retrieving revision 1.96
  retrieving revision 1.97
  diff -u -r1.96 -r1.97
  --- SelectionController.cpp	27 Sep 2005 22:37:08 -0000	1.96
  +++ SelectionController.cpp	3 Oct 2005 21:12:18 -0000	1.97
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
     
  +#include "config.h"
   #include "SelectionController.h"
   
   #include <qevent.h>
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/append_node_command.cpp
  
  Index: append_node_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/append_node_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- append_node_command.cpp	27 Sep 2005 22:37:09 -0000	1.2
  +++ append_node_command.cpp	3 Oct 2005 21:12:18 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "append_node_command.h"
   
   #include "xml/dom_nodeimpl.h"
  
  
  
  1.16      +1 -0      WebCore/khtml/editing/apply_style_command.cpp
  
  Index: apply_style_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/apply_style_command.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- apply_style_command.cpp	27 Sep 2005 22:37:09 -0000	1.15
  +++ apply_style_command.cpp	3 Oct 2005 21:12:18 -0000	1.16
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "apply_style_command.h"
   
   #include "html_interchange.h"
  
  
  
  1.9       +1 -0      WebCore/khtml/editing/break_blockquote_command.cpp
  
  Index: break_blockquote_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/break_blockquote_command.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- break_blockquote_command.cpp	27 Sep 2005 22:37:09 -0000	1.8
  +++ break_blockquote_command.cpp	3 Oct 2005 21:12:18 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "break_blockquote_command.h"
   
   #include "htmlediting.h"
  
  
  
  1.15      +1 -0      WebCore/khtml/editing/composite_edit_command.cpp
  
  Index: composite_edit_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/composite_edit_command.cpp,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- composite_edit_command.cpp	29 Sep 2005 07:47:06 -0000	1.14
  +++ composite_edit_command.cpp	3 Oct 2005 21:12:18 -0000	1.15
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "composite_edit_command.h"
   
   #include "append_node_command.h"
  
  
  
  1.4       +1 -0      WebCore/khtml/editing/delete_from_text_node_command.cpp
  
  Index: delete_from_text_node_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/delete_from_text_node_command.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- delete_from_text_node_command.cpp	27 Sep 2005 22:37:09 -0000	1.3
  +++ delete_from_text_node_command.cpp	3 Oct 2005 21:12:18 -0000	1.4
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "delete_from_text_node_command.h"
   
   #include "xml/dom_textimpl.h"
  
  
  
  1.19      +1 -0      WebCore/khtml/editing/delete_selection_command.cpp
  
  Index: delete_selection_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/delete_selection_command.cpp,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- delete_selection_command.cpp	27 Sep 2005 22:37:09 -0000	1.18
  +++ delete_selection_command.cpp	3 Oct 2005 21:12:19 -0000	1.19
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "delete_selection_command.h"
   
   #include "css/css_computedstyle.h"
  
  
  
  1.9       +1 -0      WebCore/khtml/editing/edit_command.cpp
  
  Index: edit_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/edit_command.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- edit_command.cpp	27 Sep 2005 22:37:09 -0000	1.8
  +++ edit_command.cpp	3 Oct 2005 21:12:19 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "edit_command.h"
   #include "SelectionController.h"
   #include "khtml_part.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/html_interchange.cpp
  
  Index: html_interchange.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/html_interchange.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- html_interchange.cpp	8 Mar 2005 17:42:38 -0000	1.2
  +++ html_interchange.cpp	3 Oct 2005 21:12:19 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "html_interchange.h"
   
   #include <qstring.h>
  
  
  
  1.260     +1 -0      WebCore/khtml/editing/htmlediting.cpp
  
  Index: htmlediting.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/htmlediting.cpp,v
  retrieving revision 1.259
  retrieving revision 1.260
  diff -u -r1.259 -r1.260
  --- htmlediting.cpp	29 Sep 2005 07:47:06 -0000	1.259
  +++ htmlediting.cpp	3 Oct 2005 21:12:19 -0000	1.260
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "htmlediting.h"
   
   #include "css_computedstyle.h"
  
  
  
  1.4       +1 -0      WebCore/khtml/editing/insert_into_text_node_command.cpp
  
  Index: insert_into_text_node_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/insert_into_text_node_command.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- insert_into_text_node_command.cpp	27 Sep 2005 22:37:10 -0000	1.3
  +++ insert_into_text_node_command.cpp	3 Oct 2005 21:12:19 -0000	1.4
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "insert_into_text_node_command.h"
   
   #include "xml/dom_textimpl.h"
  
  
  
  1.8       +1 -0      WebCore/khtml/editing/insert_line_break_command.cpp
  
  Index: insert_line_break_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/insert_line_break_command.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- insert_line_break_command.cpp	27 Sep 2005 22:37:10 -0000	1.7
  +++ insert_line_break_command.cpp	3 Oct 2005 21:12:19 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "insert_line_break_command.h"
   
   #include "htmlediting.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/insert_node_before_command.cpp
  
  Index: insert_node_before_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/insert_node_before_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- insert_node_before_command.cpp	27 Sep 2005 22:37:10 -0000	1.2
  +++ insert_node_before_command.cpp	3 Oct 2005 21:12:19 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "insert_node_before_command.h"
   
   #include "xml/dom_nodeimpl.h"
  
  
  
  1.9       +1 -0      WebCore/khtml/editing/insert_paragraph_separator_command.cpp
  
  Index: insert_paragraph_separator_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/insert_paragraph_separator_command.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- insert_paragraph_separator_command.cpp	27 Sep 2005 22:37:10 -0000	1.8
  +++ insert_paragraph_separator_command.cpp	3 Oct 2005 21:12:19 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "insert_paragraph_separator_command.h"
   
   #include "htmlediting.h"
  
  
  
  1.11      +1 -0      WebCore/khtml/editing/insert_text_command.cpp
  
  Index: insert_text_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/insert_text_command.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- insert_text_command.cpp	29 Sep 2005 07:47:06 -0000	1.10
  +++ insert_text_command.cpp	3 Oct 2005 21:12:19 -0000	1.11
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "insert_text_command.h"
   
   #include "khtml_part.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/join_text_nodes_command.cpp
  
  Index: join_text_nodes_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/join_text_nodes_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- join_text_nodes_command.cpp	27 Sep 2005 22:37:10 -0000	1.2
  +++ join_text_nodes_command.cpp	3 Oct 2005 21:12:19 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "join_text_nodes_command.h"
   
   #include "xml/dom_docimpl.h"
  
  
  
  1.33      +1 -0      WebCore/khtml/editing/jsediting.cpp
  
  Index: jsediting.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/jsediting.cpp,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- jsediting.cpp	28 Sep 2005 22:01:31 -0000	1.32
  +++ jsediting.cpp	3 Oct 2005 21:12:19 -0000	1.33
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
   
  +#include "config.h"
   #include "jsediting.h"
   
   #include "css/css_valueimpl.h"
  
  
  
  1.37      +1 -0      WebCore/khtml/editing/markup.cpp
  
  Index: markup.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/markup.cpp,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- markup.cpp	29 Sep 2005 07:47:06 -0000	1.36
  +++ markup.cpp	3 Oct 2005 21:12:20 -0000	1.37
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "markup.h"
   
   #include "htmlediting.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/merge_identical_elements_command.cpp
  
  Index: merge_identical_elements_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/merge_identical_elements_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- merge_identical_elements_command.cpp	27 Sep 2005 22:37:10 -0000	1.2
  +++ merge_identical_elements_command.cpp	3 Oct 2005 21:12:20 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "merge_identical_elements_command.h"
   
   #include "xml/dom_docimpl.h"
  
  
  
  1.5       +1 -0      WebCore/khtml/editing/move_selection_command.cpp
  
  Index: move_selection_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/move_selection_command.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- move_selection_command.cpp	27 Sep 2005 22:37:10 -0000	1.4
  +++ move_selection_command.cpp	3 Oct 2005 21:12:20 -0000	1.5
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "move_selection_command.h"
   #include "replace_selection_command.h"
   
  
  
  
  1.5       +1 -0      WebCore/khtml/editing/rebalance_whitespace_command.cpp
  
  Index: rebalance_whitespace_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/rebalance_whitespace_command.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- rebalance_whitespace_command.cpp	29 Sep 2005 07:47:06 -0000	1.4
  +++ rebalance_whitespace_command.cpp	3 Oct 2005 21:12:20 -0000	1.5
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "rebalance_whitespace_command.h"
   
   #include "htmlediting.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/remove_css_property_command.cpp
  
  Index: remove_css_property_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/remove_css_property_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- remove_css_property_command.cpp	27 Sep 2005 22:37:11 -0000	1.2
  +++ remove_css_property_command.cpp	3 Oct 2005 21:12:20 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "remove_css_property_command.h"
   
   #include "css/css_valueimpl.h"
  
  
  
  1.5       +1 -0      WebCore/khtml/editing/remove_node_attribute_command.cpp
  
  Index: remove_node_attribute_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/remove_node_attribute_command.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- remove_node_attribute_command.cpp	27 Sep 2005 22:37:11 -0000	1.4
  +++ remove_node_attribute_command.cpp	3 Oct 2005 21:12:20 -0000	1.5
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "remove_node_attribute_command.h"
   
   #include "xml/dom_elementimpl.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/remove_node_command.cpp
  
  Index: remove_node_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/remove_node_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- remove_node_command.cpp	27 Sep 2005 22:37:11 -0000	1.2
  +++ remove_node_command.cpp	3 Oct 2005 21:12:20 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "remove_node_command.h"
   
   #include "xml/dom_nodeimpl.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/remove_node_preserving_children_command.cpp
  
  Index: remove_node_preserving_children_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/remove_node_preserving_children_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- remove_node_preserving_children_command.cpp	27 Sep 2005 22:37:11 -0000	1.2
  +++ remove_node_preserving_children_command.cpp	3 Oct 2005 21:12:20 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "remove_node_preserving_children_command.h"
   
   #include "xml/dom_nodeimpl.h"
  
  
  
  1.17      +1 -0      WebCore/khtml/editing/replace_selection_command.cpp
  
  Index: replace_selection_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/replace_selection_command.cpp,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- replace_selection_command.cpp	27 Sep 2005 22:37:11 -0000	1.16
  +++ replace_selection_command.cpp	3 Oct 2005 21:12:20 -0000	1.17
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "replace_selection_command.h"
   
   #include "visible_position.h"
  
  
  
  1.5       +1 -0      WebCore/khtml/editing/set_node_attribute_command.cpp
  
  Index: set_node_attribute_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/set_node_attribute_command.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- set_node_attribute_command.cpp	27 Sep 2005 22:37:11 -0000	1.4
  +++ set_node_attribute_command.cpp	3 Oct 2005 21:12:20 -0000	1.5
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "set_node_attribute_command.h"
   
   #include "xml/dom_elementimpl.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/split_element_command.cpp
  
  Index: split_element_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/split_element_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- split_element_command.cpp	27 Sep 2005 22:37:11 -0000	1.2
  +++ split_element_command.cpp	3 Oct 2005 21:12:21 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "split_element_command.h"
   
   #include "xml/dom_elementimpl.h"
  
  
  
  1.5       +1 -0      WebCore/khtml/editing/split_text_node_command.cpp
  
  Index: split_text_node_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/split_text_node_command.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- split_text_node_command.cpp	27 Sep 2005 22:37:11 -0000	1.4
  +++ split_text_node_command.cpp	3 Oct 2005 21:12:21 -0000	1.5
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "split_text_node_command.h"
   
   #include "xml/dom_docimpl.h"
  
  
  
  1.4       +1 -0      WebCore/khtml/editing/split_text_node_containing_element.cpp
  
  Index: split_text_node_containing_element.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/split_text_node_containing_element.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- split_text_node_containing_element.cpp	27 Sep 2005 22:37:11 -0000	1.3
  +++ split_text_node_containing_element.cpp	3 Oct 2005 21:12:21 -0000	1.4
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "split_text_node_containing_element_command.h"
   
   #include "xml/dom_textimpl.h"
  
  
  
  1.4       +1 -0      WebCore/khtml/editing/typing_command.cpp
  
  Index: typing_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/typing_command.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- typing_command.cpp	27 Sep 2005 22:37:11 -0000	1.3
  +++ typing_command.cpp	3 Oct 2005 21:12:21 -0000	1.4
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "typing_command.h"
   
   #include "insert_text_command.h"
  
  
  
  1.60      +1 -0      WebCore/khtml/editing/visible_position.cpp
  
  Index: visible_position.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/visible_position.cpp,v
  retrieving revision 1.59
  retrieving revision 1.60
  diff -u -r1.59 -r1.60
  --- visible_position.cpp	27 Sep 2005 22:37:11 -0000	1.59
  +++ visible_position.cpp	3 Oct 2005 21:12:21 -0000	1.60
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "visible_position.h"
   #include "visible_units.h"
   
  
  
  
  1.2       +1 -0      WebCore/khtml/editing/visible_range.cpp
  
  Index: visible_range.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/visible_range.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- visible_range.cpp	23 Sep 2004 16:10:00 -0000	1.1
  +++ visible_range.cpp	3 Oct 2005 21:12:21 -0000	1.2
  @@ -23,5 +23,6 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "visible_range.h"
   
  
  
  
  1.38      +3 -2      WebCore/khtml/editing/visible_text.cpp
  
  Index: visible_text.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/visible_text.cpp,v
  retrieving revision 1.37
  retrieving revision 1.38
  diff -u -r1.37 -r1.38
  --- visible_text.cpp	16 Sep 2005 22:42:07 -0000	1.37
  +++ visible_text.cpp	3 Oct 2005 21:12:21 -0000	1.38
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "visible_text.h"
   
   #include "htmlnames.h"
  @@ -55,7 +56,7 @@
   class CircularSearchBuffer {
   public:
       CircularSearchBuffer(const QString &target, bool isCaseSensitive);
  -    ~CircularSearchBuffer() { free(m_buffer); }
  +    ~CircularSearchBuffer() { fastFree(m_buffer); }
   
       void clear() { m_cursor = m_buffer; m_bufferFull = false; }
       void append(int length, const QChar *characters);
  @@ -908,7 +909,7 @@
       m_target.replace(nonBreakingSpace, ' ');
       m_isCaseSensitive = isCaseSensitive;
   
  -    m_buffer = static_cast<QChar *>(malloc(s.length() * sizeof(QChar)));
  +    m_buffer = static_cast<QChar *>(fastMalloc(s.length() * sizeof(QChar)));
       m_cursor = m_buffer;
       m_bufferFull = false;
   }
  
  
  
  1.41      +1 -0      WebCore/khtml/editing/visible_units.cpp
  
  Index: visible_units.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/visible_units.cpp,v
  retrieving revision 1.40
  retrieving revision 1.41
  diff -u -r1.40 -r1.41
  --- visible_units.cpp	16 Sep 2005 22:42:07 -0000	1.40
  +++ visible_units.cpp	3 Oct 2005 21:12:21 -0000	1.41
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "visible_units.h"
   
   #include <qstring.h>
  
  
  
  1.3       +1 -0      WebCore/khtml/editing/wrap_contents_in_dummy_span_command.cpp
  
  Index: wrap_contents_in_dummy_span_command.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/editing/wrap_contents_in_dummy_span_command.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- wrap_contents_in_dummy_span_command.cpp	27 Sep 2005 22:37:12 -0000	1.2
  +++ wrap_contents_in_dummy_span_command.cpp	3 Oct 2005 21:12:21 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "wrap_contents_in_dummy_span_command.h"
   
   #include "apply_style_command.h"
  
  
  
  1.81      +1 -0      WebCore/khtml/html/html_baseimpl.cpp
  
  Index: html_baseimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_baseimpl.cpp,v
  retrieving revision 1.80
  retrieving revision 1.81
  diff -u -r1.80 -r1.81
  --- html_baseimpl.cpp	31 Aug 2005 04:38:38 -0000	1.80
  +++ html_baseimpl.cpp	3 Oct 2005 21:12:27 -0000	1.81
  @@ -24,6 +24,7 @@
    */
   // -------------------------------------------------------------------------
   
  +#include "config.h"
   #include "html_baseimpl.h"
   
   #include "html/html_documentimpl.h"
  
  
  
  1.26      +1 -0      WebCore/khtml/html/html_blockimpl.cpp
  
  Index: html_blockimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_blockimpl.cpp,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- html_blockimpl.cpp	16 Sep 2005 22:42:11 -0000	1.25
  +++ html_blockimpl.cpp	3 Oct 2005 21:12:27 -0000	1.26
  @@ -23,6 +23,7 @@
    */
   // -------------------------------------------------------------------------
   //#define DEBUG
  +#include "config.h"
   #include "html_blockimpl.h"
   #include "html_documentimpl.h"
   #include "css/cssstyleselector.h"
  
  
  
  1.8       +1 -0      WebCore/khtml/html/html_canvasimpl.cpp
  
  Index: html_canvasimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_canvasimpl.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- html_canvasimpl.cpp	30 Jul 2005 02:33:17 -0000	1.7
  +++ html_canvasimpl.cpp	3 Oct 2005 21:12:28 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "html/html_canvasimpl.h"
   #include "html/html_documentimpl.h"
   
  
  
  
  1.71      +1 -0      WebCore/khtml/html/html_documentimpl.cpp
  
  Index: html_documentimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_documentimpl.cpp,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- html_documentimpl.cpp	28 Sep 2005 22:01:32 -0000	1.70
  +++ html_documentimpl.cpp	3 Oct 2005 21:12:28 -0000	1.71
  @@ -52,6 +52,7 @@
    * version of this file under any of the LGPL, the MPL or the GPL.
    */
   
  +#include "config.h"
   #include "html/html_documentimpl.h"
   #include "html/html_imageimpl.h"
   #include "html/html_headimpl.h"
  
  
  
  1.107     +1 -0      WebCore/khtml/html/html_elementimpl.cpp
  
  Index: html_elementimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_elementimpl.cpp,v
  retrieving revision 1.106
  retrieving revision 1.107
  diff -u -r1.106 -r1.107
  --- html_elementimpl.cpp	28 Sep 2005 22:01:33 -0000	1.106
  +++ html_elementimpl.cpp	3 Oct 2005 21:12:28 -0000	1.107
  @@ -28,6 +28,7 @@
   //#define EVENT_DEBUG
   //#define UNSUPPORTED_ATTR
   
  +#include "config.h"
   #include "html/html_elementimpl.h"
   #include "html/html_documentimpl.h"
   #include "html/htmltokenizer.h"
  
  
  
  1.196     +1 -0      WebCore/khtml/html/html_formimpl.cpp
  
  Index: html_formimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_formimpl.cpp,v
  retrieving revision 1.195
  retrieving revision 1.196
  diff -u -r1.195 -r1.196
  --- html_formimpl.cpp	28 Sep 2005 22:01:34 -0000	1.195
  +++ html_formimpl.cpp	3 Oct 2005 21:12:28 -0000	1.196
  @@ -26,6 +26,7 @@
   #undef FORMS_DEBUG
   //#define FORMS_DEBUG
   
  +#include "config.h"
   #include "html/html_formimpl.h"
   
   #include "khtmlview.h"
  
  
  
  1.57      +1 -0      WebCore/khtml/html/html_headimpl.cpp
  
  Index: html_headimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_headimpl.cpp,v
  retrieving revision 1.56
  retrieving revision 1.57
  diff -u -r1.56 -r1.57
  --- html_headimpl.cpp	29 Aug 2005 21:29:18 -0000	1.56
  +++ html_headimpl.cpp	3 Oct 2005 21:12:29 -0000	1.57
  @@ -23,6 +23,7 @@
    */
   // -------------------------------------------------------------------------
   
  +#include "config.h"
   #include "html/html_headimpl.h"
   #include "html/html_documentimpl.h"
   #include "xml/dom_textimpl.h"
  
  
  
  1.52      +1 -0      WebCore/khtml/html/html_imageimpl.cpp
  
  Index: html_imageimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_imageimpl.cpp,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- html_imageimpl.cpp	16 Sep 2005 22:42:11 -0000	1.51
  +++ html_imageimpl.cpp	3 Oct 2005 21:12:29 -0000	1.52
  @@ -21,6 +21,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "html/html_imageimpl.h"
   #include "html/html_formimpl.h"
   #include "html/html_documentimpl.h"
  
  
  
  1.52      +1 -0      WebCore/khtml/html/html_inlineimpl.cpp
  
  Index: html_inlineimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_inlineimpl.cpp,v
  retrieving revision 1.51
  retrieving revision 1.52
  diff -u -r1.51 -r1.52
  --- html_inlineimpl.cpp	16 Sep 2005 22:42:11 -0000	1.51
  +++ html_inlineimpl.cpp	3 Oct 2005 21:12:29 -0000	1.52
  @@ -23,6 +23,7 @@
    */
   // -------------------------------------------------------------------------
   
  +#include "config.h"
   #include "html/html_inlineimpl.h"
   #include "html/html_imageimpl.h"
   #include "html/html_documentimpl.h"
  
  
  
  1.16      +1 -0      WebCore/khtml/html/html_listimpl.cpp
  
  Index: html_listimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_listimpl.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- html_listimpl.cpp	16 Sep 2005 22:42:12 -0000	1.15
  +++ html_listimpl.cpp	3 Oct 2005 21:12:29 -0000	1.16
  @@ -20,6 +20,7 @@
    * Boston, MA 02111-1307, USA.
    *
    */
  +#include "config.h"
   #include "html_listimpl.h"
   
   #include "css/cssproperties.h"
  
  
  
  1.37      +1 -0      WebCore/khtml/html/html_miscimpl.cpp
  
  Index: html_miscimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_miscimpl.cpp,v
  retrieving revision 1.36
  retrieving revision 1.37
  diff -u -r1.36 -r1.37
  --- html_miscimpl.cpp	16 Sep 2005 22:42:12 -0000	1.36
  +++ html_miscimpl.cpp	3 Oct 2005 21:12:29 -0000	1.37
  @@ -22,6 +22,7 @@
    *
    */
   // -------------------------------------------------------------------------
  +#include "config.h"
   #include "html/html_miscimpl.h"
   #include "html/html_formimpl.h"
   #include "html/html_imageimpl.h"
  
  
  
  1.80      +1 -0      WebCore/khtml/html/html_objectimpl.cpp
  
  Index: html_objectimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_objectimpl.cpp,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- html_objectimpl.cpp	16 Sep 2005 22:42:12 -0000	1.79
  +++ html_objectimpl.cpp	3 Oct 2005 21:12:29 -0000	1.80
  @@ -21,6 +21,7 @@
    * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    * Boston, MA 02111-1307, USA.
    */
  +#include "config.h"
   #include "html/html_objectimpl.h"
   
   #include "khtml_part.h"
  
  
  
  1.66      +1 -0      WebCore/khtml/html/html_tableimpl.cpp
  
  Index: html_tableimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/html_tableimpl.cpp,v
  retrieving revision 1.65
  retrieving revision 1.66
  diff -u -r1.65 -r1.66
  --- html_tableimpl.cpp	21 Sep 2005 17:32:40 -0000	1.65
  +++ html_tableimpl.cpp	3 Oct 2005 21:12:30 -0000	1.66
  @@ -24,6 +24,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "html/html_documentimpl.h"
   #include "html/html_tableimpl.h"
   
  
  
  
  1.8       +1 -0      WebCore/khtml/html/htmlfactory.cpp
  
  Index: htmlfactory.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/htmlfactory.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- htmlfactory.cpp	28 Sep 2005 22:01:36 -0000	1.7
  +++ htmlfactory.cpp	3 Oct 2005 21:12:30 -0000	1.8
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "htmlfactory.h"
   #include "dom_docimpl.h"
   
  
  
  
  1.9       +1 -0      WebCore/khtml/html/htmlnames.cpp
  
  Index: htmlnames.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/htmlnames.cpp,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- htmlnames.cpp	27 Aug 2005 03:21:01 -0000	1.8
  +++ htmlnames.cpp	3 Oct 2005 21:12:30 -0000	1.9
  @@ -22,6 +22,7 @@
   
   #define DOM_HTMLNAMES_HIDE_GLOBALS 1
   
  +#include "config.h"
   #include "htmlnames.h"
   
   namespace DOM { namespace HTMLNames {
  
  
  
  1.115     +2 -2      WebCore/khtml/html/htmlparser.cpp
  
  Index: htmlparser.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/htmlparser.cpp,v
  retrieving revision 1.114
  retrieving revision 1.115
  diff -u -r1.114 -r1.115
  --- htmlparser.cpp	28 Sep 2005 22:01:37 -0000	1.114
  +++ htmlparser.cpp	3 Oct 2005 21:12:30 -0000	1.115
  @@ -27,6 +27,7 @@
   // KDE HTML Widget -- HTML Parser
   //#define PARSER_DEBUG
   
  +#include "config.h"
   #include "html/htmlparser.h"
   
   #include "dom/dom_exception.h"
  @@ -47,7 +48,6 @@
   #include "htmlfactory.h"
   #include "xml/dom_textimpl.h"
   #include "xml/dom_nodeimpl.h"
  -#include <kxmlcore/FastMalloc.h>
   #include <kxmlcore/HashSet.h>
   #include "html/htmltokenizer.h"
   #include "khtmlview.h"
  @@ -71,7 +71,7 @@
   /**
    * @internal
    */
  -class HTMLStackElem : public FastAllocated
  +class HTMLStackElem
   {
   public:
       HTMLStackElem(const AtomicString& _tagName,
  
  
  
  1.116     +5 -7      WebCore/khtml/html/htmltokenizer.cpp
  
  Index: htmltokenizer.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/html/htmltokenizer.cpp,v
  retrieving revision 1.115
  retrieving revision 1.116
  diff -u -r1.115 -r1.116
  --- htmltokenizer.cpp	23 Sep 2005 17:38:06 -0000	1.115
  +++ htmltokenizer.cpp	3 Oct 2005 21:12:30 -0000	1.116
  @@ -31,9 +31,7 @@
   //#define TOKEN_DEBUG 1
   //#define TOKEN_DEBUG 2
   
  -#ifdef HAVE_CONFIG_H
   #include "config.h"
  -#endif
   
   //#include <string.h>
   #include "html/htmltokenizer.h"
  @@ -94,9 +92,9 @@
   static const char textareaEnd [] = "</textarea";
   static const char titleEnd [] = "</title";
   
  -#define KHTML_ALLOC_QCHAR_VEC( N ) (QChar*) malloc( sizeof(QChar)*( N ) )
  -#define KHTML_REALLOC_QCHAR_VEC(P, N ) (QChar*) P = realloc(p, sizeof(QChar)*( N ))
  -#define KHTML_DELETE_QCHAR_VEC( P ) free((char*)( P ))
  +#define KHTML_ALLOC_QCHAR_VEC( N ) (QChar*) fastMalloc( sizeof(QChar)*( N ) )
  +#define KHTML_REALLOC_QCHAR_VEC(P, N ) (QChar*) P = fastRealloc(p, sizeof(QChar)*( N ))
  +#define KHTML_DELETE_QCHAR_VEC( P ) fastFree((char*)( P ))
   
   // Full support for MS Windows extensions to Latin-1.
   // Technically these extensions should only be activated for pages
  @@ -1756,7 +1754,7 @@
       int newsize = kMax(size*2, size+len);
       int oldoffs = (dest - buffer);
   
  -    buffer = (QChar*)realloc(buffer, newsize*sizeof(QChar));
  +    buffer = (QChar*)fastRealloc(buffer, newsize*sizeof(QChar));
       dest = buffer + oldoffs;
       size = newsize;
   }
  @@ -1764,7 +1762,7 @@
   void HTMLTokenizer::enlargeScriptBuffer(int len)
   {
       int newsize = kMax(scriptCodeMaxSize*2, scriptCodeMaxSize+len);
  -    scriptCode = (QChar*)realloc(scriptCode, newsize*sizeof(QChar));
  +    scriptCode = (QChar*)fastRealloc(scriptCode, newsize*sizeof(QChar));
       scriptCodeMaxSize = newsize;
   }
   
  
  
  
  1.7       +1 -0      WebCore/khtml/misc/arena.cpp
  
  Index: arena.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/misc/arena.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- arena.cpp	27 Sep 2005 22:37:18 -0000	1.6
  +++ arena.cpp	3 Oct 2005 21:12:35 -0000	1.7
  @@ -42,6 +42,7 @@
    * David R. Hanson, Software -- Practice and Experience, Vol. 20(1).
    */
   
  +#include "config.h"
   #include "arena.h"
   
   #include <algorithm>
  
  
  
  1.4       +1 -1      WebCore/khtml/misc/arena.h
  
  Index: arena.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/misc/arena.h,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- arena.h	18 Dec 2002 07:49:20 -0000	1.3
  +++ arena.h	3 Oct 2005 21:12:35 -0000	1.4
  @@ -119,7 +119,7 @@
            if ((pool)->current == (a)) (pool)->current = &(pool)->first; \
            *(pnext) = (a)->next; \
            CLEAR_ARENA(a); \
  -         free(a); \
  +         fastFree(a); \
            (a) = 0;
   
   #endif
  
  
  
  1.45      +1 -0      WebCore/khtml/misc/decoder.cpp
  
  Index: decoder.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/misc/decoder.cpp,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- decoder.cpp	24 Sep 2005 09:49:11 -0000	1.44
  +++ decoder.cpp	3 Oct 2005 21:12:35 -0000	1.45
  @@ -25,6 +25,7 @@
   
   //#define DECODE_DEBUG
   
  +#include "config.h"
   #include "decoder.h"
   using namespace khtml;
   
  
  
  
  1.3       +1 -0      WebCore/khtml/misc/formdata.cpp
  
  Index: formdata.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/misc/formdata.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- formdata.cpp	6 Sep 2004 23:23:15 -0000	1.2
  +++ formdata.cpp	3 Oct 2005 21:12:35 -0000	1.3
  @@ -18,6 +18,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "formdata.h"
   
   namespace khtml {
  
  
  
  1.22      +1 -0      WebCore/khtml/misc/helper.cpp
  
  Index: helper.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/misc/helper.cpp,v
  retrieving revision 1.21
  retrieving revision 1.22
  diff -u -r1.21 -r1.22
  --- helper.cpp	6 Jan 2005 18:20:50 -0000	1.21
  +++ helper.cpp	3 Oct 2005 21:12:35 -0000	1.22
  @@ -21,6 +21,7 @@
    *
    */
   
  +#include "config.h"
   #include "helper.h"
   
   #if APPLE_CHANGES
  
  
  
  1.77      +1 -0      WebCore/khtml/misc/loader.cpp
  
  Index: loader.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/misc/loader.cpp,v
  retrieving revision 1.76
  retrieving revision 1.77
  diff -u -r1.76 -r1.77
  --- loader.cpp	27 Sep 2005 22:37:19 -0000	1.76
  +++ loader.cpp	3 Oct 2005 21:12:35 -0000	1.77
  @@ -27,6 +27,7 @@
   
   #undef CACHE_DEBUG
   //#define CACHE_DEBUG
  +#include "config.h"
   #include <assert.h>
   
   #include "loader.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/misc/stringit.cpp
  
  Index: stringit.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/misc/stringit.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- stringit.cpp	9 May 2004 04:55:11 -0000	1.2
  +++ stringit.cpp	3 Oct 2005 21:12:35 -0000	1.3
  @@ -19,6 +19,7 @@
       Boston, MA 02111-1307, USA.
   */
   
  +#include "config.h"
   #include "stringit.h"
   
   namespace khtml {
  
  
  
  1.144     +1 -0      WebCore/khtml/rendering/bidi.cpp
  
  Index: bidi.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/bidi.cpp,v
  retrieving revision 1.143
  retrieving revision 1.144
  diff -u -r1.143 -r1.144
  --- bidi.cpp	29 Sep 2005 20:10:56 -0000	1.143
  +++ bidi.cpp	3 Oct 2005 21:12:36 -0000	1.144
  @@ -20,6 +20,7 @@
    * Boston, MA 02111-1307, USA.
    *
    */
  +#include "config.h"
   #include "bidi.h"
   #include "break_lines.h"
   #include "render_block.h"
  
  
  
  1.26      +1 -0      WebCore/khtml/rendering/break_lines.cpp
  
  Index: break_lines.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/break_lines.cpp,v
  retrieving revision 1.25
  retrieving revision 1.26
  diff -u -r1.25 -r1.26
  --- break_lines.cpp	4 Sep 2005 08:23:40 -0000	1.25
  +++ break_lines.cpp	3 Oct 2005 21:12:37 -0000	1.26
  @@ -20,6 +20,7 @@
    *
    */
   
  +#include "config.h"
   #include "break_lines.h"
   
   #include <qstring.h>
  
  
  
  1.45      +1 -0      WebCore/khtml/rendering/font.cpp
  
  Index: font.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/font.cpp,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- font.cpp	25 Aug 2005 17:47:13 -0000	1.44
  +++ font.cpp	3 Oct 2005 21:12:37 -0000	1.45
  @@ -23,6 +23,7 @@
    *
    */
   
  +#include "config.h"
   #include "font.h"
   
   #include "khtml_factory.h"
  
  
  
  1.8       +1 -0      WebCore/khtml/rendering/render_arena.cpp
  
  Index: render_arena.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_arena.cpp,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- render_arena.cpp	30 Jan 2003 06:32:52 -0000	1.7
  +++ render_arena.cpp	3 Oct 2005 21:12:37 -0000	1.8
  @@ -32,6 +32,7 @@
    * version of this file under any of the LGPL, the MPL or the GPL.
    */
   
  +#include "config.h"
   #include "render_arena.h"
   
   #ifndef NDEBUG
  
  
  
  1.207     +1 -0      WebCore/khtml/rendering/render_block.cpp
  
  Index: render_block.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_block.cpp,v
  retrieving revision 1.206
  retrieving revision 1.207
  diff -u -r1.206 -r1.207
  --- render_block.cpp	29 Sep 2005 20:10:56 -0000	1.206
  +++ render_block.cpp	3 Oct 2005 21:12:37 -0000	1.207
  @@ -27,6 +27,7 @@
   //#define BOX_DEBUG
   //#define FLOAT_DEBUG
   
  +#include "config.h"
   #include <kdebug.h>
   #include "rendering/render_text.h"
   #include "rendering/render_table.h"
  
  
  
  1.169     +1 -0      WebCore/khtml/rendering/render_box.cpp
  
  Index: render_box.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_box.cpp,v
  retrieving revision 1.168
  retrieving revision 1.169
  diff -u -r1.168 -r1.169
  --- render_box.cpp	29 Sep 2005 20:10:56 -0000	1.168
  +++ render_box.cpp	3 Oct 2005 21:12:38 -0000	1.169
  @@ -25,6 +25,7 @@
   //#define DEBUG_LAYOUT
   
   
  +#include "config.h"
   #include <qpainter.h>
   #include <qpen.h>
   
  
  
  
  1.29      +1 -0      WebCore/khtml/rendering/render_br.cpp
  
  Index: render_br.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_br.cpp,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- render_br.cpp	16 Sep 2005 22:42:15 -0000	1.28
  +++ render_br.cpp	3 Oct 2005 21:12:38 -0000	1.29
  @@ -19,6 +19,7 @@
    * Boston, MA 02111-1307, USA.
    *
    */
  +#include "config.h"
   #include "render_br.h"
   
   #include "dom_position.h"
  
  
  
  1.33      +1 -0      WebCore/khtml/rendering/render_canvas.cpp
  
  Index: render_canvas.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_canvas.cpp,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- render_canvas.cpp	11 Jan 2005 22:44:53 -0000	1.32
  +++ render_canvas.cpp	3 Oct 2005 21:12:38 -0000	1.33
  @@ -19,6 +19,7 @@
    * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    * Boston, MA 02111-1307, USA.
    */
  +#include "config.h"
   #include "rendering/render_canvas.h"
   #include "render_layer.h"
   #include "xml/dom_docimpl.h"
  
  
  
  1.21      +4 -3      WebCore/khtml/rendering/render_canvasimage.cpp
  
  Index: render_canvasimage.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_canvasimage.cpp,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- render_canvasimage.cpp	5 Sep 2005 04:01:24 -0000	1.20
  +++ render_canvasimage.cpp	3 Oct 2005 21:12:38 -0000	1.21
  @@ -25,6 +25,7 @@
   
   //#define DEBUG_LAYOUT
   
  +#include "config.h"
   #include "render_canvasimage.h"
   #include "render_canvas.h"
   
  @@ -65,7 +66,7 @@
           _drawingContext = 0;
       }
       
  -    free (_drawingContextData);
  +    fastFree(_drawingContextData);
       _drawingContextData = 0;
       
       if (_drawnImage) {
  @@ -83,14 +84,14 @@
           CFRelease (_drawingContext);
           _drawingContext = 0;
       }
  -    free (_drawingContextData);
  +    fastFree(_drawingContextData);
       CGColorSpaceRef colorSpace = CGColorSpaceCreateDeviceRGB();
   
       int cWidth = contentWidth();
       int cHeight = contentHeight();
       size_t numComponents = CGColorSpaceGetNumberOfComponents(colorSpace);
       size_t bytesPerRow = BYTES_PER_ROW(cWidth,BITS_PER_COMPONENT,(numComponents+1)); // + 1 for alpha
  -    _drawingContextData = calloc(height(), bytesPerRow);
  +    _drawingContextData = fastCalloc(height(), bytesPerRow);
       _drawingContext = CGBitmapContextCreate(_drawingContextData, cWidth, cHeight, BITS_PER_COMPONENT, bytesPerRow, colorSpace, kCGImageAlphaPremultipliedLast);
       
   #ifdef DEBUG_CANVAS_BACKGROUND
  
  
  
  1.69      +1 -0      WebCore/khtml/rendering/render_container.cpp
  
  Index: render_container.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_container.cpp,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- render_container.cpp	31 Aug 2005 05:09:03 -0000	1.68
  +++ render_container.cpp	3 Oct 2005 21:12:38 -0000	1.69
  @@ -25,6 +25,7 @@
   
   //#define DEBUG_LAYOUT
   
  +#include "config.h"
   #include "render_container.h"
   #include "render_table.h"
   #include "render_text.h"
  
  
  
  1.27      +1 -0      WebCore/khtml/rendering/render_flexbox.cpp
  
  Index: render_flexbox.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_flexbox.cpp,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- render_flexbox.cpp	29 Sep 2005 20:10:56 -0000	1.26
  +++ render_flexbox.cpp	3 Oct 2005 21:12:38 -0000	1.27
  @@ -22,6 +22,7 @@
    *
    */
   
  +#include "config.h"
   #include "render_flexbox.h"
   
   using namespace DOM;
  
  
  
  1.166     +1 -0      WebCore/khtml/rendering/render_flow.cpp
  
  Index: render_flow.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_flow.cpp,v
  retrieving revision 1.165
  retrieving revision 1.166
  diff -u -r1.165 -r1.166
  --- render_flow.cpp	16 Sep 2005 23:09:58 -0000	1.165
  +++ render_flow.cpp	3 Oct 2005 21:12:38 -0000	1.166
  @@ -22,6 +22,7 @@
    */
   // -------------------------------------------------------------------------
   
  +#include "config.h"
   #include <kdebug.h>
   #include <assert.h>
   #include <qpainter.h>
  
  
  
  1.125     +1 -0      WebCore/khtml/rendering/render_form.cpp
  
  Index: render_form.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_form.cpp,v
  retrieving revision 1.124
  retrieving revision 1.125
  diff -u -r1.124 -r1.125
  --- render_form.cpp	3 Oct 2005 20:55:03 -0000	1.124
  +++ render_form.cpp	3 Oct 2005 21:12:39 -0000	1.125
  @@ -23,6 +23,7 @@
    *
    */
   
  +#include "config.h"
   #include <kdebug.h>
   #include <klocale.h>
   #include <kfiledialog.h>
  
  
  
  1.78      +1 -0      WebCore/khtml/rendering/render_frames.cpp
  
  Index: render_frames.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_frames.cpp,v
  retrieving revision 1.77
  retrieving revision 1.78
  diff -u -r1.77 -r1.78
  --- render_frames.cpp	16 Sep 2005 22:42:16 -0000	1.77
  +++ render_frames.cpp	3 Oct 2005 21:12:39 -0000	1.78
  @@ -24,6 +24,7 @@
    */
   //#define DEBUG_LAYOUT
   
  +#include "config.h"
   #include "rendering/render_frames.h"
   
   #include "css/cssproperties.h"
  
  
  
  1.87      +1 -0      WebCore/khtml/rendering/render_image.cpp
  
  Index: render_image.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_image.cpp,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- render_image.cpp	30 Aug 2005 09:30:20 -0000	1.86
  +++ render_image.cpp	3 Oct 2005 21:12:39 -0000	1.87
  @@ -24,6 +24,7 @@
    */
   //#define DEBUG_LAYOUT
   
  +#include "config.h"
   #include "render_image.h"
   #include "render_canvas.h"
   
  
  
  
  1.47      +1 -0      WebCore/khtml/rendering/render_inline.cpp
  
  Index: render_inline.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_inline.cpp,v
  retrieving revision 1.46
  retrieving revision 1.47
  diff -u -r1.46 -r1.47
  --- render_inline.cpp	21 Jul 2005 16:33:33 -0000	1.46
  +++ render_inline.cpp	3 Oct 2005 21:12:39 -0000	1.47
  @@ -22,6 +22,7 @@
    *
    */
   
  +#include "config.h"
   #include <kglobal.h>
   #include "render_arena.h"
   #include "render_inline.h"
  
  
  
  1.106     +1 -0      WebCore/khtml/rendering/render_layer.cpp
  
  Index: render_layer.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_layer.cpp,v
  retrieving revision 1.105
  retrieving revision 1.106
  diff -u -r1.105 -r1.106
  --- render_layer.cpp	29 Sep 2005 20:10:57 -0000	1.105
  +++ render_layer.cpp	3 Oct 2005 21:12:39 -0000	1.106
  @@ -41,6 +41,7 @@
    * version of this file under any of the LGPL, the MPL or the GPL.
    */
   
  +#include "config.h"
   #include "render_layer.h"
   
   #include <kdebug.h>
  
  
  
  1.53      +1 -0      WebCore/khtml/rendering/render_line.cpp
  
  Index: render_line.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_line.cpp,v
  retrieving revision 1.52
  retrieving revision 1.53
  diff -u -r1.52 -r1.53
  --- render_line.cpp	29 Sep 2005 20:10:57 -0000	1.52
  +++ render_line.cpp	3 Oct 2005 21:12:40 -0000	1.53
  @@ -20,6 +20,7 @@
    */
   // -------------------------------------------------------------------------
   
  +#include "config.h"
   #include <kdebug.h>
   #include <assert.h>
   #include <qpainter.h>
  
  
  
  1.71      +1 -0      WebCore/khtml/rendering/render_list.cpp
  
  Index: render_list.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_list.cpp,v
  retrieving revision 1.70
  retrieving revision 1.71
  diff -u -r1.70 -r1.71
  --- render_list.cpp	16 Sep 2005 22:42:16 -0000	1.70
  +++ render_list.cpp	3 Oct 2005 21:12:40 -0000	1.71
  @@ -22,6 +22,7 @@
    *
    */
   
  +#include "config.h"
   #include "render_list.h"
   #include "rendering/render_canvas.h"
   
  
  
  
  1.218     +1 -0      WebCore/khtml/rendering/render_object.cpp
  
  Index: render_object.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_object.cpp,v
  retrieving revision 1.217
  retrieving revision 1.218
  diff -u -r1.217 -r1.218
  --- render_object.cpp	29 Sep 2005 20:10:57 -0000	1.217
  +++ render_object.cpp	3 Oct 2005 21:12:40 -0000	1.218
  @@ -23,6 +23,7 @@
    *
    */
   
  +#include "config.h"
   #include "rendering/render_object.h"
   #include "rendering/render_table.h"
   #include "rendering/render_text.h"
  
  
  
  1.87      +1 -0      WebCore/khtml/rendering/render_replaced.cpp
  
  Index: render_replaced.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_replaced.cpp,v
  retrieving revision 1.86
  retrieving revision 1.87
  diff -u -r1.86 -r1.87
  --- render_replaced.cpp	29 Sep 2005 20:10:57 -0000	1.86
  +++ render_replaced.cpp	3 Oct 2005 21:12:41 -0000	1.87
  @@ -21,6 +21,7 @@
    * Boston, MA 02111-1307, USA.
    *
    */
  +#include "config.h"
   #include "render_replaced.h"
   
   #include "render_arena.h"
  
  
  
  1.72      +1 -0      WebCore/khtml/rendering/render_style.cpp
  
  Index: render_style.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_style.cpp,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- render_style.cpp	30 Sep 2005 00:03:20 -0000	1.71
  +++ render_style.cpp	3 Oct 2005 21:12:41 -0000	1.72
  @@ -21,6 +21,7 @@
    *
    */
   
  +#include "config.h"
   #include "xml/dom_stringimpl.h"
   
   #include "render_style.h"
  
  
  
  1.93      +10 -11    WebCore/khtml/rendering/render_style.h
  
  Index: render_style.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_style.h,v
  retrieving revision 1.92
  retrieving revision 1.93
  diff -u -r1.92 -r1.93
  --- render_style.h	30 Sep 2005 00:03:20 -0000	1.92
  +++ render_style.h	3 Oct 2005 21:12:41 -0000	1.93
  @@ -41,7 +41,6 @@
   #include <qpalette.h>
   #include <qapplication.h>
   
  -#include <kxmlcore/FastMalloc.h>
   #include "misc/khtmllayout.h"
   #include "misc/shared.h"
   #include "rendering/font.h"
  @@ -363,7 +362,7 @@
   
   enum EMarginCollapse { MCOLLAPSE, MSEPARATE, MDISCARD };
   
  -class StyleSurroundData : public Shared<StyleSurroundData>, public FastAllocated
  +class StyleSurroundData : public Shared<StyleSurroundData>
   {
   public:
       StyleSurroundData();
  @@ -386,7 +385,7 @@
   
   enum EBoxSizing { CONTENT_BOX, BORDER_BOX };
   
  -class StyleBoxData : public Shared<StyleBoxData>, public FastAllocated
  +class StyleBoxData : public Shared<StyleBoxData>
   {
   public:
       StyleBoxData();
  @@ -464,7 +463,7 @@
       UBNormal, Embed, Override
   };
   
  -class StyleVisualData : public Shared<StyleVisualData>, public FastAllocated
  +class StyleVisualData : public Shared<StyleVisualData>
   {
   public:
       StyleVisualData();
  @@ -509,7 +508,7 @@
       REPEAT, REPEAT_X, REPEAT_Y, NO_REPEAT
   };
   
  -struct BackgroundLayer : public FastAllocated {
  +struct BackgroundLayer {
   public:
       BackgroundLayer();
       ~BackgroundLayer();
  @@ -596,7 +595,7 @@
       BackgroundLayer* m_next;
   };
   
  -class StyleBackgroundData : public Shared<StyleBackgroundData>, public FastAllocated
  +class StyleBackgroundData : public Shared<StyleBackgroundData>
   {
   public:
       StyleBackgroundData();
  @@ -619,7 +618,7 @@
   enum EMarqueeBehavior { MNONE, MSCROLL, MSLIDE, MALTERNATE, MUNFURL };
   enum EMarqueeDirection { MAUTO = 0, MLEFT = 1, MRIGHT = -1, MUP = 2, MDOWN = -2, MFORWARD = 3, MBACKWARD = -3 };
   
  -class StyleMarqueeData : public Shared<StyleMarqueeData>, public FastAllocated
  +class StyleMarqueeData : public Shared<StyleMarqueeData>
   {
   public:
       StyleMarqueeData();
  @@ -647,7 +646,7 @@
   enum EBoxLines { SINGLE, MULTIPLE };
   enum EBoxDirection { BNORMAL, BREVERSE };
   
  -class StyleFlexibleBoxData : public Shared<StyleFlexibleBoxData>, public FastAllocated
  +class StyleFlexibleBoxData : public Shared<StyleFlexibleBoxData>
   {
   public:
       StyleFlexibleBoxData();
  @@ -669,7 +668,7 @@
   };
   
   // This struct holds information about shadows for the text-shadow and box-shadow properties.
  -struct ShadowData : public FastAllocated {
  +struct ShadowData {
       ShadowData(int _x, int _y, int _blur, const QColor& _color)
       :x(_x), y(_y), blur(_blur), color(_color), next(0) {}
       ShadowData(const ShadowData& o);
  @@ -764,7 +763,7 @@
   // This struct is for rarely used non-inherited CSS3 properties.  By grouping them together,
   // we save space, and only allocate this object when someone actually uses
   // a non-inherited CSS3 property.
  -class StyleCSS3NonInheritedData : public Shared<StyleCSS3NonInheritedData>, public FastAllocated
  +class StyleCSS3NonInheritedData : public Shared<StyleCSS3NonInheritedData>
   {
   public:
       StyleCSS3NonInheritedData();
  @@ -804,7 +803,7 @@
   // This struct is for rarely used inherited CSS3 properties.  By grouping them together,
   // we save space, and only allocate this object when someone actually uses
   // an inherited CSS3 property.
  -class StyleCSS3InheritedData : public Shared<StyleCSS3InheritedData>, public FastAllocated
  +class StyleCSS3InheritedData : public Shared<StyleCSS3InheritedData>
   {
   public:
       StyleCSS3InheritedData();
  
  
  
  1.134     +1 -0      WebCore/khtml/rendering/render_table.cpp
  
  Index: render_table.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_table.cpp,v
  retrieving revision 1.133
  retrieving revision 1.134
  diff -u -r1.133 -r1.134
  --- render_table.cpp	29 Sep 2005 20:10:58 -0000	1.133
  +++ render_table.cpp	3 Oct 2005 21:12:41 -0000	1.134
  @@ -28,6 +28,7 @@
   //#define TABLE_PRINT
   //#define DEBUG_LAYOUT
   //#define BOX_DEBUG
  +#include "config.h"
   #include "rendering/render_table.h"
   #include "rendering/table_layout.h"
   #include "html/html_tableimpl.h"
  
  
  
  1.200     +1 -0      WebCore/khtml/rendering/render_text.cpp
  
  Index: render_text.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_text.cpp,v
  retrieving revision 1.199
  retrieving revision 1.200
  diff -u -r1.199 -r1.200
  --- render_text.cpp	24 Sep 2005 11:45:16 -0000	1.199
  +++ render_text.cpp	3 Oct 2005 21:12:42 -0000	1.200
  @@ -24,6 +24,7 @@
   //#define DEBUG_LAYOUT
   //#define BIDI_DEBUG
   
  +#include "config.h"
   #include "rendering/render_text.h"
   
   #include "rendering/render_canvas.h"
  
  
  
  1.11      +1 -0      WebCore/khtml/rendering/render_theme.cpp
  
  Index: render_theme.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_theme.cpp,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- render_theme.cpp	25 Aug 2005 23:13:54 -0000	1.10
  +++ render_theme.cpp	3 Oct 2005 21:12:42 -0000	1.11
  @@ -19,6 +19,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "render_theme.h"
   
   #include "render_style.h"
  
  
  
  1.8       +1 -0      WebCore/khtml/rendering/render_theme_mac.mm
  
  Index: render_theme_mac.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/render_theme_mac.mm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- render_theme_mac.mm	29 Sep 2005 20:10:58 -0000	1.7
  +++ render_theme_mac.mm	3 Oct 2005 21:12:42 -0000	1.8
  @@ -19,6 +19,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #import "render_theme_mac.h"
   
   #import "render_style.h"
  
  
  
  1.25      +2 -1      WebCore/khtml/rendering/table_layout.cpp
  
  Index: table_layout.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/rendering/table_layout.cpp,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- table_layout.cpp	29 Sep 2005 20:10:58 -0000	1.24
  +++ table_layout.cpp	3 Oct 2005 21:12:42 -0000	1.25
  @@ -20,8 +20,9 @@
    * the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
    * Boston, MA 02111-1307, USA.
    *
  - * $Id: table_layout.cpp,v 1.24 2005/09/29 20:10:58 hyatt Exp $
  + * $Id: table_layout.cpp,v 1.25 2005/10/03 21:12:42 mjs Exp $
    */
  +#include "config.h"
   #include "table_layout.h"
   #include "render_table.h"
   
  
  
  
  1.4       +1 -0      WebCore/khtml/xbl/xbl_binding.cpp
  
  Index: xbl_binding.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xbl/xbl_binding.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- xbl_binding.cpp	25 Aug 2005 17:47:19 -0000	1.3
  +++ xbl_binding.cpp	3 Oct 2005 21:12:49 -0000	1.4
  @@ -1,5 +1,6 @@
   #ifndef KHTML_NO_XBL
   
  +#include "config.h"
   #include <kurl.h>
   #include "xbl_protobinding.h"
   #include "xbl_binding.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/xbl/xbl_binding_manager.cpp
  
  Index: xbl_binding_manager.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xbl/xbl_binding_manager.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- xbl_binding_manager.cpp	30 Jan 2004 09:06:44 -0000	1.2
  +++ xbl_binding_manager.cpp	3 Oct 2005 21:12:49 -0000	1.3
  @@ -1,5 +1,6 @@
   #ifndef KHTML_NO_XBL
   
  +#include "config.h"
   #include "qptrdict.h"
   #include "xml/dom_docimpl.h"
   #include "xml/dom_elementimpl.h"
  
  
  
  1.5       +1 -0      WebCore/khtml/xbl/xbl_docimpl.cpp
  
  Index: xbl_docimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xbl/xbl_docimpl.cpp,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- xbl_docimpl.cpp	25 Aug 2005 17:47:19 -0000	1.4
  +++ xbl_docimpl.cpp	3 Oct 2005 21:12:49 -0000	1.5
  @@ -1,5 +1,6 @@
   #ifndef KHTML_NO_XBL
   
  +#include "config.h"
   #include "xbl_docimpl.h"
   #include "xbl_tokenizer.h"
   #include "xbl_protobinding.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/xbl/xbl_protobinding.cpp
  
  Index: xbl_protobinding.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xbl/xbl_protobinding.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- xbl_protobinding.cpp	30 Jan 2004 09:06:44 -0000	1.2
  +++ xbl_protobinding.cpp	3 Oct 2005 21:12:49 -0000	1.3
  @@ -1,5 +1,6 @@
   #ifndef KHTML_NO_XBL
   
  +#include "config.h"
   #include "xbl_protobinding.h"
   #include "xbl_docimpl.h"
   
  
  
  
  1.4       +1 -0      WebCore/khtml/xbl/xbl_protohandler.cpp
  
  Index: xbl_protohandler.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xbl/xbl_protohandler.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- xbl_protohandler.cpp	25 Aug 2005 17:47:19 -0000	1.3
  +++ xbl_protohandler.cpp	3 Oct 2005 21:12:49 -0000	1.4
  @@ -1,5 +1,6 @@
   #ifndef KHTML_NO_XBL
   
  +#include "config.h"
   #include "qstringlist.h"
   #include "qstring.h"
   #include "xbl_protohandler.h"
  
  
  
  1.3       +1 -0      WebCore/khtml/xbl/xbl_protoimplementation.cpp
  
  Index: xbl_protoimplementation.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xbl/xbl_protoimplementation.cpp,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- xbl_protoimplementation.cpp	30 Jan 2004 09:06:44 -0000	1.2
  +++ xbl_protoimplementation.cpp	3 Oct 2005 21:12:49 -0000	1.3
  @@ -1,5 +1,6 @@
   #ifndef KHTML_NO_XBL
   
  +#include "config.h"
   #include "xbl_protoimplementation.h"
   #include "xbl_protobinding.h"
   
  
  
  
  1.4       +1 -0      WebCore/khtml/xbl/xbl_tokenizer.cpp
  
  Index: xbl_tokenizer.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xbl/xbl_tokenizer.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- xbl_tokenizer.cpp	18 Jul 2005 21:44:28 -0000	1.3
  +++ xbl_tokenizer.cpp	3 Oct 2005 21:12:49 -0000	1.4
  @@ -1,5 +1,6 @@
   #ifndef KHTML_NO_XBL
   
  +#include "config.h"
   #include "dom/dom_node.h"
   #include "xml/dom_elementimpl.h"
   
  
  
  
  1.2       +1 -0      WebCore/khtml/xml/EventNames.cpp
  
  Index: EventNames.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/EventNames.cpp,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- EventNames.cpp	31 Aug 2005 04:38:41 -0000	1.1
  +++ EventNames.cpp	3 Oct 2005 21:12:50 -0000	1.2
  @@ -22,6 +22,7 @@
   
   #define DOM_EVENT_NAMES_HIDE_GLOBALS 1
   
  +#include "config.h"
   #include "EventNames.h"
   
   using DOM::AtomicString;
  
  
  
  1.39      +1 -0      WebCore/khtml/xml/dom2_eventsimpl.cpp
  
  Index: dom2_eventsimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom2_eventsimpl.cpp,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- dom2_eventsimpl.cpp	16 Sep 2005 22:42:19 -0000	1.38
  +++ dom2_eventsimpl.cpp	3 Oct 2005 21:12:50 -0000	1.39
  @@ -21,6 +21,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "xml/dom2_eventsimpl.h"
   
   #include "dom/dom2_events.h"
  
  
  
  1.32      +3 -3      WebCore/khtml/xml/dom2_eventsimpl.h
  
  Index: dom2_eventsimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom2_eventsimpl.h,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- dom2_eventsimpl.h	27 Sep 2005 22:37:21 -0000	1.31
  +++ dom2_eventsimpl.h	3 Oct 2005 21:12:50 -0000	1.32
  @@ -44,7 +44,7 @@
   class NodeImpl;
   class ClipboardImpl;
   
  -class EventImpl : public khtml::Shared<EventImpl>, public FastAllocated
  +class EventImpl : public khtml::Shared<EventImpl>
   {
   public:
       EventImpl();
  @@ -359,7 +359,7 @@
       int m_wheelDelta;
   };
   
  -class RegisteredEventListener : public FastAllocated {
  +class RegisteredEventListener {
   public:
       RegisteredEventListener(const AtomicString &eventType, EventListener *listener, bool useCapture);
       ~RegisteredEventListener();
  @@ -381,7 +381,7 @@
   inline bool operator!=(const RegisteredEventListener &a, const RegisteredEventListener &b) { return !(a == b); }
   
   // State available during IE's events for drag and drop and copy/paste
  -class ClipboardImpl : public khtml::Shared<ClipboardImpl>, public FastAllocated {
  +class ClipboardImpl : public khtml::Shared<ClipboardImpl> {
   public:
       ClipboardImpl() { }
       virtual ~ClipboardImpl();
  
  
  
  1.45      +1 -0      WebCore/khtml/xml/dom2_rangeimpl.cpp
  
  Index: dom2_rangeimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom2_rangeimpl.cpp,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- dom2_rangeimpl.cpp	16 Sep 2005 22:42:19 -0000	1.44
  +++ dom2_rangeimpl.cpp	3 Oct 2005 21:12:51 -0000	1.45
  @@ -23,6 +23,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "dom2_rangeimpl.h"
   
   #include "dom/dom_exception.h"
  
  
  
  1.29      +1 -2      WebCore/khtml/xml/dom2_rangeimpl.h
  
  Index: dom2_rangeimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom2_rangeimpl.h,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- dom2_rangeimpl.h	27 Sep 2005 22:37:21 -0000	1.28
  +++ dom2_rangeimpl.h	3 Oct 2005 21:12:51 -0000	1.29
  @@ -29,7 +29,6 @@
   
   #include "dom/dom2_range.h"
   #include "misc/shared.h"
  -#include <kxmlcore/FastMalloc.h>
   
   namespace DOM {
   
  @@ -39,7 +38,7 @@
   class NodeImpl;
   class Position;
   
  -class RangeImpl : public khtml::Shared<RangeImpl>, public FastAllocated
  +class RangeImpl : public khtml::Shared<RangeImpl>
   {
       friend class DocumentImpl;
   public:
  
  
  
  1.13      +1 -0      WebCore/khtml/xml/dom2_traversalimpl.cpp
  
  Index: dom2_traversalimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom2_traversalimpl.cpp,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- dom2_traversalimpl.cpp	16 Sep 2005 22:42:19 -0000	1.12
  +++ dom2_traversalimpl.cpp	3 Oct 2005 21:12:51 -0000	1.13
  @@ -22,6 +22,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "xml/dom2_traversalimpl.h"
   #include "dom/dom_exception.h"
   #include "xml/dom_docimpl.h"
  
  
  
  1.13      +2 -3      WebCore/khtml/xml/dom2_traversalimpl.h
  
  Index: dom2_traversalimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom2_traversalimpl.h,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- dom2_traversalimpl.h	27 Sep 2005 22:37:21 -0000	1.12
  +++ dom2_traversalimpl.h	3 Oct 2005 21:12:51 -0000	1.13
  @@ -28,14 +28,13 @@
   
   #include "dom/dom2_traversal.h"
   #include "misc/shared.h"
  -#include <kxmlcore/FastMalloc.h>
   
   namespace DOM {
   
   class NodeImpl;
   class DocumentImpl;
   
  -class NodeFilterImpl : public khtml::Shared<NodeFilterImpl>, public FastAllocated
  +class NodeFilterImpl : public khtml::Shared<NodeFilterImpl>
   {
   public:
       NodeFilterImpl(NodeFilterCondition *);
  @@ -50,7 +49,7 @@
       NodeFilterCondition *m_condition;
   };
   
  -class TraversalImpl : public khtml::Shared<TraversalImpl>, public FastAllocated
  +class TraversalImpl : public khtml::Shared<TraversalImpl>
   {
   public:
       TraversalImpl(NodeImpl *, int whatToShow, NodeFilterImpl *, bool expandEntityReferences);
  
  
  
  1.6       +1 -0      WebCore/khtml/xml/dom2_viewsimpl.cpp
  
  Index: dom2_viewsimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom2_viewsimpl.cpp,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- dom2_viewsimpl.cpp	16 Nov 2004 00:47:54 -0000	1.5
  +++ dom2_viewsimpl.cpp	3 Oct 2005 21:12:51 -0000	1.6
  @@ -21,6 +21,7 @@
    *
    */
   
  +#include "config.h"
   #include "dom2_viewsimpl.h"
   
   #include "css/css_computedstyle.h"
  
  
  
  1.8       +1 -2      WebCore/khtml/xml/dom2_viewsimpl.h
  
  Index: dom2_viewsimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom2_viewsimpl.h,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- dom2_viewsimpl.h	27 Sep 2005 22:37:21 -0000	1.7
  +++ dom2_viewsimpl.h	3 Oct 2005 21:12:51 -0000	1.8
  @@ -25,7 +25,6 @@
   
   #include "css/css_valueimpl.h"
   #include "misc/shared.h"
  -#include <kxmlcore/FastMalloc.h>
   
   namespace DOM {
   
  @@ -35,7 +34,7 @@
   class DOMStringImpl;
   
   // Introduced in DOM Level 2:
  -class AbstractViewImpl : public khtml::Shared<AbstractViewImpl>, public FastAllocated
  +class AbstractViewImpl : public khtml::Shared<AbstractViewImpl>
   {
   public:
       AbstractViewImpl(DocumentImpl *_document);
  
  
  
  1.14      +1 -0      WebCore/khtml/xml/dom_atomicstring.cpp
  
  Index: dom_atomicstring.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_atomicstring.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- dom_atomicstring.cpp	28 Sep 2005 22:01:39 -0000	1.13
  +++ dom_atomicstring.cpp	3 Oct 2005 21:12:51 -0000	1.14
  @@ -28,6 +28,7 @@
   
   #define KHTML_ATOMICSTRING_HIDE_GLOBALS 1
   
  +#include "config.h"
   #include "dom_atomicstring.h"
   #include "xml/dom_stringimpl.h"
   #include <kxmlcore/HashSet.h>
  
  
  
  1.258     +1 -0      WebCore/khtml/xml/dom_docimpl.cpp
  
  Index: dom_docimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_docimpl.cpp,v
  retrieving revision 1.257
  retrieving revision 1.258
  diff -u -r1.257 -r1.258
  --- dom_docimpl.cpp	24 Sep 2005 01:19:02 -0000	1.257
  +++ dom_docimpl.cpp	3 Oct 2005 21:12:51 -0000	1.258
  @@ -22,6 +22,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "dom_docimpl.h"
   
   #include "dom/dom_exception.h"
  
  
  
  1.129     +1 -1      WebCore/khtml/xml/dom_docimpl.h
  
  Index: dom_docimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_docimpl.h,v
  retrieving revision 1.128
  retrieving revision 1.129
  diff -u -r1.128 -r1.129
  --- dom_docimpl.h	27 Sep 2005 22:37:21 -0000	1.128
  +++ dom_docimpl.h	3 Oct 2005 21:12:52 -0000	1.129
  @@ -125,7 +125,7 @@
           }
       };
       
  -class DOMImplementationImpl : public khtml::Shared<DOMImplementationImpl>, public FastAllocated
  +class DOMImplementationImpl : public khtml::Shared<DOMImplementationImpl>
   {
   public:
       DOMImplementationImpl();
  
  
  
  1.85      +1 -0      WebCore/khtml/xml/dom_elementimpl.cpp
  
  Index: dom_elementimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_elementimpl.cpp,v
  retrieving revision 1.84
  retrieving revision 1.85
  diff -u -r1.84 -r1.85
  --- dom_elementimpl.cpp	2 Oct 2005 17:17:47 -0000	1.84
  +++ dom_elementimpl.cpp	3 Oct 2005 21:12:52 -0000	1.85
  @@ -24,6 +24,7 @@
    */
   
   //#define EVENT_DEBUG
  +#include "config.h"
   #include "dom/dom_exception.h"
   #include "dom/dom_node.h"
   #include "xml/dom_textimpl.h"
  
  
  
  1.55      +1 -1      WebCore/khtml/xml/dom_elementimpl.h
  
  Index: dom_elementimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_elementimpl.h,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- dom_elementimpl.h	2 Oct 2005 17:17:47 -0000	1.54
  +++ dom_elementimpl.h	3 Oct 2005 21:12:52 -0000	1.55
  @@ -58,7 +58,7 @@
   // the actual Attr (AttrImpl) with its value as textchild
   // is only allocated on demand by the DOM bindings.
   // Any use of AttrImpl inside khtml should be avoided.
  - class AttributeImpl : public khtml::Shared<AttributeImpl>, public FastAllocated
  + class AttributeImpl : public khtml::Shared<AttributeImpl>
   {
       friend class NamedAttrMapImpl;
       friend class ElementImpl;
  
  
  
  1.195     +1 -0      WebCore/khtml/xml/dom_nodeimpl.cpp
  
  Index: dom_nodeimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_nodeimpl.cpp,v
  retrieving revision 1.194
  retrieving revision 1.195
  diff -u -r1.194 -r1.195
  --- dom_nodeimpl.cpp	27 Sep 2005 22:37:22 -0000	1.194
  +++ dom_nodeimpl.cpp	3 Oct 2005 21:12:52 -0000	1.195
  @@ -22,6 +22,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "xml/dom_nodeimpl.h"
   
   #include "dom/dom_exception.h"
  
  
  
  1.104     +3 -4      WebCore/khtml/xml/dom_nodeimpl.h
  
  Index: dom_nodeimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_nodeimpl.h,v
  retrieving revision 1.103
  retrieving revision 1.104
  diff -u -r1.103 -r1.104
  --- dom_nodeimpl.h	27 Sep 2005 22:37:22 -0000	1.103
  +++ dom_nodeimpl.h	3 Oct 2005 21:12:53 -0000	1.104
  @@ -27,7 +27,6 @@
   
   #include "dom/dom_string.h"
   #include "dom/dom_node.h"
  -#include <kxmlcore/FastMalloc.h>
   #include "misc/helper.h"
   #include "misc/shared.h"
   #include "dom_atomicstring.h"
  @@ -76,7 +75,7 @@
   };
   
   // this class implements nodes, which can have a parent but no children:
  -class NodeImpl : public khtml::TreeShared<NodeImpl>, public FastAllocated
  +class NodeImpl : public khtml::TreeShared<NodeImpl>
   {
       friend class DocumentImpl;
   public:
  @@ -565,7 +564,7 @@
   class Node;
   class NodeImpl;
   
  -class NodeListImpl : public khtml::Shared<NodeListImpl>, public FastAllocated
  +class NodeListImpl : public khtml::Shared<NodeListImpl>
   {
   public:
       NodeListImpl( NodeImpl *_rootNode );
  @@ -636,7 +635,7 @@
   // Generic NamedNodeMap interface
   // Other classes implement this for more specific situations e.g. attributes
   // of an element
  -class NamedNodeMapImpl : public khtml::Shared<NamedNodeMapImpl>, public FastAllocated
  +class NamedNodeMapImpl : public khtml::Shared<NamedNodeMapImpl>
   {
   public:
       NamedNodeMapImpl() {}
  
  
  
  1.80      +1 -0      WebCore/khtml/xml/dom_position.cpp
  
  Index: dom_position.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_position.cpp,v
  retrieving revision 1.79
  retrieving revision 1.80
  diff -u -r1.79 -r1.80
  --- dom_position.cpp	27 Sep 2005 22:37:22 -0000	1.79
  +++ dom_position.cpp	3 Oct 2005 21:12:53 -0000	1.80
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "dom_position.h"
   
   #include <qstring.h>
  
  
  
  1.7       +1 -0      WebCore/khtml/xml/dom_qname.cpp
  
  Index: dom_qname.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_qname.cpp,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- dom_qname.cpp	28 Sep 2005 22:01:40 -0000	1.6
  +++ dom_qname.cpp	3 Oct 2005 21:12:53 -0000	1.7
  @@ -21,6 +21,7 @@
   
   #define KHTML_QNAME_HIDE_GLOBALS 1
   
  +#include "config.h"
   #include "dom_qname.h"
   #include <kxmlcore/HashSet.h>
   
  
  
  
  1.32      +1 -0      WebCore/khtml/xml/dom_stringimpl.cpp
  
  Index: dom_stringimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_stringimpl.cpp,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- dom_stringimpl.cpp	12 Sep 2005 03:40:37 -0000	1.31
  +++ dom_stringimpl.cpp	3 Oct 2005 21:12:53 -0000	1.32
  @@ -23,6 +23,7 @@
    *
    */
   
  +#include "config.h"
   #include "dom_stringimpl.h"
   
   #include <kdebug.h>
  
  
  
  1.17      +1 -2      WebCore/khtml/xml/dom_stringimpl.h
  
  Index: dom_stringimpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_stringimpl.h,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- dom_stringimpl.h	28 Sep 2005 22:01:40 -0000	1.16
  +++ dom_stringimpl.h	3 Oct 2005 21:12:53 -0000	1.17
  @@ -26,14 +26,13 @@
   
   #include "misc/khtmllayout.h"
   #include "misc/shared.h"
  -#include <kxmlcore/FastMalloc.h>
   
   #define QT_ALLOC_QCHAR_VEC(N) static_cast<QChar*>(fastMalloc(sizeof(QChar)*(N)))
   #define QT_DELETE_QCHAR_VEC(P) fastFree(P)
   
   namespace DOM {
   
  -class DOMStringImpl : public khtml::Shared<DOMStringImpl>, public FastAllocated
  +class DOMStringImpl : public khtml::Shared<DOMStringImpl>
   {
   private:
       struct WithOneRef { };
  
  
  
  1.34      +1 -0      WebCore/khtml/xml/dom_textimpl.cpp
  
  Index: dom_textimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_textimpl.cpp,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- dom_textimpl.cpp	16 Sep 2005 22:42:20 -0000	1.33
  +++ dom_textimpl.cpp	3 Oct 2005 21:12:54 -0000	1.34
  @@ -21,6 +21,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "dom/dom_exception.h"
   #include "css/cssstyleselector.h"
   #include "xml/dom2_eventsimpl.h"
  
  
  
  1.16      +1 -0      WebCore/khtml/xml/dom_xmlimpl.cpp
  
  Index: dom_xmlimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/dom_xmlimpl.cpp,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- dom_xmlimpl.cpp	29 Aug 2005 21:29:24 -0000	1.15
  +++ dom_xmlimpl.cpp	3 Oct 2005 21:12:54 -0000	1.16
  @@ -19,6 +19,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "dom/dom_exception.h"
   
   #include "xml/dom_xmlimpl.h"
  
  
  
  1.44      +1 -0      WebCore/khtml/xml/xml_tokenizer.cpp
  
  Index: xml_tokenizer.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xml/xml_tokenizer.cpp,v
  retrieving revision 1.43
  retrieving revision 1.44
  diff -u -r1.43 -r1.44
  --- xml_tokenizer.cpp	28 Sep 2005 22:01:40 -0000	1.43
  +++ xml_tokenizer.cpp	3 Oct 2005 21:12:54 -0000	1.44
  @@ -20,6 +20,7 @@
    * Boston, MA 02111-1307, USA.
    */
   
  +#include "config.h"
   #include "xml_tokenizer.h"
   #include "xml/dom_docimpl.h"
   #include "xml/dom_elementimpl.h"
  
  
  
  1.4       +1 -0      WebCore/khtml/xsl/xsl_stylesheetimpl.cpp
  
  Index: xsl_stylesheetimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xsl/xsl_stylesheetimpl.cpp,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- xsl_stylesheetimpl.cpp	25 Aug 2005 17:47:24 -0000	1.3
  +++ xsl_stylesheetimpl.cpp	3 Oct 2005 21:12:59 -0000	1.4
  @@ -21,6 +21,7 @@
   
   #ifdef KHTML_XSLT
   
  +#include "config.h"
   #include "dom/dom_string.h"
   #include "dom/dom_exception.h"
   
  
  
  
  1.12      +1 -0      WebCore/khtml/xsl/xslt_processorimpl.cpp
  
  Index: xslt_processorimpl.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/khtml/xsl/xslt_processorimpl.cpp,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- xslt_processorimpl.cpp	3 Oct 2005 06:02:35 -0000	1.11
  +++ xslt_processorimpl.cpp	3 Oct 2005 21:12:59 -0000	1.12
  @@ -21,6 +21,7 @@
   
   #ifdef KHTML_XSLT
   
  +#include "config.h"
   #include "xslt_processorimpl.h"
   #include "xsl_stylesheetimpl.h"
   #include "html_documentimpl.h"
  
  
  
  1.29      +1 -0      WebCore/kwq/DOM-CSS.mm
  
  Index: DOM-CSS.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/DOM-CSS.mm,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- DOM-CSS.mm	27 Sep 2005 22:37:25 -0000	1.28
  +++ DOM-CSS.mm	3 Oct 2005 21:12:59 -0000	1.29
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
   
  +#include "config.h"
   #import "DOMCSS.h"
   
   #include <objc/objc-class.h>
  
  
  
  1.50      +1 -0      WebCore/kwq/DOM.mm
  
  Index: DOM.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/DOM.mm,v
  retrieving revision 1.49
  retrieving revision 1.50
  diff -u -r1.49 -r1.50
  --- DOM.mm	28 Sep 2005 22:01:41 -0000	1.49
  +++ DOM.mm	3 Oct 2005 21:13:00 -0000	1.50
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "DOM.h"
   
   #include <objc/objc-class.h>
  
  
  
  1.8       +1 -0      WebCore/kwq/DOMEvents.mm
  
  Index: DOMEvents.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/DOMEvents.mm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- DOMEvents.mm	27 Sep 2005 22:37:26 -0000	1.7
  +++ DOMEvents.mm	3 Oct 2005 21:13:00 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "DOMEvents.h"
   
   #import "DOMEventsInternal.h"
  
  
  
  1.31      +1 -0      WebCore/kwq/DOMHTML.mm
  
  Index: DOMHTML.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/DOMHTML.mm,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- DOMHTML.mm	27 Sep 2005 22:37:26 -0000	1.30
  +++ DOMHTML.mm	3 Oct 2005 21:13:00 -0000	1.31
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "DOMHTML.h"
   
   #import "dom_string.h"
  
  
  
  1.10      +3 -2      WebCore/kwq/DOMInternal.mm
  
  Index: DOMInternal.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/DOMInternal.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DOMInternal.mm	27 Sep 2005 22:37:26 -0000	1.9
  +++ DOMInternal.mm	3 Oct 2005 21:13:00 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "DOMInternal.h"
   
   #import "css_stylesheet.h"
  @@ -134,14 +135,14 @@
           UniChar fixedSizeBuffer[1024];
           UniChar *buffer;
           if (size > static_cast<CFIndex>(sizeof(fixedSizeBuffer) / sizeof(UniChar))) {
  -            buffer = static_cast<UniChar *>(malloc(size * sizeof(UniChar)));
  +            buffer = static_cast<UniChar *>(fastMalloc(size * sizeof(UniChar)));
           } else {
               buffer = fixedSizeBuffer;
           }
           CFStringGetCharacters(reinterpret_cast<CFStringRef>(str), CFRangeMake(0, size), buffer);
           m_impl = new DOMStringImpl(reinterpret_cast<const QChar *>(buffer), (uint)size);
           if (buffer != fixedSizeBuffer) {
  -            free(buffer);
  +            fastFree(buffer);
           }
       }
       m_impl->ref();
  
  
  
  1.6       +1 -0      WebCore/kwq/DOMUtility.mm
  
  Index: DOMUtility.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/DOMUtility.mm,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- DOMUtility.mm	8 Aug 2005 04:07:46 -0000	1.5
  +++ DOMUtility.mm	3 Oct 2005 21:13:00 -0000	1.6
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "kjs_dom.h"
   #import "dom_nodeimpl.h"
   
  
  
  
  1.3       +1 -0      WebCore/kwq/DOMViews.mm
  
  Index: DOMViews.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/DOMViews.mm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DOMViews.mm	27 Sep 2005 22:37:26 -0000	1.2
  +++ DOMViews.mm	3 Oct 2005 21:13:00 -0000	1.3
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "DOMViews.h"
   
   #import "DOMInternal.h"
  
  
  
  1.84      +1 -0      WebCore/kwq/KWQAccObject.mm
  
  Index: KWQAccObject.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQAccObject.mm,v
  retrieving revision 1.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- KWQAccObject.mm	27 Sep 2005 22:37:26 -0000	1.83
  +++ KWQAccObject.mm	3 Oct 2005 21:13:00 -0000	1.84
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
   
  +#include "config.h"
   #import "KWQAccObject.h"
   
   // need this until accesstool supports arrays of markers
  
  
  
  1.11      +1 -0      WebCore/kwq/KWQAccObjectCache.mm
  
  Index: KWQAccObjectCache.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQAccObjectCache.mm,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- KWQAccObjectCache.mm	27 Sep 2005 22:37:27 -0000	1.10
  +++ KWQAccObjectCache.mm	3 Oct 2005 21:13:01 -0000	1.11
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
   
  +#include "config.h"
   #import "KWQAccObjectCache.h"
   
   #import "KWQAccObject.h"
  
  
  
  1.45      +1 -0      WebCore/kwq/KWQApplication.mm
  
  Index: KWQApplication.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQApplication.mm,v
  retrieving revision 1.44
  retrieving revision 1.45
  diff -u -r1.44 -r1.45
  --- KWQApplication.mm	30 Aug 2005 09:30:23 -0000	1.44
  +++ KWQApplication.mm	3 Oct 2005 21:13:01 -0000	1.45
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQApplication.h"
   #import "KWQStyle.h"
   
  
  
  
  1.10      +1 -1      WebCore/kwq/KWQArrayImpl.h
  
  Index: KWQArrayImpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQArrayImpl.h,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- KWQArrayImpl.h	27 Sep 2005 22:37:27 -0000	1.9
  +++ KWQArrayImpl.h	3 Oct 2005 21:13:01 -0000	1.10
  @@ -52,7 +52,7 @@
       bool operator==(const KWQArrayImpl &) const;
   
    private:
  -    class KWQArrayPrivate : public FastAllocated
  +    class KWQArrayPrivate
       {
       public:	
   	KWQArrayPrivate(size_t pNumItems, size_t pItemSize);
  
  
  
  1.14      +1 -0      WebCore/kwq/KWQArrayImpl.mm
  
  Index: KWQArrayImpl.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQArrayImpl.mm,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- KWQArrayImpl.mm	27 Sep 2005 22:37:27 -0000	1.13
  +++ KWQArrayImpl.mm	3 Oct 2005 21:13:01 -0000	1.14
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQArrayImpl.h"
   
   #import <new>
  
  
  
  1.7       +1 -0      WebCore/kwq/KWQBuffer.mm
  
  Index: KWQBuffer.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQBuffer.mm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- KWQBuffer.mm	24 Jun 2005 21:05:11 -0000	1.6
  +++ KWQBuffer.mm	3 Oct 2005 21:13:01 -0000	1.7
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQBuffer.h"
   
   void QBuffer::open(int)
  
  
  
  1.46      +1 -0      WebCore/kwq/KWQButton.mm
  
  Index: KWQButton.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQButton.mm,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- KWQButton.mm	27 Sep 2005 22:37:27 -0000	1.45
  +++ KWQButton.mm	3 Oct 2005 21:13:01 -0000	1.46
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQButton.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.19      +1 -0      WebCore/kwq/KWQCString.mm
  
  Index: KWQCString.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQCString.mm,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- KWQCString.mm	27 Sep 2005 22:37:27 -0000	1.18
  +++ KWQCString.mm	3 Oct 2005 21:13:01 -0000	1.19
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQCString.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.23      +1 -0      WebCore/kwq/KWQCharsets.mm
  
  Index: KWQCharsets.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQCharsets.mm,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- KWQCharsets.mm	28 Jun 2005 01:54:35 -0000	1.22
  +++ KWQCharsets.mm	3 Oct 2005 21:13:01 -0000	1.23
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQCharsets.h"
   
   struct CharsetEntry {
  
  
  
  1.19      +1 -0      WebCore/kwq/KWQClipboard.mm
  
  Index: KWQClipboard.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQClipboard.mm,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- KWQClipboard.mm	27 Sep 2005 22:37:27 -0000	1.18
  +++ KWQClipboard.mm	3 Oct 2005 21:13:01 -0000	1.19
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQClipboard.h"
   #import <kxmlcore/Assertions.h>
   #import "KWQFoundationExtras.h"
  
  
  
  1.7       +1 -0      WebCore/kwq/KWQCollection.mm
  
  Index: KWQCollection.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQCollection.mm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- KWQCollection.mm	22 Jan 2003 00:12:34 -0000	1.6
  +++ KWQCollection.mm	3 Oct 2005 21:13:01 -0000	1.7
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQCollection.h"
   
   QPtrCollection::~QPtrCollection()
  
  
  
  1.46      +1 -0      WebCore/kwq/KWQColor.mm
  
  Index: KWQColor.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQColor.mm,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- KWQColor.mm	27 Sep 2005 22:37:27 -0000	1.45
  +++ KWQColor.mm	3 Oct 2005 21:13:01 -0000	1.46
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQColor.h"
   
   #import "KWQNamespace.h"
  
  
  
  1.67      +1 -0      WebCore/kwq/KWQComboBox.mm
  
  Index: KWQComboBox.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQComboBox.mm,v
  retrieving revision 1.66
  retrieving revision 1.67
  diff -u -r1.66 -r1.67
  --- KWQComboBox.mm	27 Sep 2005 22:37:27 -0000	1.66
  +++ KWQComboBox.mm	3 Oct 2005 21:13:02 -0000	1.67
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQComboBox.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.23      +1 -0      WebCore/kwq/KWQCursor.mm
  
  Index: KWQCursor.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQCursor.mm,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- KWQCursor.mm	14 Jul 2005 02:32:33 -0000	1.22
  +++ KWQCursor.mm	3 Oct 2005 21:13:02 -0000	1.23
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQCursor.h"
   #import "KWQLogging.h"
   #import "KWQFoundationExtras.h"
  
  
  
  1.14      +1 -0      WebCore/kwq/KWQDateTime.mm
  
  Index: KWQDateTime.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQDateTime.mm,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- KWQDateTime.mm	5 Jul 2005 08:04:50 -0000	1.13
  +++ KWQDateTime.mm	3 Oct 2005 21:13:02 -0000	1.14
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import <Foundation/Foundation.h>
   #import "KWQDateTime.h"
   #import <time.h>
  
  
  
  1.8       +1 -0      WebCore/kwq/KWQDictImpl.mm
  
  Index: KWQDictImpl.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQDictImpl.mm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- KWQDictImpl.mm	11 Jun 2004 18:06:35 -0000	1.7
  +++ KWQDictImpl.mm	3 Oct 2005 21:13:02 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQDictImpl.h"
   #import <CoreFoundation/CoreFoundation.h>
   
  
  
  
  1.7       +1 -0      WebCore/kwq/KWQEditCommand.mm
  
  Index: KWQEditCommand.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQEditCommand.mm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- KWQEditCommand.mm	27 Sep 2005 22:37:28 -0000	1.6
  +++ KWQEditCommand.mm	3 Oct 2005 21:13:02 -0000	1.7
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQEditCommand.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.30      +1 -0      WebCore/kwq/KWQEvent.mm
  
  Index: KWQEvent.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQEvent.mm,v
  retrieving revision 1.29
  retrieving revision 1.30
  diff -u -r1.29 -r1.30
  --- KWQEvent.mm	3 Sep 2005 23:10:02 -0000	1.29
  +++ KWQEvent.mm	3 Oct 2005 21:13:02 -0000	1.30
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQEvent.h"
   
   #import "KWQLogging.h"
  
  
  
  1.2       +1 -0      WebCore/kwq/KWQExceptions.mm
  
  Index: KWQExceptions.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQExceptions.mm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- KWQExceptions.mm	27 Oct 2003 20:51:25 -0000	1.1
  +++ KWQExceptions.mm	3 Oct 2005 21:13:02 -0000	1.2
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQExceptions.h"
   
   void KWQReportBlockedException(KWQNSHandler& _localHandler)
  
  
  
  1.9       +1 -0      WebCore/kwq/KWQFile.mm
  
  Index: KWQFile.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQFile.mm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- KWQFile.mm	8 Oct 2003 21:23:48 -0000	1.8
  +++ KWQFile.mm	3 Oct 2005 21:13:02 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQFile.h"
   
   // This NSString call can't throw so no need to block exceptions
  
  
  
  1.29      +1 -0      WebCore/kwq/KWQFileButton.mm
  
  Index: KWQFileButton.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQFileButton.mm,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- KWQFileButton.mm	27 Sep 2005 22:37:28 -0000	1.28
  +++ KWQFileButton.mm	3 Oct 2005 21:13:02 -0000	1.29
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQFileButton.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.49      +1 -0      WebCore/kwq/KWQFont.mm
  
  Index: KWQFont.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQFont.mm,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- KWQFont.mm	25 Aug 2005 17:47:25 -0000	1.48
  +++ KWQFont.mm	3 Oct 2005 21:13:02 -0000	1.49
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQFont.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.6       +1 -1      WebCore/kwq/KWQFontFamily.h
  
  Index: KWQFontFamily.h
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQFontFamily.h,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- KWQFontFamily.h	27 Sep 2005 22:37:28 -0000	1.5
  +++ KWQFontFamily.h	3 Oct 2005 21:13:03 -0000	1.6
  @@ -33,7 +33,7 @@
   class NSString;
   #endif
   
  -class KWQFontFamily : public FastAllocated {
  +class KWQFontFamily {
   public:
       KWQFontFamily();
       ~KWQFontFamily() { if (_next) _next->deref();  }
  
  
  
  1.6       +1 -0      WebCore/kwq/KWQFontFamily.mm
  
  Index: KWQFontFamily.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQFontFamily.mm,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- KWQFontFamily.mm	29 Aug 2005 21:29:28 -0000	1.5
  +++ KWQFontFamily.mm	3 Oct 2005 21:13:03 -0000	1.6
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "KWQFontFamily.h"
   #include "xml/dom_stringimpl.h"
   
  
  
  
  1.90      +1 -0      WebCore/kwq/KWQFontMetrics.mm
  
  Index: KWQFontMetrics.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQFontMetrics.mm,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- KWQFontMetrics.mm	29 Jul 2005 23:42:55 -0000	1.89
  +++ KWQFontMetrics.mm	3 Oct 2005 21:13:03 -0000	1.90
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQFontMetrics.h"
   
   #import <Cocoa/Cocoa.h>
  
  
  
  1.4       +1 -0      WebCore/kwq/KWQFormData.mm
  
  Index: KWQFormData.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQFormData.mm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- KWQFormData.mm	27 Sep 2005 22:37:28 -0000	1.3
  +++ KWQFormData.mm	3 Oct 2005 21:13:03 -0000	1.4
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQFormData.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.19      +1 -0      WebCore/kwq/KWQFrame.mm
  
  Index: KWQFrame.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQFrame.mm,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- KWQFrame.mm	18 May 2005 21:10:26 -0000	1.18
  +++ KWQFrame.mm	3 Oct 2005 21:13:03 -0000	1.19
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQFrame.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.3       +2 -0      WebCore/kwq/KWQGlobal.mm
  
  Index: KWQGlobal.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQGlobal.mm,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- KWQGlobal.mm	22 Jan 2003 00:12:34 -0000	1.2
  +++ KWQGlobal.mm	3 Oct 2005 21:13:03 -0000	1.3
  @@ -23,6 +23,8 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
  +
   void qDebug(const char *msg, ...)
   {
   }
  
  
  
  1.9       +1 -0      WebCore/kwq/KWQGuardedPtr.mm
  
  Index: KWQGuardedPtr.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQGuardedPtr.mm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- KWQGuardedPtr.mm	22 Jan 2003 00:12:34 -0000	1.8
  +++ KWQGuardedPtr.mm	3 Oct 2005 21:13:03 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQGuardedPtr.h"
   
   #import "KWQObject.h"
  
  
  
  1.15      +1 -0      WebCore/kwq/KWQKCharsets.mm
  
  Index: KWQKCharsets.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKCharsets.mm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- KWQKCharsets.mm	24 Apr 2003 18:13:02 -0000	1.14
  +++ KWQKCharsets.mm	3 Oct 2005 21:13:03 -0000	1.15
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKCharsets.h"
   
   #import "KWQTextCodec.h"
  
  
  
  1.31      +1 -0      WebCore/kwq/KWQKConfigBase.mm
  
  Index: KWQKConfigBase.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKConfigBase.mm,v
  retrieving revision 1.30
  retrieving revision 1.31
  diff -u -r1.30 -r1.31
  --- KWQKConfigBase.mm	23 Aug 2005 18:32:50 -0000	1.30
  +++ KWQKConfigBase.mm	3 Oct 2005 21:13:03 -0000	1.31
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKConfigBase.h"
   
   #import "KWQColor.h"
  
  
  
  1.10      +1 -0      WebCore/kwq/KWQKCookieJar.mm
  
  Index: KWQKCookieJar.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKCookieJar.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- KWQKCookieJar.mm	27 Oct 2003 20:51:25 -0000	1.9
  +++ KWQKCookieJar.mm	3 Oct 2005 21:13:03 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
   
  +#include "config.h"
   #import "KWQKCookieJar.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.18      +1 -0      WebCore/kwq/KWQKCursor.mm
  
  Index: KWQKCursor.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKCursor.mm,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- KWQKCursor.mm	14 Jul 2005 02:32:33 -0000	1.17
  +++ KWQKCursor.mm	3 Oct 2005 21:13:03 -0000	1.18
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKCursor.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.16      +1 -0      WebCore/kwq/KWQKGlobal.mm
  
  Index: KWQKGlobal.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKGlobal.mm,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- KWQKGlobal.mm	22 Jan 2003 00:12:35 -0000	1.15
  +++ KWQKGlobal.mm	3 Oct 2005 21:13:03 -0000	1.16
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKGlobal.h"
   
   #import "KWQKConfigBase.h"
  
  
  
  1.8       +1 -0      WebCore/kwq/KWQKGlobalSettings.mm
  
  Index: KWQKGlobalSettings.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKGlobalSettings.mm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- KWQKGlobalSettings.mm	22 Jan 2003 00:12:35 -0000	1.7
  +++ KWQKGlobalSettings.mm	3 Oct 2005 21:13:03 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKGlobalSettings.h"
   
   #import "KWQFont.h"
  
  
  
  1.10      +1 -0      WebCore/kwq/KWQKHTMLFactory.mm
  
  Index: KWQKHTMLFactory.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKHTMLFactory.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- KWQKHTMLFactory.mm	22 Jan 2003 00:12:35 -0000	1.9
  +++ KWQKHTMLFactory.mm	3 Oct 2005 21:13:03 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKHTMLFactory.h"
   
   #import "KWQKInstance.h"
  
  
  
  1.14      +1 -0      WebCore/kwq/KWQKHTMLPart.cpp
  
  Index: KWQKHTMLPart.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKHTMLPart.cpp,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- KWQKHTMLPart.cpp	25 Aug 2005 23:13:57 -0000	1.13
  +++ KWQKHTMLPart.cpp	3 Oct 2005 21:13:03 -0000	1.14
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "KWQKHTMLPart.h"
   
   #include "html_documentimpl.h"
  
  
  
  1.676     +1 -0      WebCore/kwq/KWQKHTMLPart.mm
  
  Index: KWQKHTMLPart.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKHTMLPart.mm,v
  retrieving revision 1.675
  retrieving revision 1.676
  diff -u -r1.675 -r1.676
  --- KWQKHTMLPart.mm	27 Sep 2005 22:37:28 -0000	1.675
  +++ KWQKHTMLPart.mm	3 Oct 2005 21:13:04 -0000	1.676
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKHTMLPart.h"
   
   #import "DOMInternal.h"
  
  
  
  1.51      +1 -0      WebCore/kwq/KWQKHTMLPartBrowserExtension.mm
  
  Index: KWQKHTMLPartBrowserExtension.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKHTMLPartBrowserExtension.mm,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- KWQKHTMLPartBrowserExtension.mm	1 Jun 2005 23:49:49 -0000	1.50
  +++ KWQKHTMLPartBrowserExtension.mm	3 Oct 2005 21:13:05 -0000	1.51
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKHTMLPartBrowserExtension.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.9       +1 -0      WebCore/kwq/KWQKHTMLView.mm
  
  Index: KWQKHTMLView.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKHTMLView.mm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- KWQKHTMLView.mm	18 Jan 2005 00:43:14 -0000	1.8
  +++ KWQKHTMLView.mm	3 Oct 2005 21:13:05 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "khtmlview.h"
   
   #import "KWQKHTMLPart.h"
  
  
  
  1.19      +1 -0      WebCore/kwq/KWQKHistoryProvider.mm
  
  Index: KWQKHistoryProvider.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKHistoryProvider.mm,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- KWQKHistoryProvider.mm	14 Feb 2004 02:10:46 -0000	1.18
  +++ KWQKHistoryProvider.mm	3 Oct 2005 21:13:05 -0000	1.19
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKPartsHistoryProvider.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.29      +1 -0      WebCore/kwq/KWQKJavaAppletWidget.mm
  
  Index: KWQKJavaAppletWidget.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKJavaAppletWidget.mm,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- KWQKJavaAppletWidget.mm	29 Apr 2005 00:31:01 -0000	1.28
  +++ KWQKJavaAppletWidget.mm	3 Oct 2005 21:13:05 -0000	1.29
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKJavaAppletWidget.h"
   
   #import "dom_docimpl.h"
  
  
  
  1.10      +1 -0      WebCore/kwq/KWQKJob.mm
  
  Index: KWQKJob.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKJob.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- KWQKJob.mm	22 Jan 2003 00:12:35 -0000	1.9
  +++ KWQKJob.mm	3 Oct 2005 21:13:05 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKJob.h"
   #import "KWQLogging.h"
   
  
  
  
  1.49      +1 -0      WebCore/kwq/KWQKJobClasses.mm
  
  Index: KWQKJobClasses.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKJobClasses.mm,v
  retrieving revision 1.48
  retrieving revision 1.49
  diff -u -r1.48 -r1.49
  --- KWQKJobClasses.mm	8 Sep 2005 21:35:30 -0000	1.48
  +++ KWQKJobClasses.mm	3 Oct 2005 21:13:05 -0000	1.49
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQLogging.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.19      +1 -0      WebCore/kwq/KWQKLocale.mm
  
  Index: KWQKLocale.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKLocale.mm,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- KWQKLocale.mm	27 Oct 2003 20:51:25 -0000	1.18
  +++ KWQKLocale.mm	3 Oct 2005 21:13:05 -0000	1.19
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKLocale.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.15      +1 -0      WebCore/kwq/KWQKPartsBrowserInterface.mm
  
  Index: KWQKPartsBrowserInterface.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKPartsBrowserInterface.mm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- KWQKPartsBrowserInterface.mm	27 Sep 2005 22:37:29 -0000	1.14
  +++ KWQKPartsBrowserInterface.mm	3 Oct 2005 21:13:05 -0000	1.15
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKPartsBrowserInterface.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.11      +1 -0      WebCore/kwq/KWQKPartsEvent.mm
  
  Index: KWQKPartsEvent.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKPartsEvent.mm,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- KWQKPartsEvent.mm	18 Nov 2003 01:52:35 -0000	1.10
  +++ KWQKPartsEvent.mm	3 Oct 2005 21:13:05 -0000	1.11
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKPartsEvent.h"
   
   namespace KParts {
  
  
  
  1.4       +1 -0      WebCore/kwq/KWQKPartsPart.mm
  
  Index: KWQKPartsPart.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKPartsPart.mm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- KWQKPartsPart.mm	14 Dec 2004 00:10:18 -0000	1.3
  +++ KWQKPartsPart.mm	3 Oct 2005 21:13:05 -0000	1.4
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKPartsPart.h"
   
   namespace KParts {
  
  
  
  1.6       +1 -0      WebCore/kwq/KWQKSSLKeyGen.mm
  
  Index: KWQKSSLKeyGen.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKSSLKeyGen.mm,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- KWQKSSLKeyGen.mm	19 May 2004 14:37:10 -0000	1.5
  +++ KWQKSSLKeyGen.mm	3 Oct 2005 21:13:05 -0000	1.6
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKSSLKeyGen.h"
   
   #import "KWQKURL.h"
  
  
  
  1.15      +1 -0      WebCore/kwq/KWQKStandardDirs.mm
  
  Index: KWQKStandardDirs.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKStandardDirs.mm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- KWQKStandardDirs.mm	8 Oct 2003 21:23:49 -0000	1.14
  +++ KWQKStandardDirs.mm	3 Oct 2005 21:13:05 -0000	1.15
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKStandardDirs.h"
   
   // The NSBundle calls in this file can't throw, so no need to block
  
  
  
  1.6       +1 -0      WebCore/kwq/KWQKStringHandler.mm
  
  Index: KWQKStringHandler.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKStringHandler.mm,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- KWQKStringHandler.mm	22 Jan 2003 00:12:35 -0000	1.5
  +++ KWQKStringHandler.mm	3 Oct 2005 21:13:05 -0000	1.6
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKStringHandler.h"
   
   QString KStringHandler::csqueeze(const QString &str, uint maxlen)
  
  
  
  1.93      +23 -22    WebCore/kwq/KWQKURL.mm
  
  Index: KWQKURL.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKURL.mm,v
  retrieving revision 1.92
  retrieving revision 1.93
  diff -u -r1.92 -r1.93
  --- KWQKURL.mm	27 Sep 2005 22:37:29 -0000	1.92
  +++ KWQKURL.mm	3 Oct 2005 21:13:05 -0000	1.93
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKURL.h"
   
   #import <kxmlcore/Assertions.h>
  @@ -242,7 +243,7 @@
           size_t urlLength = strlen(url) + 1;
           size_t bufferLength = urlLength + 5; // 5 for "file:"
           if (bufferLength > sizeof(staticBuffer)) {
  -            buffer = (char *)malloc(bufferLength);
  +            buffer = (char *)fastMalloc(bufferLength);
           } else {
               buffer = staticBuffer;
           }
  @@ -254,7 +255,7 @@
           memcpy(&buffer[5], url, urlLength);
   	parse(buffer, NULL);
           if (buffer != staticBuffer) {
  -            free(buffer);
  +            fastFree(buffer);
           }
       } else {
   	parse(url, NULL);
  @@ -268,7 +269,7 @@
           char *buffer;
           size_t bufferLength = url.length() + 6; // 5 for "file:", 1 for terminator
           if (bufferLength > sizeof(staticBuffer)) {
  -            buffer = (char *)malloc(bufferLength);
  +            buffer = (char *)fastMalloc(bufferLength);
           } else {
               buffer = staticBuffer;
           }
  @@ -280,7 +281,7 @@
           url.copyLatin1(&buffer[5]);
   	parse(buffer, NULL);
           if (buffer != staticBuffer) {
  -            free(buffer);
  +            fastFree(buffer);
           }
       } else {
   	parse(url.ascii(), &url);
  @@ -295,7 +296,7 @@
           char staticBuffer[2048];
           char *buffer;
           if (bufferLength > sizeof(staticBuffer)) {
  -            buffer = (char *)malloc(bufferLength);
  +            buffer = (char *)fastMalloc(bufferLength);
           } else {
               buffer = staticBuffer;
           }
  @@ -313,7 +314,7 @@
               parse(bytes, NULL);
           }
           if (buffer != staticBuffer) {
  -            free(buffer);
  +            fastFree(buffer);
           }
       }
       else {
  @@ -367,10 +368,10 @@
           charsToChopOffEnd++;
       }
       if (charsToChopOffEnd > 0) {
  -        char *newStrBuffer = (char *)malloc((len + 1) - charsToChopOffEnd);
  +        char *newStrBuffer = (char *)fastMalloc((len + 1) - charsToChopOffEnd);
           strncpy(newStrBuffer, str, len - charsToChopOffEnd);
           newStrBuffer[len - charsToChopOffEnd] = '\0';
  -        free(strBuffer);
  +        fastFree(strBuffer);
           strBuffer = newStrBuffer;
           str = strBuffer;
       }
  @@ -403,7 +404,7 @@
   	    QString newURL = base.urlString + str;
   	    parse(newURL.ascii(), &newURL);
               if (strBuffer) {
  -                free(strBuffer);
  +                fastFree(strBuffer);
               }
               return;
   	}
  @@ -455,7 +456,7 @@
   		size_t bufferLength = base.pathEndPos + 1 + strlen(str) + 1;
   
   		if (bufferLength > sizeof(staticBuffer)) {
  -		    buffer = (char *)malloc(bufferLength);
  +		    buffer = (char *)fastMalloc(bufferLength);
   		} else {
   		    buffer = staticBuffer;
   		}
  @@ -533,7 +534,7 @@
                   ASSERT(strlen(buffer) + 1 <= bufferLength);
   		
   		if (buffer != staticBuffer) {
  -		    free(buffer);
  +		    fastFree(buffer);
   		}
   		
   		break;
  @@ -542,7 +543,7 @@
       }
       
       if (strBuffer) {
  -        free(strBuffer);
  +        fastFree(strBuffer);
       }
   }
   
  @@ -927,9 +928,9 @@
           int encodedRunLength = encodedRunEnd - encodedRunPosition;
           if (encodedRunLength + 1 > bufferLength) {
               if (buffer != staticBuffer)
  -                free(buffer);
  +                fastFree(buffer);
               bufferLength = malloc_good_size(encodedRunLength + 1);
  -            buffer = static_cast<char *>(malloc(bufferLength));
  +            buffer = static_cast<char *>(fastMalloc(bufferLength));
           }
           urlString.copyLatin1(buffer, encodedRunPosition, encodedRunLength);
   
  @@ -956,7 +957,7 @@
       result.append(urlString.mid(decodedPosition, length - decodedPosition));
   
       if (buffer != staticBuffer)
  -        free(buffer);
  +        fastFree(buffer);
   
       return result;
   }
  @@ -1251,7 +1252,7 @@
       if (bufferLength <= sizeof(staticBuffer)) {
   	buffer = staticBuffer;
       } else {
  -	buffer = (char *)malloc(bufferLength);
  +	buffer = (char *)fastMalloc(bufferLength);
       }
   
       char *p = buffer;
  @@ -1377,12 +1378,12 @@
           if (pathBufferLength <= sizeof(static_path_buffer)) {
               path_buffer = static_path_buffer;
           } else {
  -            path_buffer = (char *)malloc(pathBufferLength);
  +            path_buffer = (char *)fastMalloc(pathBufferLength);
           }
           copyPathRemovingDots(path_buffer, url, pathStart, pathEnd);
           appendEscapingBadChars(p, path_buffer, strlen(path_buffer));
           if (path_buffer != static_path_buffer) {
  -            free(path_buffer);
  +            fastFree(path_buffer);
           }
       }
       else {
  @@ -1414,7 +1415,7 @@
       ASSERT(p - buffer <= (int)bufferLength);
   		
       if (buffer != staticBuffer) {
  -	free(buffer);
  +	fastFree(buffer);
       }
   }
   
  @@ -1445,7 +1446,7 @@
       if (bufferLength <= sizeof(staticBuffer)) {
   	buffer = staticBuffer;
       } else {
  -	buffer = (char *)malloc(bufferLength);
  +	buffer = (char *)fastMalloc(bufferLength);
       }
       
       char *p = buffer;
  @@ -1468,7 +1469,7 @@
       ASSERT(p - buffer <= (int)bufferLength);
   		
       if (buffer != staticBuffer) {
  -	free(buffer);
  +	fastFree(buffer);
       }
   
       return result;
  @@ -1718,7 +1719,7 @@
           QCString otherDecoded = otherCodec->fromUnicode(s.mid(pathEnd));
           int pathDecodedLength = pathDecoded.length();
           int otherDecodedLength = otherDecoded.length();
  -        strBuffer = static_cast<char *>(malloc(pathDecodedLength + otherDecodedLength + 1));
  +        strBuffer = static_cast<char *>(fastMalloc(pathDecodedLength + otherDecodedLength + 1));
           memcpy(strBuffer, pathDecoded, pathDecodedLength);
           memcpy(strBuffer + pathDecodedLength, otherDecoded, otherDecodedLength);
           strBuffer[pathDecodedLength + otherDecodedLength] = 0;
  
  
  
  1.10      +1 -0      WebCore/kwq/KWQKWin.mm
  
  Index: KWQKWin.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKWin.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- KWQKWin.mm	22 Jan 2003 00:12:35 -0000	1.9
  +++ KWQKWin.mm	3 Oct 2005 21:13:06 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKWin.h"
   
   #import "KWQWidget.h"
  
  
  
  1.14      +1 -0      WebCore/kwq/KWQKWinModule.mm
  
  Index: KWQKWinModule.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQKWinModule.mm,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- KWQKWinModule.mm	14 Dec 2003 00:43:13 -0000	1.13
  +++ KWQKWinModule.mm	3 Oct 2005 21:13:06 -0000	1.14
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQKWinModule.h"
   
   QRect KWinModule::workArea() const
  
  
  
  1.10      +1 -0      WebCore/kwq/KWQLabel.mm
  
  Index: KWQLabel.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQLabel.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- KWQLabel.mm	22 Jan 2003 00:12:35 -0000	1.9
  +++ KWQLabel.mm	3 Oct 2005 21:13:06 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQLabel.h"
   
   QLabel::QLabel(const QString &, QWidget *)
  
  
  
  1.72      +1 -0      WebCore/kwq/KWQLineEdit.mm
  
  Index: KWQLineEdit.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQLineEdit.mm,v
  retrieving revision 1.71
  retrieving revision 1.72
  diff -u -r1.71 -r1.72
  --- KWQLineEdit.mm	24 Sep 2005 11:05:33 -0000	1.71
  +++ KWQLineEdit.mm	3 Oct 2005 21:13:06 -0000	1.72
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQLineEdit.h"
   
   #import "KWQButton.h"
  
  
  
  1.59      +1 -0      WebCore/kwq/KWQListBox.mm
  
  Index: KWQListBox.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQListBox.mm,v
  retrieving revision 1.58
  retrieving revision 1.59
  diff -u -r1.58 -r1.59
  --- KWQListBox.mm	27 Sep 2005 22:37:29 -0000	1.58
  +++ KWQListBox.mm	3 Oct 2005 21:13:06 -0000	1.59
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQListBox.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.23      +2 -1      WebCore/kwq/KWQListImpl.mm
  
  Index: KWQListImpl.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQListImpl.mm,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -r1.22 -r1.23
  --- KWQListImpl.mm	27 Sep 2005 22:37:30 -0000	1.22
  +++ KWQListImpl.mm	3 Oct 2005 21:13:06 -0000	1.23
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQListImpl.h"
   
   #import <cstddef>
  @@ -31,7 +32,7 @@
   #import <kxmlcore/Assertions.h>
   #import "kxmlcore/FastMalloc.h"
   
  -class KWQListNode : public FastAllocated
  +class KWQListNode
   {
   public:
       KWQListNode(void *d) : data(d), next(NULL), prev(NULL) { }
  
  
  
  1.123     +3 -2      WebCore/kwq/KWQLoader.mm
  
  Index: KWQLoader.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQLoader.mm,v
  retrieving revision 1.122
  retrieving revision 1.123
  diff -u -r1.122 -r1.123
  --- KWQLoader.mm	8 Sep 2005 21:35:30 -0000	1.122
  +++ KWQLoader.mm	3 Oct 2005 21:13:06 -0000	1.123
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQLoader.h"
   
   #import "KWQExceptions.h"
  @@ -275,7 +276,7 @@
       // Nasty hack to directly compare strings buffers of NSString
       // and DOMString.  We do this for speed.
       if ([urlString length] > LOCAL_STRING_BUFFER_SIZE) {
  -        urlStringCharacters = (unichar *)malloc (sizeof(unichar)*[urlString length]);
  +        urlStringCharacters = (unichar *)fastMalloc(sizeof(unichar)*[urlString length]);
       }
       else {
           urlStringCharacters = _buffer;
  @@ -287,7 +288,7 @@
   	ret = true;
       
       if (urlStringCharacters != _buffer)
  -        free (urlStringCharacters);
  +        fastFree(urlStringCharacters);
           
       return ret;
   }
  
  
  
  1.11      +2 -2      WebCore/kwq/KWQMapImpl.h
  
  Index: KWQMapImpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQMapImpl.h,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- KWQMapImpl.h	27 Sep 2005 22:37:30 -0000	1.10
  +++ KWQMapImpl.h	3 Oct 2005 21:13:06 -0000	1.11
  @@ -33,7 +33,7 @@
   
   class KWQMapImpl;
   
  -class KWQMapNodeImpl : public FastAllocated
  +class KWQMapNodeImpl
   {
   protected:
       typedef enum { Red = 0, Black = 1 } KWQMapNodeColor;
  @@ -64,7 +64,7 @@
   #endif
   };
   
  -class KWQMapIteratorImpl : public FastAllocated {
  +class KWQMapIteratorImpl {
   protected:
       KWQMapNodeImpl *node;
   
  
  
  
  1.12      +2 -1      WebCore/kwq/KWQMapImpl.mm
  
  Index: KWQMapImpl.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQMapImpl.mm,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- KWQMapImpl.mm	27 Sep 2005 22:37:30 -0000	1.11
  +++ KWQMapImpl.mm	3 Oct 2005 21:13:06 -0000	1.12
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQMapImpl.h"
   
   KWQMapNodeImpl::KWQMapNodeImpl() :
  @@ -115,7 +116,7 @@
   
   // KWQMapImplPrivate
   
  -class KWQMapImpl::KWQMapPrivate : public FastAllocated
  +class KWQMapImpl::KWQMapPrivate
   {
   public:
       KWQMapPrivate(KWQMapNodeImpl *node,
  
  
  
  1.8       +1 -0      WebCore/kwq/KWQMovie.mm
  
  Index: KWQMovie.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQMovie.mm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- KWQMovie.mm	22 Jan 2003 00:12:35 -0000	1.7
  +++ KWQMovie.mm	3 Oct 2005 21:13:06 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQMovie.h"
   
   const QRect &QMovie::getValidRect() const
  
  
  
  1.48      +1 -0      WebCore/kwq/KWQObject.mm
  
  Index: KWQObject.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQObject.mm,v
  retrieving revision 1.47
  retrieving revision 1.48
  diff -u -r1.47 -r1.48
  --- KWQObject.mm	27 Sep 2005 22:37:30 -0000	1.47
  +++ KWQObject.mm	3 Oct 2005 21:13:06 -0000	1.48
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQObject.h"
   
   #import "KWQVariant.h"
  
  
  
  1.21      +1 -0      WebCore/kwq/KWQPageState.mm
  
  Index: KWQPageState.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPageState.mm,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- KWQPageState.mm	27 Sep 2005 22:37:30 -0000	1.20
  +++ KWQPageState.mm	3 Oct 2005 21:13:07 -0000	1.21
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPageState.h"
   
   #import <JavaScriptCore/interpreter.h>
  
  
  
  1.16      +1 -0      WebCore/kwq/KWQPaintDeviceMetrics.mm
  
  Index: KWQPaintDeviceMetrics.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPaintDeviceMetrics.mm,v
  retrieving revision 1.15
  retrieving revision 1.16
  diff -u -r1.15 -r1.16
  --- KWQPaintDeviceMetrics.mm	4 Apr 2003 16:56:02 -0000	1.15
  +++ KWQPaintDeviceMetrics.mm	3 Oct 2005 21:13:07 -0000	1.16
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPaintDeviceMetrics.h"
   
   QPaintDeviceMetrics::QPaintDeviceMetrics(const QPaintDevice *)
  
  
  
  1.144     +1 -0      WebCore/kwq/KWQPainter.mm
  
  Index: KWQPainter.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPainter.mm,v
  retrieving revision 1.143
  retrieving revision 1.144
  diff -u -r1.143 -r1.144
  --- KWQPainter.mm	27 Sep 2005 22:37:30 -0000	1.143
  +++ KWQPainter.mm	3 Oct 2005 21:13:07 -0000	1.144
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPainter.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.12      +1 -0      WebCore/kwq/KWQPalette.mm
  
  Index: KWQPalette.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPalette.mm,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- KWQPalette.mm	5 Jul 2005 08:22:21 -0000	1.11
  +++ KWQPalette.mm	3 Oct 2005 21:13:07 -0000	1.12
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPalette.h"
   #import "KWQLogging.h"
   
  
  
  
  1.10      +1 -0      WebCore/kwq/KWQPen.mm
  
  Index: KWQPen.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPen.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- KWQPen.mm	22 Jan 2003 00:12:35 -0000	1.9
  +++ KWQPen.mm	3 Oct 2005 21:13:07 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPen.h"
   
   QPen::QPen(const QColor &color, uint width, PenStyle style) : penStyle(style), penWidth(width), penColor(color)
  
  
  
  1.51      +1 -0      WebCore/kwq/KWQPixmap.mm
  
  Index: KWQPixmap.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPixmap.mm,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- KWQPixmap.mm	27 Aug 2005 00:14:22 -0000	1.50
  +++ KWQPixmap.mm	3 Oct 2005 21:13:07 -0000	1.51
  @@ -22,6 +22,7 @@
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
  +#include "config.h"
   #import "loader.h"
   
   #import "KWQPixmap.h"
  
  
  
  1.12      +1 -0      WebCore/kwq/KWQPoint.mm
  
  Index: KWQPoint.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPoint.mm,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- KWQPoint.mm	30 Sep 2005 04:04:57 -0000	1.11
  +++ KWQPoint.mm	3 Oct 2005 21:13:07 -0000	1.12
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPointArray.h"
   
   QPoint::QPoint() : xCoord(0), yCoord(0)
  
  
  
  1.11      +1 -0      WebCore/kwq/KWQPointArray.mm
  
  Index: KWQPointArray.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPointArray.mm,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- KWQPointArray.mm	7 Jul 2005 06:25:02 -0000	1.10
  +++ KWQPointArray.mm	3 Oct 2005 21:13:07 -0000	1.11
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPointArray.h"
   #import <stdarg.h>
   
  
  
  
  1.8       +1 -0      WebCore/kwq/KWQPtrDictImpl.mm
  
  Index: KWQPtrDictImpl.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPtrDictImpl.mm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- KWQPtrDictImpl.mm	22 Jan 2003 00:12:35 -0000	1.7
  +++ KWQPtrDictImpl.mm	3 Oct 2005 21:13:07 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPtrDictImpl.h"
   
   #import <new>
  
  
  
  1.17      +1 -0      WebCore/kwq/KWQPushButton.mm
  
  Index: KWQPushButton.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQPushButton.mm,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- KWQPushButton.mm	27 Oct 2003 20:51:25 -0000	1.16
  +++ KWQPushButton.mm	3 Oct 2005 21:13:08 -0000	1.17
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQPushButton.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.17      +1 -0      WebCore/kwq/KWQRect.mm
  
  Index: KWQRect.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQRect.mm,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- KWQRect.mm	30 Sep 2005 04:04:57 -0000	1.16
  +++ KWQRect.mm	3 Oct 2005 21:13:08 -0000	1.17
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQRect.h"
   
   #import <algorithm>
  
  
  
  1.15      +1 -0      WebCore/kwq/KWQRegExp.mm
  
  Index: KWQRegExp.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQRegExp.mm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- KWQRegExp.mm	9 Jul 2005 01:01:10 -0000	1.14
  +++ KWQRegExp.mm	3 Oct 2005 21:13:08 -0000	1.15
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQRegExp.h"
   #import "KWQLogging.h"
   
  
  
  
  1.21      +1 -0      WebCore/kwq/KWQRegion.mm
  
  Index: KWQRegion.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQRegion.mm,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- KWQRegion.mm	15 Jun 2004 05:33:44 -0000	1.20
  +++ KWQRegion.mm	3 Oct 2005 21:13:08 -0000	1.21
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQRegion.h"
   #import "KWQFoundationExtras.h"
   
  
  
  
  1.46      +1 -0      WebCore/kwq/KWQRenderTreeDebug.cpp
  
  Index: KWQRenderTreeDebug.cpp
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQRenderTreeDebug.cpp,v
  retrieving revision 1.45
  retrieving revision 1.46
  diff -u -r1.45 -r1.46
  --- KWQRenderTreeDebug.cpp	24 Sep 2005 01:19:05 -0000	1.45
  +++ KWQRenderTreeDebug.cpp	3 Oct 2005 21:13:08 -0000	1.46
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #include "KWQRenderTreeDebug.h"
   
   #include "dom_docimpl.h"
  
  
  
  1.17      +1 -0      WebCore/kwq/KWQResourceLoader.mm
  
  Index: KWQResourceLoader.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQResourceLoader.mm,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- KWQResourceLoader.mm	27 Sep 2005 22:37:31 -0000	1.16
  +++ KWQResourceLoader.mm	3 Oct 2005 21:13:08 -0000	1.17
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQResourceLoader.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.9       +1 -0      WebCore/kwq/KWQScrollBar.mm
  
  Index: KWQScrollBar.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQScrollBar.mm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- KWQScrollBar.mm	5 Apr 2005 23:41:18 -0000	1.8
  +++ KWQScrollBar.mm	3 Oct 2005 21:13:08 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
   
  +#include "config.h"
   #import "KWQScrollBar.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.84      +1 -0      WebCore/kwq/KWQScrollView.mm
  
  Index: KWQScrollView.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQScrollView.mm,v
  retrieving revision 1.83
  retrieving revision 1.84
  diff -u -r1.83 -r1.84
  --- KWQScrollView.mm	23 Aug 2005 18:32:51 -0000	1.83
  +++ KWQScrollView.mm	3 Oct 2005 21:13:08 -0000	1.84
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQScrollView.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.21      +1 -0      WebCore/kwq/KWQSignal.mm
  
  Index: KWQSignal.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQSignal.mm,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- KWQSignal.mm	27 Sep 2005 22:37:31 -0000	1.20
  +++ KWQSignal.mm	3 Oct 2005 21:13:08 -0000	1.21
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQSignal.h"
   
   #import "KWQObject.h"
  
  
  
  1.15      +1 -0      WebCore/kwq/KWQSignalStubs.mm
  
  Index: KWQSignalStubs.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQSignalStubs.mm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- KWQSignalStubs.mm	7 Feb 2004 01:19:44 -0000	1.14
  +++ KWQSignalStubs.mm	3 Oct 2005 21:13:09 -0000	1.15
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
    
  +#include "config.h"
   #import "khtmlview.h"
   #import "loader.h"
   #import "xml_tokenizer.h"
  
  
  
  1.11      +1 -0      WebCore/kwq/KWQSize.mm
  
  Index: KWQSize.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQSize.mm,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- KWQSize.mm	30 Sep 2005 04:04:57 -0000	1.10
  +++ KWQSize.mm	3 Oct 2005 21:13:09 -0000	1.11
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQSize.h"
   
   QSize::QSize() : w(-1), h(-1)
  
  
  
  1.11      +1 -0      WebCore/kwq/KWQSlider.mm
  
  Index: KWQSlider.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQSlider.mm,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- KWQSlider.mm	14 Jul 2005 23:53:33 -0000	1.10
  +++ KWQSlider.mm	3 Oct 2005 21:13:09 -0000	1.11
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
   
  +#include "config.h"
   #import "KWQSlider.h"
   
   #import "KWQButton.h"
  
  
  
  1.35      +1 -0      WebCore/kwq/KWQSlot.mm
  
  Index: KWQSlot.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQSlot.mm,v
  retrieving revision 1.34
  retrieving revision 1.35
  diff -u -r1.34 -r1.35
  --- KWQSlot.mm	27 Sep 2005 22:37:31 -0000	1.34
  +++ KWQSlot.mm	3 Oct 2005 21:13:09 -0000	1.35
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQSlot.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.119     +1 -4      WebCore/kwq/KWQString.h
  
  Index: KWQString.h
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQString.h,v
  retrieving revision 1.118
  retrieving revision 1.119
  diff -u -r1.118 -r1.119
  --- KWQString.h	27 Sep 2005 22:37:31 -0000	1.118
  +++ KWQString.h	3 Oct 2005 21:13:09 -0000	1.119
  @@ -340,10 +340,7 @@
   #define QS_INTERNAL_BUFFER_CHARS QS_INTERNAL_BUFFER_SIZE-1
   #define QS_INTERNAL_BUFFER_UCHARS QS_INTERNAL_BUFFER_SIZE/2
   
  -struct KWQStringData 
  -#ifndef QSTRING_DEBUG_ALLOCATIONS
  -    : public FastAllocated 
  -#endif
  +struct KWQStringData  
   {
       // Uses shared null data.
       KWQStringData();
  
  
  
  1.142     +18 -17    WebCore/kwq/KWQString.mm
  
  Index: KWQString.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQString.mm,v
  retrieving revision 1.141
  retrieving revision 1.142
  diff -u -r1.141 -r1.142
  --- KWQString.mm	27 Sep 2005 22:37:31 -0000	1.141
  +++ KWQString.mm	3 Oct 2005 21:13:09 -0000	1.142
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import <Foundation/Foundation.h>
   
   #import <stdio.h>
  @@ -90,7 +91,7 @@
   
   static char *ALLOC_CHAR(int n)
   {
  -    char *ptr = (char *)main_thread_malloc(n);
  +    char *ptr = (char *)fastMalloc(n);
   
       CFDictionarySetValue (allocatedBuffers(), ptr, (void *)n);
       
  @@ -103,7 +104,7 @@
   
   static char *REALLOC_CHAR(void *p, int n)
   {
  -    char *ptr = (char *)realloc(p, n);
  +    char *ptr = (char *)fastRealloc(p, n);
   
       CFDictionaryRemoveValue (allocatedBuffers(), p);
       CFDictionarySetValue (allocatedBuffers(), ptr, (const void *)(n));
  @@ -117,13 +118,13 @@
   static void DELETE_CHAR(void *p)
   {
       CFDictionaryRemoveValue (allocatedBuffers(), p);
  -    free (p);
  +    fastFree(p);
   }
   
   static QChar *ALLOC_QCHAR(int n)
   {
       size_t size = (sizeof(QChar)*( n ));
  -    QChar *ptr = (QChar *)fast_malloc(size);
  +    QChar *ptr = (QChar *)fastMalloc(size);
   
       CFDictionarySetValue (allocatedBuffers(), ptr, (const void *)size);
       if (size >= ALLOCATION_HISTOGRAM_SIZE)
  @@ -136,7 +137,7 @@
   static QChar *REALLOC_QCHAR(void *p, int n)
   {
       size_t size = (sizeof(QChar)*( n ));
  -    QChar *ptr = (QChar *)realloc(p, size);
  +    QChar *ptr = (QChar *)fastRealloc(p, size);
   
       CFDictionaryRemoveValue (allocatedBuffers(), p);
       CFDictionarySetValue (allocatedBuffers(), ptr, (const void *)size);
  @@ -151,7 +152,7 @@
   static void DELETE_QCHAR(void *p)
   {
       CFDictionaryRemoveValue (allocatedBuffers(), p);
  -    free (p);
  +    fatFree(p);
   }
   
   void _printQStringAllocationStatistics()
  @@ -162,9 +163,9 @@
       int totalSize = 0;
       int totalAllocations = 0;
       
  -    count = (int)CFDictionaryGetCount (allocatedBuffers());
  -    values = (const void **)malloc (count*sizeof(void *));
  -    keys = (const void **)malloc (count*sizeof(void *));
  +    count = (int)CFDictionaryGetCount(allocatedBuffers());
  +    values = (const void **)fastMalloc(count*sizeof(void *));
  +    keys = (const void **)fastMalloc(count*sizeof(void *));
   
       CFDictionaryGetKeysAndValues (allocatedBuffers(), keys, values);
       printf ("Leaked strings:\n");
  @@ -197,14 +198,14 @@
       printf ("KWQStringData detachments (copies) %d\n", stringDataDetachments);
       printf ("KWQStringData handles %d\n", handleInstances);
       
  -    free(keys);
  -    free(values);
  +    fastFree(keys);
  +    fastFree(values);
   }
   
   #else
   
  -#define ALLOC_CHAR(N) (char*) fastMalloc(N)
  -#define REALLOC_CHAR(P, N) (char *) fastRealloc(P, N)
  +#define ALLOC_CHAR(N) (char*)fastMalloc(N)
  +#define REALLOC_CHAR(P, N) (char *)fastRealloc(P, N)
   #define DELETE_CHAR(P) fastFree(P)
   
   #define ALLOC_QCHAR(N) (QChar*)fastMalloc(sizeof(QChar)*(N))
  @@ -234,7 +235,7 @@
   static inline KWQStringData **allocateHandle()
   {
   #if CHECK_FOR_HANDLE_LEAKS
  -    return static_cast<KWQStringData **>(malloc(sizeof(KWQStringData *)));
  +    return static_cast<KWQStringData **>(fastMalloc(sizeof(KWQStringData *)));
   #endif
   
       initializeHandleNodes();
  @@ -420,11 +421,11 @@
   void* KWQStringData::operator new(size_t s)
   {
       stringDataHeapInstances++;
  -    return malloc(s);
  +    return fastMalloc(s);
   }
   void KWQStringData::operator delete(void*p)
   {
  -    return free(p);
  +    return fastFree(p);
   }
   #endif
   
  @@ -2949,7 +2950,7 @@
   void freeHandle(KWQStringData **_free)
   {
   #if CHECK_FOR_HANDLE_LEAKS
  -    free(_free);
  +    fastFree(_free);
       return;
   #endif
   
  
  
  
  1.11      +1 -0      WebCore/kwq/KWQStringList.mm
  
  Index: KWQStringList.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQStringList.mm,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- KWQStringList.mm	20 Sep 2004 21:36:26 -0000	1.10
  +++ KWQStringList.mm	3 Oct 2005 21:13:09 -0000	1.11
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQStringList.h"
   
   #import <CoreFoundation/CoreFoundation.h>
  
  
  
  1.9       +1 -0      WebCore/kwq/KWQStyle.mm
  
  Index: KWQStyle.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQStyle.mm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- KWQStyle.mm	22 Jan 2003 00:12:36 -0000	1.8
  +++ KWQStyle.mm	3 Oct 2005 21:13:10 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQStyle.h"
   
   #import "KWQWidget.h"
  
  
  
  1.92      +1 -0      WebCore/kwq/KWQTextArea.mm
  
  Index: KWQTextArea.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQTextArea.mm,v
  retrieving revision 1.91
  retrieving revision 1.92
  diff -u -r1.91 -r1.92
  --- KWQTextArea.mm	3 Oct 2005 20:55:04 -0000	1.91
  +++ KWQTextArea.mm	3 Oct 2005 21:13:10 -0000	1.92
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQTextArea.h"
   
   #import "DOMCSS.h"
  
  
  
  1.56      +1 -0      WebCore/kwq/KWQTextCodec.mm
  
  Index: KWQTextCodec.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQTextCodec.mm,v
  retrieving revision 1.55
  retrieving revision 1.56
  diff -u -r1.55 -r1.56
  --- KWQTextCodec.mm	27 Sep 2005 22:37:32 -0000	1.55
  +++ KWQTextCodec.mm	3 Oct 2005 21:13:10 -0000	1.56
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQTextCodec.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.55      +1 -0      WebCore/kwq/KWQTextEdit.mm
  
  Index: KWQTextEdit.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQTextEdit.mm,v
  retrieving revision 1.54
  retrieving revision 1.55
  diff -u -r1.54 -r1.55
  --- KWQTextEdit.mm	3 Oct 2005 20:55:04 -0000	1.54
  +++ KWQTextEdit.mm	3 Oct 2005 21:13:10 -0000	1.55
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQTextEdit.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.90      +1 -0      WebCore/kwq/KWQTextField.mm
  
  Index: KWQTextField.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQTextField.mm,v
  retrieving revision 1.89
  retrieving revision 1.90
  diff -u -r1.89 -r1.90
  --- KWQTextField.mm	27 Sep 2005 22:37:32 -0000	1.89
  +++ KWQTextField.mm	3 Oct 2005 21:13:10 -0000	1.90
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQTextField.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.18      +1 -0      WebCore/kwq/KWQTextStream.mm
  
  Index: KWQTextStream.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQTextStream.mm,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- KWQTextStream.mm	1 Sep 2005 04:39:37 -0000	1.17
  +++ KWQTextStream.mm	3 Oct 2005 21:13:10 -0000	1.18
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQLogging.h"
   
   #import "KWQTextStream.h"
  
  
  
  1.9       +1 -0      WebCore/kwq/KWQTextUtilities.mm
  
  Index: KWQTextUtilities.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQTextUtilities.mm,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- KWQTextUtilities.mm	16 Aug 2005 19:03:20 -0000	1.8
  +++ KWQTextUtilities.mm	3 Oct 2005 21:13:10 -0000	1.9
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQTextUtilities.h"
   
   #import "KWQString.h"
  
  
  
  1.19      +1 -0      WebCore/kwq/KWQTimer.mm
  
  Index: KWQTimer.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQTimer.mm,v
  retrieving revision 1.18
  retrieving revision 1.19
  diff -u -r1.18 -r1.19
  --- KWQTimer.mm	27 Sep 2005 22:37:32 -0000	1.18
  +++ KWQTimer.mm	3 Oct 2005 21:13:10 -0000	1.19
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQTimer.h"
   
   #import <kxmlcore/Assertions.h>
  
  
  
  1.13      +1 -2      WebCore/kwq/KWQValueListImpl.h
  
  Index: KWQValueListImpl.h
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQValueListImpl.h,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- KWQValueListImpl.h	27 Sep 2005 22:37:32 -0000	1.12
  +++ KWQValueListImpl.h	3 Oct 2005 21:13:10 -0000	1.13
  @@ -28,7 +28,6 @@
   
   #include "KWQRefPtr.h"
   #include "KWQDef.h"
  -#include "kxmlcore/FastMalloc.h"
   
   class KWQValueListNodeImpl;
   
  @@ -107,7 +106,7 @@
       friend class KWQValueListNodeImpl;
   };
   
  -class KWQValueListNodeImpl : public FastAllocated
  +class KWQValueListNodeImpl
   {
   protected:
       KWQValueListNodeImpl();
  
  
  
  1.15      +2 -1      WebCore/kwq/KWQValueListImpl.mm
  
  Index: KWQValueListImpl.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQValueListImpl.mm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- KWQValueListImpl.mm	27 Sep 2005 22:37:32 -0000	1.14
  +++ KWQValueListImpl.mm	3 Oct 2005 21:13:10 -0000	1.15
  @@ -23,11 +23,12 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQValueListImpl.h"
   
   #import <stdlib.h>
   
  -class KWQValueListImpl::KWQValueListPrivate : public FastAllocated
  +class KWQValueListImpl::KWQValueListPrivate
   {
   public:
       KWQValueListPrivate(void (*deleteFunc)(KWQValueListNodeImpl *), KWQValueListNodeImpl *(*copyFunc)(KWQValueListNodeImpl *));
  
  
  
  1.15      +1 -0      WebCore/kwq/KWQVariant.mm
  
  Index: KWQVariant.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQVariant.mm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- KWQVariant.mm	27 Aug 2003 05:47:43 -0000	1.14
  +++ KWQVariant.mm	3 Oct 2005 21:13:10 -0000	1.15
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQVariant.h"
   
   #import "KWQString.h"
  
  
  
  1.10      +7 -6      WebCore/kwq/KWQVectorImpl.mm
  
  Index: KWQVectorImpl.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQVectorImpl.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- KWQVectorImpl.mm	20 Nov 2004 02:24:08 -0000	1.9
  +++ KWQVectorImpl.mm	3 Oct 2005 21:13:11 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQVectorImpl.h"
   
   KWQVectorImpl::KWQVectorImpl(void (*f)(void *))
  @@ -31,14 +32,14 @@
   }
   
   KWQVectorImpl::KWQVectorImpl(uint size, void (*f)(void *))
  -    : m_data((void **)malloc(size * sizeof(void *)))
  +    : m_data((void **)fastMalloc(size * sizeof(void *)))
       , m_size(size), m_count(0), m_deleteItemFunction(f)
   {
       memset(m_data, 0, size * sizeof(void *));
   }
   
   KWQVectorImpl::KWQVectorImpl(const KWQVectorImpl &vi)
  -    : m_data(vi.m_data ? (void **)malloc(vi.m_size * sizeof(void *)) : 0)
  +    : m_data(vi.m_data ? (void **)fastMalloc(vi.m_size * sizeof(void *)) : 0)
       , m_size(vi.m_size), m_count(vi.m_count)
       , m_deleteItemFunction(vi.m_deleteItemFunction)
   {
  @@ -47,7 +48,7 @@
   
   KWQVectorImpl::~KWQVectorImpl()
   {
  -    free(m_data);
  +    fastFree(m_data);
   }
   
   void KWQVectorImpl::clear(bool delItems)
  @@ -61,7 +62,7 @@
   	}
       }
   
  -    free(m_data);
  +    fastFree(m_data);
       m_data = 0;
       m_size = 0;
       m_count = 0;
  @@ -100,7 +101,7 @@
       }
   
       m_size = size;
  -    m_data = (void **)realloc(m_data, size * sizeof(void *));
  +    m_data = (void **)fastRealloc(m_data, size * sizeof(void *));
   
       if (size > oldSize) {
           memset(&m_data[oldSize], 0, (size - oldSize) * sizeof(void *));
  @@ -147,7 +148,7 @@
   {
       clear(delItems);
       
  -    m_data = vi.m_data ? (void **)malloc(vi.m_size * sizeof(void *)) : 0;
  +    m_data = vi.m_data ? (void **)fastMalloc(vi.m_size * sizeof(void *)) : 0;
       m_size = vi.m_size;
       m_count = vi.m_count;
       m_deleteItemFunction = vi.m_deleteItemFunction;
  
  
  
  1.8       +1 -0      WebCore/kwq/KWQWMatrix.mm
  
  Index: KWQWMatrix.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQWMatrix.mm,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- KWQWMatrix.mm	5 Jul 2005 07:57:46 -0000	1.7
  +++ KWQWMatrix.mm	3 Oct 2005 21:13:11 -0000	1.8
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQWMatrix.h"
   
   static const double deg2rad = 0.017453292519943295769; // pi/180
  
  
  
  1.111     +1 -0      WebCore/kwq/KWQWidget.mm
  
  Index: KWQWidget.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQWidget.mm,v
  retrieving revision 1.110
  retrieving revision 1.111
  diff -u -r1.110 -r1.111
  --- KWQWidget.mm	3 Sep 2005 23:10:02 -0000	1.110
  +++ KWQWidget.mm	3 Oct 2005 21:13:11 -0000	1.111
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQWidget.h"
   
   #import "KWQExceptions.h"
  
  
  
  1.15      +1 -0      WebCore/kwq/KWQWindowWidget.mm
  
  Index: KWQWindowWidget.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/KWQWindowWidget.mm,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- KWQWindowWidget.mm	18 Jan 2005 00:43:14 -0000	1.14
  +++ KWQWindowWidget.mm	3 Oct 2005 21:13:11 -0000	1.15
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "KWQWindowWidget.h"
   
   #import "WebCoreBridge.h"
  
  
  
  1.419     +1 -0      WebCore/kwq/WebCoreBridge.mm
  
  Index: WebCoreBridge.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/WebCoreBridge.mm,v
  retrieving revision 1.418
  retrieving revision 1.419
  diff -u -r1.418 -r1.419
  --- WebCoreBridge.mm	27 Sep 2005 22:37:32 -0000	1.418
  +++ WebCoreBridge.mm	3 Oct 2005 21:13:11 -0000	1.419
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "WebCoreBridge.h"
   
   #import "csshelper.h"
  
  
  
  1.5       +1 -0      WebCore/kwq/WebCoreCache.mm
  
  Index: WebCoreCache.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/WebCoreCache.mm,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- WebCoreCache.mm	22 Jan 2003 00:12:36 -0000	1.4
  +++ WebCoreCache.mm	3 Oct 2005 21:13:12 -0000	1.5
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "WebCoreCache.h"
   
   #import "loader.h"
  
  
  
  1.7       +1 -0      WebCore/kwq/WebCoreEncodings.mm
  
  Index: WebCoreEncodings.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/WebCoreEncodings.mm,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- WebCoreEncodings.mm	5 Jun 2003 00:26:38 -0000	1.6
  +++ WebCoreEncodings.mm	3 Oct 2005 21:13:12 -0000	1.7
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "WebCoreEncodings.h"
   
   #import "decoder.h"
  
  
  
  1.10      +1 -0      WebCore/kwq/WebCoreJavaScript.mm
  
  Index: WebCoreJavaScript.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/WebCoreJavaScript.mm,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- WebCoreJavaScript.mm	28 Sep 2005 02:25:52 -0000	1.9
  +++ WebCoreJavaScript.mm	3 Oct 2005 21:13:12 -0000	1.10
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "WebCoreJavaScript.h"
   
   #import <JavaScriptCore/collector.h>
  
  
  
  1.4       +1 -0      WebCore/kwq/WebCoreScriptDebugger.mm
  
  Index: WebCoreScriptDebugger.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/WebCoreScriptDebugger.mm,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- WebCoreScriptDebugger.mm	19 Sep 2005 18:52:13 -0000	1.3
  +++ WebCoreScriptDebugger.mm	3 Oct 2005 21:13:12 -0000	1.4
  @@ -26,6 +26,7 @@
    * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    */
   
  +#include "config.h"
   #import <WebCore/WebCoreScriptDebugger.h>
   #import <JavaScriptCore/WebScriptObjectPrivate.h>
   #import <JavaScriptCore/debugger.h>
  
  
  
  1.13      +1 -0      WebCore/kwq/WebCoreSettings.mm
  
  Index: WebCoreSettings.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/WebCoreSettings.mm,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- WebCoreSettings.mm	7 Jun 2005 15:34:08 -0000	1.12
  +++ WebCoreSettings.mm	3 Oct 2005 21:13:12 -0000	1.13
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "WebCoreSettings.h"
   
   #import "KWQFoundationExtras.h"
  
  
  
  1.27      +1 -0      WebCore/kwq/WebCoreTextRendererFactory.mm
  
  Index: WebCoreTextRendererFactory.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/WebCoreTextRendererFactory.mm,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- WebCoreTextRendererFactory.mm	27 Sep 2005 22:37:33 -0000	1.26
  +++ WebCoreTextRendererFactory.mm	3 Oct 2005 21:13:12 -0000	1.27
  @@ -23,6 +23,7 @@
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 
    */
   
  +#include "config.h"
   #import "WebCoreTextRenderer.h"
   #import "WebCoreTextRendererFactory.h"
   
  
  
  
  1.2       +1 -0      WebCore/kwq/can-convert.mm
  
  Index: can-convert.mm
  ===================================================================
  RCS file: /cvs/root/WebCore/kwq/can-convert.mm,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- can-convert.mm	7 Feb 2004 20:56:54 -0000	1.1
  +++ can-convert.mm	3 Oct 2005 21:13:12 -0000	1.2
  @@ -4,6 +4,7 @@
   
   */
   
  +#include "config.h"
   #include <Carbon/Carbon.h>
   
   const int NoEncodingFlags = 0;
  
  
  



More information about the webkit-changes mailing list