Timeline



Nov 19, 2004:

6:24 PM Changeset in webkit [8057] by mjs
  • 10 edits in trunk/WebCore

Reviewed by Darin.

<rdar://problem/3482935> JavaScript so slow it seems like a hang (hrweb.apple.com) (HTMLCollection?)
<rdar://problem/3759149> PeopleSoft page in Safari twice as slow as Mozilla engine (HTMLFormCollection)
<rdar://problem/3888368> selecting an item on the Apache bugzilla query page can be improved 95% (HTMLFormCollection)

Many optimizations to HTMLFormCollection. Iterating it should not
be N2 any more, though finding items by name could still be.

  • khtml/html/html_formimpl.cpp: (DOM::HTMLFormElementImpl::~HTMLFormElementImpl): (DOM::HTMLFormElementImpl::length): (DOM::HTMLFormElementImpl::submitClick): (DOM::HTMLFormElementImpl::formData): (DOM::HTMLFormElementImpl::submit): (DOM::HTMLFormElementImpl::reset): (DOM::HTMLFormElementImpl::radioClicked): (DOM::appendToVector): (DOM::removeFromVector): (DOM::HTMLFormElementImpl::registerFormElement): (DOM::HTMLFormElementImpl::removeFormElement): (DOM::HTMLFormElementImpl::makeFormElementDormant): (DOM::HTMLFormElementImpl::registerImgElement): (DOM::HTMLFormElementImpl::removeImgElement):
  • khtml/html/html_formimpl.h:
  • khtml/html/html_miscimpl.cpp: (HTMLFormCollectionImpl::FormCollectionInfo::FormCollectionInfo): (void::HTMLFormCollectionImpl::FormCollectionInfo::reset): (HTMLFormCollectionImpl::resetCollectionInfo): (HTMLFormCollectionImpl::calcLength): (HTMLFormCollectionImpl::item): (HTMLFormCollectionImpl::getNamedItem): (HTMLFormCollectionImpl::getNamedFormItem): (HTMLFormCollectionImpl::firstItem): (HTMLFormCollectionImpl::nextItem):
  • khtml/html/html_miscimpl.h: (DOM::HTMLFormCollectionImpl::~HTMLFormCollectionImpl):
  • khtml/xml/dom_elementimpl.cpp: (ElementImpl::setAttribute): (ElementImpl::setAttributeMap):
  • kwq/KWQPtrVector.h: (QPtrVector::findRef):
  • kwq/KWQVectorImpl.h:
  • kwq/KWQVectorImpl.mm: (KWQVectorImpl::findRef):
  • kwq/WebCoreBridge.mm: (-[WebCoreBridge elementWithName:inForm:]): (-[WebCoreBridge controlsInForm:]):
5:36 PM Changeset in webkit [8056] by harrison
  • 2 edits in trunk/WebCore

Reviewed by Ken and Darin.

<rdar://problem/3856215> Cannot remove bold from the beginning of a message

Problem is that KHTMLPart::computeAndSetTypingStyle always looked upstream
for the existing style, but in this case (hitting cmd-B with caret at top of
file) there is nothing upstream. Changed this to use the VisiblePosition
deepEquivalent instead.

  • khtml/khtml_part.cpp: (KHTMLPart::computeAndSetTypingStyle):
5:13 PM Changeset in webkit [8055] by adele
  • 1 edit in branches/Safari-1-2-branch/WebCore/ChangeLog-2005-08-23

* empty log message *

5:09 PM Changeset in webkit [8054] by adele
  • 1 edit in branches/Safari-1-2-branch/WebCore/khtml/xml/dom_docimpl.cpp

Fixed by Maciej, merged by Darin for SUPanPlum <rdar://problem/3872586>.

2004-11-19 Maciej Stachowiak <mjs@apple.com>

Reviewed by Darin.

<rdar://problem/3864151> REGRESSION (125-167): Chrysler.com never stops loading

  • khtml/xml/dom_docimpl.cpp: (DocumentImpl::close): Don't fire the onload handler if there is a redirect pending. This is a very long-standing bug that was masked by our previously incorrect redirect logic. It used to be that an older redirect would always win. Recently we changed things so that a newer redirect would win, but a script that causes a redirect would stop parsing once complete (so if there are two redirects in the same script, the latter wins). However, we should have also prevented onload in this case. Testing with other browsers shows that onload handlers do not run at all when there is a pending redirect.
4:57 PM Changeset in webkit [8053] by vicki
  • 3 edits in trunk

versioning for TOT, Safari 2.0 (v172+)

The tree is OPEN!

4:48 PM Changeset in webkit [8052]
  • 2 copies in tags/Safari-172

This commit was manufactured by cvs2svn to create tag 'Safari-172'.

4:48 PM Changeset in webkit [8051] by vicki
  • 6 edits in trunk

Safari-172 stamp

3:21 PM Changeset in webkit [8050] by cblu
  • 2 edits in trunk/WebKit

Fixed: <rdar://problem/3880387> REGRESSION: www.shockplay.com site gives "Unexpected server response"

Reviewed by mjs.

  • Plugins.subproj/WebBaseNetscapePluginView.m: (-[NSData _web_locationAfterFirstBlankLine]): support both formats ("\r\n\n" and "\r\n\r\n") for separating header data from body data because Shockwave still sends the prior format
1:25 PM Changeset in webkit [8049] by mjs
  • 2 edits in trunk/WebCore

Reviewed by Darin.

<rdar://problem/3864151> REGRESSION (125-167): Chrysler.com never stops loading

  • khtml/xml/dom_docimpl.cpp: (DocumentImpl::close): Don't fire the onload handler if there is a redirect pending. This is a very long-standing bug that was masked by our previously incorrect redirect logic. It used to be that an older redirect would always win. Recently we changed things so that a newer redirect would win, but a script that causes a redirect would stop parsing once complete (so if there are two redirects in the same script, the latter wins). However, we should have also prevented onload in this case. Testing with other browsers shows that onload handlers do not run at all when there is a pending redirect.
11:58 AM Changeset in webkit [8048] by kocienda
  • 2 edits in trunk/WebCore

Reviewed by Harrison

