WebKit-https.git
16 years agoBug #: 3674
eseidel [Thu, 7 Jul 2005 06:25:02 +0000 (06:25 +0000)]
Bug #: 3674
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQPoint.mm:
        (QPoint::operator CGPoint): Added.
        (operator*): Added.
        (operator<<): Added.
        * kwq/KWQPointArray.h: Added.
        (QPoint::setX): Added.
        (QPoint::setY): Added.
        (QPoint::isNull): Added.
        (QPoint::operator -=): Added.
        * kwq/KWQPointArray.mm: Added.
        (QPointArray::QPointArray): Added.
        (QPointArray::copy): Added.
        (QPointArray::boundingRect): Added.
        (QPointArray::point): Added.
        Necessary additions for KDOM/KSVG/KCanvas
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3674

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

16 years ago Reviewed by hyatt.
mjs [Thu, 7 Jul 2005 05:42:26 +0000 (05:42 +0000)]
    Reviewed by hyatt.

        - fixed size() and contains() methods on HashSet (they would not compile before)

        * khtml/misc/hashset.h:
        (khtml::::size):
        * khtml/misc/hashtable.h:
        (khtml::::contains):

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

16 years agoBug #: 3859
eseidel [Thu, 7 Jul 2005 03:07:18 +0000 (03:07 +0000)]
Bug #: 3859
Submitted by: eseidel
Reviewed by: mjs
        * ForwardingHeaders/kjs/ustring.h: Added.
        Used by kdom/Helper.cc
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3859

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

16 years ago Reviewed by adele.
ggaren [Wed, 6 Jul 2005 18:49:06 +0000 (18:49 +0000)]
    Reviewed by adele.

        Modified layout tests to match rollout of changes for <rdar://problem/3792529>
        REGRESSION (Mail): Tabs do not work the way they did in Panther

        Tests modified:
        * layout-tests/editing/deleting/delete-tab-001-expected.txt:
        * layout-tests/editing/deleting/delete-tab-002-expected.txt:
        * layout-tests/editing/deleting/delete-tab-003-expected.txt:
        * layout-tests/editing/deleting/delete-tab-004-expected.txt:
        * layout-tests/editing/inserting/insert-tab-001-expected.txt:
        * layout-tests/editing/inserting/insert-tab-002-expected.txt:
        * layout-tests/editing/inserting/insert-tab-003-expected.txt:
        * layout-tests/editing/inserting/insert-tab-004-expected.txt:
        * layout-tests/fast/dom/quadraticCurveTo-expected.txt:
        * layout-tests/fast/js/string-replace-2-expected.txt:
        * layout-tests/fast/table/039-expected.txt:
        * layout-tests/fast/table/border-collapsing/004-expected.txt:
        * layout-tests/fast/tokenizer/script_extra_close-expected.txt:

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

16 years ago Even yet still more gcc4 build fixes.
mjs [Wed, 6 Jul 2005 08:38:08 +0000 (08:38 +0000)]
    Even yet still more gcc4 build fixes.

        * khtml/misc/hashset.h:
        (khtml::convertAdapter):
        (khtml::::insert):

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

16 years ago More ggc-4-only build fixage.
mjs [Wed, 6 Jul 2005 07:35:02 +0000 (07:35 +0000)]
    More ggc-4-only build fixage.

        * khtml/misc/hashtraits.h:

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

16 years ago Fix additional gcc-4-only build breakage.
mjs [Wed, 6 Jul 2005 07:11:17 +0000 (07:11 +0000)]
    Fix additional gcc-4-only build breakage.

        * khtml/misc/pointerhash.h:
        (khtml::PointerHashConstIteratorAdapter::operator*):

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

16 years ago Forgot to commit a file. Fix for build breakage.
mjs [Wed, 6 Jul 2005 06:23:15 +0000 (06:23 +0000)]
    Forgot to commit a file. Fix for build breakage.

        * ForwardingHeaders/misc/pointerhash.h: Added.

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

16 years ago - remove stat dumping (accidentally left enabled in last patch)
mjs [Wed, 6 Jul 2005 03:30:16 +0000 (03:30 +0000)]
- remove stat dumping (accidentally left enabled in last patch)

Unreviewed since this was a mistake in the last checkin.

        * khtml/misc/hashtable.h:

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

16 years ago Reviewed by hyatt.
mjs [Wed, 6 Jul 2005 01:28:44 +0000 (01:28 +0000)]
    Reviewed by hyatt.

        Numerous hash code improvements:

- added HashMap and the required support for it in HashTable
- convert to using deleted sentinels and double hashing instead of linear
probing and reinsert on delete
- add support for traits so that empty and deleted values can be customized
per type
- make insert return a pair of an iterator and a bool even at the API level
- converted some code to use HashMap
- added standard hash and equal functions for some types, plus case insensitive ones
- lots of assorted code cleanup
- pass hash functions as classes with two static functions instead of as functions

        * khtml/css/cssstyleselector.cpp:
        (khtml::CSSRuleSet::CSSRuleSet): Use HashMap instead of QPtrDict.
        (khtml::CSSRuleSet::~CSSRuleSet): ditto
        (khtml::CSSRuleSet::addToRuleSet): ditto
        (khtml::CSSRuleSet::addRule): ditto
        * khtml/css/cssstyleselector.h:
        (khtml::CSSRuleSet::getIDRules): ditto
        (khtml::CSSRuleSet::getClassRules): ditto
        (khtml::CSSRuleSet::getTagRules): ditto
        * khtml/editing/jsediting.cpp:
        (DOM::DocumentImpl::commandImp): ditto
        * khtml/misc/hashfunctions.h: Added. Standard hash functions.
        (khtml::defaultEqual):
        (khtml::pointerHash<4>):
        (khtml::pointerHash<8>):
        (khtml::defaultHash<void *>):
        (khtml::defaultHash<DOM::DOMStringImpl *>):
        (khtml::caseInsensitiveHash):
        (khtml::caseInsensitiveEqual):
        * WebCore.pbproj/project.pbxproj:
        * khtml/misc/hashmap.h: Added.
        (khtml::HashMap::HashMap):
        (khtml::HashMap::size):
        (khtml::HashMap::capacity):
        (khtml::HashMap::isEmpty):
        (khtml::HashMap::begin):
        (khtml::HashMap::end):
        (khtml::HashMap::find):
        (khtml::HashMap::contains):
        (khtml::HashMap::insert):
        (khtml::HashMap::get):
        (khtml::HashMap::remove):
        (khtml::HashMap::clear):
        (khtml::HashMap::extractKey):
        * khtml/misc/hashset.h:
        (khtml::identityExtract):
        (khtml::::size):
        (khtml::::capacity):
        (khtml::::isEmpty):
        (khtml::::begin):
        (khtml::::end):
        (khtml::::find):
        (khtml::::contains):
        (khtml::::insert):
        (khtml::::remove):
        (khtml::::clear):
        (khtml::::convertAdapter):
        * khtml/misc/hashtable.cpp:
        (khtml::HashTableStats::~HashTableStats):
        * khtml/misc/hashtable.h:
        (khtml::HashTableIterator::HashTableIterator):
        (khtml::HashTableIterator::skipEmptyBuckets):
        (khtml::HashTableConstIterator::HashTableConstIterator):
        (khtml::HashTableConstIterator::skipEmptyBuckets):
        (khtml::HashTable::HashTable):
        (khtml::HashTable::insert):
        (khtml::HashTable::isEmptyBucket):
        (khtml::HashTable::isDeletedBucket):
        (khtml::HashTable::isEmptyOrDeletedBucket):
        (khtml::HashTable::identityConvert):
        (khtml::HashTable::extractKey):
        (khtml::HashTable::lookup):
        (khtml::HashTable::shouldExpand):
        (khtml::HashTable::mustRehashInPlace):
        (khtml::HashTable::clearBucket):
        (khtml::HashTable::deleteBucket):
        (khtml::HashTable::makeLookupResult):
        (khtml::HashTable::makeIterator):
        (khtml::HashTable::makeConstIterator):
        (khtml::::lookup):
        (khtml::::insert):
        (khtml::::reinsert):
        (khtml::::find):
        (khtml::::contains):
        (khtml::::remove):
        (khtml::::allocateTable):
        (khtml::::expand):
        (khtml::::rehash):
        (khtml::::clear):
        (khtml::::HashTable):
        (khtml::::swap):
        (khtml::::operator):
        (khtml::::checkConsistency):
        (khtml::::checkConsistencyExceptSize):
        * khtml/misc/hashtraits.h: Added.
        (khtml::HashTraits::emptyValue):
        (khtml::):
        (khtml::PairHashTraits::emptyValue):
        (khtml::PairHashTraits::deletedValue):
        * ForwardingHeaders/misc/hashmap.h: Added.
        * ForwardingHeaders/misc/hashset.h: Added.
        * WebCore.pbproj/project.pbxproj: Added new files.
        * khtml/misc/pointerhash.h: Added.
        (khtml::PointerHashIteratorAdapter::PointerHashIteratorAdapter):
        (khtml::PointerHashIteratorAdapter::operator*):
        (khtml::PointerHashIteratorAdapter::operator->):
        (khtml::PointerHashIteratorAdapter::operator++):
        (khtml::PointerHashIteratorAdapter::operator==):
        (khtml::PointerHashIteratorAdapter::operator!=):
        (khtml::PointerHashConstIteratorAdapter::PointerHashConstIteratorAdapter):
        (khtml::PointerHashConstIteratorAdapter::operator*):
        (khtml::PointerHashConstIteratorAdapter::operator->):
        (khtml::PointerHashConstIteratorAdapter::operator++):
        (khtml::PointerHashConstIteratorAdapter::operator==):
        (khtml::PointerHashConstIteratorAdapter::operator!=):
        (khtml::):

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

