Bug #: 5316
Submitted by: darin
Reviewed by: eseidel
        Re-enabling hc_noderemovechild.xhtml and fixing bug (hang).
        http://bugzilla.opendarwin.org/show_bug.cgi?id=5316

        * dom/xhtml/level1/core/hc_noderemovechild-expected.txt: Added.
        * dom/xhtml/level1/core/hc_noderemovechild.js: hang workaround.
        * dom/xhtml/level1/core/hc_noderemovechild.xhtml: Added.
        * dom/xhtml/level1/core/hc_noderemovechild.xhtml-disabled: Removed.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11329 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Bug #: 5310
Submitted by: mitz
Reviewed by: hyatt
        Not possible to test (functionality shouldn't change).

        Switch QRegion from using NSBezierPath to CGPath
        http://bugzilla.opendarwin.org/show_bug.cgi?id=5310

        * kwq/KWQRegion.h:
        * kwq/KWQRegion.mm:
        (QRegion::QRegion):
        (QRegion::~QRegion):
        (QRegion::operator=):
        (QRegion::contains):
        (QRegion::translate):
        (QRegion::boundingRect):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11330 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Bug #: 5514
Submitted by: mitz
Reviewed by: ggaren
        Date conversion to local time gets the DST flag wrong sometimes
        http://bugzilla.opendarwin.org/show_bug.cgi?id=5514

        * kjs/date_object.cpp:
        (KJS::isTime_tSigned):
        (KJS::DateProtoFuncImp::callAsFunction):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11331 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Bug #: 5514
Submitted by: mitz
Reviewed by: ggaren
        Tests for: http://bugzilla.opendarwin.org/show_bug.cgi?id=5514

        * fast/js/date-DST-pre-1970-expected.txt: Added.
        * fast/js/date-DST-pre-1970.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11332 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Bug #: 5842
Submitted by: eseidel
Reviewed by: mjs
        3 test cases added to cover CSS updates and CDF support.
        Updated all test results for absolute bbox change.

        Fixed in this patch:
        - CSS dynamic updates
        - dynamic path data updates
        - first pass at CDF support
        http://bugzilla.opendarwin.org/show_bug.cgi?id=5842

        * kcanvas/KCanvasContainer.cpp:
        (KCanvasContainer::KCanvasContainer): make "replaced" element
        * kcanvas/device/quartz/KCanvasItemQuartz.mm:
        (KCanvasItemQuartz::paint): added parent offset ASSERT
        * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
        (KCanvasContainerQuartz::paint): account for parent offset
        (KCanvasContainerQuartz::absoluteTransform): reflect viewport
        * khtml/css/css_valueimpl.cpp: remove HTML special case
        (DOM::CSSMutableStyleDeclarationImpl::setChanged):
        * khtml/css/cssstyleselector.cpp: remove HTML special case
        (khtml::CSSStyleSelector::locateCousinList):
        * khtml/rendering/render_object.cpp:
        (RenderObject::containingBlock): special case KCanvasContainer
        * khtml/rendering/render_style.cpp:
        (RenderStyle::operator==): fix call into SVGRenderStyle
        (RenderStyle::inheritedNotEqual): calls into SVGRenderStyle
        (RenderStyle::diff): calls into SVGRenderStyle
        * ksvg2/css/SVGRenderStyle.cpp:
        (SVGRenderStyle::equals): include flags in comparison
        (SVGRenderStyle::inheritedNotEqual): added
        * ksvg2/css/SVGRenderStyle.h:
        * ksvg2/svg/SVGPathElementImpl.cpp:
        (KSVG::SVGPathElementImpl::parseMappedAttribute): clear path first
        * ksvg2/svg/SVGStyledElementImpl.cpp:
        (SVGStyledElementImpl::attributeChanged): map to ksvg2 attributes
        * ksvg2/svg/SVGStyledElementImpl.h:


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        - fixed deployment builds

        * khtml/ecma/kjs_dom.cpp: (KJS::DOMDocument::getValueProperty):
        Put decoder local variable inside if statement.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        * dom/xhtml/level3/core/documentgetinputencoding01-expected.txt:
        Updated result to reflect the fact that this test now succeeds
        due to the fix for <http://bugzilla.opendarwin.org/show_bug.cgi?id=5715>.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11335 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Maciej.

        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4925
          HTMLMapElementImpl::mapMouseEvent can be implemented without a stack
        - did some other cleanup in this file

        * khtml/html/html_imageimpl.h: Removed unused currentImage function.
        * khtml/html/html_imageimpl.cpp: Bits of cleanup in many functins, and:
        (DOM::HTMLMapElementImpl::mapMouseEvent): Simplified by using traverseNextNode.
        (DOM::HTMLMapElementImpl::parseMappedAttribute): Fixed bug where parsing a
        name or attribute value with a "#" prefix would actually modify the value itself
        by changing the DOMString. Changed the code to make a copy in this case.
        (DOM::HTMLAreaElementImpl::getRegion): Rearranged to be more readable.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11336 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Geoff.

        - fixed <rdar://problem/4300202> JavaScript event keyCode/charCode/which is 25 for shift+tab, should be 9 (5678)
          also http://bugzilla.opendarwin.org/show_bug.cgi?id=5678

        * kwq/KWQEvent.mm:
        (WindowsKeyCodeForKeyEvent): Add case for tab key.
        (QKeyEvent::QKeyEvent): Force use of character code 9 for tab key regardless of
        what AppKit returns.
        * manual-tests/log-keypress-events.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Geoff.

        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=5679
          speed up QTime by removing unnecessary CFAbsoluteTimeGetGregorianDate

        * kwq/KWQDateTime.mm:
        (QTime::msec): Just multiply and mod the time in seconds, don't bother converting to
        a Gregorian date first, since that won't affect fractional seconds.
        (QTime::addMSecs): Multiply by 1/1000 instead of dividing by 1000.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11338 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Eric.

        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=5681
          font family management can be faster by avoiding NSString/autorelease

        * kwq/KWQFontFamily.h: Replace _NSFamily with _CFFamily.
        * kwq/KWQFontFamily.mm:
        (KWQFontFamily::KWQFontFamily): Ditto.
        (KWQFontFamily::operator=): Ditto.
        (KWQFontFamily::getNSFamily): More of the same.
        (KWQFontFamily::setFamily): Ditto.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11339 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Maciej.

        - fixed <rdar://problem/4089752> Duplicate method implementation for -[DOMDocument getComputedStyle::]
          also http://bugzilla.opendarwin.org/show_bug.cgi?5682

        * kwq/DOM.mm: Removed extra implementation of -[DOMDocument getComputedStyle::].
        * kwq/DOM-CSS.mm: (-[DOMDocument getComputedStyle::]): Copied slightly better implementation from
        DOM.mm in here.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        - fixed broken tree (from my last check-in)

        * kwq/DOM-CSS.mm: Added "using namespace DOM" and an import of "dom_docimpl.h".


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by Maciej.

        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?5683
          add code so we can use CFURL instead of NSURL for speed

        * kwq/KWQKURL.h: Added declaration of createCFURL function.
        * kwq/KWQKURL.mm:
        (KURL::createCFURL): Moved body of getNSURL in here.
        (KURL::getNSURL): Changed to createCFURL.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11342 268f45cc-cd09-0410-ab3c-d52691b4dbfc
	Changes by Mitz Pettel, reviewed by Maciej.

	- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=5829 (REGRESSION: cursor tracking and hit
	testing in scrollable block don't take borders into account)

	* khtml/rendering/render_layer.cpp:
        (khtml::RenderLayer::hitTestLayer): don't add left and bottom borders when hit testing
	* manual-tests/scrollbar-hittest.html: Added.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11343 268f45cc-cd09-0410-ab3c-d52691b4dbfc
fixed a typo in the Changelog


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11344 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by John Sullivan.

        Test cases added: None.  Manual testing is way to awkward, and automated testing
        is not possible.  See following bug...
        <rdar://problem/4256882> Need automated testing support for accessibility APIs

        * khtml/html/html_formimpl.cpp:
        (DOM::HTMLGenericFormElementImpl::removedFromTree):
	Replace tab with spaces.  Remove braces from one line "if".
        * kwq/KWQAccObject.mm:
        (-[KWQAccObject detach]):
	Send unregisterUniqueIdForUIElement unconditionally, for safety.
        (-[KWQAccObject dealloc]):
	New.  Send [self detach] so KWQObject gets unregistered and other cleanup happens as well.
        (CreateCGColorIfDifferent):
	Replace tab with spaces.
        (-[KWQAccObject removeAccObjectID]):
	Early to prevent a crash if called on a detached KWQAccObject (i.e. m_renderer == 0).


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
        Reviewed by John Sullivan, Eric Seidel

	<rdar://problem/4340787> Safari sometimes creates 2 instances of plug-ins

        * WebView.subproj/WebFrameView.m:
        (-[WebFrameView _makeDocumentViewForDataSource:]):
	Instead of creating a new WebDocumentView, use the WebDataSource's representation if it is a WebDocumentView
	of the appropriate class.  Right now, this can only happen when the loading document is a standalone WebKit
	plugin, because WebPluginDocumentView is both the WebDocumentView and the WebDocumentRepresentation for that
	kind of page load.

	I have verified that this does not affect other kinds of page loads; in all other cases, the representation
	class is distinct from the document view class.

	I talked with Chris Blumenberg about this change (he knows this code), and he agreed that this is the right
	approach.


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Bug #: 5873
Submitted by: eseidel
Reviewed by: darin
        Update scripts to run SVG tests automatically (w/o --svg) if
        WebCore is built with SVG support.

        * Scripts/build-drawtest: SVG support required
        * Scripts/build-dumpkcanvastree: Removed.
        * Scripts/run-drawtest: SVG support required to run
        * Scripts/run-webkit-tests: pass *.svg files if WebCore has support
        * Scripts/webkitdirs.pm: changed CheckWebCoreSVGSupport


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@11347 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Bug #: 5873
Submitted by: eseidel
Reviewed by: darin
        Fixes W3C events tests, no additional tests necessary.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=5876

        * ksvg2/css/svg.css: added namespace declaration
        * ksvg2/svg/SVGElementImpl.cpp:
        (SVGElementImpl::parseMappedAttribute): added support of on* attrs


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