Fix some object lifetime issues in these two commands. This fixes some crashes
I am seeing in some new code I am working on, but have not yet reproduced otherwise.

  • khtml/editing/htmlediting.cpp: (khtml::InsertParagraphSeparatorCommand::~InsertParagraphSeparatorCommand): No longer deref nodes in the ancestor list. They are not ref'ed when put on list. D'uh. (khtml::InsertParagraphSeparatorCommand::doApply): Ref all cloned nodes that are created by the command before putting them on the cloned nodes list. This are still deref'ed in the destructor. (khtml::InsertParagraphSeparatorInQuotedContentCommand::~InsertParagraphSeparatorInQuotedContentCommand): Ditto destructor comment. (khtml::InsertParagraphSeparatorInQuotedContentCommand::doApply): Ditto doApply comment.
10:43 AM Changeset in webkit [8047] by kocienda
  • 9 edits in trunk

WebCore:

Reviewed by Harrison

Fix for this bug:

<rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it

  • khtml/khtml_part.cpp: (KHTMLPart::computeAndSetTypingStyle): New helper that does the work of reducing a passed-in style declaration given the current selection, and then sets the minimum necessary style as the typing style on the part. (KHTMLPart::applyStyle): Call new computeAndSetTypingStyle. The guts of computeAndSetTypingStyle used to be here in the selection-as-caret case. But now [WebCoreBridge setTypingStyle:] needs this code as well.
  • khtml/khtml_part.h: Declare new computeAndSetTypingStyle() function.
  • kwq/WebCoreBridge.h: Declare new typingStyle and setTypingStyle: methods.
  • kwq/WebCoreBridge.mm: (-[WebCoreBridge typingStyle]): Calls through to the part to retrieve the typing style. (-[WebCoreBridge setTypingStyle:]): Calls through to the part to set the typing style.

WebKit:

Reviewed by Harrison

Fix for this bug:

<rdar://problem/3655241> setTypingStyle: does not set the real typing style, and typingStyle does not return it

  • WebCoreSupport.subproj/WebBridge.m: (-[WebBridge respondToChangedContents]): No longer call through to WebKit to set the typing style. The call was part of the misguided use of the setTypingStyle: and typingStyle as a cache of what was stored on the WebCore side. (-[WebBridge respondToChangedSelection]): Ditto.
  • WebView.subproj/WebView.m: (-[WebViewPrivate dealloc]): Object no longer has typingStyle ivar. (-[WebView setTypingStyle:]): Call over the bridge to set typing style. (-[WebView typingStyle]): Call over the bridge to retrieve typing style.
  • WebView.subproj/WebViewInternal.h: Object no longer has typingStyle ivar.

Nov 18, 2004:

10:08 PM Changeset in webkit [8046] by sullivan
  • 2 edits in trunk/WebKit

Reviewed by Darin.

  • fixed <rdar://problem/3886042> should save history file as binary XML so serialization, parsing, reading and writing is faster
  • History.subproj/WebHistory.m: (-[WebHistoryPrivate _saveHistoryGuts:URL:error:]): convert dictionary to binary data before saving
6:03 PM Changeset in webkit [8045] by harrison
  • 2 edits in trunk/WebCore

Reviewed by Darin.

Back out Darin's fix for <rdar://problem/3885729>, because the new exception gets triggered by Mail.app.
Filed <rdar://problem/3886832> against Mail.app.

  • kwq/DOM-CSS.mm: (-[DOMCSSStyleDeclaration setProperty:::]):
5:40 PM Changeset in webkit [8044] by cblu
  • 2 edits in trunk/WebCore

WebCore:

Fixed: <rdar://problem/3587481> Bug Reporter Login Page: Password AutoFill does not work reliably

Reviewed by john.

  • kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::currentForm): just return the current form, don't scan the entire document looking for a form if there is no current form

WebBrowser:

Fixed: <rdar://problem/3587481> Bug Reporter Login Page: Password AutoFill does not work reliably

Reviewed by john.

  • FormCompletionController.m: (+[FormCompletionController firstFormInFrame:]): new, currentForm in WebCore used to do this work, but now currentForm just returns the current form (+[FormCompletionController currentOrFirstFrameAndForm:inWebView:]): renamed, if there is no current form, call firstFormInFrame (+[FormCompletionController autoFillInWebView:]): call renamed method (+[FormCompletionController autoFillPasswordInFrame:]): if there is no current form, find a password form from all the forms in the document rather than giving up when the first form is not a password form
5:10 PM Changeset in webkit [8043] by cblu
  • 2 edits in trunk/WebKit
  • WebView.subproj/WebHTMLRepresentation.m: (-[WebHTMLRepresentation currentForm]): removed stray ";"
4:49 PM Changeset in webkit [8042] by mjs
  • 2 edits in trunk/WebCore

Reviewed by Chris.

  • fix recursive item traversal, use traverseNextNode() instead of the buggy hand-rolled traversal.
  • khtml/xml/dom_nodeimpl.cpp: (NodeListImpl::recursiveItem):
4:12 PM Changeset in webkit [8041] by darin
  • 35 edits in trunk/WebCore

