- 08 Jul, 2006 1 commit
-
-
mjs authored
http://bugzilla.opendarwin.org/show_bug.cgi?id=9787 fast/frames tests failing (bad pointer to owner element) under MallocScribble * html/HTMLFrameElement.cpp: (WebCore::HTMLFrameElement::close): Disconnect the owner element of our frame. * html/HTMLIFrameElement.cpp: (WebCore::HTMLIFrameElement::attach): Don't call setFrame here. * html/HTMLPlugInElement.cpp: (WebCore::HTMLPlugInElement::detach): Disconnect the owner element of our frame. * html/HTMLPlugInElement.h: (WebCore::HTMLPlugInElement::setFrameName): New function. * page/Frame.cpp: (WebCore::Frame::Frame): Don't call setFrame. (WebCore::Frame::~Frame): Null out the owner element. (WebCore::Frame::requestObject): When an object creates a child frame, assign it a name so it can be accessed from HTMLPlugInElement. * rendering/RenderPart.cpp: (WebCore::RenderPart::RenderPart): (WebCore::RenderPart::~RenderPart): * rendering/RenderPart.h: Get rid of setFrame. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15240 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 12 May, 2006 1 commit
-
-
eseidel authored
Reviewed by mjs & adele. Split html_objectimpl.* into multiple files (one per class) http://bugzilla.opendarwin.org/show_bug.cgi?id=8836 * WebCore.xcodeproj/project.pbxproj: * bindings/js/kjs_dom.cpp: (KJS::DOMNamedNodeMap::lengthGetter): (KJS::DOMNamedNodeMap::indexGetter): (KJS::DOMNamedNodeMap::nameGetter): (KJS::DOMNamedNodeMapProtoFunc::callAsFunction): (KJS::getRuntimeObject): * bindings/js/kjs_html.cpp: * html/HTMLAppletElement.cpp: Added. * html/HTMLAppletElement.h: Added. * html/HTMLElementFactory.cpp: * html/HTMLEmbedElement.cpp: Added. (WebCore::HTMLEmbedElement::HTMLEmbedElement): (WebCore::HTMLEmbedElement::getInstance): (WebCore::HTMLEmbedElement::parseMappedAttribute): * html/HTMLEmbedElement.h: Added. * html/HTMLNameCollection.cpp: (WebCore::HTMLNameCollection::traverseNextItem): * html/HTMLObjectElement.cpp: Added. (WebCore::HTMLObjectElement::getInstance): (WebCore::HTMLObjectElement::form): (WebCore::HTMLObjectElement::parseMappedAttribute): (WebCore::HTMLObjectElement::updateDocNamedItem): * html/HTMLObjectElement.h: Added. * html/HTMLParamElement.cpp: Added. * html/HTMLParamElement.h: Added. * html/HTMLParser.cpp: * html/HTMLPlugInElement.cpp: Added. * html/HTMLPlugInElement.h: Added. * html/html_objectimpl.cpp: Removed. * html/html_objectimpl.h: Removed. * page/Frame.cpp: (WebCore::Frame::handleFallbackContent): * rendering/RenderApplet.cpp: * rendering/render_frames.cpp: (WebCore::RenderPartObject::updateWidget): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Mar, 2006 1 commit
-
-
darin authored
- moved khtml/html files all into html directory * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for new paths. * WebCore.vcproj/WebCore/build-generated-files.sh: Ditto. * WebCore.xcodeproj/project.pbxproj: Ditto. * khtml/html: Removed. * html/DocTypeStrings.gperf: Moved. * html/FormDataList.cpp: Ditto. * html/FormDataList.h: Ditto. * html/HTMLBaseFontElement.cpp: Ditto. * html/HTMLBaseFontElement.h: Ditto. * html/HTMLButtonElement.cpp: Ditto. * html/HTMLButtonElement.h: Ditto. * html/HTMLCanvasElement.cpp: Ditto. * html/HTMLCanvasElement.h: Ditto. * html/HTMLCollection.cpp: Ditto. * html/HTMLCollection.h: Ditto. * html/HTMLDocument.cpp: Ditto. * html/HTMLDocument.h: Ditto. * html/HTMLElement.cpp: Ditto. * html/HTMLElement.h: Ditto. * html/HTMLElementFactory.cpp: Ditto. * html/HTMLElementFactory.h: Ditto. * html/HTMLEntityNames.gperf: Ditto. * html/HTMLFieldSetElement.cpp: Ditto. * html/HTMLFieldSetElement.h: Ditto. * html/HTMLFormCollection.cpp: Ditto. * html/HTMLFormCollection.h: Ditto. * html/HTMLFormElement.cpp: Ditto. * html/HTMLFormElement.h: Ditto. * html/HTMLGenericFormElement.cpp: Ditto. * html/HTMLGenericFormElement.h: Ditto. * html/HTMLInputElement.cpp: Ditto. * html/HTMLInputElement.h: Ditto. * html/HTMLIsIndexElement.cpp: Ditto. * html/HTMLIsIndexElement.h: Ditto. * html/HTMLKeygenElement.cpp: Ditto. * html/HTMLKeygenElement.h: Ditto. * html/HTMLLabelElement.cpp: Ditto. * html/HTMLLabelElement.h: Ditto. * html/HTMLLegendElement.cpp: Ditto. * html/HTMLLegendElement.h: Ditto. * html/HTMLNameCollection.cpp: Ditto. * html/HTMLNameCollection.h: Ditto. * html/HTMLNames.cpp: Ditto. * html/HTMLNames.h: Ditto. * html/HTMLOptGroupElement.cpp: Ditto. * html/HTMLOptGroupElement.h: Ditto. * html/HTMLOptionElement.cpp: Ditto. * html/HTMLOptionElement.h: Ditto. * html/HTMLOptionsCollection.cpp: Ditto. * html/HTMLOptionsCollection.h: Ditto. * html/HTMLParser.cpp: Ditto. * html/HTMLParser.h: Ditto. * html/HTMLSelectElement.cpp: Ditto. * html/HTMLSelectElement.h: Ditto. * html/HTMLTextAreaElement.cpp: Ditto. * html/HTMLTextAreaElement.h: Ditto. * html/HTMLTextFieldInnerElement.cpp: Ditto. * html/HTMLTextFieldInnerElement.h: Ditto. * html/HTMLTokenizer.cpp: Ditto. * html/HTMLTokenizer.h: Ditto. * html/html_baseimpl.cpp: Ditto. * html/html_baseimpl.h: Ditto. * html/html_blockimpl.cpp: Ditto. * html/html_blockimpl.h: Ditto. * html/html_headimpl.cpp: Ditto. * html/html_headimpl.h: Ditto. * html/html_imageimpl.cpp: Ditto. * html/html_imageimpl.h: Ditto. * html/html_inlineimpl.cpp: Ditto. * html/html_inlineimpl.h: Ditto. * html/html_listimpl.cpp: Ditto. * html/html_listimpl.h: Ditto. * html/html_objectimpl.cpp: Ditto. * html/html_objectimpl.h: Ditto. * html/html_tableimpl.cpp: Ditto. * html/html_tableimpl.h: Ditto. * bindings/objc/DOM.mm: * bridge/mac/WebCoreEncodings.mm: * bridge/mac/WebCoreFrameBridge.mm: * css/CSSGrammar.y: * css/cssstyleselector.cpp: * dom/Document.cpp: * dom/EventTargetNode.cpp: * dom/NameNodeList.cpp: * dom/Node.cpp: * dom/Position.cpp: * dom/dom_elementimpl.cpp: * dom/xml_tokenizer.cpp: * editing/ApplyStyleCommand.cpp: * editing/BreakBlockquoteCommand.cpp: * editing/CompositeEditCommand.cpp: * editing/DeleteSelectionCommand.cpp: * editing/InsertLineBreakCommand.cpp: * editing/InsertParagraphSeparatorCommand.cpp: * editing/JSEditor.cpp: * editing/ReplaceSelectionCommand.cpp: * editing/TextIterator.cpp: * editing/VisiblePosition.cpp: * editing/htmlediting.cpp: * editing/markup.cpp: * editing/visible_units.cpp: * html/CanvasRenderingContext2D.cpp: * kcanvas/KCanvasTreeDebug.cpp: * khtml/ecma/JSDOMParser.cpp: * khtml/ecma/kjs_css.cpp: * khtml/ecma/kjs_dom.cpp: * khtml/ecma/kjs_events.cpp: * khtml/misc/decoder.cpp: * khtml/xsl/XSLStyleSheet.cpp: * khtml/xsl/XSLTProcessor.cpp: * ksvg2/misc/SVGImageLoader.h: * ksvg2/svg/SVGElement.cpp: * ksvg2/svg/SVGSVGElement.cpp: * kwq/WebCoreAXObject.mm: * page/Frame.cpp: * page/FrameView.cpp: * rendering/RenderBlock.cpp: * rendering/RenderBox.cpp: * rendering/RenderFlow.cpp: * rendering/RenderHTMLCanvas.cpp: * rendering/RenderImage.cpp: * rendering/RenderLayer.cpp: * rendering/RenderObject.cpp: * rendering/RenderTable.cpp: * rendering/RenderTableCell.cpp: * rendering/RenderTableCol.cpp: * rendering/RenderTableRow.cpp: * rendering/RenderTableSection.cpp: * rendering/RenderTextField.cpp: * rendering/RenderTheme.cpp: * rendering/render_applet.cpp: * rendering/render_button.cpp: * rendering/render_frames.cpp: * rendering/render_list.cpp: Updated includes. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Mar, 2006 1 commit
-
-
darin authored
* <lots of files>: Renamed XXXImpl to XXX, and a number of other renames. See WebKitTools/Scripts/do-webcore-rename version 13392 for details. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13393 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 19 Jan, 2006 1 commit
-
-
eseidel authored
Reviewed by darin. Split html_miscimpl.* into separate files and move html_elementimpl http://bugzilla.opendarwin.org/show_bug.cgi?id=6670 * WebCore.xcodeproj/project.pbxproj: * bindings/objc/DOM.mm: * bindings/objc/DOMHTML.mm: * bridge/mac/WebCoreFrameBridge.mm: * css/css_valueimpl.cpp: * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): * khtml/ecma/kjs_dom.cpp: * khtml/ecma/kjs_html.cpp: * khtml/editing/apply_style_command.cpp: * khtml/editing/markup.cpp: * khtml/editing/replace_selection_command.cpp: * khtml/html/HTMLBaseFontElementImpl.cpp: Added. * khtml/html/HTMLBaseFontElementImpl.h: Added. * khtml/html/HTMLButtonElementImpl.cpp: * khtml/html/HTMLCollectionImpl.cpp: Added. (WebCore::HTMLCollectionImpl::traverseNextItem): * khtml/html/HTMLCollectionImpl.h: Added. ...
-
- 10 Jan, 2006 1 commit
-
-
eseidel authored
Rubber-stamped by mjs. Split html_formimpl.{cpp,h} into multiple files (one per class) http://bugzilla.opendarwin.org/show_bug.cgi?id=6461 * WebCore.xcodeproj/project.pbxproj: added files * khtml/ecma/kjs_html.cpp: updated includes * khtml/html/FormDataList.h: Added. * khtml/html/FormDataList.cpp: Added. * khtml/html/HTMLButtonElementImpl.cpp: Added. * khtml/html/HTMLButtonElementImpl.h: Added. * khtml/html/HTMLFieldSetElementImpl.cpp: Added. * khtml/html/HTMLFieldSetElementImpl.h: Added. * khtml/html/HTMLFormElementImpl.cpp: Added. * khtml/html/HTMLFormElementImpl.h: Added. * khtml/html/HTMLGenericFormElementImpl.cpp: Added. * khtml/html/HTMLGenericFormElementImpl.h: Added. * khtml/html/HTMLInputElementImpl.cpp: Added. * khtml/html/HTMLInputElementImpl.h: Added. * khtml/html/HTMLIsIndexElementImpl.cpp: Added. * khtml/html/HTMLIsIndexElementImpl.h: Added. * khtml/html/HTMLKeygenElementImpl.cpp: Added. * khtml/html/HTMLKeygenElementImpl.h: Added. * khtml/html/HTMLLabelElementImpl.cpp: Added. * khtml/html/HTMLLabelElementImpl.h: Added. * khtml/html/HTMLLegendElementImpl.cpp: Added. * khtml/html/HTMLLegendElementImpl.h: Added. * khtml/html/HTMLOptGroupElementImpl.cpp: Added. * khtml/html/HTMLOptGroupElementImpl.h: Added. * khtml/html/HTMLOptionElementImpl.cpp: Added. * khtml/html/HTMLOptionElementImpl.h: Added. * khtml/html/HTMLOptionsCollectionImpl.h: Added. * khtml/html/HTMLSelectElementImpl.cpp: Added. * khtml/html/HTMLSelectElementImpl.h: Added. * khtml/html/HTMLTextAreaElementImpl.cpp: Added. * khtml/html/HTMLTextAreaElementImpl.h: Added. * khtml/html/html_documentimpl.cpp: updated includes * khtml/html/html_imageimpl.cpp: updated includes * khtml/html/html_miscimpl.cpp: updated includes * khtml/html/html_objectimpl.cpp: updated includes * khtml/html/htmlfactory.cpp: updated includes * khtml/html/htmlparser.cpp: updated includes * khtml/khtmlview.cpp: updated includes * khtml/rendering/render_block.cpp: updated includes * khtml/rendering/render_button.cpp: updated includes * khtml/rendering/render_canvasimage.cpp: updated includes * khtml/rendering/render_flow.cpp: updated includes * khtml/rendering/render_form.cpp: updated includes * khtml/rendering/render_form.h: updated includes * khtml/rendering/render_image.cpp: updated includes * khtml/rendering/render_line.cpp: updated includes * khtml/rendering/render_theme.cpp: updated includes * khtml/xml/dom_docimpl.cpp: updated includes * kwq/DOMHTML.mm: updated includes * kwq/KWQAccObject.mm: updated includes * kwq/MacFrame.mm: updated includes * kwq/WebCoreBridge.mm: updated includes git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11979 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 06 Dec, 2005 1 commit
-
-
hyatt authored
getMatchedCSSRules can be used to obtain the matched sheet rules for an element. In Obj-C it will also include user/user agent sheet rules. Also add support for tracking the original shorthand in which a property was declared, as well as whether the property was just implicitly set rather than explicitly mentioned (e.g., if it was an omitted piece of a shorthand). The new methods on CSSStyleDeclaration are getPropertyShorthand and isPropertyImplicit. Reviewed by mjs Test: fast/inspector/style.html * khtml/css/css_computedstyle.h: (DOM::CSSComputedStyleDeclarationImpl::getPropertyShorthand): (DOM::CSSComputedStyleDeclarationImpl::isPropertyImplicit): * khtml/css/css_valueimpl.cpp: (DOM::CSSStyleDeclarationImpl::getPropertyShorthand): (DOM::CSSStyleDeclarationImpl::isPropertyImplicit): (DOM::CSSMutableStyleDeclarationImpl::getPropertyPriority): (DOM::CSSMutableStyleDeclarationImpl::getPropertyShorthand): (DOM::CSSMutableStyleDeclarationImpl::isPropertyImplicit): (DOM::CSSProperty::cssText): (DOM::operator==): * khtml/css/css_valueimpl.h: (DOM::CSSProperty::CSSProperty): (DOM::CSSProperty::operator=): (DOM::CSSProperty::~CSSProperty): (DOM::CSSProperty::setValue): (DOM::CSSProperty::shorthandID): (DOM::CSSProperty::isImportant): (DOM::CSSProperty::isImplicit): * khtml/css/cssparser.cpp: (CSSParser::CSSParser): (CSSParser::addProperty): (CSSParser::parseValue): (CSSParser::parseBackgroundShorthand): (CSSParser::parseShorthand): (CSSParser::parse4Values): (CSSParser::parseBackgroundPosition): (CSSParser::parseBackgroundProperty): * khtml/css/cssparser.h: (DOM::CSSParser::enterShorthand): (DOM::CSSParser::exitShorthand): (DOM::CSSParser::inShorthand): * khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::CSSStyleSelector): (khtml::CSSStyleSelector::matchRules): (khtml::CSSStyleSelector::matchRulesForList): (khtml::CSSStyleSelector::initForStyleResolve): (khtml::CSSStyleSelector::styleRulesForElement): (khtml::CSSStyleSelector::pseudoStyleRulesForElement): * khtml/css/cssstyleselector.h: * khtml/ecma/kjs_css.cpp: (KJS::DOMCSSStyleDeclarationProtoFunc::callAsFunction): * khtml/ecma/kjs_css.h: (KJS::DOMCSSStyleDeclaration::): * khtml/ecma/kjs_views.cpp: (KJS::DOMAbstractViewProtoFunc::callAsFunction): * khtml/ecma/kjs_views.h: (KJS::DOMAbstractView::): * khtml/xml/dom2_viewsimpl.cpp: (DOM::AbstractViewImpl::getComputedStyle): (DOM::AbstractViewImpl::getMatchedCSSRules): * khtml/xml/dom2_viewsimpl.h: * kwq/DOM-CSS.mm: (-[DOMCSSStyleDeclaration getPropertyShorthand:]): (-[DOMCSSStyleDeclaration isPropertyImplicit:]): (-[DOMDocument getMatchedCSSRules::]): * kwq/DOMPrivate.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11481 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 20 Nov, 2005 1 commit
-
-
eseidel authored
Submitted by: eseidel Reviewed by: none Rolling out the getMatchedCSSRules change, as it caused many layout tests to crash on TOT: http://bugzilla.opendarwin.org/show_bug.cgi?id=5777 * khtml/css/cssparser.cpp: * khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::matchRules): (khtml::CSSStyleSelector::matchRulesForList): (khtml::CSSStyleSelector::initForStyleResolve): * khtml/css/cssstyleselector.h: * khtml/css/parser.y: * khtml/ecma/kjs_views.cpp: (KJS::DOMAbstractViewProtoFunc::callAsFunction): * khtml/ecma/kjs_views.h: (KJS::DOMAbstractView::): * khtml/xml/dom2_viewsimpl.cpp: (DOM::AbstractViewImpl::getComputedStyle): * khtml/xml/dom2_viewsimpl.h: * kwq/DOM-CSS.mm: * kwq/DOMCSS.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11270 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 17 Nov, 2005 1 commit
-
-
hyatt authored
inspect the set of rules that match on an element. From Obj-C you see all rules (user agent, author, user). From JS you just see author rules. Reviewed by darin * khtml/css/cssparser.cpp: * khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::matchRules): (khtml::CSSStyleSelector::matchRulesForList): (khtml::CSSStyleSelector::initForStyleResolve): (khtml::CSSStyleSelector::styleRulesForElement): (khtml::CSSStyleSelector::pseudoStyleRulesForElement): * khtml/css/cssstyleselector.h: * khtml/css/parser.y: * khtml/ecma/kjs_views.cpp: (KJS::DOMAbstractViewProtoFunc::callAsFunction): * khtml/ecma/kjs_views.h: (KJS::DOMAbstractView::): * khtml/xml/dom2_viewsimpl.cpp: (DOM::AbstractViewImpl::getComputedStyle): (DOM::AbstractViewImpl::getMatchedCSSRules): * khtml/xml/dom2_viewsimpl.h: * kwq/DOM-CSS.mm: (-[DOMDocument getMatchedCSSRules::]): * kwq/DOMCSS.h: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11233 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 03 Oct, 2005 1 commit
-
-
mjs authored
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 inli...
-
- 27 Sep, 2005 1 commit
-
-
mjs authored
Reviewed by John. - replace dlmalloc with tcmalloc http://bugzilla.opendarwin.org/show_bug.cgi?id=5145 I also moved SharedPtr and the assertion code from WebCore into a new kxmlcore directory. * JavaScriptCore.xcodeproj/project.pbxproj: * kjs/collector.cpp: (KJS::Collector::allocate): (KJS::Collector::collect): * kjs/config.h: * kjs/fast_malloc.cpp: Removed. * kjs/fast_malloc.h: Removed. * kjs/function.cpp: * kjs/function.h: * kjs/function_object.cpp: * kjs/identifier.cpp: (KJS::Identifier::add): * kjs/internal.cpp: * kjs/internal.h: * kjs/nodes.h: * kjs/nodes2string.cpp: * kjs/property_map.cpp: (KJS::PropertyMap::~PropertyMap): (KJS::PropertyMap::rehash): * kjs/scope_chain.h: * kjs/shared_ptr.h: Removed. * kjs/string_object.cpp: (StringObjectFuncImp::callAsFunction): * kjs/ustring.cpp: (KJS::UString::Rep::createCopying): (KJS::UString::Rep::destroy): (KJS::UString::expandCapacity): (KJS::UString::expandPreCapacity): (KJS::UString::UString): (KJS::UString::spliceSubstringsWithSeparators): (KJS::UString::append): (KJS::UString::operator=): (KJS::UString::detach): * kjs/ustring.h: * kxmlcore/Assertions.h: Added. * kxmlcore/Assertions.mm: Added. * kxmlcore/FastMalloc.cpp: Added. (KXMLCore::LgFloor): (KXMLCore::SizeClass): (KXMLCore::ByteSizeForClass): (KXMLCore::InitSizeClasses): (KXMLCore::MetaDataAlloc): (KXMLCore::PageHeapAllocator::Init): (KXMLCore::PageHeapAllocator::New): (KXMLCore::PageHeapAllocator::Delete): (KXMLCore::PageHeapAllocator::inuse): (KXMLCore::pages): (KXMLCore::AllocationSize): (KXMLCore::Event): (KXMLCore::NewSpan): (KXMLCore::DeleteSpan): (KXMLCore::DLL_Init): (KXMLCore::DLL_Remove): (KXMLCore::DLL_IsEmpty): (KXMLCore::DLL_Length): (KXMLCore::DLL_Print): (KXMLCore::DLL_Prepend): (KXMLCore::DLL_InsertOrdered): (KXMLCore::): (KXMLCore::TCMalloc_PageHeap::GetDescriptor): (KXMLCore::TCMalloc_PageHeap::SystemBytes): (KXMLCore::TCMalloc_PageHeap::FreeBytes): (KXMLCore::TCMalloc_PageHeap::RecordSpan): (KXMLCore::TCMalloc_PageHeap::TCMalloc_PageHeap): (KXMLCore::TCMalloc_PageHeap::New): (KXMLCore::TCMalloc_PageHeap::Split): (KXMLCore::TCMalloc_PageHeap::Carve): (KXMLCore::TCMalloc_PageHeap::Delete): (KXMLCore::TCMalloc_PageHeap::RegisterSizeClass): (KXMLCore::TCMalloc_PageHeap::Dump): (KXMLCore::TCMalloc_PageHeap::GrowHeap): (KXMLCore::TCMalloc_PageHeap::Check): (KXMLCore::TCMalloc_PageHeap::CheckList): (KXMLCore::TCMalloc_ThreadCache_FreeList::Init): (KXMLCore::TCMalloc_ThreadCache_FreeList::length): (KXMLCore::TCMalloc_ThreadCache_FreeList::empty): (KXMLCore::TCMalloc_ThreadCache_FreeList::lowwatermark): (KXMLCore::TCMalloc_ThreadCache_FreeList::clear_lowwatermark): (KXMLCore::TCMalloc_ThreadCache_FreeList::Push): (KXMLCore::TCMalloc_ThreadCache_FreeList::Pop): (KXMLCore::TCMalloc_ThreadCache::freelist_length): (KXMLCore::TCMalloc_ThreadCache::Size): (KXMLCore::TCMalloc_Central_FreeList::length): (KXMLCore::TCMalloc_Central_FreeList::Init): (KXMLCore::TCMalloc_Central_FreeList::Insert): (KXMLCore::TCMalloc_Central_FreeList::Remove): (KXMLCore::TCMalloc_Central_FreeList::Populate): (KXMLCore::TCMalloc_ThreadCache::SampleAllocation): (KXMLCore::TCMalloc_ThreadCache::Init): (KXMLCore::TCMalloc_ThreadCache::Cleanup): (KXMLCore::TCMalloc_ThreadCache::Allocate): (KXMLCore::TCMalloc_ThreadCache::Deallocate): (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache): (KXMLCore::TCMalloc_ThreadCache::ReleaseToCentralCache): (KXMLCore::TCMalloc_ThreadCache::Scavenge): (KXMLCore::TCMalloc_ThreadCache::GetCache): (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent): (KXMLCore::TCMalloc_ThreadCache::PickNextSample): (KXMLCore::TCMalloc_ThreadCache::InitModule): (KXMLCore::TCMalloc_ThreadCache::InitTSD): (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary): (KXMLCore::TCMalloc_ThreadCache::DeleteCache): (KXMLCore::TCMalloc_ThreadCache::RecomputeThreadCacheSize): (KXMLCore::TCMalloc_ThreadCache::Print): (KXMLCore::ExtractStats): (KXMLCore::DumpStats): (KXMLCore::PrintStats): (KXMLCore::DumpStackTraces): (KXMLCore::TCMallocImplementation::GetStats): (KXMLCore::TCMallocImplementation::ReadStackTraces): (KXMLCore::TCMallocImplementation::GetNumericProperty): (KXMLCore::TCMallocImplementation::SetNumericProperty): (KXMLCore::DoSampledAllocation): (KXMLCore::do_malloc): (KXMLCore::do_free): (KXMLCore::do_memalign): (KXMLCore::TCMallocGuard::TCMallocGuard): (KXMLCore::TCMallocGuard::~TCMallocGuard): (KXMLCore::malloc): (KXMLCore::free): (KXMLCore::calloc): (KXMLCore::cfree): (KXMLCore::realloc): (KXMLCore::memalign): (KXMLCore::posix_memalign): (KXMLCore::valloc): (KXMLCore::pvalloc): (KXMLCore::malloc_stats): (KXMLCore::mallopt): (KXMLCore::mallinfo): * kxmlcore/FastMalloc.h: Added. (KXMLCore::FastAllocated::operator new): (KXMLCore::FastAllocated::operator delete): (KXMLCore::FastAllocated::operator new[]): (KXMLCore::FastAllocated::operator delete[]): * kxmlcore/SharedPtr.h: Added. (KXMLCore::SharedPtr::SharedPtr): (KXMLCore::SharedPtr::~SharedPtr): (KXMLCore::SharedPtr::isNull): (KXMLCore::SharedPtr::notNull): (KXMLCore::SharedPtr::reset): (KXMLCore::SharedPtr::get): (KXMLCore::SharedPtr::operator*): (KXMLCore::SharedPtr::operator->): (KXMLCore::SharedPtr::operator!): (KXMLCore::SharedPtr::operator bool): (KXMLCore::::operator): (KXMLCore::operator==): (KXMLCore::operator!=): (KXMLCore::static_pointer_cast): (KXMLCore::const_pointer_cast): * kxmlcore/TCPageMap.h: Added. (TCMalloc_PageMap1::TCMalloc_PageMap1): (TCMalloc_PageMap1::Ensure): (TCMalloc_PageMap1::get): (TCMalloc_PageMap1::set): (TCMalloc_PageMap2::TCMalloc_PageMap2): (TCMalloc_PageMap2::get): (TCMalloc_PageMap2::set): (TCMalloc_PageMap2::Ensure): (TCMalloc_PageMap3::NewNode): (TCMalloc_PageMap3::TCMalloc_PageMap3): (TCMalloc_PageMap3::get): (TCMalloc_PageMap3::set): (TCMalloc_PageMap3::Ensure): * kxmlcore/TCSpinLock.h: Added. (TCMalloc_SpinLock::Init): (TCMalloc_SpinLock::Finalize): (TCMalloc_SpinLock::Lock): (TCMalloc_SpinLock::Unlock): (TCMalloc_SlowLock): (TCMalloc_SpinLockHolder::TCMalloc_SpinLockHolder): (TCMalloc_SpinLockHolder::~TCMalloc_SpinLockHolder): * kxmlcore/TCSystemAlloc.cpp: Added. (TrySbrk): (TryMmap): (TryDevMem): (TCMalloc_SystemAlloc): * kxmlcore/TCSystemAlloc.h: Added. WebCore: Reviewed by John. - replace dlmalloc with tcmalloc http://bugzilla.opendarwin.org/show_bug.cgi?id=5145 I also moved SharedPtr and the assertion code from WebCore into a new kxmlcore directory. * ForwardingHeaders/kjs/shared_ptr.h: Removed. * ForwardingHeaders/kxmlcore/Assertions.h: Added. * ForwardingHeaders/kxmlcore/FastMalloc.h: Added. * ForwardingHeaders/kxmlcore/SharedPtr.h: Added. * ForwardingHeaders/misc/main_thread_malloc.h: Removed. * WebCore.xcodeproj/project.pbxproj: * khtml/css/css_base.h: * khtml/css/css_computedstyle.cpp: * khtml/css/css_ruleimpl.h: * khtml/css/css_valueimpl.h: * khtml/css/cssstyleselector.h: * khtml/ecma/domparser.h: * khtml/ecma/kjs_css.h: * khtml/ecma/kjs_dom.cpp: * khtml/ecma/kjs_dom.h: * khtml/ecma/kjs_events.h: * khtml/ecma/kjs_html.cpp: * khtml/ecma/kjs_html.h: * khtml/ecma/kjs_range.h: * khtml/ecma/kjs_traversal.h: * khtml/ecma/kjs_views.cpp: * khtml/ecma/kjs_views.h: * khtml/ecma/kjs_window.cpp: * khtml/ecma/xmlhttprequest.h: * 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/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/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_position.h: * khtml/editing/wrap_contents_in_dummy_span_command.cpp: * khtml/html/html_imageimpl.h: * khtml/html/html_tableimpl.h: * khtml/html/htmlparser.cpp: * khtml/khtmlpart_p.h: * khtml/misc/arena.cpp: (ArenaAllocate): (FreeArenaList): (ArenaFinish): * khtml/misc/hashtable.h: (khtml::HashTable::~HashTable): (khtml::::allocateTable): (khtml::::rehash): (khtml::::clear): (khtml::::HashTable): * khtml/misc/loader.cpp: * khtml/misc/main_thread_malloc.cpp: Removed. * khtml/misc/main_thread_malloc.h: Removed. * khtml/misc/shared.h: * khtml/rendering/render_style.h: * khtml/xml/dom2_eventsimpl.h: * khtml/xml/dom2_rangeimpl.h: * khtml/xml/dom2_traversalimpl.h: * khtml/xml/dom2_viewsimpl.h: * khtml/xml/dom_docimpl.h: * khtml/xml/dom_elementimpl.cpp: (NamedAttrMapImpl::clearAttributes): (NamedAttrMapImpl::operator=): (NamedAttrMapImpl::addAttribute): (NamedAttrMapImpl::removeAttribute): * khtml/xml/dom_elementimpl.h: * khtml/xml/dom_nodeimpl.cpp: * khtml/xml/dom_nodeimpl.h: * khtml/xml/dom_position.cpp: * khtml/xml/dom_stringimpl.h: * kwq/DOM-CSS.mm: * kwq/DOM.mm: * kwq/DOMEvents.mm: * kwq/DOMHTML.mm: * kwq/DOMInternal.mm: * kwq/DOMViews.mm: * kwq/KWQAccObject.mm: * kwq/KWQAccObjectCache.mm: * kwq/KWQArrayImpl.h: * kwq/KWQArrayImpl.mm: (KWQArrayImpl::KWQArrayPrivate::KWQArrayPrivate): (KWQArrayImpl::KWQArrayPrivate::~KWQArrayPrivate): (KWQArrayImpl::resize): * kwq/KWQAssertions.h: Removed. * kwq/KWQAssertions.m: Removed. * kwq/KWQButton.mm: * kwq/KWQCString.mm: * kwq/KWQClipboard.h: * kwq/KWQClipboard.mm: * kwq/KWQColor.mm: * kwq/KWQComboBox.mm: * kwq/KWQEditCommand.mm: * kwq/KWQExceptions.h: * kwq/KWQFileButton.mm: * kwq/KWQFontFamily.h: * kwq/KWQFormData.mm: * kwq/KWQKHTMLPart.h: * kwq/KWQKHTMLPart.mm: * kwq/KWQKPartsBrowserInterface.mm: * kwq/KWQKURL.mm: * kwq/KWQListBox.mm: * kwq/KWQListImpl.mm: * kwq/KWQLogging.h: * kwq/KWQLogging.m: * kwq/KWQMapImpl.h: * kwq/KWQMapImpl.mm: * kwq/KWQObject.mm: * kwq/KWQPageState.mm: * kwq/KWQPainter.mm: * kwq/KWQResourceLoader.mm: * kwq/KWQSignal.mm: * kwq/KWQSlot.mm: * kwq/KWQString.h: * kwq/KWQString.mm: (ALLOC_QCHAR): (QString::setBufferFromCFString): (allocatePageNode): * kwq/KWQTextArea.mm: * kwq/KWQTextCodec.mm: * kwq/KWQTextEdit.mm: * kwq/KWQTextField.mm: * kwq/KWQTimer.mm: * kwq/KWQValueListImpl.h: * kwq/KWQValueListImpl.mm: * kwq/WebCoreBridge.mm: * kwq/WebCoreCookieAdapter.m: * kwq/WebCoreGraphicsBridge.m: * kwq/WebCoreImageRendererFactory.m: * kwq/WebCoreKeyGenerator.m: * kwq/WebCoreTextRendererFactory.mm: * kwq/WebCoreViewFactory.m: git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 12 May, 2005 1 commit
-
-
darin authored
- switch KJS wrappers over to using the DOM impl. classes rather than using the DOM wrappers; will allow us to not even compile the DOM wrappers and make the code smaller * khtml/css/css_valueimpl.h: Added CSSStyleDeclarationImpl::isPropertyName, removed CSSStyleDeclarationImpl::propertyID. * khtml/css/css_valueimpl.cpp: (DOM::propertyID): Added. Gets property ID given a DOM string. Replaces the previous version that had hacks that we want to leave in the JS wrapper for now. (DOM::CSSStyleDeclarationImpl::isPropertyName): Added. * khtml/css/cssproperties.in: Fixed up comments. * khtml/css/makeprop: Added new maxCSSPropertyNameLength constant, used for buffer size in the propertyID function. * khtml/dom/dom2_events.h: Added handleEventImpl, making it easier to call handleEvent in a way that works either with or without the C++ DOM wrappers. * khtml/dom/dom2_events.cpp: (EventListener::handleEventImpl): Added. * khtml/dom/dom2_views.cpp: Added now-needed include. * khtml/dom/dom_doc.cpp: Added now-needed include. * khtml/dom/dom_element.cpp: Tweaked includes. * khtml/editing/htmlediting.cpp: Removed now-unneeded include. * khtml/html/html_baseimpl.cpp: Ditto. * khtml/html/html_formimpl.h: Ditto. * khtml/rendering/render_form.h: Ditto. * khtml/rendering/render_style.h: Ditto. * khtml/xml/dom2_eventsimpl.cpp: Ditto. * khtml/xml/dom2_viewsimpl.h: Ditto. * khtml/xml/dom_elementimpl.h: Ditto. * khtml/xml/dom_stringimpl.h: Ditto. * kwq/DOM.mm: Ditto. * kwq/DOMHTML.mm: Ditto. * khtml/khtml_part.cpp: Tweaked incluudes. * khtml/khtmlpart_p.h: Ditto. * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::canCachePage): Change to use DOM impl. rather than C++ DOM. * khtml/xml/dom_docimpl.cpp: (DOMImplementationImpl::createDocumentType): Disabled the calls to the not-implemented name checks in the C++ DOM wrappers. If we add name changes, we'll want them inside the impl, not in the wrappers. (DOMImplementationImpl::createDocument): Ditto. * khtml/xml/dom_nodeimpl.cpp: (NodeImpl::checkSetPrefix): Ditto. * khtml/ecma/kjs_binding.cpp: (KJS::ScriptInterpreter::wasRunByUserGesture): (KJS::KJS::ValueToVariant): (KJS::setDOMException): * khtml/ecma/kjs_binding.h: (KJS::ScriptInterpreter::setCurrentEvent): (KJS::ScriptInterpreter::getCurrentEvent): (KJS::cacheDOMObject): (KJS::DOMExceptionTranslator::DOMExceptionTranslator): (KJS::DOMExceptionTranslator::~DOMExceptionTranslator): (KJS::DOMExceptionTranslator::operator int &): (KJS::cacheGlobalObject): * khtml/ecma/kjs_css.cpp: (KJS::cssPropertyName): (KJS::isCSSPropertyName): (KJS::DOMCSSStyleDeclaration::DOMCSSStyleDeclaration): (KJS::DOMCSSStyleDeclaration::~DOMCSSStyleDeclaration): (KJS::DOMCSSStyleDeclaration::hasProperty): (KJS::DOMCSSStyleDeclaration::tryGet): (KJS::DOMCSSStyleDeclaration::tryPut): (KJS::DOMCSSStyleDeclarationProtoFunc::tryCall): (KJS::getDOMCSSStyleDeclaration): (KJS::DOMStyleSheet::~DOMStyleSheet): (KJS::DOMStyleSheet::getValueProperty): (KJS::DOMStyleSheet::tryPut): (KJS::getDOMStyleSheet): (KJS::DOMStyleSheetList::~DOMStyleSheetList): (KJS::DOMStyleSheetList::tryGet): (KJS::getDOMStyleSheetList): (KJS::DOMStyleSheetListFunc::tryCall): (KJS::DOMMediaList::DOMMediaList): (KJS::DOMMediaList::~DOMMediaList): (KJS::DOMMediaList::tryGet): (KJS::DOMMediaList::tryPut): (KJS::getDOMMediaList): (KJS::KJS::DOMMediaListProtoFunc::tryCall): (KJS::DOMCSSStyleSheet::DOMCSSStyleSheet): (KJS::DOMCSSStyleSheet::tryGet): (KJS::DOMCSSStyleSheetProtoFunc::tryCall): (KJS::DOMCSSRuleList::~DOMCSSRuleList): (KJS::DOMCSSRuleList::tryGet): (KJS::DOMCSSRuleListFunc::tryCall): (KJS::getDOMCSSRuleList): (KJS::DOMCSSRule::~DOMCSSRule): (KJS::DOMCSSRule::classInfo): (KJS::DOMCSSRule::tryGet): (KJS::DOMCSSRule::getValueProperty): (KJS::DOMCSSRule::putValue): (KJS::DOMCSSRuleFunc::tryCall): (KJS::getDOMCSSRule): (KJS::DOMCSSValue::~DOMCSSValue): (KJS::DOMCSSValue::tryGet): (KJS::DOMCSSValue::tryPut): (KJS::getDOMCSSValue): (KJS::DOMCSSPrimitiveValue::DOMCSSPrimitiveValue): (KJS::DOMCSSPrimitiveValue::tryGet): (KJS::DOMCSSPrimitiveValueProtoFunc::tryCall): (KJS::DOMCSSValueList::DOMCSSValueList): (KJS::DOMCSSValueList::tryGet): (KJS::DOMCSSValueListFunc::tryCall): (KJS::DOMRGBColor::getValueProperty): (KJS::getDOMRGBColor): (KJS::DOMRect::~DOMRect): (KJS::DOMRect::getValueProperty): (KJS::getDOMRect): (KJS::DOMCounter::~DOMCounter): (KJS::DOMCounter::getValueProperty): (KJS::getDOMCounter): * khtml/ecma/kjs_css.h: (KJS::DOMCSSStyleDeclaration::impl): (KJS::DOMStyleSheet::DOMStyleSheet): (KJS::DOMStyleSheet::impl): (KJS::DOMStyleSheetList::DOMStyleSheetList): (KJS::DOMStyleSheetList::impl): (KJS::DOMMediaList::impl): (KJS::DOMCSSStyleSheet::): (KJS::DOMCSSRuleList::DOMCSSRuleList): (KJS::DOMCSSRuleList::impl): (KJS::DOMCSSRule::DOMCSSRule): (KJS::DOMCSSRule::impl): (KJS::DOMCSSValue::DOMCSSValue): (KJS::DOMCSSValue::impl): (KJS::DOMCSSValueList::): (KJS::DOMRGBColor::DOMRGBColor): (KJS::DOMRect::DOMRect): (KJS::DOMCounter::DOMCounter): * khtml/ecma/kjs_dom.cpp: (KJS::DOMNodeListFunc::): (KJS::DOMNode::DOMNode): (KJS::DOMNode::toBoolean): (KJS::DOMNode::getValueProperty): (KJS::DOMNode::putValue): (KJS::DOMNode::toPrimitive): (KJS::DOMNode::toString): (KJS::DOMNode::setListener): (KJS::DOMNode::getListener): (KJS::DOMNodeProtoFunc::tryCall): (KJS::toNode): (KJS::DOMNodeList::~DOMNodeList): (KJS::DOMNodeList::toPrimitive): (KJS::DOMNodeList::tryGet): (KJS::DOMNodeList::tryCall): (KJS::DOMNodeListFunc::tryCall): (KJS::DOMAttr::DOMAttr): (KJS::DOMAttr::getValueProperty): (KJS::DOMAttr::putValue): (KJS::toAttr): (KJS::DOMDocument::DOMDocument): (KJS::DOMDocument::~DOMDocument): (KJS::DOMDocument::getValueProperty): (KJS::DOMDocument::putValue): (KJS::DOMDocumentProtoFunc::tryCall): (KJS::DOMElement::DOMElement): (KJS::DOMElement::tryGet): (KJS::DOMElementProtoFunc::tryCall): (KJS::toElement): (KJS::DOMDOMImplementation::DOMDOMImplementation): (KJS::DOMDOMImplementation::~DOMDOMImplementation): (KJS::DOMDOMImplementationProtoFunc::tryCall): (KJS::DOMDocumentType::DOMDocumentType): (KJS::DOMDocumentType::getValueProperty): (KJS::toDocumentType): (KJS::DOMNamedNodeMap::DOMNamedNodeMap): (KJS::DOMNamedNodeMap::~DOMNamedNodeMap): (KJS::DOMNamedNodeMap::tryGet): (KJS::DOMNamedNodeMapProtoFunc::tryCall): (KJS::DOMProcessingInstruction::DOMProcessingInstruction): (KJS::DOMProcessingInstruction::getValueProperty): (KJS::DOMProcessingInstruction::tryPut): (KJS::DOMNotation::DOMNotation): (KJS::DOMNotation::getValueProperty): (KJS::DOMEntity::DOMEntity): (KJS::DOMEntity::getValueProperty): (KJS::getDOMDocumentNode): (KJS::checkNodeSecurity): (KJS::getDOMNode): (KJS::getDOMNamedNodeMap): (KJS::getRuntimeObject): (KJS::getDOMNodeList): (KJS::getDOMDOMImplementation): (KJS::getNodeConstructor): (KJS::getDOMExceptionConstructor): (KJS::DOMNamedNodesCollection::DOMNamedNodesCollection): (KJS::DOMNamedNodesCollection::tryGet): (KJS::DOMCharacterData::DOMCharacterData): (KJS::DOMCharacterData::getValueProperty): (KJS::DOMCharacterData::tryPut): (KJS::DOMCharacterDataProtoFunc::tryCall): (KJS::DOMText::DOMText): (KJS::DOMTextProtoFunc::tryCall): * khtml/ecma/kjs_dom.h: (KJS::DOMNode::impl): (KJS::DOMNodeList::DOMNodeList): (KJS::DOMNodeList::impl): (KJS::DOMDOMImplementation::impl): (KJS::DOMNamedNodeMap::impl): * khtml/ecma/kjs_events.cpp: (KJS::JSAbstractEventListener::handleEvent): (KJS::JSLazyEventListener::handleEvent): (KJS::getNodeEventListener): (KJS::DOMEvent::DOMEvent): (KJS::DOMEvent::~DOMEvent): (KJS::DOMEvent::getValueProperty): (KJS::DOMEvent::putValue): (KJS::DOMEventProtoFunc::tryCall): (KJS::getDOMEvent): (KJS::toEvent): (KJS::DOMUIEvent::DOMUIEvent): (KJS::DOMUIEvent::getValueProperty): (KJS::DOMUIEventProtoFunc::tryCall): (KJS::DOMMouseEvent::DOMMouseEvent): (KJS::DOMMouseEvent::getValueProperty): (KJS::DOMMouseEventProtoFunc::tryCall): (KJS::DOMKeyboardEvent::DOMKeyboardEvent): (KJS::DOMKeyboardEvent::getValueProperty): (KJS::DOMKeyboardEventProtoFunc::tryCall): (KJS::DOMMutationEvent::DOMMutationEvent): (KJS::DOMMutationEvent::getValueProperty): (KJS::DOMMutationEventProtoFunc::tryCall): (KJS::DOMWheelEvent::DOMWheelEvent): (KJS::DOMWheelEvent::getValueProperty): (KJS::ClipboardProtoFunc::tryCall): * khtml/ecma/kjs_events.h: (KJS::DOMEvent::impl): (KJS::DOMUIEvent::): (KJS::DOMMouseEvent::): (KJS::DOMKeyboardEvent::): (KJS::DOMMutationEvent::): * khtml/ecma/kjs_html.cpp: (KJS::KJS::HTMLDocFunction::tryCall): (KJS::HTMLDocument::HTMLDocument): (KJS::HTMLDocument::hasProperty): (KJS::HTMLDocument::tryGet): (KJS::KJS::HTMLDocument::putValue): (KJS::KJS::HTMLElement::classInfo): (KJS::HTMLElement::HTMLElement): (KJS::KJS::HTMLElement::tryGet): (KJS::KJS::HTMLElement::implementsCall): (KJS::KJS::HTMLElement::call): (KJS::KJS::HTMLElement::getValueProperty): (KJS::KJS::HTMLElement::hasProperty): (KJS::KJS::HTMLElement::toString): (KJS::getForm): (KJS::KJS::HTMLElement::pushEventHandlerScope): (KJS::KJS::HTMLElementFunction::tryCall): (KJS::KJS::HTMLElement::tryPut): (KJS::HTMLElement::putValue): (KJS::toHTMLElement): (KJS::toHTMLTableCaptionElement): (KJS::toHTMLTableSectionElement): (KJS::HTMLCollection::HTMLCollection): (KJS::HTMLCollection::~HTMLCollection): (KJS::KJS::HTMLCollection::tryGet): (KJS::KJS::HTMLCollection::tryCall): (KJS::KJS::HTMLCollection::getNamedItems): (KJS::KJS::HTMLCollectionProtoFunc::tryCall): (KJS::HTMLSelectCollection::HTMLSelectCollection): (KJS::KJS::HTMLSelectCollection::tryGet): (KJS::KJS::HTMLSelectCollection::tryPut): (KJS::OptionConstructorImp::OptionConstructorImp): (KJS::OptionConstructorImp::construct): (KJS::ImageConstructorImp::ImageConstructorImp): (KJS::ImageConstructorImp::construct): (KJS::Image::notifyFinished): (KJS::Image::Image): (KJS::KJS::Context2DFunction::tryCall): (KJS::): (KJS::colorRefFromValue): (KJS::colorFromValue): (KJS::Context2D::putValue): (KJS::Context2D::Context2D): (KJS::Context2D::mark): (KJS::GradientFunction::tryCall): (KJS::ImagePattern::tryGet): (KJS::getHTMLCollection): (KJS::getSelectHTMLCollection): * khtml/ecma/kjs_html.h: (KJS::HTMLDocument::): (KJS::HTMLElement::): (KJS::HTMLCollection::impl): * khtml/ecma/kjs_navigator.cpp: * khtml/ecma/kjs_proxy.cpp: (KJSProxyImpl::evaluate): (KJSProxyImpl::finishedWithEvent): * khtml/ecma/kjs_proxy.h: * khtml/ecma/kjs_range.cpp: (KJS::DOMRange::DOMRange): (KJS::DOMRange::~DOMRange): (KJS::DOMRange::tryGet): (KJS::DOMRange::getValueProperty): (KJS::DOMRangeProtoFunc::tryCall): (KJS::getDOMRange): (KJS::RangeConstructor::tryGet): (KJS::getRangeConstructor): (KJS::toRange): * khtml/ecma/kjs_range.h: (KJS::DOMRange::impl): * khtml/ecma/kjs_traversal.cpp: (KJS::DOMNodeIterator::DOMNodeIterator): (KJS::DOMNodeIterator::~DOMNodeIterator): (KJS::DOMNodeIterator::getValueProperty): (KJS::DOMNodeIteratorProtoFunc::tryCall): (KJS::getDOMNodeIterator): (KJS::DOMNodeFilter::DOMNodeFilter): (KJS::DOMNodeFilter::~DOMNodeFilter): (KJS::DOMNodeFilterProtoFunc::tryCall): (KJS::getDOMNodeFilter): (KJS::toNodeFilter): (KJS::DOMTreeWalker::DOMTreeWalker): (KJS::DOMTreeWalker::~DOMTreeWalker): (KJS::DOMTreeWalker::getValueProperty): (KJS::DOMTreeWalker::tryPut): (KJS::DOMTreeWalkerProtoFunc::tryCall): (KJS::getDOMTreeWalker): (KJS::JSNodeFilterCondition::acceptNode): * khtml/ecma/kjs_traversal.h: (KJS::DOMNodeIterator::impl): (KJS::DOMNodeFilter::impl): (KJS::DOMTreeWalker::impl): * khtml/ecma/kjs_views.cpp: (KJS::DOMAbstractView::~DOMAbstractView): (KJS::DOMAbstractView::tryGet): (KJS::DOMAbstractViewFunc::tryCall): (KJS::getDOMAbstractView): (KJS::toAbstractView): * khtml/ecma/kjs_views.h: (KJS::DOMAbstractView::DOMAbstractView): (KJS::DOMAbstractView::impl): * khtml/ecma/kjs_window.cpp: (KJS::Window::get): (KJS::Window::hasProperty): (KJS::Window::put): (KJS::Window::setListener): (KJS::Window::getListener): (KJS::Window::setCurrentEvent): (KJS::WindowFunc::tryCall): (KJS::Location::put): (KJS::LocationFunc::tryCall): (KJS::Selection::get): (KJS::SelectionFunc::tryCall): * khtml/ecma/kjs_window.h: * khtml/ecma/xmlhttprequest.cpp: (KJS::XMLHttpRequestConstructorImp::XMLHttpRequestConstructorImp): (KJS::XMLHttpRequestConstructorImp::~XMLHttpRequestConstructorImp): (KJS::XMLHttpRequestConstructorImp::construct): (KJS::XMLHttpRequest::getValueProperty): (KJS::XMLHttpRequest::XMLHttpRequest): (KJS::XMLHttpRequest::changeState): (KJS::XMLHttpRequest::open): (KJS::XMLHttpRequestProtoFunc::tryCall): * khtml/ecma/xmlhttprequest.h: * khtml/ecma/xmlserializer.cpp: (KJS::XMLSerializerProtoFunc::tryCall): * khtml/ecma/xmlserializer.h: * kwq/DOMInternal.mm: (-[WebScriptObject _initializeScriptDOMNodeImp]): * kwq/DOMUtility.mm: (KJS::ScriptInterpreter::createObjcInstanceForValue): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9165 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 26 Apr, 2005 1 commit
-
-
mjs authored
- use single-threaded malloc in places where malloc is hot for an 8% speed improvement on cvs-base * ForwardingHeaders/misc/fast_malloc.h: Added. * WebCore.pbproj/project.pbxproj: * khtml/css/css_base.h: * khtml/css/css_ruleimpl.h: * khtml/css/css_valueimpl.h: * khtml/css/cssstyleselector.h: * khtml/misc/arena.cpp: (ArenaAllocate): (FreeArenaList): (ArenaFinish): * khtml/misc/main_thread_malloc.cpp: Added. * khtml/misc/main_thread_malloc.h: Added. * khtml/rendering/render_style.h: * khtml/xml/dom2_eventsimpl.h: * khtml/xml/dom2_rangeimpl.h: * khtml/xml/dom2_traversalimpl.h: * khtml/xml/dom2_viewsimpl.h: * khtml/xml/dom_docimpl.h: * khtml/xml/dom_elementimpl.cpp: (NamedAttrMapImpl::NamedAttrMapImpl): (NamedAttrMapImpl::clearAttributes): (NamedAttrMapImpl::operator=): (NamedAttrMapImpl::addAttribute): (NamedAttrMapImpl::removeAttribute): * khtml/xml/dom_elementimpl.h: * khtml/xml/dom_nodeimpl.h: * khtml/xml/dom_stringimpl.h: * kwq/KWQFontFamily.h: * kwq/KWQListImpl.mm: * kwq/KWQString.h: * kwq/KWQString.mm: (ALLOC_CHAR): (ALLOC_QCHAR): (QString::setBufferFromCFString): (allocatePageNode): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 10 Jun, 2002 1 commit
-
-
darin authored
Merged in changes from KDE 3.0.1. * kjs/collector.cpp: * kjs/date_object.cpp: * kjs/function.cpp: * kjs/internal.cpp: * kjs/lookup.h: * kjs/object.cpp: * kjs/operations.cpp: * kjs/regexp.cpp: * kjs/regexp_object.cpp: * kjs/regexp_object.h: * kjs/string_object.cpp: * kjs/testkjs.cpp: * kjs/ustring.cpp: * kjs/value.cpp: * kjs/value.h: Do the merge, and add APPLE_CHANGES as needed to make things compile. * kjs/date_object.lut.h: Re-generated. WebCore: Merged in changes from KDE 3.0.1. * kwq/kdecore/kurl.h: * kwq/KWQKURL.mm: (operator==): New, needed by some 3.0.1 code. * kwq/qt/qpalette.h: Add QPalette::NColorGroups and QColorGroup::NColorRoles. * kwq/KWQPalette.mm: Simplify by getting rid of "private" indirection. (QPalette::color): New, needed by some 3.0.1 code. * kwq/KWQColorGroup.mm: Simplify by getting rid of "private" indirection. * kwq/qt/qstring.h: * kwq/KWQString.mm: (QConstString::QConstString): Change parameter to const QChar * to match Qt so we compile. * kwq/qt/qtextedit.h: * kwq/KWQTextEdit.mm: (QTextEdit::setTabStopWidth): Add unimplemented placeholder, needed by some 3.0.1 code. * kwq/qt/qvaluelist.h: * kwq/KWQValueListImpl.h: * kwq/KWQValueListImpl.mm: Simplify implementation. * WebCore-tests.exp: Update for changes in QValueList implementation. * kwq/kdecore/klibloader.h: Add include of <kio/global.h> to make something compile. * kwq/khtml/java/kjavaappletcontext.h: Add JType and constructor that takes DCOPObject*. * kwq/kio/global.h: Add KIO::CacheControl. * khtml/css/css_ruleimpl.cpp: * khtml/css/css_ruleimpl.h: * khtml/css/css_stylesheetimpl.cpp: * khtml/css/css_stylesheetimpl.h: * khtml/css/css_valueimpl.cpp: * khtml/css/css_valueimpl.h: * khtml/css/cssparser.cpp: * khtml/css/cssparser.h: * khtml/css/cssstyleselector.cpp: * khtml/css/cssstyleselector.h: * khtml/css/html4.css: * khtml/dom/css_rule.cpp: * khtml/dom/css_rule.h: * khtml/dom/css_stylesheet.cpp: * khtml/dom/css_stylesheet.h: * khtml/dom/css_value.cpp: * khtml/dom/dom2_events.cpp: * khtml/dom/dom2_range.cpp: * khtml/dom/dom2_range.h: * khtml/dom/dom2_views.cpp: * khtml/dom/dom_doc.cpp: * khtml/dom/dom_element.cpp: * khtml/dom/dom_exception.h: * khtml/dom/dom_node.cpp: * khtml/dom/dom_string.cpp: * khtml/dom/dom_text.cpp: * khtml/dom/dom_xml.cpp: * khtml/dom/html_base.cpp: * khtml/dom/html_block.cpp: * khtml/dom/html_document.cpp: * khtml/dom/html_element.cpp: * khtml/dom/html_element.h: * khtml/dom/html_form.cpp: * khtml/dom/html_head.cpp: * khtml/dom/html_image.cpp: * khtml/dom/html_inline.cpp: * khtml/dom/html_list.cpp: * khtml/dom/html_misc.cpp: * khtml/dom/html_object.cpp: * khtml/dom/html_table.cpp: * khtml/ecma/kjs_html.cpp: * khtml/ecma/kjs_proxy.cpp: * khtml/ecma/kjs_traversal.cpp: * khtml/ecma/kjs_window.cpp: * khtml/html/html_baseimpl.cpp: * khtml/html/html_formimpl.cpp: * khtml/html/html_miscimpl.h: * khtml/html/html_objectimpl.cpp: * khtml/html/html_objectimpl.h: * khtml/html/htmlparser.cpp: * khtml/html/htmlparser.h: * khtml/html/htmltokenizer.cpp: * khtml/html/htmltokenizer.h: * khtml/khtml_part.cpp: * khtml/khtmlpart_p.h: * khtml/khtmlview.cpp: * khtml/misc/helper.cpp: * khtml/misc/khtmllayout.h: * khtml/misc/loader.cpp: * khtml/misc/loader.h: * khtml/misc/loader_client.h: * khtml/misc/shared.h: Added. * khtml/rendering/bidi.cpp: * khtml/rendering/break_lines.cpp: * khtml/rendering/font.cpp: * khtml/rendering/render_applet.cpp: * khtml/rendering/render_applet.h: * khtml/rendering/render_container.cpp: * khtml/rendering/render_form.cpp: * khtml/rendering/render_form.h: * khtml/rendering/render_frames.cpp: * khtml/rendering/render_image.cpp: * khtml/rendering/render_object.cpp: * khtml/rendering/render_object.h: * khtml/rendering/render_replaced.cpp: * khtml/rendering/render_replaced.h: * khtml/rendering/render_root.cpp: * khtml/rendering/render_style.cpp: * khtml/rendering/render_style.h: * khtml/rendering/render_table.cpp: * khtml/rendering/render_table.h: * khtml/rendering/render_text.cpp: * khtml/rendering/render_text.h: * khtml/xml/dom2_eventsimpl.h: * khtml/xml/dom2_rangeimpl.h: * khtml/xml/dom2_traversalimpl.cpp: * khtml/xml/dom2_traversalimpl.h: * khtml/xml/dom2_viewsimpl.h: * khtml/xml/dom_docimpl.cpp: * khtml/xml/dom_docimpl.h: * khtml/xml/dom_elementimpl.h: * khtml/xml/dom_nodeimpl.cpp: * khtml/xml/dom_nodeimpl.h: * khtml/xml/dom_stringimpl.cpp: * khtml/xml/dom_stringimpl.h: * khtml/xml/xml_tokenizer.h: Merge in 3.0.1 changes and add APPLE_CHANGES as necessary to get it to compile. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 15 Apr, 2002 1 commit
-
-
darin authored
JavaScriptCore: * kjs/internal.cpp: * kjs/property_map.cpp: * kjs/ustring.h: Removed some unneeded <config.h> includes so we are more similar to the real KDE sources. Merged changes from KDE 3.0 final and did some build fixes. * JavaScriptCore.pbproj/project.pbxproj: Added nodes2string.cpp. * kjs/grammar.*: Regenerated. * kjs/*.lut.h: Regenerated. WebCore: * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration): Remove some minor gratuitous diffs vs. KDE. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration): Richard updated to reflect changes in KDE. * src/kdelibs/khtml/css/css_valueimpl.cpp: (FontFamilyValueImpl::FontFamilyValueImpl): Fix comment. * src/kdelibs/khtml/css/cssstyleselector.cpp: Remove some gratuitous diffs vs. KDE. * src/kdelibs/khtml/html/html_objectimpl.cpp: (HTMLEmbedElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days. * src/kdelibs/khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::parseAttribute), (HTMLTablePartElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days. * src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::processToken): Redo the APPLE_CHANGES ifdef here. * src/kdelibs/khtml/khtmlpart_p.h: Update to latest kde. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::KHTMLView): Add ifdef APPLE_CHANGES. (KHTMLView::~KHTMLView): Add ifdef APPLE_CHANGES. (KHTMLView::print): Remove code left in here during merge process. * src/kwq/KWQKHTMLPart.mm: Remove unused setFontSizes(), fontSizes(), and resetFontSizes(). After the merge is landed, remove more. * src/libwebcore.exp: Export updateStyleSelector() for WebKit. Fix text to it displays at the right font size. * src/kdelibs/khtml/css/cssstyleselector.cpp: (CSSStyleSelector::computeFontSizes): Apply the same SCREEN_RESOLUTION hack here that we do elsewhere. * src/kdelibs/khtml/rendering/font.cpp: (Font::width): Use kMin instead of max (oops). (Font::update): Turn off font database chicanery. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::zoomFactor): Use zoom factor 100, not 1. More fixes so text displays (still at wrong font size). * src/kdelibs/khtml/rendering/font.cpp: (max): New helper. (Font::drawText): Simplified implementation for now. (Font::width): Simplified implementation for now. * src/kwq/KWQColorGroup.mm: Reinstated QCOLOR_GROUP_SIZE. * src/kwq/qt/qfontmetrics.h: Removed charWidth and changed _width to take QChar *. * src/kwq/KWQFontMetrics.mm: Removed charWidth and changed _width to take QChar *. Merged changes from KDE 3.0 final. Other fixes to get things compiling. * src/kdelibs/khtml/css/css_valueimpl.cpp: (CSSStyleDeclarationImpl::setProperty): Fix unused variable. * src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::contentsContextMenuEvent): Fix unused variable. * src/kdelibs/khtml/rendering/font.cpp: (Font::drawText), (Font::width), (Font::update): Disable special "nsbp" logic for now. We can reenable it if necessary. * src/kdelibs/khtml/rendering/render_replaced.cpp: Fix mismerge. * src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::nodeAtPoint): Fix unused variable. * src/kwq/KWQApplication.mm: (QDesktopWidget::width), (QApplication::desktop): Fix mismerge. * src/kwq/KWQColorGroup.mm: Fix QCOLOR_GROUP_SIZE. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::lineSpacing): New. (QFontMetrics::width): Remove unused optimization. * src/kwq/qt/qfontmetrics.h: Add lineSpacing(). Merged changes from previous merge pass. 2002-03-25 Darin Adler <darin@apple.com> Last bit of making stuff compile and link. Probably will drop the merge now and take it up again when it's time to merge in KDE 3.0 final. * src/kwq/KWQEvent.mm: (QFocusEvent::reason): New. * src/kwq/KWQPainter.mm: (QPainter::drawText): New overload. 2002-03-25 Darin Adler <darin@apple.com> * src/kdelibs/khtml/rendering/font.cpp: (Font::width): Make it call _width so we don't lose the optimization. * src/kwq/KWQApplication.mm: (QDesktopWidget::screenNumber): New. (QDesktopWidget::screenGeometry): New. (QApplication::style): New. * src/kwq/KWQColorGroup.mm: (QColorGroup::highlight): New. (QColorGroup::highlightedText): New. * src/kwq/KWQFont.mm: (QFont::setPixelSize): New. * src/kwq/KWQFontMetrics.mm: (QFontMetrics::charWidth): New. * src/kwq/KWQKGlobal.mm: (KGlobal::locale): Implement. (KLocale::KLocale): New. (KLocale::languageList): New. * src/kwq/KWQKHTMLPart.mm: (KHTMLPart::sheetUsed): New. (KHTMLPart::setSheetUsed): New. (KHTMLPart::zoomFactor): New. * src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::mediumFontSize): New. * src/kwq/KWQScrollView.mm: (QScrollView::childX): New. (QScrollView::childY): New. * src/kwq/qt/qapplication.h: style() returns a QStyle &. * src/kwq/qt/qpalette.h: Add Highlight and HighlightedText. 2002-03-24 Darin Adler <darin@apple.com> More compiling. Still won't link. * src/kdelibs/khtml/khtmlview.cpp: Disable printing and drag and drop code. * src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration): Temporarily turn off our smarter underlining since it relies on access to the string, and TextSlave doesn't have that any more. (RenderText::nodeAtPoint): Get rid of a workaround we don't need any more for a bug that was fixed by KDE folks. * src/kwq/KWQApplication.mm: (QApplication::desktop): Make the desktop be a QDesktopWidget. * src/kwq/qt/qnamespace.h: Add MetaButton. * src/kwq/qt/qtooltip.h: Add a maybeTip virtual function member and a virtual destructor. 2002-03-24 Darin Adler <darin@apple.com> Some fixes to get more stuff to compile. * src/kdelibs/khtml/ecma/kjs_dom.cpp: (DOMDocument::getValueProperty): Don't try to look at the private m_bComplete to display "complete". Just do "loading" and "loaded". * src/kdelibs/khtml/khtmlpart_p.h: #ifdef this all out for APPLE_CHANGES. * src/kdelibs/khtml/rendering/font.cpp: (Font::update): Add an explicit cast to int to avoid float -> int warning. * src/kdelibs/khtml/rendering/render_table.cpp: (RenderTable::calcColMinMax): Add an explicit cast to int to avoid uint compared with int warning. * src/kdelibs/khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyleSelector): Use sheetUsed() and setSheetUsed() functions on KHTMLPart intead of getting at private fields the way the real KDE code does. * src/kwq/KWQKHTMLPart.h: Declare zoomFactor(), sheetUsed(), and setSheetUsed(). * src/kwq/KWQStyle.h: Add PM_DefaultFramWidth as another metric. * src/kwq/kdecore/klocale.h: Add languageList(). * src/kwq/khtml/khtml_settings.h: Add mediumFontSize(). * src/kwq/qt/qapplication.h: Add style() and QDesktopWidget. * src/kwq/qt/qevent.h: Add reason(). * src/kwq/qt/qfont.h: Add setPixelSize(int). * src/kwq/qt/qfontmetrics.h: Add charWidth() and _charWidth() functions. * src/kwq/qt/qpainter.h: Add drawText() overload with position parameter. * src/kwq/qt/qpalette.h: Add highlight() and highlightedText(). * src/kwq/qt/qscrollview.h: Add childX() and childY(). * src/kwq/KWQApplication.mm: Change KWQDesktopWidget to QDesktopWidget. WebKit: * WebView.subproj/IFPreferences.h: * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Remove the old WebKitFontSizes preference. (-[IFPreferences mediumFontSize]), (-[IFPreferences setMediumFontSize:]): New. * WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]): Call updateStyleSelector() instead of recalcStyle(). Merged changes from previous merge branch. 2002-03-25 Darin Adler <darin@apple.com> * WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Add WebKitMediumFontSizePreferenceKey. WebBrowser: * Preferences.subproj/TextPreferences.m: (-[TextPreferences defaultFontSize]), (-[TextPreferences setDefaultFontSize:]): Just get and set the new mediumFontSize preference rather than doing the whole fontSizes preference dance. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 21 Mar, 2002 1 commit
-
-
mjs authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@798 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-
- 24 Aug, 2001 1 commit
-
-
kocienda authored
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@4 268f45cc-cd09-0410-ab3c-d52691b4dbfc
-