16 years ago Rolled in patch by opendarwin.org@mitzpettel.com
ggaren [Wed, 6 Jul 2005 00:21:53 +0000 (00:21 +0000)]
    Rolled in patch by opendarwin.org@mitzpettel.com

        -fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=3733
        Incorrect bidi layout of ETs, ANs, and ENs in some contexts

        Reviewed by hyatt.

        * khtml/rendering/bidi.cpp:
        (khtml::appendRun):
        (khtml::RenderBlock::bidiReorderLine):
        (khtml::RenderBlock::layoutInlineChildren):

        Modified test results to account for run splitting.
        This is a known bug that we need to fix separately:
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3838

        * layout-tests/css1/basic/containment-expected.txt:
        * layout-tests/css1/box_properties/float_on_text_elements-expected.txt:
        * layout-tests/css1/font_properties/font-expected.txt:
        * layout-tests/css1/formatting_model/inline_elements-expected.txt:
        * layout-tests/css1/pseudo/anchor-expected.txt:
        * layout-tests/editing/deleting/delete-tab-001-expected.txt:
        * layout-tests/editing/deleting/delete-tab-002-expected.txt:
        * layout-tests/editing/deleting/delete-tab-003-expected.txt:
        * layout-tests/editing/deleting/delete-tab-004-expected.txt:
        * layout-tests/editing/inserting/insert-tab-001-expected.txt:
        * layout-tests/editing/inserting/insert-tab-002-expected.txt:
        * layout-tests/editing/inserting/insert-tab-003-expected.txt:
        * layout-tests/editing/inserting/insert-tab-004-expected.txt:
        * layout-tests/editing/style/relative-font-size-change-001-expected.txt:
        * layout-tests/editing/style/relative-font-size-change-004-expected.txt:
        * layout-tests/fast/block/basic/018-expected.txt:
        * layout-tests/fast/dom/quadraticCurveTo-expected.txt:
        * layout-tests/fast/invalid/nestedh3s-expected.txt:
        * layout-tests/fast/js/string-replace-2-expected.txt:
        * layout-tests/fast/lists/003-expected.txt:
        * layout-tests/fast/selectors/166-expected.txt:
        * layout-tests/fast/table/039-expected.txt:
        * layout-tests/fast/table/border-collapsing/004-expected.txt:
        * layout-tests/fast/text/basic/004-expected.txt:
        * layout-tests/fast/tokenizer/script_extra_close-expected.txt:

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

16 years agoWebCore:
adele [Tue, 5 Jul 2005 23:21:31 +0000 (23:21 +0000)]
WebCore:

       Rolling out changes for <rdar://problem/3792529> REGRESSION (Mail): Tabs do not work the way they did in Panther (especially useful in plain text mail)
       since it caused a 2% performance regression.

        * khtml/editing/apply_style_command.cpp:
        (khtml::createStyleSpanElement):
        (khtml::ApplyStyleCommand::removeCSSStyle):
        (khtml::ApplyStyleCommand::addInlineStyleIfNeeded):
        * khtml/editing/delete_selection_command.cpp:
        (khtml::DeleteSelectionCommand::saveTypingStyleState):
        * khtml/editing/edit_command.cpp:
        (khtml::EditCommand::styleAtPosition):
        * khtml/editing/html_interchange.h:
        * khtml/editing/htmlediting.cpp:
        (khtml::isSpecialElement):
        * khtml/editing/htmlediting.h:
        * khtml/editing/insert_text_command.cpp:
        (khtml::InsertTextCommand::prepareForTextInsertion):
        (khtml::InsertTextCommand::input):
        * khtml/editing/insert_text_command.h:
        * khtml/editing/markup.cpp:
        (khtml::createFragmentFromText):
        * khtml/editing/replace_selection_command.cpp:
        (khtml::ReplacementFragment::removeStyleNodes):
        * khtml/html/htmltokenizer.cpp:
        (khtml::HTMLTokenizer::begin):
        (khtml::HTMLTokenizer::processListing):
        (khtml::HTMLTokenizer::parseEntity):
        (khtml::HTMLTokenizer::parseTag):
        (khtml::HTMLTokenizer::addPending):
        (khtml::HTMLTokenizer::write):
        * khtml/html/htmltokenizer.h:
        (khtml::HTMLTokenizer::):
        * khtml/rendering/bidi.cpp:
        (khtml::addRun):
        (khtml::RenderBlock::computeHorizontalPositionsForLine):
        (khtml::RenderBlock::skipWhitespace):
        (khtml::RenderBlock::findNextLineBreak):
        (khtml::RenderBlock::checkLinesForTextOverflow):
        * khtml/rendering/break_lines.cpp:
        (khtml::isBreakable):
        * khtml/rendering/font.cpp:
        (Font::drawHighlightForText):
        (Font::drawText):
        (Font::floatWidth):
        (Font::floatCharacterWidths):
        (Font::checkSelectionPoint):
        (Font::width):
        * khtml/rendering/font.h:
        * khtml/rendering/render_block.cpp:
        (khtml::stripTrailingSpace):
        (khtml::RenderBlock::calcInlineMinMaxWidth):
        * khtml/rendering/render_block.h:
        * khtml/rendering/render_br.h:
        (khtml::RenderBR::width):
        * khtml/rendering/render_flexbox.cpp:
        (khtml::RenderFlexibleBox::layoutVerticalBox):
        * khtml/rendering/render_image.cpp:
        (RenderImage::setPixmap):
        (RenderImage::paint):
        * khtml/rendering/render_line.cpp:
        (khtml::EllipsisBox::paint):
        * khtml/rendering/render_line.h:
        (khtml::InlineBox::width):
        (khtml::InlineBox::xPos):
        (khtml::InlineBox::yPos):
        (khtml::InlineBox::height):
        (khtml::InlineBox::baseline):
        * khtml/rendering/render_list.cpp:
        (RenderListMarker::paint):
        (RenderListMarker::calcMinMaxWidth):
        * khtml/rendering/render_object.cpp:
        (RenderObject::recalcMinMaxWidths):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_replaced.cpp:
        * khtml/rendering/render_text.cpp:
        (InlineTextBox::selectionRect):
        (InlineTextBox::paint):
        (InlineTextBox::paintSelection):
        (InlineTextBox::paintMarkedTextBackground):
        (InlineTextBox::offsetForPosition):
        (InlineTextBox::positionForOffset):
        (RenderText::cacheWidths):
        (RenderText::widthFromCache):
        (RenderText::trimmedMinMaxWidth):
        (RenderText::calcMinMaxWidth):
        (RenderText::containsOnlyWhitespace):
        (RenderText::width):
        * khtml/rendering/render_text.h:
        * kwq/KWQFontMetrics.h:
        * kwq/KWQFontMetrics.mm:
        (QFontMetrics::width):
        (QFontMetrics::charWidth):
        (QFontMetrics::floatWidth):
        (QFontMetrics::floatCharacterWidths):
        (QFontMetrics::checkSelectionPoint):
        (QFontMetrics::boundingRect):
        (QFontMetrics::size):
        * kwq/KWQPainter.h:
        * kwq/KWQPainter.mm:
        (QPainter::drawText):
        (QPainter::drawHighlightForText):
        * kwq/WebCoreTextRenderer.h:
        * kwq/WebCoreTextRendererFactory.mm:
        (WebCoreInitializeEmptyTextStyle):
        * layout-tests/editing/deleting/delete-tab-001-expected.txt:
        * layout-tests/editing/deleting/delete-tab-001.html:
        * layout-tests/editing/deleting/delete-tab-002-expected.txt:
        * layout-tests/editing/deleting/delete-tab-002.html:
        * layout-tests/editing/deleting/delete-tab-003-expected.txt:
        * layout-tests/editing/deleting/delete-tab-003.html:
        * layout-tests/editing/deleting/delete-tab-004-expected.txt:
        * layout-tests/editing/deleting/delete-tab-004.html:
        * layout-tests/editing/inserting/insert-tab-001-expected.txt:
        * layout-tests/editing/inserting/insert-tab-002-expected.txt:
        * layout-tests/editing/inserting/insert-tab-003-expected.txt:
        * layout-tests/editing/inserting/insert-tab-004-expected.txt:
        * layout-tests/fast/dom/quadraticCurveTo-expected.txt:
        * layout-tests/fast/js/string-replace-2-expected.txt:
        * layout-tests/fast/table/039-expected.txt:
        * layout-tests/fast/table/border-collapsing/004-expected.txt:
        * layout-tests/fast/tokenizer/script_extra_close-expected.txt:

WebKit:

       Rolling out changes for <rdar://problem/3792529> REGRESSION (Mail): Tabs do not work the way they did in Panther (especially useful in plain text mail)
       since it caused a 2% performance regression.

        * WebCoreSupport.subproj/WebTextRenderer.m:
        (isSpace):
        (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
        (-[WebTextRenderer _CG_floatWidthForRun:style:widths:fonts:glyphs:startPosition:numGlyphs:]):
        (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]):
        (-[WebTextRenderer _CG_pointToOffset:style:position:reversed:includePartialGlyphs:]):
        (initializeCharacterWidthIterator):
        (widthForNextCharacter):

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

16 years agoBug #: 3851
eseidel [Tue, 5 Jul 2005 21:28:55 +0000 (21:28 +0000)]
Bug #: 3851
Submitted by: eseidel
Reviewed by: mjs
Fixed Bogus ChangeLog entry.
        * kwq/KWQPalette.h:
        (QColorGroup::): Enum values added for KDOM.
        (QPalette::): Enum values added for KDOM.
        * kwq/KWQPalette.mm: Added.
        (QPalette::setColor): Added (only supports "active").
        Many of these enum values (particularly ColorGroup)
        may be removed as KDOM gets better integrated with our tree.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3851

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

16 years ago Adding colspan test for HTMLTableElement and bdo test for HTMLElement.
bdakin [Tue, 5 Jul 2005 21:10:47 +0000 (21:10 +0000)]
Adding colspan test for HTMLTableElement and bdo test for HTMLElement.

        Reviewed by NOBODY Adele.

        Test cases added: (NONE)

        * ChangeLog:
        * layout-tests/fast/dom/HTMLElement/bdo-expected.txt: Added.
        * layout-tests/fast/dom/HTMLElement/bdo.html: Added.
        * layout-tests/fast/dom/HTMLTableElement/colSpan-expected.txt: Added.
        * layout-tests/fast/dom/HTMLTableElement/colSpan.html: Added.

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

16 years ago Reviewed by Chris Blumenberg.
sullivan [Tue, 5 Jul 2005 18:37:37 +0000 (18:37 +0000)]
    Reviewed by Chris Blumenberg.

        - fixed <rdar://problem/4158230> Zoom In/Zoom Out in PDF context menu don't update window's notion of text size

        * WebView.subproj/WebPDFView.m:
        (-[WebPDFView _menuItemsFromPDFKitForEvent:]):
        Redirect Actual Size, Zoom In, and Zoom Out context menu items so that they behave exactly like Make Text Standard Size,
        Make Text Larger, and Make Text Smaller.

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