Reviewed by Ken.

  • fixed <rdar://problem/3885744> crash with XMLHttpRequest test page (reported by KDE folks)
  • khtml/ecma/xmlhttprequest.cpp: (KJS::XMLHttpRequest::slotFinished): Rolled in fix from KDE; make sure to set job to 0 before calling changeState.
  • fixed <rdar://problem/3885729> attempting to modify a computed style does nothing, but should raise a DOM exception
  • fixed <rdar://problem/3885731> style declarations use too many malloc blocks; switch to QValueList
  • fixed <rdar://problem/3885739> DOM::NodeImpl accessor in DOM::Node class is hot; should be inlined
  • changed NodeImpl calls like replaceChild to always ref/deref the parameter; this is a better way to fix an entire category of leaks we have been fixing one by one recently
  • changed computed styles so they hold a reference to the DOM node; the old code could end up with a stale RenderObject pointer, although I never saw it do that in practice
  • implemented the length and item methods for computed styles
  • implemented querying additional properties in computed styles (29 more)
  • khtml/khtml_part.h: Update forward declaration of CSSMutableStyleDeclarationImpl since it's now a separate class rather than a typedef. Changed the parameter type of setTypingStyle to take a mutable style.
  • khtml/khtml_part.cpp: (KHTMLPart::setTypingStyle): Change parameter to take a mutable style. (KHTMLPart::applyStyle): Add code to make a mutable style in case we are passed a computed style; also change some types to mutable style. (updateState): Update iteration of CSSProperty objects in a style declaration to use the new valuesIterator interface. (KHTMLPart::selectionHasStyle): Add a call to makeMutable. (KHTMLPart::selectionStartHasStyle): Add call to makeMutable and update iteration. (editingStyle): Change type to mutable style, and simplify the style-creation calls, including accomodating the exception code that setCssText has now. (KHTMLPart::applyEditingStyleToElement): Change types to mutable style. (KHTMLPart::removeEditingStyleFromElement): Change code to call setChanged only if removing the style attributes really was a change, although it's not an important optimization it's good to do it right.
  • khtml/css/css_base.h: Remove unneeded setParsedValue method.
  • khtml/css/css_base.cpp: Remove unneeded setParsedValue method. All the places that were calling it were already removing the old property explicitly, so the code in here to remove the property again was redundant.
  • khtml/css/css_computedstyle.h: Updated virtual functions for changes to parameters in base class. Moved all the "set"-type functions so they are private. Store a node pointer instead of a renderer.
  • khtml/css/css_computedstyle.cpp: (DOM::CSSComputedStyleDeclarationImpl::CSSComputedStyleDeclarationImpl): Hold a reference to the node we compute style for, so we don't end up with a pointer to a deallocated RenderObject. Before we had no guarantee the object would outlast us. (DOM::CSSComputedStyleDeclarationImpl::setCssText): Add exception parameter, and set the exception to NO_MODIFICATION_ALLOWED_ERR. (DOM::CSSComputedStyleDeclarationImpl::getPropertyCSSValue): Update to use node pointer rather than renderer pointer. Added implementation for box-align, box-direction, box-flex, box-flex-group, box-lines, box-ordinal-group, box-orient, box-pack, caption-side, clear, cursor, direction, list-style-image, list-style-position, list-style-type, marquee-direction, marquee-repetition, marquee-style, user-modify, opacity, orphans, outline-style, page-break-after, page-break-before, page-break-inside, position, unicode-bidi, widows, z-index. (DOM::CSSComputedStyleDeclarationImpl::removeProperty): Add exception parameter, and set the exception to NO_MODIFICATION_ALLOWED_ERR. (DOM::CSSComputedStyleDeclarationImpl::setProperty): Ditto. (DOM::CSSComputedStyleDeclarationImpl::length): Implemented. (DOM::CSSComputedStyleDeclarationImpl::item): Implemented, calls getPropertyValue. (DOM::CSSComputedStyleDeclarationImpl::copyInheritableProperties): Changed return type to CSSMutableStyleDeclarationImpl. (DOM::CSSComputedStyleDeclarationImpl::copy): Added. (DOM::CSSComputedStyleDeclarationImpl::makeMutable): Added.
  • khtml/css/css_ruleimpl.h: Update forward declaration of CSSMutableStyleDeclarationImpl since it's now a separate class rather than a typedef.
  • khtml/css/cssparser.h: Ditto.
  • khtml/css/css_valueimpl.h: Refactor CSSStyleDeclarationImpl into two classes. New derived class CSSMutableStyleDeclarationImpl has the guts, and the base class has only some virtual functions. Removed a bunch of redundant stuff from other classes in this file too. (DOM::DashboardRegionImpl::setNext): Ref new before deref'ing old to handle the set-to-same case. (DOM::CSSProperty::CSSProperty): Added new overload so you can create a CSSProperty with initial values. (DOM::CSSProperty::operator=): Added. (DOM::CSSProperty::setValue): Use ref-before-deref pattern to simplify slightly.
  • khtml/css/css_valueimpl.cpp: (DOM::CSSStyleDeclarationImpl::CSSStyleDeclarationImpl): Remove uneeded things. (DOM::CSSStyleDeclarationImpl::isStyleDeclaration): Put here now that it's no longer inline. (DOM::CSSMutableStyleDeclarationImpl::CSSMutableStyleDeclarationImpl): Added. (DOM::CSSMutableStyleDeclarationImpl::operator=): Added. (DOM::CSSMutableStyleDeclarationImpl::~CSSMutableStyleDeclarationImpl): Updated. (DOM::CSSMutableStyleDeclarationImpl::getPropertyValue): Removed now-uneeded check. (DOM::CSSMutableStyleDeclarationImpl::get4Values): Moved here from base class. (DOM::CSSMutableStyleDeclarationImpl::getShortHandValue): Ditto. (DOM::CSSMutableStyleDeclarationImpl::getPropertyCSSValue): Update to use QValueList instead of QPtrList. (DOM::CSSMutableStyleDeclarationImpl::removeProperty): Added exception parameter, updated for QValueList. (DOM::CSSMutableStyleDeclarationImpl::setChanged): Moved here from base class. (DOM::CSSMutableStyleDeclarationImpl::getPropertyPriority): Update to use QValueList. (DOM::CSSMutableStyleDeclarationImpl::setProperty): Added more overloads to match new parameters. (DOM::CSSMutableStyleDeclarationImpl::setStringProperty): Update to use QValueList. (DOM::CSSMutableStyleDeclarationImpl::setImageProperty): Ditto. (DOM::CSSMutableStyleDeclarationImpl::parseProperty): Remove unneeded initialization code due to QValueList. (DOM::CSSMutableStyleDeclarationImpl::addParsedProperties): Added. (DOM::CSSMutableStyleDeclarationImpl::setLengthProperty): Moved here from base class. (DOM::CSSMutableStyleDeclarationImpl::length): Update to use QValueList. (DOM::CSSMutableStyleDeclarationImpl::item): Moved here from base class. (DOM::CSSMutableStyleDeclarationImpl::cssText): Return empty string rather than null string when there are no styles in the list. Update to use QValueList. (DOM::CSSMutableStyleDeclarationImpl::setCssText): Update to use QValueList and to take an exceptionCode parameter and set it. (DOM::CSSMutableStyleDeclarationImpl::merge): Update to use QValueList. (DOM::CSSStyleDeclarationImpl::diff): Update to use QValueList. (DOM::CSSMutableStyleDeclarationImpl::copyBlockProperties): Moved here from base class. Change return type. (DOM::CSSStyleDeclarationImpl::copyPropertiesInSet): Update to use QValueList and use stack, not new/delete. (DOM::CSSMutableStyleDeclarationImpl::makeMutable): Added. (DOM::CSSMutableStyleDeclarationImpl::copy): Added.
  • khtml/css/cssparser.cpp: (CSSParser::parseValue): Changed to use addParsedProperties. (CSSParser::parseDeclaration): Ditto. (CSSParser::createStyleDeclaration): Use new constructor to create declaration in a more efficient manner.
  • khtml/css/cssproperties.in: Removed unused font-size-adjust and -khtml-flow-mode.
  • khtml/css/cssproperties.c: Regenerated.
  • khtml/css/cssproperties.h: Regenerated.
  • khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::applyDeclarations): Updated to use QValueList interface to CSSMutableStyleDeclarationImpl.
  • khtml/dom/css_value.cpp: (DOM::CSSStyleDeclaration::cssText): Removed unneeded cast. (DOM::CSSStyleDeclaration::setCssText): Added exception code handling. (DOM::CSSStyleDeclaration::getPropertyValue): Changed to call getPropertyValue directly instead of first doing getPropertyCSSValue and then doing cssText. (DOM::CSSStyleDeclaration::getPropertyCSSValue): Removed unneeded cast. (DOM::CSSStyleDeclaration::removeProperty): Added exception code handling. (DOM::CSSStyleDeclaration::setProperty): Added exception code handling. (DOM::CSSStyleDeclaration::length): Removed unneeded cast. (DOM::CSSStyleDeclaration::item): Removed unneeded cast. (DOM::CSSStyleDeclaration::parentRule): Removed unneeded cast. (DOM::CSSValue::setCssText): Removed strange non-implementation (still not implemented).
  • khtml/dom/dom_node.h: Made isNull and handle functions inline.
  • khtml/dom/dom_node.cpp: Ditto.
  • khtml/editing/htmlediting.h: Change some types to mutable style.
  • khtml/editing/htmlediting.cpp: (khtml::EditCommandPtr::typingStyle): Change return type to mutable style. (khtml::EditCommandPtr::setTypingStyle): Change parameter to mutable style. (khtml::StyleChange::init): Convert parameter to mutable style. Update to use QValueList. (khtml::EditCommand::assignTypingStyle): Change parameter to mutable type. (khtml::EditCommand::setTypingStyle): Ditto. (khtml::ApplyStyleCommand::ApplyStyleCommand): Convert parameter to mutable style. (khtml::ApplyStyleCommand::doApply): Change local variables to mutable style. (khtml::ApplyStyleCommand::applyBlockStyle): Change parameter to mutable style. (khtml::ApplyStyleCommand::applyInlineStyle): Ditto. (khtml::ApplyStyleCommand::isHTMLStyleNode): Ditto. (khtml::ApplyStyleCommand::removeCSSStyle): Ditto. Also update to use QValueList. (khtml::ApplyStyleCommand::removeBlockStyle): Change parameter to mutable style. (khtml::ApplyStyleCommand::removeInlineStyle): Ditto. (khtml::ApplyStyleCommand::addBlockStyleIfNeeded): Ditto. (khtml::ApplyStyleCommand::addInlineStyleIfNeeded): Ditto. (khtml::InsertLineBreakCommand::doApply): Convert locals to mutable style. (khtml::InsertTextCommand::prepareForTextInsertion): Ditto. (khtml::RemoveCSSPropertyCommand::RemoveCSSPropertyCommand): Convert parameter to mutable style.
  • khtml/editing/jsediting.cpp: Convert types to mutable styles where we create styles.
  • khtml/html/html_baseimpl.h: Change type to mutable style.
  • khtml/html/html_baseimpl.cpp: (HTMLBodyElementImpl::createLinkDecl): Ditto.
  • khtml/html/html_elementimpl.h: Make CSSMappedAttributeDeclarationImpl use the mutable style class as a base class, and change types to mutable style as needed.
  • khtml/html/html_elementimpl.cpp: (HTMLElementImpl::createInlineStyleDecl): Change type to mutable style. (HTMLElementImpl::parseHTMLAttribute): Call parseProperty method. (HTMLElementImpl::getInlineStyleDecl): Change type to mutable style. (HTMLElementImpl::additionalAttributeStyleDecl): Ditto. (HTMLElementImpl::createContextualFragment): Add ref/deref to fix potential node leak. (HTMLElementImpl::setInnerHTML): Remove ref/deref pair because this leak is now fixed by changes to appendChild. (HTMLElementImpl::setOuterHTML): Remove ref/deref pair because this leak is now fixed by changes to replaceChild.
  • khtml/html/html_tableimpl.h: Change types to mutable style.
  • khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::additionalAttributeStyleDecl): Change type to mutable style. (HTMLTableElementImpl::getSharedCellDecl): Change type to mutable style. (HTMLTableCellElementImpl::additionalAttributeStyleDecl): Change type to mutable style.
  • khtml/html/htmlparser.cpp: (KHTMLParser::parseToken): Use a local variable to protect the node by ref'ing it. This is better than using an explicit delete to make the node go away, and is required for compatibility with the changes to the NodeImpl functions. (KHTMLParser::insertNode): Ditto. (KHTMLParser::createHead): Get rid of explicit delete, no longer needed because of changes to the NodeImpl functions.
  • khtml/xml/dom_docimpl.cpp: (DocumentImpl::createCSSStyleDeclaration): Call simpler constructor now that there's no need to make the property list explictly.
  • kwq/DOM-CSS.mm: (-[DOMCSSStyleDeclaration setCssText:]): Raise exception when appropriate. (-[DOMCSSStyleDeclaration removeProperty:]): Ditto. (-[DOMCSSStyleDeclaration setProperty:::]): Dito.
  • khtml/xml/dom_nodeimpl.cpp: (NodeImpl::insertBefore): Always do a ref/deref, so callers don't have to worry about whether the function succeeded or not for ownership purposes. (NodeImpl::replaceChild): Ditto. (NodeImpl::appendChild): Ditto. (NodeBaseImpl::insertBefore): Ditto. (NodeBaseImpl::replaceChild): Ditto. (NodeBaseImpl::appendChild): Ditto. (NodeBaseImpl::addChild): Ditto.
  • WebCore-tests.exp: Removed CSSStyleDeclaration::length; not sure why it was in here.
  • WebCore-combined.exp: Regenerated.
