1. 14 Sep, 2005 6 commits
    • justing's avatar
      Reviewed by john · bbfac8be
      justing authored
              Test cases added: none, method rename
      
              Part of fix for <rdar://problem/4237479> REGRESSION (Cambridge-Denver): old QuickTime movie continues to play sound after reload
      
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge handleFallbackContent]):
              Renamed bridge method mainResourceError to handleFallbackContent, since there are some
              main resource errors for which we should not render fallback content.  E.G user cancels
              and the cancel we do to prevent loading plugin content twice (see <rdar://problem/4258008>)
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bbfac8be
    • harrison's avatar
      Reviewed by Eric. · 41a177ec
      harrison authored
              <rdar://problem/4057623> AX: Dictionary Panel crash in AXAttributeStringSetStyle in Safari (Dictionary has workaround)
      
              Test cases added: None.  Manual testing is way to awkward, and automated testing
              is not possible.  Filed following bug to get automation.
              <rdar://problem/4256882> Need automated testing support for accessibility APIs
      
              * kwq/KWQAccObject.mm:
              (AXAttributedStringAppendText):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10535 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41a177ec
    • vicki's avatar
      Reviewed by Dave Hyatt. · 7f31e453
      vicki authored
      	- fixed <rdar://problem/4255274> REGRESSION: in some cases, link jumping to images is broken (4964)
      
              * khtml/xml/dom_nodeimpl.cpp:
              (DOM::ContainerNodeImpl::getUpperLeftCorner):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10534 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f31e453
    • thatcher's avatar
      Reviewed by Eric. · b445dea7
      thatcher authored
              * WebKit.xcodeproj/project.pbxproj:
              made WebDashboardRegion.h a private header
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10533 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b445dea7
    • darin's avatar
      Reviewed by John. · 24610a11
      darin authored
              No easy way to test this in layout tests, so no test added.
      
              - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4984
                REGRESSION placeholder border left behind after image finishes loading
      
              - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4985
                REGRESSION assertion failure in KWQPainter.mm:841
      
              * kwq/KWQPainter.mm:
              (QPainter::save): Do nothing if painting is disabled.
              (QPainter::restore): Ditto.
              (QPainter::drawRect): Inset so that we "frame" the rectangle rather than "stroking" the
              rectangle. The former draws inside the rectangle but the latter draws centered on the
              edge of the rectangle.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10532 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      24610a11
    • darin's avatar
      WebCore: · 79ec5083
      darin authored
              Reviewed by Maciej.
      
              - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4924
                QPainter should use CGContext as much as possible rather than NSGraphicsContext
      
              * kwq/KWQPainter.h: Made no-op xForm be an inline. Reformatted to remove extraneous spaces.
              Removed clearFocusRing. Changed the name of various private functions to remove underscore
              prefix, and reorganize them.
      
              * kwq/KWQPainter.mm:
              (QPainterPrivate::QPainterPrivate): Remove the NSBezierPath for focus.
              (QPainterPrivate::~QPainterPrivate): Ditto.
              (QPainter::save): Use CGContext instead of NSGraphicsContext.
              (QPainter::restore): Ditto.
              (QPainter::drawRect): Use CGContextFillRect instead of _fillRectXX, and
              CGContextStrokeRect instead of NSFrameRect.
              (QPainter::setFillColor): Added. Sets CGContext fill color based on brush.
              (QPainter::setFillColorFromCurrentBrush): Added. Sets CGContext fill color based on QPainter's
              current brush.
              (QPainter::setFillColorFromCurrentPen): Added. Sets CGContext fill color based on QPainter's
              current pen.
              (QPainter::setStrokeColorAndLineWidthFromCurrentPen): Added. Set CGContext stroke color and
              line width based on QPainter's current pen.
              (QPainter::drawLine): Use CGContextStrokeLineSegments instead of NSBezierPath.
              (QPainter::drawEllipse): Use CGContextFillEllipseInRect instead of CGContextFillPath and
              CGContextStrokeEllipseInRect instead of CGContextStrokePath.
              (QPainter::drawArc): Removed some uneeded type casts, changed to call the new private functions,
              currentContext and setStrokeColorAndLineWidthFromCurrentPen.
              (QPainter::drawConvexPolygon): Use new private functions, also use CGContextDrawPath in the
              case where we want to both fill and stroke the polygon.
              (QPainter::getCompositeOperation): Remove unneeded cast.
              (QPainter::setCompositeOperation): Map from name to operation here rather than relying on the
              code on the WebKit side to do it (allows us to remove names entirely from the WebKit side).
              (QPainter::compositeOperatorFromString): Remove a local variable and some casts.
              (getBlendedColorComponent): Rewrote to do the same computation without any conversion to float.
              (QPainter::fillRect): Use CGContextFillRect instead of _fillRectXXX.
              (QPainter::addClip): Use CGContextClipToRect instead of NSBezierPath.
              (QPainter::addRoundedRectClip): Add missing call to CGContextBeginPath.
              (QPainter::beginTransparencyLayer): Use CGContextSaveGState instead of NSGraphicsContext.
              (QPainter::endTransparencyLayer): Use CGContextRestoreGState instead of NSGraphicsContext.
              (QPainter::initFocusRing): Use CGContextBeginPath instead of creating an NSBezierPath.
              (QPainter::addFocusRingRect): Use CGContextAddRect instead of NSBezierPath.
              (QPainter::drawFocusRing): Use CGContextFillPath instead of NSBezierPath.
      
              * khtml/rendering/render_flow.cpp: (RenderFlow::paintFocusRing): Remove call to clearFocusRing. No longer exists.
              * khtml/rendering/render_object.cpp: (RenderObject::paintOutline): Ditto.
      
              * kwq/WebCoreImageRendererFactory.h: Remove setCGCompositeOperationFromString method.
      
      WebKit:
      
              Reviewed by Maciej.
      
              - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4924
                QPainter should use CGContext as much as possible rather than NSGraphicsContext
      
              * WebCoreSupport.subproj/WebImageRendererFactory.m: Remove setCGCompositeOperationFromString
              method, no longer needed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10531 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      79ec5083
  2. 13 Sep, 2005 2 commits
    • harrison's avatar
      Reviewed by Justin. · 77d8db91
      harrison authored
              <rdar://problem/4204892> Correcting incorrect spelling in Mail causes others to lose their red squiggles
      
              Fixed by having SplitTextNodeCommand::doApply copy the markers to the new node, and having SplitTextNodeCommand::doUnapply
              copy the markers from the merged-in node to the combined node.
      
              btw - filed <rdar://problem/4256492> "WebCore editing automated layout tests verify spelling markers"
              so that we can automate tests for this.
      
              Test cases added:
              * manual-tests/keep_spelling_markers.html: Added.
      
              * khtml/editing/split_text_node_command.cpp:
              (khtml::SplitTextNodeCommand::doApply):
              (khtml::SplitTextNodeCommand::doUnapply):
              Call new copyMarkers() function.
      
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::removeMarkers):
              (DocumentImpl::addMarker):
              (DocumentImpl::copyMarkers):
              (DocumentImpl::markersForNode):
              (DocumentImpl::shiftMarkers):
              * khtml/xml/dom_docimpl.h:
              (DOM::DocumentMarker::):
              Added copyMarkers() function.  Reorganized code for clarity.
      
              * khtml/xml/dom_textimpl.cpp:
              (CharacterDataImpl::setData):
              (CharacterDataImpl::deleteData):
              (CharacterDataImpl::replaceData):
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::respondToChangedSelection):
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge unmarkAllMisspellings]):
              Update calls to marker functions.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10530 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      77d8db91
    • tomernic's avatar
      Reviewed by Justin Garcia, Darin Adler. · d4c8b134
      tomernic authored
      	- <rdar://problem/3163393> Safari does not support Windowless mode in Flash
      
              * Plugins.subproj/WebBaseNetscapePluginView.h:
      	Added 'isTransparent' instance variable.
      
              * Plugins.subproj/WebBaseNetscapePluginView.m:
              (-[WebBaseNetscapePluginView saveAndSetPortStateForUpdate:]):
      	When updating a plugin in "windowless" (transparent) mode, clip drawing to the dirty
      	region of the opaque ancestor.  This means that a partially-transparent plugin, which
      	by definition does not clear its port on redraw, will not overdraw the valid parts
      	of its port.
              (-[WebBaseNetscapePluginView sendEvent:]):
      	Disabled the "green debug background" for transparent plugins -- since they are not
      	expected to cover their entire port every redraw, this debug code makes no sense.
              (-[WebBaseNetscapePluginView setVariable:value:]):
      	Implemented -setVariable:value:, which is called from NPN_SetValue() (previously
      	unimplemented).
      	Right now we only handle NPPVpluginTransparentBool; if we choose to handle the other
      	plugin variables, then we may do so here.
              * Plugins.subproj/WebBaseNetscapePluginViewPrivate.h:
      	Added SPI for -[WebBaseNetscapePluginView setVariable:value].
              * Plugins.subproj/npapi.m:
              (NPN_SetValue):
      	Implemented this function so that plugins may set state (such as window mode).
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10529 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d4c8b134
  3. 12 Sep, 2005 1 commit
    • eseidel's avatar
      Bug #: none · 8efd2b15
      eseidel authored
      Submitted by: eseidel
      Reviewed by: none, build fix only for svg.
              Fixes build after qstring() -> string() rename this weekend.
      
              * kdom/Helper.cpp:
              (parseLength):
              * kdom/core/DOMStringImpl.cpp:
              (DOMStringImpl::toInt):
              * kdom/core/DocumentImpl.cpp:
              (DocumentImpl::getId):
              * kdom/css/CSSStyleSelector.cpp:
              (checkPseudoState):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10525 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8efd2b15
  4. 11 Sep, 2005 7 commits
    • darin's avatar
      Reviewed by John Sullivan. · bded90a8
      darin authored
              - fixed <rdar://problem/4126166> using JavaScript-assigned accesskeys crashes Safari - DOM::NodeImpl::dispatchEvent
      
              Test cases added:
              * layout-tests/fast/events/access-key-self-destruct.html: Added.
              * layout-tests/fast/events/access-key-self-destruct-expected.txt: Added.
      
              * khtml/xml/dom_nodeimpl.cpp: (DOM::NodeImpl::dispatchMouseEvent): Ref the node for the duration
              with a SharedPtr; this helps in cases where the last reference to the node goes away inside the
              event handler.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10524 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bded90a8
    • darin's avatar
      Forgot to check this in (was mentioned in ChangeLog). · 02bed308
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10523 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      02bed308
    • darin's avatar
      Reviewed by Eric. · 2eba085a
      darin authored
              - changed back the name of a couple of string() functions that were renamed to qstring() by accident
      
              * kwq/KWQString.h: (QConstString::string): Changed function name back to string() from qstring().
              This is a function from Qt, so the name needs to match Qt -- that's just how KWQ works.
      
              * khtml/xml/dom_atomicstringlist.h: Changed the name of the function that returns the current
              AtomicString to string() back from qstring()!
      
              * khtml/css/cssstyleselector.cpp:
              (khtml::CSSStyleSelector::matchRules): Use string() instead of qstring().
              (khtml::checkPseudoState): Ditto.
              (khtml::CSSStyleSelector::checkOneSelector): Ditto.
              * khtml/dom/dom_string.cpp: (DOM::DOMString::percentage): Ditto.
              * khtml/html/htmltokenizer.cpp: (khtml::HTMLTokenizer::finish): Ditto.
              * khtml/xml/dom_stringimpl.cpp:
              (DOM::DOMStringImpl::DOMStringImpl): Small tweak to streamline a tiny bit by using an already-computed
              boolean instead of re-checking a couple of data members.
              (DOM::parseLength): Use string() instead of qstring().
              (DOM::DOMStringImpl::toInt): Ditto.
      
              - removed some dead code
      
              * khtml/xml/dom_elementimpl.cpp: Removed XMLElementImpl.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10522 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2eba085a
    • darin's avatar
      WebKit: · 316d66fd
      darin authored
              Reviewed, tweaked, and landed by Darin.
      
              - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4286
                .Mac prefpane crashes when Safari using CVS WebKit is running
      
              * WebView.subproj/WebView.m: (-[WebView initWithFrame:frameName:groupName:]):
              If ENABLE_WEBKIT_UNSET_DYLD_FRAMEWORK_PATH, and WEBKIT_UNSET_DYLD_FRAMEWORK_PATH
              is set in the environment, then unset DYLD_FRAMEWORK_PATH.
      
              * WebKit.xcodeproj/project.pbxproj: Set ENABLE_WEBKIT_UNSET_DYLD_FRAMEWORK_PATH
              in configurations other than Default -- we don't want that code in production
              builds, but we want it in builds we do ourselves and nightly builds.
      
      WebKitTools:
      
              Reviewed, tweaked, and landed by Darin.
      
              - fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4286
                .Mac prefpane crashes when Safari using CVS WebKit is running
      
              * Scripts/run-safari: Set WEBKIT_UNSET_DYLD_FRAMEWORK_PATH.
              * Scripts/run-webkit-app: Ditto.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10521 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      316d66fd
    • eseidel's avatar
      Bug #: 4932 · 29ffe3ea
      eseidel authored
      Submitted by: eseidel
      Reviewed by: self, only affects SVG; build fix.
              * JavaScriptCore.xcodeproj/project.pbxproj: Fixed JSC+SVG
              Fixed JavaScriptCore+SVG after PCRE 6.1 merger.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=4932
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10520 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29ffe3ea
    • darin's avatar
      * Scripts/run-webkit-tests: Oops. Use spaces, not tabs. · 606ab5c7
      darin authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10519 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      606ab5c7
    • darin's avatar
      Reviewed by Eric. · c44887eb
      darin authored
              * Scripts/run-webkit-tests: Sort tests with a new "pathcmp" function that's better in
              two ways: 1) puts all files in a directory before any files in a subdirectory, and
              2) sort file names with numeric digits in them in a logical way, so test-33 will come
              before test-3.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10518 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c44887eb
  5. 10 Sep, 2005 11 commits
  6. 09 Sep, 2005 2 commits
    • tomernic's avatar
      Reviewed by John Sullivan. · 7eea642d
      tomernic authored
              * History.subproj/WebBackForwardList.m:
              (-[WebBackForwardList removeItem:]):
      	SPI to remove a given WebHistoryItem.
      
              * History.subproj/WebBackForwardListPrivate.h: Added.
      
              * WebKit.xcodeproj/project.pbxproj:
      	Added WebBackForwardListPrivate.h as a private header.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7eea642d
    • sullivan's avatar
      WebCore: · 1dcf67dc
      sullivan authored
              Reviewed by Tim Omernick.
      
              Test cases added: none, doesn't affect layout
      
              - fixed <rdar://problem/4250792> Find in HTML doesn't reveal match if only match was already selected
      
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::findString):
              If we end up finding the previously-selected text, just go through the normal success code path
              instead of bailing out early.
      
      WebKit:
      
              Reviewed by Tim Omernick.
      
              fixed http://bugzilla.opendarwin.org/show_bug.cgi?id=4070:
              Find in plain text won't find only occurrence if it overlaps selection
      
              * Misc.subproj/WebSearchableTextView.m:
              (-[NSString findString:selectedRange:options:wrap:]):
              in the wrap case, extend the search range far enough that text overlapping the
              selection (including the exact-match case) will be considered.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10505 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dcf67dc
  7. 08 Sep, 2005 10 commits
    • darin's avatar
      - fixed overloaded versions of throwError so that they substitute *all* · da1e1fe7
      darin authored
                expected parameters into the message string -- some versions used to
                skip parameters, resulting in "%s" being printed in the error message.
      
              Reviewed by Geoff.
      
              * kjs/nodes.h: Updated declarations to use "const &" and not to name parameters
              * kjs/nodes.cpp: (Node::throwError): Updated to match above and add one missing
              call to substitute.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10496 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      da1e1fe7
    • darin's avatar
      Reviewed by Geoff. · d7737ab5
      darin authored
              - updated to PCRE 6.1
      
              The original PCRE 6.1 sources are checked into the tree with the tag
              "pcre-6-1" for reference. What we're checking in right now is the original
              plus our changes to make it support UTF-16 and at least one other tweak
              (vertical tab considered whitespace). Our work to get our changes was
              done on "pcre-6-1-branch", with an anchor at "pcre-6-1-anchor" so you can
              see the evolution of the UTF-16 changes.
      
              Note also that there was one small change made here that's not on the branch
              in pcre_compile.c.
      
              * Info.plist: Updated the part of the copyright message that's about PCRE.
      
              * JavaScriptCore.xcodeproj/project.pbxproj: Added new PCRE source files,
              removed obsolete ones.
      
              * pcre/AUTHORS: Updated to PCRE 6.1. Includes credits for Apple's UTF-16
              changes, but not the credits for Google's C++ wrapper, since we don't include that.
              * pcre/COPYING: Updated to PCRE 6.1.
              * pcre/LICENCE: Ditto.
              * pcre/dftables.c: Ditto.
              * pcre/pcre-config.h: Ditto.
              * pcre/pcre.h: Ditto.
      
              * pcre/pcre_compile.c: Added for PCRE 6.1.
              * pcre/pcre_config.c: Ditto.
              * pcre/pcre_exec.c: Ditto.
              * pcre/pcre_fullinfo.c: Ditto.
              * pcre/pcre_get.c: Ditto.
              * pcre/pcre_globals.c: Ditto.
              * pcre/pcre_info.c: Ditto.
              * pcre/pcre_internal.h: Ditto.
              * pcre/pcre_maketables.c: Ditto.
              * pcre/pcre_ord2utf8.c: Ditto.
              * pcre/pcre_printint.c: Ditto.
              * pcre/pcre_refcount.c: Ditto.
              * pcre/pcre_study.c: Ditto.
              * pcre/pcre_tables.c: Ditto.
              * pcre/pcre_try_flipped.c: Ditto.
              * pcre/pcre_ucp_findchar.c: Ditto.
              * pcre/pcre_version.c: Ditto.
              * pcre/pcre_xclass.c: Ditto.
              * pcre/ucp.h: Ditto.
              * pcre/ucp_findchar.c: Ditto.
              * pcre/ucpinternal.h: Ditto.
              * pcre/ucptable.c: Ditto.
      
              * pcre/get.c: Removed.
              * pcre/internal.h: Removed.
              * pcre/maketables.c: Removed.
              * pcre/pcre.c: Removed.
              * pcre/study.c: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d7737ab5
    • vicki's avatar
      Reviewed by John Sullivan. · 245ed0b2
      vicki authored
      	- fixed <rdar://problem/4168089> CRASH: Using A9 Maps new interface (also occurs on google maps)
      
              * khtml/xml/dom_elementimpl.cpp:
              (ElementImpl::getAttributeNS): add a check for the document, before checking to see if this is an HTML document
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10492 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      245ed0b2
    • justing's avatar
      Reviewed by darin · 5009cfdd
      justing authored
              * Scripts/update-webkitsysteminterface: Added.
              Builds webkitsysteminterface and moves the built product and header into WebKitLibraries
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10491 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5009cfdd
    • justing's avatar
      Reviewed by darin · 9ca5ce30
      justing authored
              WebCore portion of multipart/x-mixed-replace support
      
              * khtml/misc/loader.cpp:
              (Request::Request):
              (Loader::slotReceivedResponse):
              Only allow a multipart load for images, clear out the old multipart section to prepare for a replace
              (Loader::slotData):
              Multipart sections are delivered to the coreLoader by WebKit all at once, send eof to CachedImage::data
              * khtml/misc/loader.h:
              (khtml::CachedObject::isImage): Added
              (khtml::CachedImage::isImage):
              * kwq/KWQKJobClasses.h:
              * kwq/KWQKJobClasses.mm:
              (KIO::TransferJob::cancel):
              Added a way to cancel a subresource loader from WebCore
              * kwq/KWQLoader.h:
              * kwq/KWQLoader.mm:
              (KWQResponseIsMultipart):
              * kwq/KWQResourceLoader.h:
              * kwq/KWQResourceLoader.mm:
              (-[KWQResourceLoader jobCanceledLoad]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10490 268f45cc-cd09-0410-ab3c-d52...
      9ca5ce30
    • justing's avatar
      Reviewed by darin · 828f5fb9
      justing authored
              WebKit portion of multipart/x-mixed-replace support
      
              * WebCoreSupport.subproj/WebSubresourceLoader.m:
              (+[WebSubresourceLoader startLoadingResource:withRequest:customHeaders:referrer:forDataSource:]):
              Subresource case: Check for Foundation level multipart support
              (-[WebSubresourceLoader didReceiveResponse:]):
              Send previously received data in a multipart section to the coreLoader
              (-[WebSubresourceLoader didReceiveData:lengthReceived:]):
              Don't send data to the coreLoader until it has been completely received
              * WebView.subproj/WebDataSource.m:
              (-[WebDataSource _startLoading:]):
              Main resource case: check for Foundation level multipart support
              (+[WebDataSource _repTypesAllowImageTypeOmission:]):
              Some server apps send data right after declaring content multipart/x-mixed-replace, and expect it to be treated as html
              (-[WebDataSource _commitIfReady:]):
              Don't ask the WebFrame to close its old WebDataSource when loading a multipart section, because we're going to reuse it
              (-[WebDataSource _receivedData:]):
              For non text/html multipart sections, we commit the data all at once, at the end
              (-[WebDataSource _doesProgressiveLoadWithMIMEType:]):
              Added heuristic for when to commit the load incrementally
              (-[WebDataSource _commitLoadWithData:]):
              Moved from _receivedData into its own function
              (-[WebDataSource _revertToProvisionalState]):
              (-[WebDataSource _setupForReplaceByMIMEType:]):
              Commits the data received for the previous multipart section if it wasn't loaded progresively, clears out the WebFrame and WebDatasource for the next multipart section
              * WebView.subproj/WebDataSourcePrivate.h:
              * WebView.subproj/WebFrame.m:
              (-[WebFrame _transitionToCommitted:]):
              The very first multipart section is treated as a normal load, so that the back/forward list and history are updated.
              All later sections have a new load type, WebFrameLoadTypeReplace, and are treated like reloads
              (-[WebFrame _checkLoadCompleteForThisFrame]): Ditto
              (-[WebFrame _itemForRestoringDocState]): Ditto
              (-[WebFrame _setupForReplace]):
              Clears out the WebFrame for the next multipart section
              * WebView.subproj/WebFrameInternal.h:
              * WebView.subproj/WebFramePrivate.h:
              * WebView.subproj/WebFrameView.m:
              (+[WebFrameView _viewTypesAllowImageTypeOmission:]): See above
              * WebView.subproj/WebLoader.h:
              * WebView.subproj/WebLoader.m:
              (-[NSURLProtocol clearResourceData]):
              (-[NSURLProtocol setSupportsMultipartContent:]):
              * WebView.subproj/WebMainResourceLoader.m: Straightforward
              (-[WebMainResourceLoader didReceiveResponse:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10489 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      828f5fb9
    • justing's avatar
      * WebKitSystemInterface.h: Update to latest · 2753a96f
      justing authored
              * libWebKitSystemInterface.a: ditto
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10488 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2753a96f
    • vicki's avatar
      Reviewed by Don Melton. · 988c4474
      vicki authored
      	- fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4891 (HTMLIFrameElement11.js checks for
      	wrong title, causes false failure) and enabled HTMLIFrameElement11.html
      
              * layout-tests/dom/html/level2/html/HTMLIFrameElement11.js: check for correct title of resources/frame.html
      
              * layout-tests/dom/html/level2/html/HTMLIFrameElement11.html: Added.
              * layout-tests/dom/html/level2/html/HTMLIFrameElement11.html-disabled: Removed.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10487 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      988c4474
    • ggaren's avatar
      -fixed gcc 4.0 build bustage due to inconsitent return type · 9fb526fc
      ggaren authored
              Reviewed by john.
      
              * kwq/KWQTextField.mm:
              (-[NSTextField _KWQ_currentEditor]): editor is now cast as an NSTextView
              instead of an NSText (which makes sense regardless of build bustage,
              given that we first test for isKindOfClass:[NSTextView class] before defining editor)
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10486 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9fb526fc
    • eseidel's avatar
      Bug #: 4863 · a7b0e9b8
      eseidel authored
      Submitted by: eseidel
      Reviewed by: darin
              Merged various changes from KDE, including:
              Qt3->Qt4 change: QWMatrix -> QMatrix
              A few remaining DOMString -> DOMStringImpl changes
              KRenderingDevicePaintServer now inherits KCanvasResource
              Various whitespace adjustments.
              Fewer, clearer logs from kcanvas/device/quartz code.
              DOM exception support.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=4863
      
              * ForwardingHeaders/qmatrix.h: Added.
              * WebCore+SVG/DrawDocument.mm:
              (-[DrawDocumentPrivate init]):
              (-[DrawDocumentPrivate dealloc]):
              (-[DrawDocumentPrivate setPrimaryView:]):
              * WebCore.xcodeproj/project.pbxproj:
              * kcanvas/KCanvas.cpp:
              (KCanvas::~KCanvas):
              (KCanvas::reset):
              * kcanvas/KCanvasContainer.cpp:
              (KCanvasContainer::bbox):
              (KCanvasContainer::collisions):
              (KCanvasContainer::first):
              (KCanvasContainer::last):
              * kcanvas/KCanvasContainer.h:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasMatrix.cpp:
              (KCanvasMatrix::KCanvasMatrix):
              (KCanvasMatrix::operator=):
              (KCanvasMatrix::operator==):
              (KCanvasMatrix::operator!=):
              (KCanvasMatrix::translate):
              (KCanvasMatrix::multiply):
              (KCanvasMatrix::scale):
              (KCanvasMatrix::rotate):
              (KCanvasMatrix::rotateFromVector):
              (KCanvasMatrix::skewX):
              (KCanvasMatrix::skewY):
              (KCanvasMatrix::qmatrix):
              * kcanvas/KCanvasMatrix.h:
              * kcanvas/KCanvasRegistry.cpp:
              (operator<<):
              * kcanvas/KCanvasRegistry.h:
              * kcanvas/KCanvasResources.cpp:
              (KCanvasResource::KCanvasResource):
              (KCanvasMarker::draw):
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              (operator<<):
              * kcanvas/KCanvasView.cpp:
              (KCanvasView::setCanvas):
              * kcanvas/KCanvasView.h:
              * kcanvas/device/KRenderingFillPainter.cpp:
              (KRenderingFillPainter::draw):
              * kcanvas/device/KRenderingPaintServer.h:
              (KRenderingPaintServer::KRenderingPaintServer):
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              (KRenderingPaintServerGradient::Private::Private):
              (KRenderingPaintServerGradient::KRenderingPaintServerGradient):
              (KRenderingPaintServerGradient::listener):
              (KRenderingPaintServerGradient::setListener):
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.cpp:
              (KRenderingPaintServerPattern::Private::Private):
              (KRenderingPaintServerPattern::KRenderingPaintServerPattern):
              (KRenderingPaintServerPattern::listener):
              (KRenderingPaintServerPattern::setListener):
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingStrokePainter.cpp:
              (KRenderingStrokePainter::setPaintServer):
              (KRenderingStrokePainter::draw):
              * kcanvas/device/KRenderingStyle.cpp:
              (KRenderingStyle::Private::Private):
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (KCanvasFilterQuartz::prepareFilter):
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              (cgGradientCallback):
              (KRenderingPaintServerGradientQuartz::KRenderingPaintServerGradientQuartz):
              (KRenderingPaintServerGradientQuartz::updateQuartzGradientCache):
              (KRenderingPaintServerLinearGradientQuartz::draw):
              (KRenderingPaintServerRadialGradientQuartz::draw):
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.h:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
              (KRenderingPaintServerPatternQuartz::draw):
              (KRenderingPaintServerImageQuartz::draw):
              * kdom/KDOMSettings.cpp:
              (KDOMSettings::init):
              (KDOMSettings::strToAdvice):
              * kdom/Shared.h:
              (KDOM::KDOM_SAFE_SET):
              * kdom/backends/libxml/LibXMLParser.cpp:
              (sax_start_doc):
              (sax_internal_subset):
              (sax_entity_decl):
              * kdom/bindings/IDLParser.pm:
              * kdom/bindings/IDLStructure.pm:
              * kdom/cache/KDOMCache.h:
              * kdom/cache/KDOMCachedObject.h:
              * kdom/cache/KDOMLoader.cpp:
              (DocumentLoader::setAutoloadImages):
              * kdom/cache/KDOMLoader.h:
              * kdom/core/AttrImpl.cpp:
              (AttrImpl::value):
              (AttrImpl::setPrefix):
              * kdom/core/DOMConfigurationImpl.cpp:
              (DOMConfigurationImpl::normalizeCharacters):
              * kdom/core/DOMImplementationImpl.cpp:
              (DOMImplementationImpl::DOMImplementationImpl):
              (DOMImplementationImpl::createDocument):
              (DOMImplementationImpl::idToType):
              * kdom/core/DOMImplementationImpl.h:
              * kdom/core/DocumentImpl.cpp:
              (DocumentImpl::removeListenerType):
              (DocumentImpl::getId):
              * kdom/core/DocumentTypeImpl.cpp:
              (DocumentTypeImpl::internalSubset):
              * kdom/core/NamedAttrMapImpl.cpp:
              (NamedAttrMapImpl::setValue):
              (NamedAttrMapImpl::dispatchAttrMutationEvent):
              * kdom/core/NamedNodeMapImpl.cpp:
              (RONamedNodeMapImpl::getNamedItem):
              * kdom/core/NodeImpl.cpp:
              (NodeBaseImpl::removeChildren):
              (NodeImpl::lookupNamespaceURI):
              * kdom/core/ProcessingInstructionImpl.cpp:
              (ProcessingInstructionImpl::ProcessingInstructionImpl):
              (ProcessingInstructionImpl::~ProcessingInstructionImpl):
              * kdom/core/ProcessingInstructionImpl.h:
              * kdom/core/domattrs.c:
              * kdom/css/CSSPrimitiveValueImpl.cpp:
              (FontFamilyValueImpl::FontFamilyValueImpl):
              * kdom/css/CSSStyleRuleImpl.cpp:
              (CSSStyleRuleImpl::parseString):
              * kdom/css/CSSStyleRuleImpl.h:
              * kdom/css/CSSStyleSelector.cpp:
              (CSSStyleSelector::CSSStyleSelector):
              (CSSStyleSelector::styleForElement):
              (CSSStyleSelector::applyRule):
              (CSSStyleSelector::getLangAttribute):
              * kdom/css/CSSStyleSelector.h:
              * kdom/css/CSSStyleSheetImpl.cpp:
              (CSSStyleSheetImpl::type):
              * kdom/css/CSSValueImpl.cpp:
              (ShadowValueImpl::cssText):
              * kdom/css/Font.h:
              * kdom/css/LinkStyleImpl.cpp: Added.
              (LinkStyleImpl::LinkStyleImpl):
              (LinkStyleImpl::~LinkStyleImpl):
              (LinkStyleImpl::sheet):
              * kdom/css/LinkStyleImpl.h: Added.
              * kdom/css/MediaListImpl.cpp:
              (MediaListImpl::setMediaText):
              * kdom/css/RectImpl.cpp:
              * kdom/css/RectImpl.h:
              (KDOM::RectImpl::top):
              (KDOM::RectImpl::right):
              (KDOM::RectImpl::bottom):
              (KDOM::RectImpl::left):
              * kdom/css/RenderStyle.cpp:
              (RenderStyle::diff):
              * kdom/css/RenderStyle.h:
              * kdom/css/RenderStyleDefs.cpp:
              (StyleInheritedData::StyleInheritedData):
              (StyleInheritedData::operator==):
              * kdom/css/RenderStyleDefs.h:
              * kdom/css/StyleBaseImpl.cpp:
              (CSSSelector::print):
              (CSSSelector::extractPseudoType):
              * kdom/events/EventTargetImpl.cpp:
              (EventTargetImpl::addEventListener):
              * kdom/kdom.h:
              (KDOM::):
              * kdom/ls/DOMImplementationLSImpl.cpp: Added.
              (DOMImplementationLSImpl::DOMImplementationLSImpl):
              (DOMImplementationLSImpl::~DOMImplementationLSImpl):
              (DOMImplementationLSImpl::createLSParser):
              (DOMImplementationLSImpl::createLSInput):
              (DOMImplementationLSImpl::createLSOutput):
              (DOMImplementationLSImpl::createLSSerializer):
              * kdom/ls/DOMImplementationLSImpl.h: Added.
              * kdom/ls/LSParserImpl.cpp:
              (LSParserImpl::parseURI):
              * kdom/ls/LSParserImpl.h:
              * kdom/ls/LSResourceResolverImpl.cpp:
              (LSResourceResolverImpl::resolveResource):
              * kdom/ls/LSResourceResolverImpl.h:
              * kdom/ls/LSSerializerImpl.cpp:
              (LSSerializerImpl::newLine):
              (LSSerializerImpl::writeToString):
              (LSSerializerImpl::escape):
              (LSSerializerImpl::escapeAttribute):
              * kdom/ls/LSSerializerImpl.h:
              * kdom/parser/KDOMParser.cpp:
              (Parser::handleError):
              (Parser::bufferForUrl):
              * kdom/range/RangeImpl.cpp:
              (RangeImpl::toString):
              * kdom/range/RangeImpl.h:
              * kdom/scripts/cssmakeprops:
              * kdom/scripts/cssmakevalues:
              * kdom/xpointer/PointerPartImpl.cpp:
              (PointerPartImpl::PointerPartImpl):
              * kdom/xpointer/ShortHandImpl.cpp:
              (ShortHandImpl::ShortHandImpl):
              * kdom/xpointer/XPointerEvaluatorImpl.cpp:
              (XPointerEvaluatorImpl::createXPointer):
              * kdom/xpointer/XPointerResultImpl.h:
              * kdom/xpointer/kdomxpointer.h:
              (KDOM::XPointer::):
              * ksvg2/KSVGFactory.cpp:
              (KSVGFactory::createPartObject):
              * ksvg2/css/SVGCSSStyleSelector.cpp:
              * ksvg2/events/SVGEventImpl.cpp:
              (SVGEventImpl::SVGEventImpl):
              (SVGEventImpl::initEvent):
              * ksvg2/events/SVGEventImpl.h:
              (KSVG::):
              * ksvg2/events/SVGZoomEventImpl.cpp:
              (SVGZoomEventImpl::SVGZoomEventImpl):
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              (KCanvasRenderingStyle::updateFill):
              (KCanvasRenderingStyle::updateStroke):
              (KCanvasRenderingStyle::startMarker):
              (KCanvasRenderingStyle::midMarker):
              (KCanvasRenderingStyle::endMarker):
              (KCanvasRenderingStyle::filter):
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              (SVGTimer::notifyAll):
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              (SVGAnimateColorElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElementImpl.cpp:
              (SVGAnimateElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              (SVGAnimationElementImpl::targetAttribute):
              (SVGAnimationElementImpl::setTargetAttribute):
              * ksvg2/svg/SVGAnimationElementImpl.h:
              * ksvg2/svg/SVGCursorElementImpl.cpp: Added.
              (SVGCursorElementImpl::SVGCursorElementImpl):
              (SVGCursorElementImpl::~SVGCursorElementImpl):
              (SVGCursorElementImpl::x):
              (SVGCursorElementImpl::y):
              (SVGCursorElementImpl::parseAttribute):
              (SVGCursorElementImpl::notifyFinished):
              * ksvg2/svg/SVGCursorElementImpl.h: Added.
              (KSVG::SVGCursorElementImpl::pixmap):
              * ksvg2/svg/SVGDOMImplementationImpl.cpp:
              (SVGDOMImplementationImpl::hasFeature):
              (SVGDOMImplementationImpl::createDocumentType):
              (SVGDOMImplementationImpl::createDocument):
              (SVGDOMImplementationImpl::typeToId):
              (SVGDOMImplementationImpl::idToType):
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (SVGDocumentImpl::SVGDocumentImpl):
              (SVGDocumentImpl::createSVGElement):
              (SVGDocumentImpl::createElement):
              (SVGDocumentImpl::createElementNS):
              (SVGDocumentImpl::createEvent):
              (SVGDocumentImpl::notifyFinished):
              (SVGDocumentImpl::defaultNS):
              (SVGDocumentImpl::executeScripts):
              (SVGDocumentImpl::prepareMouseEvent):
              (SVGDocumentImpl::dispatchUIEvent):
              (SVGDocumentImpl::dispatchMouseEvent):
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGElementImpl.cpp:
              (SVGElementImpl::getId):
              (SVGElementImpl::xmlbase):
              (SVGElementImpl::tryGetAttribute):
              (SVGElementImpl::tryGetAttributeNS):
              (SVGElementImpl::parseAttribute):
              (SVGElementImpl::addSVGEventListener):
              * ksvg2/svg/SVGElementImpl.h:
              * ksvg2/svg/SVGGradientElementImpl.cpp:
              (SVGGradientElementImpl::parseAttribute):
              * ksvg2/svg/SVGHelper.cpp:
              (SVGHelper::PercentageOfViewport):
              * ksvg2/svg/SVGImageElementImpl.cpp:
              (SVGImageElementImpl::notifyFinished):
              * ksvg2/svg/SVGLengthListImpl.cpp:
              (SVGLengthListImpl::parse):
              * ksvg2/svg/SVGLinearGradientElementImpl.cpp:
              (SVGLinearGradientElementImpl::x2):
              * ksvg2/svg/SVGMatrixImpl.cpp:
              (SVGMatrixImpl::SVGMatrixImpl):
              (SVGMatrixImpl::postMultiply):
              (SVGMatrixImpl::postTranslate):
              (SVGMatrixImpl::postScale):
              (SVGMatrixImpl::postScaleNonUniform):
              (SVGMatrixImpl::postRotate):
              (SVGMatrixImpl::postRotateFromVector):
              (SVGMatrixImpl::postFlipX):
              (SVGMatrixImpl::postFlipY):
              (SVGMatrixImpl::postSkewX):
              (SVGMatrixImpl::postSkewY):
              (SVGMatrixImpl::multiply):
              (SVGMatrixImpl::setMatrix):
              (SVGMatrixImpl::qmatrix):
              * ksvg2/svg/SVGMatrixImpl.h:
              * ksvg2/svg/SVGPatternElementImpl.cpp:
              (SVGPatternElementImpl::parseAttribute):
              * ksvg2/svg/SVGSVGElementImpl.cpp:
              (SVGSVGElementImpl::width):
              (SVGSVGElementImpl::height):
              (SVGSVGElementImpl::contentScriptType):
              (SVGSVGElementImpl::contentStyleType):
              (SVGSVGElementImpl::setContentStyleType):
              (SVGSVGElementImpl::createEvent):
              * ksvg2/svg/SVGSVGElementImpl.h:
              * ksvg2/svg/SVGScriptElementImpl.cpp:
              (SVGScriptElementImpl::parseAttribute):
              (SVGScriptElementImpl::executeScript):
              * ksvg2/svg/SVGScriptElementImpl.h:
              * ksvg2/svg/SVGSetElementImpl.cpp:
              (SVGSetElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGStyleElementImpl.cpp:
              (SVGStyleElementImpl::xmlspace):
              (SVGStyleElementImpl::type):
              (SVGStyleElementImpl::media):
              (SVGStyleElementImpl::title):
              (SVGStyleElementImpl::childrenChanged):
              * ksvg2/svg/SVGStyledElementImpl.cpp:
              (SVGStyledElementImpl::attach):
              * ksvg2/svg/SVGTransformableImpl.cpp:
              (SVGTransformableImpl::updateSubtreeMatrices):
              (SVGTransformableImpl::parseAttribute):
              (SVGTransformableImpl::parseTransformAttribute):
              * ksvg2/svg/SVGTransformableImpl.h:
              * kwq/KWQNamespace.h:
              (Qt::): Added LayoutDirection for Qt4 support
              * kwq/KWQWMatrix.h: #define mapping QMatrix to QWMatrix
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a7b0e9b8
  8. 07 Sep, 2005 1 commit