16 years ago -rolled out patch for
ggaren [Tue, 5 Jul 2005 18:37:32 +0000 (18:37 +0000)]
    -rolled out patch for
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3826
        because it fails to build w/gcc3.3 (previous fix didn't completely work)

        * kwq/KWQDef.h:

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

16 years ago -fixed failed build introduced by fix to
ggaren [Tue, 5 Jul 2005 18:09:38 +0000 (18:09 +0000)]
    -fixed failed build introduced by fix to
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3826

        Reviewed by sullivan.

        * kwq/KWQDef.h: changed 64 bit typedef to match def in sys/types.h

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

16 years agoBug #: 3851
eseidel [Tue, 5 Jul 2005 08:22:21 +0000 (08:22 +0000)]
Bug #: 3851
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQPalette.h:
        (QColorGroup::): Enum values added for KDOM.
        (QPalette::): Enum values added for KDOM.
        * kwq/KWQPalette.mm: Added.
        (QPalette::setColor): Added (only supports "active").
        Many of these enum values (particularly ColorGroup)
        may be removed as KDOM gets better integrated with our tree.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3851

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

16 years agoBug #: 3822
eseidel [Tue, 5 Jul 2005 08:17:33 +0000 (08:17 +0000)]
Bug #: 3822
Submitted by: eseidel
Reviewed by: mjs
        * ForwardingHeaders/kinstance.h: Added.
        * ForwardingHeaders/kio/netaccess.h: Added.
        * ForwardingHeaders/kjs/scope_chain.h: Added.
        * ForwardingHeaders/qdir.h: Added.
        * ForwardingHeaders/qglobal.h: Added.
        For KDOM.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3822

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

16 years agoBug #: 3826
eseidel [Tue, 5 Jul 2005 08:09:40 +0000 (08:09 +0000)]
Bug #: 3826
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQDef.h: 64bit types added
        (qRound): For kdom
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3826

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

16 years agoBug #: 3828
eseidel [Tue, 5 Jul 2005 08:04:50 +0000 (08:04 +0000)]
Bug #: 3828
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQDateTime.h: Necessary KDOM additions.
        (QTime::currentTime): Added.
        * kwq/KWQDateTime.mm:
        (QTime::addMSecs): Added.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3828

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

16 years agoBug #: 3821
eseidel [Tue, 5 Jul 2005 07:57:47 +0000 (07:57 +0000)]
Bug #: 3821
Submitted by: eseidel
Reviewed by: mjs
        * ForwardingHeaders/qwmatrix.h: Added.
        * WebCore.pbproj/project.pbxproj: Added KWQMatrix.*
        * khtml/rendering/render_image.cpp: Now includes qwmatrix.h
        * kwq/KWQPixmap.h: Removed QWMatrix stub.
        * kwq/KWQWMatrix.h: Added.
        (QWMatrix::m11): simple accessors.
        (QWMatrix::m12):
        (QWMatrix::m21):
        (QWMatrix::m22):
        (QWMatrix::dx):
        (QWMatrix::dy):
        * kwq/KWQWMatrix.mm: Added.
        (QWMatrix::QWMatrix): All are standard Qt functions.
        (QWMatrix::setMatrix):
        (QWMatrix::map):
        (QWMatrix::isIdentity):
        (QWMatrix::reset):
        (QWMatrix::scale):
        (QWMatrix::rotate):
        (QWMatrix::translate):
        (QWMatrix::shear):
        (QWMatrix::det):
        (QWMatrix::isInvertible):
        (QWMatrix::invert):
        (QWMatrix::operator CGAffineTransform):
        (QWMatrix::operator== ):
        (QWMatrix::operator*= ):
        Simple white-room QWMatrix implementation entirely
        based on CGAffineTransform.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3821

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

16 years agoBug #: 3850
eseidel [Tue, 5 Jul 2005 07:13:03 +0000 (07:13 +0000)]
Bug #: 3850
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQPtrList.h: additions necessary for kdom.
        (QPtrList::findRef): added.
        (QPtrList::begin): added.
        (QPtrList::end): added.
        (QPtrListIterator::operator*): added.
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3850

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

16 years ago Expected results for layout tests from last patch.
mjs [Mon, 4 Jul 2005 13:11:25 +0000 (13:11 +0000)]
    Expected results for layout tests from last patch.

        * layout-tests/fast/js/eval-var-decl-expected.txt: Added.
        * layout-tests/fast/js/has-own-property-expected.txt: Added.

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

16 years agoJavaScriptCore:
mjs [Sun, 3 Jul 2005 10:47:58 +0000 (10:47 +0000)]
JavaScriptCore:

Original patch from Mark Rowe <opendarwin.org@bdash.net.nz>, reviewed by me.
Fixes to patch by me, reviewed by John Sullivan.

- fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3293

        Test cases added:
        * tests/mozilla/expected.html: Two tests newly pass.

        * bindings/objc/objc_runtime.h:
        * bindings/objc/objc_runtime.mm:
        (ObjcFallbackObjectImp::hasOwnProperty):
        * bindings/runtime_array.cpp:
        (RuntimeArrayImp::hasOwnProperty):
        * bindings/runtime_array.h:
        * bindings/runtime_object.cpp:
        (RuntimeObjectImp::hasOwnProperty):
        * bindings/runtime_object.h:
        * kjs/array_instance.h:
        * kjs/array_object.cpp:
        (ArrayInstanceImp::hasOwnProperty):
        * kjs/function.cpp:
        (KJS::FunctionImp::hasOwnProperty):
        (KJS::ActivationImp::hasOwnProperty):
        * kjs/function.h:
        * kjs/lookup.h:
        * kjs/object.cpp:
        (KJS::ObjectImp::hasProperty):
        (KJS::ObjectImp::hasOwnProperty):
        * kjs/object.h:
        (KJS::Object::hasOwnProperty):
        * kjs/object_object.cpp:
        (ObjectPrototypeImp::ObjectPrototypeImp):
        (ObjectProtoFuncImp::call):
        * kjs/object_object.h:
        (KJS::ObjectProtoFuncImp::):
        * kjs/string_object.cpp:
        (StringInstanceImp::hasOwnProperty):
        * kjs/string_object.h:

WebCore:

Original patch from Mark Rowe <opendarwin.org@bdash.net.nz>, reviewed by me.
Fixes to patch by me, reviewed by John Sullivan.

- fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3293

        Test cases added:
        * layout-tests/fast/js/has-own-property.html: Added - tests this change.
        * layout-tests/fast/js/eval-var-decl.html: Added - test depends on this change.

        * khtml/ecma/kjs_css.cpp:
        (KJS::DOMCSSStyleDeclaration::hasOwnProperty):
        * khtml/ecma/kjs_css.h:
        * khtml/ecma/kjs_dom.cpp:
        (KJS::DOMNodeList::hasOwnProperty):
        (KJS::DOMElement::tryGet):
        (KJS::DOMNamedNodeMap::hasOwnProperty):
        * khtml/ecma/kjs_dom.h:
        * khtml/ecma/kjs_html.cpp:
        (KJS::HTMLDocument::hasOwnProperty):
        (KJS::HTMLDocument::tryGet):
        (KJS::KJS::HTMLElement::hasOwnProperty):
        (KJS::KJS::HTMLCollection::hasOwnProperty):
        * khtml/ecma/kjs_html.h:
        * khtml/ecma/kjs_window.cpp:
        (KJS::Window::hasOwnProperty):
        (KJS::Konqueror::hasOwnProperty):
        * khtml/ecma/kjs_window.h:

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

16 years agoBug #: 3825
eseidel [Sun, 3 Jul 2005 10:13:51 +0000 (10:13 +0000)]
Bug #: 3825
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQTimer.h:
        * kwq/KWQTimer.mm:
        (QTimer::QTimer): added parent pointer (and warning)
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3825

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

16 years agoBug #: 3823
eseidel [Sun, 3 Jul 2005 10:05:08 +0000 (10:05 +0000)]
Bug #: 3823
Submitted by: eseidel
Reviewed by: mjs
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::setDocumentChanged): fixed to use new API
        * kwq/KWQKStaticDeleter.h:
        (KStaticDeleter::setObject): fixed to take 3rd argument
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3823

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

16 years agoBug #: 3832
eseidel [Sun, 3 Jul 2005 09:58:32 +0000 (09:58 +0000)]
Bug #: 3832
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQValueList.h:
        (QValueList::find): KDOM support
        (QValueList::constBegin): KDE compatibility
        (QValueList::constEnd): KDE compatibility
        * kwq/KWQValueListImpl.h:
        * kwq/KWQValueListImpl.mm:
        (KWQValueListImpl::findEqualNode): KDOM support
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3832

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

16 years agoBug #: 3827
eseidel [Sun, 3 Jul 2005 09:51:34 +0000 (09:51 +0000)]
Bug #: 3827
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQFontMetrics.h:
        * kwq/KWQFontMetrics.mm:
        (QFontMetrics::boundingRect): added boundingRect(QChar)
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3827

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

16 years agoBug #: 3831
eseidel [Sun, 3 Jul 2005 09:45:08 +0000 (09:45 +0000)]
Bug #: 3831
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQListImpl.h:
        * kwq/KWQListImpl.mm:
        (KWQListImpl::findRef): Added to support
        KDOM::NodeImpl::compareDocumentPosition(NodeImpl *other)

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

16 years agoBug #: 3830
eseidel [Sun, 3 Jul 2005 09:38:03 +0000 (09:38 +0000)]
Bug #: 3830
Submitted by: eseidel
Reviewed by: mjs
        * ForwardingHeaders/qintdict.h: maps to KWQIntDict.h
        * kwq/KWQIntDict.h: copy of KWQPtrDict.h replacing T * with int.

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

16 years agoBug #: 3824
eseidel [Sun, 3 Jul 2005 07:08:00 +0000 (07:08 +0000)]
Bug #: 3824
Submitted by: eseidel
Reviewed by: mjs
        * kwq/KWQPair.h: added newline, per mjs's request.

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

16 years agoBug #: 3824
eseidel [Sun, 3 Jul 2005 07:03:14 +0000 (07:03 +0000)]
Bug #: 3824
Submitted by: eseidel
Reviewed by: mjs
        * ForwardingHeaders/qpair.h: Added.
        * kwq/KWQPair.h: Added.
Qt compatible QPair, built on std::pair
http://bugzilla.opendarwin.org/show_bug.cgi?id=3824

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