4:08 PM Changeset in webkit [8040] by mjs
  • 2 edits in trunk/WebCore

still even more build fixing

  • khtml/html/html_miscimpl.cpp: (HTMLCollectionImpl::resetCollectionInfo):
3:09 PM Changeset in webkit [8039] by mjs
  • 2 edits in trunk/WebCore

more build fixing

  • khtml/html/html_miscimpl.cpp: (HTMLCollectionImpl::resetCollectionInfo):
2:38 PM Changeset in webkit [8038] by mjs
  • 2 edits in trunk/WebCore

Fixed build problem.

  • khtml/html/html_miscimpl.h: (DOM::HTMLCollectionImpl::CollectionInfo::CollectionInfo): it's haslength, not hasLenght.
1:42 PM Changeset in webkit [8037] by mjs
  • 12 edits in trunk/WebCore

Reviewed by Ken.

  • merged and cleaned up HTMLCollection and HTMLFormCollection speedups from konqueror

<rdar://problem/3822992> VIP: Program listings pages at directv.com take a really long time to load [HTMLCollection]
<rdar://problem/3701991> Safari unresponsive loading (www.maxim-ic.com) (HTMLCollection)

This is also a start on fixing 5 other bugs, but those need additional work to make
HTMLFormCollection fast.

  • khtml/html/html_documentimpl.h: (DOM::HTMLDocumentImpl::collectionInfo):
  • khtml/html/html_formimpl.cpp: (DOM::HTMLFormElementImpl::~HTMLFormElementImpl): (DOM::HTMLFormElementImpl::isURLAttribute): (DOM::HTMLFormElementImpl::registerImgElement): (DOM::HTMLFormElementImpl::removeImgElement):
  • khtml/html/html_formimpl.h:
  • khtml/html/html_imageimpl.cpp: (HTMLImageElementImpl::HTMLImageElementImpl): (HTMLImageElementImpl::~HTMLImageElementImpl):
  • khtml/html/html_imageimpl.h:
  • khtml/html/html_miscimpl.cpp: (HTMLCollectionImpl::HTMLCollectionImpl): (HTMLCollectionImpl::~HTMLCollectionImpl): (HTMLCollectionImpl::updateCollectionInfo): (HTMLCollectionImpl::length): (HTMLCollectionImpl::item): (HTMLCollectionImpl::firstItem): (HTMLCollectionImpl::nextItem): (HTMLCollectionImpl::namedItem): (HTMLCollectionImpl::nextNamedItemInternal): (HTMLFormCollectionImpl::getNamedFormItem):
  • khtml/html/html_miscimpl.h: (DOM::HTMLCollectionImpl::): (DOM::HTMLCollectionImpl::CollectionInfo::CollectionInfo):
  • khtml/html/htmlparser.cpp: (KHTMLParser::getElement):
  • khtml/xml/dom_docimpl.cpp: (DocumentImpl::DocumentImpl):
  • khtml/xml/dom_docimpl.h: (DOM::DocumentImpl::incDOMTreeVersion): (DOM::DocumentImpl::domTreeVersion):
  • khtml/xml/dom_nodeimpl.cpp: (NodeImpl::attach): (NodeImpl::detach):