16 years ago Adding createCaption test for HTMLTableElement.
bdakin [Fri, 1 Jul 2005 22:12:26 +0000 (22:12 +0000)]
    Adding createCaption test for HTMLTableElement.

        Reviewed by Adele (sort of).

        Test cases added:

        * layout-tests/fast/dom/HTMLTableElement/createCaption-expected.txt: Added.
        * layout-tests/fast/dom/HTMLTableElement/createCaption.html: Added.

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

16 years ago Reviewed by Darin Adler.
sullivan [Fri, 1 Jul 2005 21:30:52 +0000 (21:30 +0000)]
    Reviewed by Darin Adler.

        - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3711: Displayed PDF have limited options in contextual menu

        This was a problem with using Tiger's version of Safari with tip of tree WebKit.

        * WebView.subproj/WebPDFView.m:
        (-[WebPDFView _anyPDFTagsFoundInMenu:]):
        new method, returns YES if the menu contains any items with any of the new PDF-related tags.
        (-[WebPDFView menuForEvent:]):
        If the executable was linked on Tiger or older (but it will never be older, since this code is
        new to Tiger), force all of the PDF-related items into the menu if none of them were there
        after processing by the delegate.

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

16 years ago Moving dom tests around to conform to new directory structure
ggaren [Fri, 1 Jul 2005 21:07:03 +0000 (21:07 +0000)]
    Moving dom tests around to conform to new directory structure
        specified in today's meeting.

        Reviewed by justing.

        Test cases added:

        * layout-tests/fast/dom/HTMLDocument/title-get-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/title-get.html: Added.
        * layout-tests/fast/dom/HTMLDocument/title-set-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/title-set.html: Added.
        * layout-tests/fast/dom/HTMLDocument/title/get-expected.txt: Removed.
        * layout-tests/fast/dom/HTMLDocument/title/get.html: Removed.
        * layout-tests/fast/dom/HTMLDocument/title/set-expected.txt: Removed.
        * layout-tests/fast/dom/HTMLDocument/title/set.html: Removed.
        * layout-tests/fast/dom/HTMLDocument/url-getset-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/url-getset.html: Added.
        * layout-tests/fast/dom/HTMLDocument/url/getset-expected.txt: Removed.
        * layout-tests/fast/dom/HTMLDocument/url/getset.html: Removed.
        * layout-tests/fast/dom/HTMLDocument/write-call-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/write-call.html: Added.
        * layout-tests/fast/dom/HTMLDocument/write-multiple-calls-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/write-multiple-calls.html: Added.
        * layout-tests/fast/dom/HTMLDocument/write/call-expected.txt: Removed.
        * layout-tests/fast/dom/HTMLDocument/write/call.html: Removed.
        * layout-tests/fast/dom/HTMLDocument/write/multiple-calls-expected.txt: Removed.
        * layout-tests/fast/dom/HTMLDocument/write/multiple-calls.html: Removed.
        * layout-tests/fast/dom/HTMLDocument/writeln-call-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/writeln-call.html: Added.
        * layout-tests/fast/dom/HTMLDocument/writeln-multiple-calls-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/writeln-multiple-calls.html: Added.
        * layout-tests/fast/dom/HTMLDocument/writeln/call-expected.txt: Removed.
        * layout-tests/fast/dom/HTMLDocument/writeln/call.html: Removed.
        * layout-tests/fast/dom/HTMLDocument/writeln/multiple-calls-expected.txt: Removed.
        * layout-tests/fast/dom/HTMLDocument/writeln/multiple-calls.html: Removed.

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

16 years ago - added WKExecutableLinkedInTigerOrEarlier
sullivan [Fri, 1 Jul 2005 20:07:51 +0000 (20:07 +0000)]
    - added WKExecutableLinkedInTigerOrEarlier

        * WebKitSystemInterface.h:
        * libWebKitSystemInterface.a:

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

16 years agoJavaScriptCore:
ggaren [Fri, 1 Jul 2005 18:56:38 +0000 (18:56 +0000)]
JavaScriptCore:

        -landed patch by Eric Seidel <macdome@opendarwin.org>

        -for http://bugzilla.opendarwin.org/show_bug.cgi?id=3657
        GroundWork:  Moving some functions from khtml->jsc following kjs TOT

        - no layout test necessary yet - only groundwork

        Reviewed by darin.

        * kjs/lookup.h:
        (KJS::cacheGlobalObject):

WebCore:

        -landed patch by Eric Seidel <macdome@opendarwin.org>

        -for http://bugzilla.opendarwin.org/show_bug.cgi?id=3657
        GroundWork:  Moving some functions from khtml->jsc following kjs TOT

        - no layout test necessary yet - only groundwork

        Reviewed by darin.

        * ForwardingHeaders/qintdict.h:
        * khtml/ecma/kjs_binding.h:

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

16 years agoJavaScriptCore:
ggaren [Fri, 1 Jul 2005 18:45:13 +0000 (18:45 +0000)]
JavaScriptCore:

        -landed patch by Carsten Guenther <cguenther@gmail.com>

        -fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=3477
        some US-centric date formats not parsed by JavaScript (clock at news8austin.com)

        -relevant tests:
               mozilla/ecma_3/Date/15.9.5.5.js
               layout-tests/fast/js/date-parse-test.html

        Reviewed by darin.

        * kjs/date_object.cpp:
        (formatLocaleDate):
        (day):
        (dayFromYear):
        (daysInYear):
        (timeFromYear):
        (yearFromTime):
        (weekDay):
        (timeZoneOffset):
        (DateProtoFuncImp::call):
        (DateObjectImp::construct):
        (KJS::parseDate):
        (ymdhms_to_seconds):
        (KJS::makeTime):
        (findMonth):
        (KJS::KRFCDate_parseDate):
        * kjs/date_object.h:
        * tests/mozilla/expected.html: updated expected results to reflect fix

WebCore:

        -landed patch by Carsten Guenther <cguenther@gmail.com>
        http://bugzilla.opendarwin.org/show_bug.cgi?id=3477

        -corrects errors in date layout test

        Reviewed by darin.

        Test cases modified:
        * layout-tests/fast/js/date-parse-test.html:

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

16 years ago -fixed <rdar://problem/4168186> JavaScript fails to throw exceptions
ggaren [Fri, 1 Jul 2005 17:47:12 +0000 (17:47 +0000)]
    -fixed <rdar://problem/4168186> JavaScript fails to throw exceptions
        for invalid return statements

        relevant tests:
            ecma/Statements/12.9-1-n.js
            ecma_2/Exceptions/lexical-052.js
            ecma_2/Exceptions/statement-009.js

        Reviewed by sullivan.

        * kjs/nodes.cpp:
        (ReturnNode::execute): now throws exception if return is not inside
        a function.

        * tests/mozilla/expected.html: updated to reflect fix

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

16 years ago Reviewed by sullivan.
ggaren [Fri, 1 Jul 2005 17:37:15 +0000 (17:37 +0000)]
    Reviewed by sullivan.

        * tests/mozilla/expected.html: Updated test results for last fix.

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

16 years ago -fixed <rdar://problem/4168161> JavaScript fails to throw an exception
ggaren [Fri, 1 Jul 2005 17:19:19 +0000 (17:19 +0000)]
    -fixed <rdar://problem/4168161> JavaScript fails to throw an exception
        for invalid function calls

        Reviewed by sullivan.

        Relevant mozilla test: ecma_3/Exceptions/regress-95101.js

        * kjs/nodes.cpp:
        (FunctionCallNode::evaluate): evaluate now checks for an exception
        after resolving a function name (in case the function is undefined)

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

16 years agoBug #: 3669
eseidel [Fri, 1 Jul 2005 10:03:04 +0000 (10:03 +0000)]
Bug #: 3669
Submitted by: eseidel
Reviewed by: darin
        * kwq/KWQSize.h:
        * kwq/KWQSize.mm:
        (QSize::operator CGSize): adding CGSize conversion support

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

16 years agoBug #: 3687
eseidel [Fri, 1 Jul 2005 09:55:02 +0000 (09:55 +0000)]
Bug #: 3687
Submitted by: eseidel
Reviewed by: darin
        * kjs/interpreter.h:
        (KJS::Context::curStmtFirstLine): stub for compatibility with KDE
        * kjs/value.h:
        (KJS::Value::isValid): compatibility with KDE
http://bugzilla.opendarwin.org/show_bug.cgi?id=3687

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

16 years agoBug #: 3771
eseidel [Fri, 1 Jul 2005 09:48:20 +0000 (09:48 +0000)]
Bug #: 3771
Submitted by: eseidel
Reviewed by: darin
        * kjs/create_hash_table: rolled in changes from KDE, including
-n <namespace> support from KDOM and support for newer comments
http://bugzilla.opendarwin.org/show_bug.cgi?id=3771

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