12:50 PM Changeset in webkit [8036] by cblu
  • 2 edits in trunk/WebKit

Fixed development build failure.

  • Misc.subproj/WebIconDatabase.m: (+[WebIconDatabase sharedIconDatabase]): call LOG not Log
11:29 AM Changeset in webkit [8035] by kdecker
  • 2 edits in trunk/WebCore

Reviewed by Chris.

fixed: <rdar://problem/3841842> getPropertyID expensive

  • kwq/DOM-CSS.mm: (getPropertyID): avoid unnecessary memory allocations by using a fixed-sized stack based buffer.
10:20 AM Changeset in webkit [8034] by cblu
  • 2 edits in trunk/WebKit

<rdar://problem/3885708> save memory in icon DB by not using NSSets when holding 1 object

Reviewed by sullivan.

  • Misc.subproj/WebIconDatabase.m: (+[WebIconDatabase sharedIconDatabase]): added timing code (-[WebIconDatabase _clearDictionaries]): new (-[WebIconDatabase _loadIconDictionaries]): call _clearDictionaries in 2 places before we bail, use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary (-[WebIconDatabase _updateFileDatabase]): fixed comment (-[WebIconDatabase _setIconURL:forURL:]): use _web_setObjectUsingSetIfNecessary:forKey: when adding site URLs to the iconURLToURLs dictionary (-[WebIconDatabase _releaseIconForIconURLString:]): handle NSString objects retured from iconURLToURLs (-[NSMutableDictionary _web_setObjectUsingSetIfNecessary:forKey:]): new, puts a set on the dictionary when there are 2 or more object for s key

Nov 17, 2004:

7:20 PM Changeset in webkit [8033] by rjw
  • 4 edits in trunk/WebKit

Fixed <rdar://problem/3885073> REGRESSION: Tab images at top of news.com.com replicated and squished

Correctly account for scaled image size and clipping.

Reviewed by Maciej.

  • WebCoreSupport.subproj/WebImageData.h:
  • WebCoreSupport.subproj/WebImageData.m:
  • WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer drawImageInRect:fromRect:compositeOperator:context:]):
6:48 PM Changeset in webkit [8032] by mjs
  • 2 edits in trunk/WebKit

Reviewed by Richard.

<rdar://problem/3885076> Don't make IDN calls for all-ascii URLs to save about 3 pages
at Safari startup.

  • Misc.subproj/WebNSURLExtras.m: (mapHostNames): If encoding and not decoding, then bail early if the URL is all ascii. (-[NSString _web_mapHostNameWithRange:encode:makeString:]): Remove earlier special-case check for localhost, no longer needed.
5:42 PM Changeset in webkit [8031] by hyatt
  • 9 edits in trunk/WebCore

Improve responsiveness by being willing to break out of the tokenizer. (This patch was landed already
and subsequently backed out).

Reviewed by kocienda

  • khtml/html/html_baseimpl.cpp: (HTMLBodyElementImpl::insertedIntoDocument):
  • khtml/html/htmltokenizer.cpp: (khtml::HTMLTokenizer::reset): (khtml::HTMLTokenizer::scriptHandler): (khtml::HTMLTokenizer::scriptExecution): (khtml::HTMLTokenizer::write): (khtml::HTMLTokenizer::continueProcessing): (khtml::HTMLTokenizer::timerEvent): (khtml::HTMLTokenizer::notifyFinished):
  • khtml/html/htmltokenizer.h:
  • khtml/khtmlview.cpp: (KHTMLViewPrivate::KHTMLViewPrivate): (KHTMLViewPrivate::reset): (KHTMLView::clear): (KHTMLView::layout): (KHTMLView::timerEvent): (KHTMLView::scheduleRelayout): (KHTMLView::layoutPending): (KHTMLView::haveDelayedLayoutScheduled): (KHTMLView::unscheduleRelayout):
  • khtml/khtmlview.h:
  • khtml/xml/dom_docimpl.cpp: (DocumentImpl::DocumentImpl): (DocumentImpl::close): (DocumentImpl::setParsing): (DocumentImpl::shouldScheduleLayout): (DocumentImpl::minimumLayoutDelay): (DocumentImpl::write): (DocumentImpl::finishParsing): (DocumentImpl::stylesheetLoaded): (DocumentImpl::updateStyleSelector):
  • khtml/xml/dom_docimpl.h: (DOM::DocumentImpl::parsing):
  • kwq/KWQDateTime.mm: (KWQUIEventTime::uiEventPending):
4:35 PM Changeset in webkit [8030] by harrison
  • 2 edits in trunk/WebCore

Reviewed by Ken Kocienda.

Make sure previousLineStart is non-null before calling compareBoundaryPoints.
Treat null case as meaning no post-move merge is needed.

  • khtml/editing/htmlediting.cpp: (khtml::DeleteSelectionCommand::initializePositionData):
3:02 PM Changeset in webkit [8029] by rjw
  • 2 edits in trunk/WebKit

Fixed <rdar://problem/3863601> Legacy font cache code in [WebTextRendererFactory createSharedFactory] may be unnecesary

and added call to SPI for

<rdar://problem/3884448> WebKit should turn on CG local font cache

currently disabled until a Tiger build shows up with the SPI.

Reviewed by David Harrison.

  • WebCoreSupport.subproj/WebTextRendererFactory.m: (+[WebTextRendererFactory createSharedFactory]):
12:31 PM Changeset in webkit [8028] by rjw
  • 2 edits in trunk/WebKit

Fixed <rdar://problem/3882212> REGRESSION: Images clipped instead of scaled
Fixed <rdar://problem/3884088> Crash terminating image load

Also added code to turn off color correction for images created
via CGImageSources. This code is currently disabled because CG
can't change the color space of images loaded progressively.
Further, according to Dave Hayward, CG will no longer attempt
to color correct images that don't have embedded profiles as of
Tiger 8A306.

Reviewed by Chris.

  • WebCoreSupport.subproj/WebImageData.m: (-[WebImageData _commonTermination]): (-[WebImageData dealloc]): (-[WebImageData _invalidateImageProperties]): (-[WebImageData imageAtIndex:]): (-[WebImageData incrementalLoadWithBytes:length:complete:]): (-[WebImageData propertiesAtIndex:]):
11:33 AM Changeset in webkit [8027] by harrison
  • 3 edits in trunk/WebCore

Reviewed by NOBODY (OOPS!).

Added displayNode and displayTree methods for debugging. Fixed comment typo in dispatchChildRemovalEvents.

  • khtml/xml/dom_nodeimpl.cpp: (NodeImpl::displayNode): (NodeImpl::displayTree): (NodeBaseImpl::dispatchChildRemovalEvents):
  • khtml/xml/dom_nodeimpl.h:

Nov 16, 2004:

4:17 PM Changeset in webkit [8026] by cblu
  • 2 edits in trunk/WebKit

Fixed: <rdar://problem/3882034> REGRESSION: Context menu incorrect for PDF content

Reviewed by darin.

  • WebView.subproj/WebPDFView.m: (-[WebPDFView hitTest:]): return self if the current event is a context menu event (-[WebPDFView menuForEvent:]): use the PDFView subview
11:52 AM Changeset in webkit [8025] by sullivan
  • 2 edits in trunk/WebCore

Reviewed by Richard.

  • fixed <rdar://problem/3881929> 32 byte leak in editingStyle() in KHTMLPart (one-time only)
  • khtml/khtml_part.cpp: (editingStyle): delete the list we created when we're done with it
11:04 AM Changeset in webkit [8024]
  • 19 copies
    2 deletes in tags/WebCore-85~6~5

This commit was manufactured by cvs2svn to create tag
'WebCore-85~6~5'.

11:04 AM Changeset in webkit [8023] by vicki
  • 2 edits in branches/Safari-1-0-branch/WebCore

versioning for December Security Update on Jaguar, WebCore-85.6.5

10:54 AM Changeset in webkit [8022] by vicki
  • 3 edits in branches/Safari-1-0-branch/WebCore
  • changes by Darin, reviewed by Vicki
  • Jaguar fix for 3867082: Safari URL status bar spoofing using nested <a> links in a table
  • khtml/rendering/render_inline.cpp: (RenderInline::nodeAtPoint):
  • khtml/rendering/render_object.cpp: (RenderObject::nodeAtPoint):
8:48 AM Changeset in webkit [8021] by kocienda
  • 3 edits in trunk/WebCore

Reviewed by John

It is unwise to use the QPtrList autodelete feature on shared objects like DOM nodes.
Instead, I replaced this with a helper function that derefs DOM nodes stored in a
QPtrList when the list goes out of scope.

  • khtml/editing/htmlediting.cpp: (khtml::derefNodesInList): New helper to deref DOM nodes stored in a QPtrList. (khtml::InsertParagraphSeparatorCommand::InsertParagraphSeparatorCommand): No longer set lists to autodelete. (khtml::InsertParagraphSeparatorCommand::~InsertParagraphSeparatorCommand): Call new derefNodesInList helper. (khtml::InsertParagraphSeparatorInQuotedContentCommand::InsertParagraphSeparatorInQuotedContentCommand): No longer set lists to autodelete. (khtml::InsertParagraphSeparatorInQuotedContentCommand::~InsertParagraphSeparatorInQuotedContentCommand): Call new derefNodesInList helper.
  • khtml/editing/htmlediting.h: Add virtual destructor for InsertParagraphSeparatorCommand. It had no need of one before, but now it does.

Nov 15, 2004:

5:34 PM Changeset in webkit [8020] by harrison
  • 2 edits in trunk/WebCore

Reviewed by Chris and Darin.

<rdar://problem/3880304> Non-linear performance hit for style changes

  • khtml/xml/dom_nodeimpl.cpp: (NodeImpl::traverseNextNode): (NodeImpl::traverseNextSibling): (NodeImpl::traversePreviousNodePostOrder): Return 0 rather than traversing beyond stayWithin when this == stayWithin. Add asserts that stayWithin is an ancestor of the returned node.
5:24 PM Changeset in webkit [8019] by rjw
  • 4 edits in trunk/JavaScriptCore

Fixed <rdar://problem/3880561> Default string value of ObjC object in JS should be [obj description].

Reviewed by Hyatt.

  • bindings/objc/objc_instance.mm: (ObjcInstance::stringValue):
  • bindings/objc/objc_utility.h:
  • bindings/objc/objc_utility.mm: (KJS::Bindings::convertNSStringToString): (KJS::Bindings::convertObjcValueToValue):