16 years ago Reviewed by John Sullivan.
darin [Fri, 1 Jul 2005 05:20:49 +0000 (05:20 +0000)]
    Reviewed by John Sullivan.

        - fixed <http://bugzilla.opendarwin.org/show_bug.cgi?id=3774>
          do renaming so that loaders are called "loader", not "client" or "delegate"

        * Misc.subproj/WebIconLoader.h:
        * Plugins.subproj/WebNetscapePluginStream.h:
        * Plugins.subproj/WebNetscapePluginStream.m:
        (-[WebNetscapePluginStream initWithRequest:pluginPointer:notifyData:sendNotification:]):
        (-[WebNetscapePluginStream start]):
        (-[WebNetscapePlugInStreamLoader didFinishLoading]):
        (-[WebNetscapePlugInStreamLoader didFailWithError:]):
        (-[WebNetscapePlugInStreamLoader cancelWithError:]):
        * WebCoreSupport.subproj/WebBridge.m:
        (-[WebBridge startLoadingResource:withURL:customHeaders:]):
        (-[WebBridge startLoadingResource:withURL:customHeaders:postData:]):
        (-[WebBridge canRunModalNow]):
        * WebCoreSupport.subproj/WebSubresourceClient.h: Removed.
        * WebCoreSupport.subproj/WebSubresourceClient.m: Removed.
        * WebCoreSupport.subproj/WebSubresourceLoader.h:
        * WebCoreSupport.subproj/WebSubresourceLoader.m:
        (-[WebSubresourceLoader initWithLoader:dataSource:]):
        (-[WebSubresourceLoader dealloc]):
        (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
        (+[WebSubresourceLoader startLoadingResource:withURL:customHeaders:referrer:forDataSource:]):
        (+[WebSubresourceLoader startLoadingResource:withURL:customHeaders:postData:referrer:forDataSource:]):
        (-[WebSubresourceLoader didReceiveResponse:]):
        (-[WebSubresourceLoader didReceiveData:lengthReceived:]):
        (-[WebSubresourceLoader didFinishLoading]):
        (-[WebSubresourceLoader didFailWithError:]):
        (-[WebSubresourceLoader cancel]):
        * WebKit.pbproj/project.pbxproj:
        * WebView.subproj/WebBaseResourceHandleDelegate.h: Removed.
        * WebView.subproj/WebBaseResourceHandleDelegate.m: Removed.
        * WebView.subproj/WebDataSource.m:
        (-[WebDataSourcePrivate dealloc]):
        (-[WebDataSource _setLoading:]):
        (-[WebDataSource _updateLoading]):
        (-[WebDataSource _setPrimaryLoadComplete:]):
        (-[WebDataSource _startLoading:]):
        (-[WebDataSource _addSubresourceLoader:]):
        (-[WebDataSource _removeSubresourceLoader:]):
        (-[WebDataSource _addPlugInStreamLoader:]):
        (-[WebDataSource _removePlugInStreamLoader:]):
        (-[WebDataSource _stopLoadingInternal]):
        (-[WebDataSource _defersCallbacksChanged]):
        (-[WebDataSource _stopLoadingWithError:]):
        (-[WebDataSource data]):
        (-[WebDataSource isLoading]):
        * WebView.subproj/WebDataSourcePrivate.h:
        * WebView.subproj/WebLoader.h:
        * WebView.subproj/WebLoader.m:
        * WebView.subproj/WebMainResourceClient.h: Removed.
        * WebView.subproj/WebMainResourceClient.m: Removed.
        * WebView.subproj/WebMainResourceLoader.h:
        * WebView.subproj/WebMainResourceLoader.m:
        (-[WebMainResourceLoader didReceiveResponse:]):

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

16 years ago -rolled in KDE fix to <rdar://problem/4167660> JavaScript fails to
ggaren [Fri, 1 Jul 2005 00:45:50 +0000 (00:45 +0000)]
    -rolled in KDE fix to <rdar://problem/4167660> JavaScript fails to
        throw exceptions for invalid break/continue statements

        No layout tests because it's already covered by the Mozilla suite

        Reviewed by mjs.

        * kjs/internal.h: LabelStack now tracks where you are relative to
        switch and iteration (loop) statements

        (KJS::LabelStack::LabelStack):
        (KJS::LabelStack::pushIteration):
        (KJS::LabelStack::popIteration):
        (KJS::LabelStack::inIteration):
        (KJS::LabelStack::pushSwitch):
        (KJS::LabelStack::popSwitch):
        (KJS::LabelStack::inSwitch):

        * kjs/nodes.cpp:
        These files were updated to use the new LabelStack:
        (DoWhileNode::execute):
        (WhileNode::execute):
        (ForNode::execute):
        (ForInNode::execute):
        (SwitchNode::execute):

        These files were updated to throw exceptions for invalid
        break/continue statements:
        (BreakNode::execute):
        (ContinueNode::execute):

        * tests/mozilla/expected.html: Updated expected results to reflect fix

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

16 years ago Changes based on input from Michael Kahl.
darin [Thu, 30 Jun 2005 23:18:33 +0000 (23:18 +0000)]
    Changes based on input from Michael Kahl.

        * Scripts/cvs-create-patch: Use "-f" so we are compatible with .cvsrc files that
        specify different style of "diff".
        * Scripts/webkitdirs.pm: Add missing call to determineBaseProductDir, so that
        determineConfigurationProductDir works in all cases.

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

16 years ago Reviewed by rjw.
kdecker [Thu, 30 Jun 2005 18:19:42 +0000 (18:19 +0000)]
    Reviewed by rjw.

fixed: <rdar://problem/4166838> failed assertion in`Interpreter::lockCount() > 0

no layout test added; this is in the bindings code.

        * bindings/objc/WebScriptObject.mm:
        (+[WebScriptObject _convertValueToObjcValue:KJS::originExecutionContext:Bindings::executionContext:Bindings::]): make sure to lock and unlock the interpreter around allocations.

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

16 years ago Reviewed by Geoff Garen.
bdibello [Thu, 30 Jun 2005 17:50:24 +0000 (17:50 +0000)]
    Reviewed by Geoff Garen.

        Test cases added: getting and setting div.align

        * layout-tests/fast/dom/HTMLDivElement/align/getset-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDivElement/align/getset.html: Added.

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

16 years agoForgot one file.
darin [Thu, 30 Jun 2005 05:57:56 +0000 (05:57 +0000)]
Forgot one file.

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

16 years ago Reviewed and landed by Darin Adler.
darin [Thu, 30 Jun 2005 05:57:18 +0000 (05:57 +0000)]
    Reviewed and landed by Darin Adler.

        - Fix <http://bugzilla.opendarwin.org/show_bug.cgi?id=3274>
        document() not supported

        Test cases added:
        * layout-tests/fast/xsl/document-function-expected.txt: Added.
        * layout-tests/fast/xsl/document-function.xml: Added.
        * layout-tests/fast/xsl/document-function.xsl: Added.
        * layout-tests/fast/xsl/resources/document-function-source.xml: Added.

        * khtml/xsl/xslt_processorimpl.cpp:
        (DOM::parseErrorFunc):
        Stub to prevent errors from getting written to the console.

        (DOM::stylesheetLoadFunc):
        Fetch and parse documents.

        (DOM::XSLTProcessorImpl::transformDocument):
        Use the processor as the global variable instead of the
        style sheet.

        * khtml/xsl/xslt_processorimpl.h:
        (DOM::XSLTProcessorImpl::stylesheet):
        (DOM::XSLTProcessorImpl::sourceDocument):
        Add accessors for source document and stylesheet.

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

16 years ago - fixed bug which would result in multiple unwanted dumps in a single layout...
darin [Thu, 30 Jun 2005 05:41:38 +0000 (05:41 +0000)]
    - fixed bug which would result in multiple unwanted dumps in a single layout test

        * DumpRenderTree/DumpRenderTree.m:
        (-[WaitUntilDoneDelegate webView:locationChangeDone:forDataSource:]): Set new
        "readyToDump" flag.
        (-[LayoutTestController waitUntilDone]): Update for name change.
        (-[LayoutTestController notifyDone]): Dump only if ready.
        (dumpRenderTree): Set up new boolean and update for name change.

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

16 years ago Changes by Timothy Hatcher.
darin [Thu, 30 Jun 2005 04:33:00 +0000 (04:33 +0000)]
    Changes by Timothy Hatcher.
        Reviewed by me.

        * Scripts/run-webkit-app: Added script to open an arbritrary application with
        a CVS built WebKit. Example: ./run-webkit-app Colloquy

        * Scripts/gdb-safari: Added support for WEBKIT_SAFARI environment variable to specify
        a custom location to the Safari.app bundle. This is optional, script defaults to the stock location.
        * Scripts/run-safari: Ditto.

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

16 years ago Unreviewed - fixing build breakage with gcc 4.
mjs [Thu, 30 Jun 2005 03:19:13 +0000 (03:19 +0000)]
    Unreviewed - fixing build breakage with gcc 4.

        * khtml/misc/hashtable.h: Don't use a typedef when declaring a class friend.

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

16 years ago Temporarily enable tab coalescing ahead of white-space:pre-wrap
harrison [Thu, 30 Jun 2005 01:56:12 +0000 (01:56 +0000)]
Temporarily enable tab coalescing ahead of white-space:pre-wrap
change because of problems with keeping the tabs separate.  Will
revert when problems are fixed or remove if I do pre-wrap
first.

        * khtml/editing/insert_text_command.cpp:
        (khtml::InsertTextCommand::prepareForTextInsertion):
        (khtml::InsertTextCommand::insertTab):
        * khtml/editing/markup.cpp:
        (khtml::createParagraphContentsFromString):

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

16 years ago Reviewed by Dave Hyatt (rendering) and Maciej (editing).
harrison [Thu, 30 Jun 2005 01:28:36 +0000 (01:28 +0000)]
    Reviewed by Dave Hyatt (rendering) and Maciej (editing).

        Test cases added:  Coming soon.  Will include with next round of changes for this bug.

        This is the first checkin for...

        <rdar://problem/3792529> REGRESSION (Mail): Tabs do not work the way they did in Panther (especially useful in plain text mail)

        Basic strategy is to put tabs into spans with white-space:pre style, and
        render them with tabs stops every 8th space, where the space width and
        the left margin are those of the enclosing block.

        What's left is to switch to implement white-space:pre-wrap so
        that we can coalesce consecutive tabs while maintaining proper
        line breaking.  That will keep the markup smaller.

        * WebCoreSupport.subproj/WebTextRenderer.m:
        (isSpace):
        (-[WebTextRenderer _CG_drawHighlightForRun:style:geometry:]):
        (-[WebTextRenderer _CG_floatWidthForRun:style:widths:fonts:glyphs:startPosition:numGlyphs:]):
        (-[WebTextRenderer _extendCharacterToGlyphMapToInclude:]):
        (-[WebTextRenderer _CG_pointToOffset:style:position:reversed:includePartialGlyphs:]):
        (initializeCharacterWidthIterator):
        (widthForNextCharacter):

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

16 years ago Reviewed by Dave Hyatt (rendering) and Maciej (editing).
harrison [Thu, 30 Jun 2005 01:27:47 +0000 (01:27 +0000)]
    Reviewed by Dave Hyatt (rendering) and Maciej (editing).

        Test cases added:  Coming soon.  Will include with next round of changes for this bug.

        This is the first checkin for...

        <rdar://problem/3792529> REGRESSION (Mail): Tabs do not work the way they did in Panther (especially useful in plain text mail)

        Basic strategy is to put tabs into spans with white-space:pre style, and
        render them with tabs stops every 8th space, where the space width and
        the left margin are those of the enclosing block.

        What's left is to switch to implement white-space:pre-wrap so
        that we can coalesce consecutive tabs while maintaining proper
        line breaking.  That will keep the markup smaller.

        * khtml/editing/apply_style_command.cpp:
        (khtml::createStyleSpanElement):
        (khtml::ApplyStyleCommand::removeCSSStyle):
        (khtml::ApplyStyleCommand::addInlineStyleIfNeeded):
        * khtml/editing/delete_selection_command.cpp:
        (khtml::DeleteSelectionCommand::saveTypingStyleState):
        * khtml/editing/edit_command.cpp:
        (khtml::EditCommand::styleAtPosition):
        * khtml/editing/html_interchange.h:
        * khtml/editing/htmlediting.cpp:
        (khtml::isSpecialElement):
        (khtml::isTabSpanNode):
        (khtml::isTabSpanTextNode):
        (khtml::positionBeforeTabSpan):
        (khtml::createTabSpanElement):
        * khtml/editing/htmlediting.h:
        * khtml/editing/insert_text_command.cpp:
        (khtml::InsertTextCommand::prepareForTextInsertion):
        (khtml::InsertTextCommand::input):
        (khtml::InsertTextCommand::insertTab):
        * khtml/editing/insert_text_command.h:
        * khtml/editing/markup.cpp:
        (khtml::createParagraphContentsFromString):
        (khtml::createFragmentFromText):
        * khtml/editing/replace_selection_command.cpp:
        (khtml::ReplacementFragment::removeStyleNodes):
        * khtml/html/htmltokenizer.cpp:
        (khtml::HTMLTokenizer::begin):
        (khtml::HTMLTokenizer::processListing):
        (khtml::HTMLTokenizer::parseEntity):
        (khtml::HTMLTokenizer::parseTag):
        (khtml::HTMLTokenizer::addPending):
        (khtml::HTMLTokenizer::write):
        * khtml/html/htmltokenizer.h:
        (khtml::HTMLTokenizer::):
        * khtml/rendering/bidi.cpp:
        (khtml::addRun):
        (khtml::RenderBlock::tabWidth):
        (khtml::RenderBlock::computeHorizontalPositionsForLine):
        (khtml::RenderBlock::skipWhitespace):
        (khtml::RenderBlock::findNextLineBreak):
        (khtml::RenderBlock::checkLinesForTextOverflow):
        * khtml/rendering/break_lines.cpp:
        (khtml::isBreakable):
        * khtml/rendering/font.cpp:
        (Font::drawHighlightForText):
        (Font::drawText):
        (Font::floatWidth):
        (Font::floatCharacterWidths):
        (Font::checkSelectionPoint):
        (Font::width):
        * khtml/rendering/font.h:
        * khtml/rendering/render_block.cpp:
        (khtml::stripTrailingSpace):
        (khtml::RenderBlock::calcInlineMinMaxWidth):
        * khtml/rendering/render_block.h:
        * khtml/rendering/render_br.h:
        (khtml::RenderBR::width):
        * khtml/rendering/render_flexbox.cpp:
        (khtml::RenderFlexibleBox::layoutVerticalBox):
        * khtml/rendering/render_image.cpp:
        (RenderImage::setPixmap):
        (RenderImage::paint):
        * khtml/rendering/render_line.cpp:
        (khtml::EllipsisBox::paint):
        * khtml/rendering/render_line.h:
        (khtml::InlineBox::width):
        (khtml::InlineBox::xPos):
        (khtml::InlineBox::yPos):
        (khtml::InlineBox::height):
        (khtml::InlineBox::baseline):
        * khtml/rendering/render_list.cpp:
        (RenderListMarker::paint):
        (RenderListMarker::calcMinMaxWidth):
        * khtml/rendering/render_object.cpp:
        (RenderObject::tabWidth):
        (RenderObject::recalcMinMaxWidths):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_replaced.cpp:
        * khtml/rendering/render_text.cpp:
        (InlineTextBox::selectionRect):
        (InlineTextBox::paint):
        (InlineTextBox::paintSelection):
        (InlineTextBox::paintMarkedTextBackground):
        (InlineTextBox::textPos):
        (InlineTextBox::offsetForPosition):
        (InlineTextBox::positionForOffset):
        (RenderText::cacheWidths):
        (RenderText::widthFromCache):
        (RenderText::trimmedMinMaxWidth):
        (RenderText::calcMinMaxWidth):
        (RenderText::containsOnlyWhitespace):
        (RenderText::width):
        * khtml/rendering/render_text.h:
        * kwq/KWQFontMetrics.h:
        * kwq/KWQFontMetrics.mm:
        (QFontMetrics::width):
        (QFontMetrics::charWidth):
        (QFontMetrics::floatWidth):
        (QFontMetrics::floatCharacterWidths):
        (QFontMetrics::checkSelectionPoint):
        (QFontMetrics::boundingRect):
        (QFontMetrics::size):
        * kwq/KWQPainter.h:
        * kwq/KWQPainter.mm:
        (QPainter::drawText):
        (QPainter::drawHighlightForText):
        * kwq/WebCoreTextRenderer.h:
        * kwq/WebCoreTextRendererFactory.mm:
        (WebCoreInitializeEmptyTextStyle):
        * layout-tests/editing/deleting/delete-tab-001-expected.txt:
        * layout-tests/editing/deleting/delete-tab-001.html:
        * layout-tests/editing/deleting/delete-tab-002-expected.txt:
        * layout-tests/editing/deleting/delete-tab-002.html:
        * layout-tests/editing/deleting/delete-tab-003-expected.txt:
        * layout-tests/editing/deleting/delete-tab-003.html:
        * layout-tests/editing/deleting/delete-tab-004-expected.txt:
        * layout-tests/editing/deleting/delete-tab-004.html:
        * layout-tests/editing/inserting/insert-tab-001-expected.txt:
        * layout-tests/editing/inserting/insert-tab-002-expected.txt:
        * layout-tests/editing/inserting/insert-tab-003-expected.txt:
        * layout-tests/editing/inserting/insert-tab-004-expected.txt:
        * layout-tests/fast/dom/quadraticCurveTo-expected.txt:
        * layout-tests/fast/js/string-replace-2-expected.txt:
        * layout-tests/fast/table/039-expected.txt:
        * layout-tests/fast/table/border-collapsing/004-expected.txt:
        * layout-tests/fast/tokenizer/script_extra_close-expected.txt:

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

16 years agoJavaScriptCore:
ggaren [Thu, 30 Jun 2005 01:19:47 +0000 (01:19 +0000)]
JavaScriptCore:

Patch by Francisco Tolmasky <tolmasky@gmail.com>

- fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=3667
Core JavaScript 1.5 Reference:Objects:Array:forEach

See WebCore Changelog for layout tests added.

        Reviewed by darin.

        * kjs/array_object.cpp:
        (ArrayProtoFuncImp::call):
        * kjs/array_object.h:
        (KJS::ArrayProtoFuncImp::):

WebCore:

Contributed by Francisco Tolmasky <tolmasky@gmail.com>

-test cases for fix to http://bugzilla.opendarwin.org/show_bug.cgi?id=3667
Core JavaScript 1.5 Reference:Objects:Array:forEach

See JavaScriptCore Changelog for details on the patch.

        Reviewed by darin.

        Test cases added:
        * layout-tests/fast/js/array-every-expected.txt: Added.
        * layout-tests/fast/js/array-every.html: Added.
        * layout-tests/fast/js/array-foreach-expected.txt: Added.
        * layout-tests/fast/js/array-foreach.html: Added.
        * layout-tests/fast/js/array-some-expected.txt: Added.
        * layout-tests/fast/js/array-some.html: Added.

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

16 years ago Reviewed by Geoff Garen
bdibello [Thu, 30 Jun 2005 00:41:49 +0000 (00:41 +0000)]
    Reviewed by Geoff Garen

        Test cases added: added expected results for previous check in

        * layout-tests/fast/dom/HTMLDocument/url/getset-expected.txt: Added.

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

16 years ago DOM compatibility tests for HTMLDocument::writeln
ggaren [Thu, 30 Jun 2005 00:22:23 +0000 (00:22 +0000)]
DOM compatibility tests for HTMLDocument::writeln

        Reviewed by justing.

        Test cases added:

        * layout-tests/fast/dom/HTMLDocument/writeln/call-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/writeln/call.html: Added.
        * layout-tests/fast/dom/HTMLDocument/writeln/multiple-calls-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/writeln/multiple-calls.html: Added.

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

16 years ago Reviewed by Geoff Garen.
ggaren [Thu, 30 Jun 2005 00:19:51 +0000 (00:19 +0000)]
    Reviewed by Geoff Garen.

        Test cases added: added DOM test for document.URL

        * layout-tests/fast/dom/HTMLDocument/url/getset.html: Added.

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

16 years ago Reviewed by Geoff Garen.
bdibello [Thu, 30 Jun 2005 00:13:39 +0000 (00:13 +0000)]
    Reviewed by Geoff Garen.

        Test cases added: added DOM test for document.URL

        * layout-tests/fast/dom/HTMLDocument/url/getset.html: Added.

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

16 years ago DOM compatibility test for HTMLDocument::write
ggaren [Wed, 29 Jun 2005 23:24:32 +0000 (23:24 +0000)]
DOM compatibility test for HTMLDocument::write

        Reviewed by justing.

        Test cases added:
        * layout-tests/fast/dom/HTMLDocument/write/call-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/write/call.html: Added.

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

16 years ago DOM compatibility tests for HTMLDocument::title
ggaren [Wed, 29 Jun 2005 23:12:02 +0000 (23:12 +0000)]
DOM compatibility tests for HTMLDocument::title

        Reviewed by justing.

        Test cases added:
        * layout-tests/fast/dom/HTMLDocument/title/get-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/title/get.html: Added.
        * layout-tests/fast/dom/HTMLDocument/title/set-expected.txt: Added.
        * layout-tests/fast/dom/HTMLDocument/title/set.html: Added.

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

16 years ago DOM compatibility tests for HTMLDocument::title
ggaren [Wed, 29 Jun 2005 23:01:16 +0000 (23:01 +0000)]
DOM compatibility tests for HTMLDocument::title

        Reviewed by justing.

        Test cases added:
        * layout-tests/fast/dom/HTMLDocument/title/get.html: Added.
        * layout-tests/fast/dom/HTMLDocument/title/set.html: Added.

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

16 years ago Reviewed by Kevin.
sullivan [Wed, 29 Jun 2005 22:53:51 +0000 (22:53 +0000)]
    Reviewed by Kevin.

        - deleted some never-used stub code

        * WebView.subproj/WebView.m:
        * WebView.subproj/WebViewInternal.h:
        * WebView.subproj/WebViewPrivate.h:

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

16 years ago*** empty log message ***
justing [Wed, 29 Jun 2005 21:37:02 +0000 (21:37 +0000)]
*** empty log message ***

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

16 years ago*** empty log message ***
justing [Wed, 29 Jun 2005 21:29:27 +0000 (21:29 +0000)]
*** empty log message ***

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

16 years ago*** empty log message ***
justing [Wed, 29 Jun 2005 21:22:30 +0000 (21:22 +0000)]
*** empty log message ***

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

16 years ago Reviewed by Darin.
mjs [Wed, 29 Jun 2005 21:04:32 +0000 (21:04 +0000)]
    Reviewed by Darin.

        Added iterator support to new hashtable class, the HashSet API is
now essentially complete.

Added support for consistency check mode.

        * khtml/misc/hashset.h:
        (khtml::HashSet::capacity): Added
        (khtml::HashSet::begin): Added (both const and non-const)
        (khtml::HashSet::end): Added (both const and non-const)
        (khtml::HashSet::insert): Made both versions return an iterator
        (khtml::HashSet::find): Added (both const and on-const, returning appropriate iterator)
        (khtml::HashSet::contains): Added
        (khtml::HashSet::remove): Added version that takes an iterator argument
        (khtml::HashSet::clear): Added
        * khtml/misc/hashtable.h:
        (khtml::HashTableIterator): New class with all the obvious iterator stuff.
        (khtml::HashTableConstIterator::HashTableConstIterator): New class with all the obvious
const iterator stuff.
        (khtml::HashTable::begin): Added (both const and non-consts)
        (khtml::HashTable::end): Added (both const and non-consts)
        (khtml::HashTable::capacity): Added
        (khtml::HashTable::insert): Implement non-template method in terms
of template method.
        (khtml::HashTable::contains): Added (implemented in terms of find)
        (khtml::HashTable::remove): Implemented key remove in terms of find and
iterator remove.
        (khtml::HashTable::hash): Made static
        (khtml::HashTable::equal): Made static
        (khtml::HashTable::identityConvert): Added - no-op convert method so template insert
method can be implemented in terms of non-template
        (khtml::HashTable::insert): Changed to return iterator
        (khtml::HashTable::reinsert): Recoded to be more like the other functions
        (khtml::HashTable::find): Added
        (khtml::HashTable::remove): Added iterator version
        (khtml::HashTable::clear): Added
        * khtml/xml/dom_atomicstring.cpp:
        (DOM::AtomicString::add): Updated to deal with the fact that insert returns an iterator
        (khtml::HashTable::shouldExpand): New helper.
        (khtml::HashTable::shouldShrink): ditto
        (khtml::HashTable::makeIterator): ditto
        (khtml::HashTable::makeConstIterator): ditto
        (khtml::HashTable::checkConsistency): consistency check method
        (khtml::HashTable::checkConsistencyExceptSize): consistency check method

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

16 years agoJavaScriptCore:
ggaren [Wed, 29 Jun 2005 20:59:21 +0000 (20:59 +0000)]
JavaScriptCore:

Patch contributed by Oliver Hunt <ojh16@student.canterbury.ac.nz>

-fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=3743
Incorrect error message given for certain calls

See WebCore Changelog for layout test added.

        Reviewed by mjs.

        * kjs/object.cpp:
        (KJS::ObjectImp::defaultValue):

WebCore:

-added test case for fix to http://bugzilla.opendarwin.org/show_bug.cgi?id=3743
Incorrect error message given for certain calls

See JavaScriptCore Changelog for details about the patch.

        Reviewed by me.

        Test cases added:
        * layout-tests/fast/js/toString-stack-overflow-expected.txt: Added.
        * layout-tests/fast/js/toString-stack-overflow.html: Added.

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

16 years ago Rolling out date patch from 6-28-05 because it breaks
ggaren [Wed, 29 Jun 2005 20:15:00 +0000 (20:15 +0000)]
Rolling out date patch from 6-28-05 because it breaks
fast/js/date-parse-test

        Reviewed by NOBODY.

        * kjs/date_object.cpp:
        (formatLocaleDate):
        (DateProtoFuncImp::call):
        (DateObjectImp::construct):
        (KJS::parseDate):
        (ymdhms_to_seconds):
        (isSpaceOrTab):
        (KJS::KRFCDate_parseDate):
        * kjs/date_object.h:
        * tests/mozilla/expected.html:

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

16 years ago - Fixes <http://bugzilla.opendarwin.org/show_bug.cgi?id=3714>
justing [Wed, 29 Jun 2005 20:14:58 +0000 (20:14 +0000)]
    - Fixes <bugzilla.opendarwin.org/show_bug.cgi?id=3714>
        HTMLLabelElement's form property isn't implemented

        Patch by Anders Carlsson <andersca@mac.com>

        Reviewed by Darin

        Test cases added:
        * layout-tests/fast/dom/HTMLLabelElement/properties/form-expected.txt: Added.
        * layout-tests/fast/dom/HTMLLabelElement/properties/form.html: Added.

        * khtml/html/html_formimpl.cpp:
        (DOM::HTMLLabelElementImpl::form):
        Traverse upwards looking for a form element.

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

16 years agoBug #:
justing [Wed, 29 Jun 2005 18:49:20 +0000 (18:49 +0000)]
Bug #:
Submitted by:
Reviewed by:

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

16 years ago Patch by Joost de Valk <webkit@joostdevalk.nl>
ggaren [Wed, 29 Jun 2005 17:52:16 +0000 (17:52 +0000)]
Patch by Joost de Valk <webkit@joostdevalk.nl>

- http://bugzilla.opendarwin.org/show_bug.cgi?id=3732
Testcase for accesskeys that will run with run-webkit-tests.

        Reviewed by Darin.

        Test cases added:
        * layout-tests/fast/forms/access-key-expected.txt: Added.
        * layout-tests/fast/forms/access-key.html: Added.

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

16 years ago Patch by Anders Carlsson <andersca@mac.com>
justing [Wed, 29 Jun 2005 17:50:24 +0000 (17:50 +0000)]
    Patch by Anders Carlsson  <andersca@mac.com>

        - Fixes <http://bugzilla.opendarwin.org/show_bug.cgi?id=3715>
        An HTMLObjectElement's form property was always null.

        Reviewed by Darin

        Test cases added:
        * layout-tests/fast/dom/htmlobject-form-expected.txt: Added.
        * layout-tests/fast/dom/htmlobject-form.html: Added.

        * khtml/html/html_objectimpl.cpp:
        (DOM::HTMLObjectElementImpl::form):
        Implement this function by traversing the parent nodes looking
        for a form element.

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

16 years ago Patch by Antoine Quint <ml@graougraou.com>
ggaren [Wed, 29 Jun 2005 17:41:39 +0000 (17:41 +0000)]
Patch by Antoine Quint <ml@graougraou.com>

-fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=3648
quadraticCurveTo() method in <canvas> APIs JS bindings does not exist

        Reviewed by Darin.

        Test cases added:
        * layout-tests/fast/dom/quadraticCurveTo-expected.txt: Added.
        * layout-tests/fast/dom/quadraticCurveTo.xml: Added.

        * khtml/ecma/kjs_html.cpp:

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

16 years ago Patch by Hanspeter Schaub <Hanspeterschaub@mac.com>
ggaren [Wed, 29 Jun 2005 17:18:16 +0000 (17:18 +0000)]
Patch by Hanspeter Schaub <Hanspeterschaub@mac.com>

-fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=3317
REGRESSION: CSS2: outline is applied to both <li> element
and its enclosing text with context dependent selector

        Reviewed by Hyatt.

        Test cases added:
        * layout-tests/fast/css/list-outline-expected.txt: Added.
        * layout-tests/fast/css/list-outline.html: Added.

        * khtml/rendering/render_line.cpp:
        (khtml::InlineFlowBox::paint):

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

16 years ago Reviewed by Darin.
ggaren [Wed, 29 Jun 2005 16:32:27 +0000 (16:32 +0000)]
    Reviewed by Darin.

-fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=3750
build fails with KJS_VERBOSE set

        * kjs/nodes.cpp: changed debug print statement to use UString
        (VarDeclNode::evaluate):
        * kjs/reference.cpp: ditto
        (KJS::Reference::putValue):

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

16 years ago Reviewed by Maciej.
vicki [Tue, 28 Jun 2005 23:22:16 +0000 (23:22 +0000)]
    Reviewed by Maciej.

- fix our part of <rdar://problem/4122332> extra HTTP GET when iframe requests file
already fetched by parent that should have been cached. Setting location via javascript
should not signal a full reload of the destination page and all its subresources.

        * khtml/khtml_part.cpp:
        (KHTMLPart::changeLocation): remove code that sets the reload flag

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

16 years ago Patch contributed by Carsten Guenther <cguenther@gmail.com>.
ggaren [Tue, 28 Jun 2005 22:25:43 +0000 (22:25 +0000)]
Patch contributed by Carsten Guenther <cguenther@gmail.com>.

-fixes http://bugzilla.opendarwin.org/show_bug.cgi?id=3477
some US-centric date formats not parsed by JavaScript (clock at news8austin.com)

        Reviewed by darin.

        * kjs/date_object.cpp:
        (formatLocaleDate):
        (day):
        (dayFromYear):
        (daysInYear):
        (timeFromYear):
        (yearFromTime):
        (weekDay):
        (timeZoneOffset):
        (DateProtoFuncImp::call):
        (DateObjectImp::construct):
        (KJS::parseDate):
        (ymdhms_to_seconds):
        (KJS::makeTime):
        (findMonth):
        (KJS::KRFCDate_parseDate):
        * kjs/date_object.h:
        * tests/mozilla/expected.html: updated expected test results to reflect fix

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

16 years ago Patch by Kevin Ballard <kevin@sb.org>
justing [Tue, 28 Jun 2005 22:18:27 +0000 (22:18 +0000)]
    Patch by Kevin Ballard <kevin@sb.org>

        Reviewed by Darin

        - Fixes <http://bugzilla.opendarwin.org/show_bug.cgi?id=3654>
        Updating the value of a textarea wasn't saving the cursor position
        in a line ending-agnostic fashion.

        Test cases added:
        * layout-tests/fast/forms/cursor-position-expected.txt: Added.
        * layout-tests/fast/forms/cursor-position.html: Added.

        * kwq/KWQTextArea.mm:
        (-[KWQTextArea getCursorPositionAsIndex:inParagraph:]):
        (RangeOfParagraph):
        (-[KWQTextArea setCursorPositionToIndex:inParagraph:]):

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

16 years ago*** empty log message ***
mjs [Tue, 28 Jun 2005 21:18:17 +0000 (21:18 +0000)]
*** empty log message ***

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

16 years ago Patch by Alexey Proskuryakov <ap@nypop.com>
justing [Tue, 28 Jun 2005 18:47:12 +0000 (18:47 +0000)]
    Patch by Alexey Proskuryakov <ap@nypop.com>

        - <http://bugzilla.opendarwin.org/show_bug.cgi?id=3727>
        When a DECODE_DEBUG preprocessor symbol is defined in khtml/misc/decoder.cpp,
        compilation fails because a non-existent variable "force" is used.

        Reviewed by Darin

        Test cases added: None required

        * khtml/misc/decoder.cpp:
        (Decoder::setEncoding):

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

16 years ago Reviewed by Chris Blumenberg.
harrison [Tue, 28 Jun 2005 16:22:04 +0000 (16:22 +0000)]
    Reviewed by Chris Blumenberg.

        Test cases added: (NONE)

        (continued) <rdar://problem/4140688> assertion failure double-clicking text to select
        Fixed my checkin from yesterday.

        * khtml/rendering/render_text.cpp:
        (InlineTextBox::paintMarkedTextBackground):
        (InlineTextBox::positionForOffset):
        Changed tabs to spaces.

        (RenderText::positionForCoordinates):
        Make sure affinity is downstream when in mid-line.
        Changed tabs to spaces.

        (RenderText::caretRect):
        (RenderText::cacheWidths):
        (RenderText::trimmedMinMaxWidth):
        (RenderText::minXPos):
        (RenderText::width):
        (RenderText::caretMaxOffset):
        Changed tabs to spaces.

        * layout-tests/editing/style/create-block-for-style-004-expected.txt:
        Expected ending selection affinity is downstream.

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

16 years ago Remove accidentally committed code that breaks the build. Oops!
mjs [Tue, 28 Jun 2005 05:47:26 +0000 (05:47 +0000)]
Remove accidentally committed code that breaks the build. Oops!

        * khtml/xml/dom_atomicstring.cpp:
        (DOM::AtomicString::expand):
        (DOM::AtomicString::shrink):

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

16 years agoRemoved accidental change from last checkin.
mjs [Tue, 28 Jun 2005 01:57:42 +0000 (01:57 +0000)]
Removed accidental change from last checkin.

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

16 years ago Reviewed by Darin.
mjs [Tue, 28 Jun 2005 01:54:35 +0000 (01:54 +0000)]
    Reviewed by Darin.

- replaced all our hash functions with the state of the art in hashing
- ~1% speedup on cvs-base

        No test cases added, perf effects only.

        * khtml/xml/dom_atomicstring.cpp:
        (DOM::AtomicStringStatisticsExitLogger::~AtomicStringStatisticsExitLogger):
Improved stats gathering to track collisions in more detail and count reinserts
on remove.
        (DOM::addToCollisionCount): ditto
        (DOM::AtomicString::add): ditto
        (DOM::AtomicString::insert): ditto
        (DOM::AtomicString::remove): ditto
        * khtml/xml/dom_stringimpl.cpp:
        (DOM::DOMStringImpl::computeHash): Replace with SuperFastHash algorithm.
        * kwq/KWQCharsets.mm:
        (encodingNameHash): Clean up mistaken shift in the wrong direction.
        * kwq/KWQString.h: Removed unused hashing code.
        * kwq/KWQString.mm: ditto
        * kwq/KWQTextCodec.mm:
        (QTextCodec::hash): Use a variant of the SuperFastHash algorithm.

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

16 years ago Reviewed by Darin.
mjs [Tue, 28 Jun 2005 00:02:08 +0000 (00:02 +0000)]
    Reviewed by Darin.

- replace hash functions  with better ones

        * JavaScriptCore.pbproj/project.pbxproj: Add new file to build.
        * kjs/interpreter_map.cpp:
        (KJS::InterpreterMap::computeHash): Use shared pointer hash.
        * kjs/pointer_hash.h: Added.
        (KJS::pointerHash): Pointer hash based on 32-bit mix and 64-bit mix hashes.
        * kjs/protected_values.cpp:
        (KJS::ProtectedValues::computeHash): Use shared pointer hash.
        * kjs/ustring.cpp:
        (KJS::UString::Rep::computeHash): Use SuperFastHash algorithm.

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

16 years ago Patch by Anders Carlsson <andersca@mac.com>
justing [Mon, 27 Jun 2005 20:23:34 +0000 (20:23 +0000)]
    Patch by Anders Carlsson <andersca@mac.com>

        Reviewed by Darin.

        - Fixes <http://bugzilla.opendarwin.org/show_bug.cgi?id=3489>
        WebView's setSelectedDOMRange doesn't not implement clearing the selection as described in the WebView documentation:
        <http://developer.apple.com/documentation/Cocoa/Reference/WebKit/ObjC_classic/Classes/WebView.html>

        * WebView.subproj/WebView.m:
        (-[WebView setSelectedDOMRange:affinity:]):
        If range is nil, call deselectText.

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

16 years ago Reviewed by Ken.
harrison [Mon, 27 Jun 2005 19:12:34 +0000 (19:12 +0000)]
    Reviewed by Ken.

        Test cases added: None because this relies on mouse clicking.

<rdar://problem/4140688> assertion failure double-clicking text to select

        * khtml/rendering/render_text.cpp:
        (RenderText::positionForCoordinates):
Use setAffinityUsingLinePosition.

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

16 years ago * Scripts/build-dumprendertree: Pass -project option so that having a second
darin [Mon, 27 Jun 2005 05:33:53 +0000 (05:33 +0000)]
    * Scripts/build-dumprendertree: Pass -project option so that having a second
        copy of the project (like the one Xcode 2.1 offers to make for you) that's
        out of date won't screw you up.
        * Scripts/build-webkit: Ditto.

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

16 years ago - updated a layout test so that it doesn't depend on a remote resource via...
darin [Sat, 25 Jun 2005 17:21:59 +0000 (17:21 +0000)]
    - updated a layout test so that it doesn't depend on a remote resource via http

        * layout-tests/fast/backgrounds/001.html: Change image URL to be relative.
        * layout-tests/fast/backgrounds/resources/bg_position_larger.gif: Added.

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

16 years ago Changes by Mitz Pettel.
darin [Sat, 25 Jun 2005 05:17:33 +0000 (05:17 +0000)]
    Changes by Mitz Pettel.
        Reviewed by me.

        Test cases added:
        * layout-tests/fast/text/international/bidi-explicit-embedding-expected.txt: Added.
        * layout-tests/fast/text/international/bidi-explicit-embedding.html: Added.

        - fixed <http://bugzilla.opendarwin.org/show_bug.cgi?id=3599>
          Incorrect layout of explicit embedding levels

        * khtml/rendering/bidi.cpp:
        (khtml::embed): Set up the new run correctly following an embed/pop.
        (khtml::RenderBlock::bidiReorderLine): Close the "dangling" run when we see an explicit
        embedding character (or PDF).

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

16 years ago Changes by Mitz Pettel.
darin [Sat, 25 Jun 2005 04:47:05 +0000 (04:47 +0000)]
    Changes by Mitz Pettel.
        Reviewed by me.

        Test cases added:
        * layout-tests/fast/text/international/bidi-CS-after-AN-expected.txt: Added.
        * layout-tests/fast/text/international/bidi-CS-after-AN.html: Added.

        - fixed <http://bugzilla.opendarwin.org/show_bug.cgi?id=3693>
          Bug_72578 in KHTML: bidi algorithm misbehaves with CS after AN

        * khtml/rendering/bidi.cpp: (khtml::RenderBlock::bidiReorderLine): Rolled in the
        patch from the KDE tree.

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

16 years ago - <http://bugzilla.opendarwin.org/show_bug.cgi?id=3673>
justing [Fri, 24 Jun 2005 21:05:11 +0000 (21:05 +0000)]
    - <bugzilla.opendarwin.org/show_bug.cgi?id=3673>
            Adds QBuffer::setBuffer(QByteArray) support to KWQBuffer, and adds a QBuffer(QByteArray) constructor.

        Reviewed by Darin

        Test cases added: Non required

        * kwq/KWQBuffer.h:
        (QBuffer::QBuffer):
        * kwq/KWQBuffer.mm:
        (QBuffer::setBuffer):

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

16 years ago Patch contributed by Duncan Wilcox <duncan@mclink.it>
justing [Fri, 24 Jun 2005 20:48:59 +0000 (20:48 +0000)]
    Patch contributed by Duncan Wilcox <duncan@mclink.it>

        Reviewed by Darin

        - Fixed <http://bugzilla.opendarwin.org/show_bug.cgi?id=3535>
            Spelling suggestions in the context menu don't call the should* delegate methods

        * WebView.subproj/WebHTMLView.m:
        (-[WebHTMLView _changeSpellingFromMenu:]):
        give delegate's webView:shouldInsertText:replacingDOMRange:givenAction: a chance
        to prevent replacing of selected text

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

16 years ago - <http://bugzilla.opendarwin.org/show_bug.cgi?id=3672> KWQRect -- CGRect...
justing [Fri, 24 Jun 2005 18:57:22 +0000 (18:57 +0000)]
    - <bugzilla.opendarwin.org/show_bug.cgi?id=3672> KWQRect -- CGRect and other small additions
        - <http://bugzilla.opendarwin.org/show_bug.cgi?id=3670> Add remove and byteOrderMark support to KWQString for kdom

        Reviewed by Darin

        Test cases added: None required

        * kwq/KWQRect.h:
        (QRect::contains):
        * kwq/KWQRect.mm:
        (QRect::QRect):
        (QRect::topRight):
        (QRect::bottomLeft):
        (QRect::normalize):
        (QRect::operator CGRect):
        * kwq/KWQString.h:
        (QChar::):
        (QString::remove):

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

16 years ago Reviewed by Justin Garcia.
darin [Fri, 24 Jun 2005 16:48:39 +0000 (16:48 +0000)]
    Reviewed by Justin Garcia.

        - fixed <rdar://problem/4151619> Safari changes "\" characters to "/" in the query part of links that start with "?"

        Test cases added:
        * layout-tests/fast/dom/anchor-backslash-expected.txt: Added.
        * layout-tests/fast/dom/anchor-backslash.html: Added.

        * kwq/KWQKURL.mm: (substituteBackslashes): Fix error where we'd ignore
        "?" and "#" characters if they were the first character in the string.

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