5:04 PM Changeset in webkit [8018] by darin
  • 6 edits in trunk/WebCore

Reviewed by Ken.

  • fixed <rdar://problem/3880036> Many leaks from CSSComputedStyleDeclarationImpl::getPropertyCSSValue, seen in Mail and Blot
  • khtml/css/css_computedstyle.cpp: (DOM::CSSComputedStyleDeclarationImpl::getPropertyValue): Ref and deref the value returned from getPropertyCSSValue, since there's no guarantee it's already ref'd.
  • khtml/css/css_valueimpl.cpp: (CSSStyleDeclarationImpl::getPropertyValue): Wrap result in a CSSValue to ref/deref. (CSSStyleDeclarationImpl::get4Values): Ref/deref explicitly. (CSSStyleDeclarationImpl::getShortHandValue): Ditto. (CSSStyleDeclarationImpl::merge): Ditto. (CSSStyleDeclarationImpl::diff): Ditto.
  • khtml/editing/htmlediting.cpp: (khtml::StyleChange::currentlyHasStyle): Ditto. (khtml::ApplyStyleCommand::removeCSSStyle): Ditto.
  • khtml/html/html_baseimpl.cpp: (HTMLBodyElementImpl::parseHTMLAttribute): Ditto.
  • khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::parseHTMLAttribute): Ditto.
4:47 PM Changeset in webkit [8017] by darin
  • 24 edits in trunk/WebCore

Reviewed by Ken.

Use separate mutable style and computed style types as appropriate.
For now this should have no effect, but it prepares us for refactoring later.
Also remove some unnecessary "DOM::" prefixes and in one case factor out
some shared code.

  • khtml/khtml_part.cpp: (KHTMLPart::typingStyle): (KHTMLPart::setTypingStyle): (updateState): (KHTMLPart::selectionHasStyle): (KHTMLPart::selectionStartHasStyle): (KHTMLPart::selectionComputedStyle):
  • khtml/khtml_part.h:
  • khtml/khtmlpart_p.h:
  • khtml/css/css_base.h:
  • khtml/css/css_ruleimpl.cpp: (CSSStyleRuleImpl::setDeclaration):
  • khtml/css/css_ruleimpl.h: (DOM::CSSFontFaceRuleImpl::style): (DOM::CSSPageRuleImpl::style): (DOM::CSSStyleRuleImpl::style): (DOM::CSSStyleRuleImpl::declaration):
  • khtml/css/css_valueimpl.h: (DOM::CSSPrimitiveValueImpl::):
  • khtml/css/cssparser.cpp: (CSSParser::parseValue): (CSSParser::parseColor): (CSSParser::parseDeclaration): (CSSParser::createStyleDeclaration):
  • khtml/css/cssparser.h:
  • khtml/css/cssstyleselector.cpp: (khtml::CSSStyleSelector::addMatchedDeclaration): (khtml::CSSStyleSelector::matchRulesForList): (khtml::CSSStyleSelector::styleForElement): (khtml::CSSStyleSelector::applyDeclarations):
  • khtml/css/cssstyleselector.h:
  • khtml/css/parser.cpp:
  • khtml/css/parser.y:
  • khtml/dom/css_rule.h:
  • khtml/dom/css_stylesheet.h:
  • khtml/dom/css_value.h:
  • khtml/dom/dom2_views.cpp:
  • khtml/xml/dom2_viewsimpl.cpp: (DOM::AbstractViewImpl::getComputedStyle):
  • khtml/xml/dom_docimpl.cpp: (DocumentImpl::importNode): (DocumentImpl::setStyleSheet):
  • khtml/xml/dom_docimpl.h:
  • khtml/xml/dom_xmlimpl.cpp: (DOM::ProcessingInstructionImpl::setStyleSheet):
  • khtml/xml/dom_xmlimpl.h:
  • khtml/dom/css_value.cpp: (DOM::throwException): Added. (DOM::CSSStyleDeclaration::setCssText): Call throwException, but always on 0 for now. The real thing is coming with the next change to refactor. (DOM::CSSPrimitiveValue::setFloatValue): Call throwException. (DOM::CSSPrimitiveValue::setStringValue): Ditto.
4:29 PM Changeset in webkit [8016] by darin
  • 4 edits in trunk/WebCore

Reviewed by Ken.

  • fixed <rdar://problem/3878489> REGRESSION: modifying attribute of <textarea> blows away edited text (breaks simplemachines.org forum)
  • khtml/xml/dom_nodeimpl.h: Added boolean "children changed" parameter to dispatchSubtreeModifiedEvent, so it can be called in cases where only the node's attributes changed without sending a misleading childrenChanged call, but the childrenChanged call can happen at the exact right moment.
  • khtml/xml/dom_nodeimpl.cpp: Removed some uneeded "DOM::". (NodeImpl::dispatchSubtreeModifiedEvent): Only call "children changed" if the boolean true is passed in.
  • khtml/xml/dom_elementimpl.cpp: (NamedAttrMapImpl::addAttribute): Pass false for "children changed". (NamedAttrMapImpl::removeAttribute): Ditto.
4:25 PM Changeset in webkit [8015] by cblu
  • 6 edits in trunk/WebKit

Fixed: <rdar://problem/3880410> save 5 dirty pages by soft-linking against PDFKit framework

Reviewed by john.

  • WebKit.pbproj/project.pbxproj:
  • WebView.subproj/WebPDFRepresentation.m: (+[WebPDFRepresentation PDFDocumentClass]): new (-[WebPDFRepresentation finishedLoadingWithDataSource:]): use PDFDocumentClass
  • WebView.subproj/WebPDFView.h:
  • WebView.subproj/WebPDFView.m: (+[WebPDFView PDFKitBundle]): new (+[WebPDFView PDFViewClass]): new (-[WebPDFView initWithFrame:]): create a PDFView subview (-[WebPDFView dealloc]): release the PDFView subview (-[WebPDFView PDFSubview]): new
3:36 PM Changeset in webkit [8014] by cblu
  • 2 edits in trunk/WebKit

Fixed: <rdar://problem/3879891> WebKit should link against PDFKit instead of Quartz

Reviewed by darin.

  • WebKit.pbproj/project.pbxproj: link against PDFKit if it is present instead of Quartz.framework
2:52 PM Changeset in webkit [8013]
  • 71 copies
    2 deletes in tags/WebCore-125~8~11

This commit was manufactured by cvs2svn to create tag
'WebCore-125~8~11'.

2:52 PM Changeset in webkit [8012] by vicki
  • 2 edits in branches/Safari-1-2-branch/WebCore

versioning for December Security Update, WebCore-125.8.11

2:08 PM Changeset in webkit [8011] by sullivan
  • 2 edits in trunk/WebCore

Reviewed by Ken.

  • fixed <rdar://problem/3880075> leak in CSSStyleDeclarationImpl::copyPropertiesInSet, seen often in Mail and Blot
  • khtml/css/css_valueimpl.cpp: (CSSStyleDeclarationImpl::copyPropertiesInSet): delete temporary list after we're done using it
12:33 PM Changeset in webkit [8010] by rjw
  • 2 edits in trunk/WebCore

Fixed leak (3879883) that John found. Early return leaked
allocated instance.

Reviewed by John.

  • khtml/css/css_computedstyle.cpp: (DOM::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
12:29 PM Changeset in webkit [8009] by rjw
  • 3 edits in trunk/WebKit

Fixed missing retain of image property data.

Reviewed by John.

  • WebCoreSupport.subproj/WebImageData.h:
  • WebCoreSupport.subproj/WebImageData.m: (-[WebImageData dealloc]): (-[WebImageData _invalidateImages]): (-[WebImageData imageAtIndex:]): (-[WebImageData propertiesAtIndex:]): (-[WebImageData _frameDuration]):
11:53 AM Changeset in webkit [8008] by kocienda
  • 4 edits in trunk/WebCore

Reviewed by John

Fix for this bug:

<rdar://problem/3879569> Many leaks in EditCommand mechanism, seen in Mail

Fixed a couple of object lifetime issues. The EditCommand class used to hold an
EditCommandPtr to its parent, but this caused a a reference cycle in composite
commands as the children held a ref to their parent. Now, the parent variable
is a non-retained reference to an EditCommand *. It would be nice to have a
weak reference to the parent or even override deref in composite commands (but I
can't since deref() is not virtual). However, this should be OK since any
dangling parent pointer is a sign of a bigger object lifetime problem that
would need to be addressed anyway.

  • khtml/css/css_valueimpl.cpp: (CSSStyleDeclarationImpl::CSSStyleDeclarationImpl): Fix bug in constructor that takes a QPtrList<CSSProperty> *. List values must be copied into newly-allocated list, rather than just assigning the list variable passed in to the local list variable, or the list will be double-deleted.
  • khtml/editing/htmlediting.cpp: (khtml::EditCommand::setStartingSelection): No longer call get(). m_parent is no longer a smart pointer. (khtml::EditCommand::setEndingSelection): Ditto. (khtml::EditCommand::assignTypingStyle): Short-circuit if passed in style is identical to current style. Unrelated to the change, but saves some ref's and deref's. (khtml::EditCommand::setTypingStyle): No longer call get(). m_parent is no longer a smart pointer.
  • khtml/editing/htmlediting.h: Change m_parent to a EditCommand *. Was an EditCommandPtr. Using an EditCommandPtr caused a reference cycle in composite commands as the children held a ref to their parent. (khtml::EditCommand::parent): No longer call get(). m_parent is no longer a smart pointer.
11:50 AM Changeset in webkit [8007] by mjs
  • 3 edits in trunk/WebCore

Reviewed by Kevin.

<rdar://problem/3807080> Safari so slow it seems like a hang accessing a page on an IBM website

  • khtml/xml/dom_nodeimpl.cpp: (NodeListImpl::NodeListImpl): Initialize isItemCacheValid, renamed isCacheValid to isLengthCacheValid. (NodeListImpl::recursiveLength): Adjusted for rename. (NodeListImpl::recursiveItem): Cache the last item accessed and its offset. If the same offset is looked up again, just return it, otherwise, if looking up a later offset, start at the last item and proceed from there. (NodeListImpl::itemById): Apply the special document optimization to all nodes that are either a document or in a document - just walk up to make sure the node found by ID has the root node as an ancestor. (NodeListImpl::rootNodeSubtreeModified): Adjust both cache bits.
  • khtml/xml/dom_nodeimpl.h: Prototype new stuff.
11:16 AM Changeset in webkit [8006] by rjw
  • 5 edits in trunk/WebKit

Cache image properties and frame durations.
Create NSImage and TIFF representations from CGImage, lazily, as needed for
dragging and element info dictionary.

Reviewed by John.

  • WebCoreSupport.subproj/WebImageData.h:
  • WebCoreSupport.subproj/WebImageData.m: (-[WebImageData dealloc]): (-[WebImageData size]): (-[WebImageData propertiesAtIndex:]): (-[WebImageData _frameDurationAt:]): (-[WebImageData _frameDuration]):
  • WebCoreSupport.subproj/WebImageRenderer.h:
  • WebCoreSupport.subproj/WebImageRenderer.m: (-[WebImageRenderer dealloc]): (-[WebImageRenderer TIFFRepresentation]): (-[WebImageRenderer image]):
10:53 AM Changeset in webkit [8005] by mjs
  • 3 edits in trunk/WebKit

Reviewed by John.

<rdar://problem/3879226> WebKit needlessly uses extra memory to store icon refcounts as NSNumbers

  • Misc.subproj/WebIconDatabase.m: (-[WebIconDatabase init]): (-[WebIconDatabase _setIconURL:forURL:]): (-[WebIconDatabase _retainIconForIconURLString:]): (-[WebIconDatabase _releaseIconForIconURLString:]): (-[WebIconDatabase _retainFutureIconForURL:]): (-[WebIconDatabase _releaseFutureIconForURL:]):
  • Misc.subproj/WebIconDatabasePrivate.h:
9:20 AM Changeset in webkit [8004] by sullivan
  • 2 edits in trunk/WebCore

Reviewed by Ken.

  • fixed <rdar://problem/3879539> leak of NSString after pasting into editable HTML (e.g. Mail)
  • kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::documentFragmentWithText): release mutable copy of string after we're done using it
8:54 AM Changeset in webkit [8003] by sullivan
  • 2 edits in trunk/WebKit

Reviewed by Ken.

  • fixed <rdar://problem/3879513> leak in [WebArchive _propertyListRepresentation] copying HTML to pasteboard
  • WebView.subproj/WebArchive.m: (-[WebArchive _propertyListRepresentation]): the array holding the subresources was not released after use, oops!
Note: See TracTimeline for information about the timeline view.