andersca [Sun, 8 Oct 2006 01:08:27 +0000 (01:08 +0000)]
2006-10-07 Anders Carlsson <acarlsson@apple.com>
Reviewed by Maciej.
Remove crossDomain, it was unused and is one of the last functions that use DeprecatedStringList.
* loader/loader.cpp:
(WebCore::Loader::servePendingRequests):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16886
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Sun, 8 Oct 2006 00:44:23 +0000 (00:44 +0000)]
2006-10-07 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
Convert a bunch of RefPtr<StringImpl> to String.
* bridge/mac/FrameMac.h:
* bridge/mac/FrameMac.mm:
(WebCore::FrameMac::didTellBridgeAboutLoad):
(WebCore::FrameMac::haveToldBridgeAboutLoad):
* dom/BeforeUnloadEvent.cpp:
(WebCore::BeforeUnloadEvent::storeResult):
* dom/BeforeUnloadEvent.h:
(WebCore::BeforeUnloadEvent::result):
* dom/Document.cpp:
(WebCore::Document::createEntityReference):
* dom/Entity.cpp:
(WebCore::Entity::Entity):
(WebCore::Entity::nodeName):
(WebCore::Entity::toString):
* dom/Entity.h:
(WebCore::Entity::publicId):
(WebCore::Entity::systemId):
(WebCore::Entity::notationName):
* dom/EntityReference.cpp:
(WebCore::EntityReference::EntityReference):
(WebCore::EntityReference::nodeName):
(WebCore::EntityReference::cloneNode):
(WebCore::EntityReference::toString):
* dom/EntityReference.h:
* dom/KeyboardEvent.cpp:
(WebCore::KeyboardEvent::KeyboardEvent):
(WebCore::KeyboardEvent::initKeyboardEvent):
* dom/KeyboardEvent.h:
(WebCore::KeyboardEvent::keyIdentifier):
* dom/MutationEvent.cpp:
(WebCore::MutationEvent::MutationEvent):
(WebCore::MutationEvent::initMutationEvent):
* dom/MutationEvent.h:
(WebCore::MutationEvent::prevValue):
(WebCore::MutationEvent::newValue):
(WebCore::MutationEvent::attrName):
* dom/Notation.cpp:
(WebCore::Notation::Notation):
(WebCore::Notation::nodeName):
* dom/Notation.h:
(WebCore::Notation::publicId):
(WebCore::Notation::systemId):
* dom/ProcessingInstruction.cpp:
(WebCore::ProcessingInstruction::ProcessingInstruction):
(WebCore::ProcessingInstruction::setData):
(WebCore::ProcessingInstruction::nodeName):
(WebCore::ProcessingInstruction::nodeValue):
(WebCore::ProcessingInstruction::cloneNode):
(WebCore::ProcessingInstruction::checkStyleSheet):
(WebCore::ProcessingInstruction::toString):
* dom/ProcessingInstruction.h:
(WebCore::ProcessingInstruction::target):
(WebCore::ProcessingInstruction::data):
(WebCore::ProcessingInstruction::localHref):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16885
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Sat, 7 Oct 2006 18:53:57 +0000 (18:53 +0000)]
Reviewed/landed by Adam.
http://bugs.webkit.org/show_bug.cgi?id=11199
Update Session History when a load is committed rather than completed.
* COM/WebFrame.cpp:
(WebFrame::receivedResponse):
(WebFrame::receivedAllData):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16884
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig [Sat, 7 Oct 2006 17:24:56 +0000 (17:24 +0000)]
Reviewed by Tim H.
Patch for http://bugs.webkit.org/show_bug.cgi?id=11206
10 more SVG Objective-C auto-generated bindings
- Auto-generate DOMSVGFilterElement, DOMSVGFitToViewBox,
DOMSVGForeignObjectElement, DOMSVGGElement, DOMSVGGradientElement,
DOMSVGImageElement, DOMSVGLineElement, DOMSVGLinearGradientElement,
DOMSVGMarkerElement, DOMSVGMaskElement and DOMSVGPaint.
- Auto-generate the text method for DOMRange.
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOM.mm:
* bindings/objc/DOMExtensions.h:
* bindings/objc/DOMInternal.h:
* bindings/objc/DOMPrivate.h:
* bindings/objc/DOMRGBColor.mm:
* bindings/objc/DOMSVG.h:
* bindings/objc/PublicDOMInterfaces.h:
* bindings/scripts/CodeGeneratorObjC.pm:
* dom/Range.idl:
* ksvg2/svg/SVGFilterElement.cpp:
* ksvg2/svg/SVGFilterElement.h:
* ksvg2/svg/SVGFilterElement.idl:
* ksvg2/svg/SVGForeignObjectElement.idl:
* ksvg2/svg/SVGGElement.idl:
* ksvg2/svg/SVGGradientElement.idl:
* ksvg2/svg/SVGImageElement.idl:
* ksvg2/svg/SVGLineElement.idl:
* ksvg2/svg/SVGLinearGradientElement.idl:
* ksvg2/svg/SVGMarkerElement.idl:
* ksvg2/svg/SVGMaskElement.idl:
* ksvg2/svg/SVGPaint.idl:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16883
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig [Sat, 7 Oct 2006 12:58:25 +0000 (12:58 +0000)]
WebCore:
Reviewed by Tim H.
Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
Auto-generate a few more Objective-C DOM interfaces
- Fully auto-generate DOMAbstractView and DOMRange.
- Auto-generate just the interface for DOMRGBColor.
- Add DOMRanges.h as the new top level file for Ranges
module.
- Add DOMRanges.h and DOMXPath.h to DOM.mm
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOM.h:
* bindings/objc/DOM.mm:
* bindings/objc/DOMAbstractView.h: Removed.
* bindings/objc/DOMAbstractView.mm: Removed.
* bindings/objc/DOMInternal.h:
* bindings/objc/DOMPrivate.h:
* bindings/objc/DOMRGBColor.h: Removed.
* bindings/objc/DOMRGBColor.mm:
* bindings/objc/DOMRange.h: Removed.
* bindings/objc/DOMRanges.h: Added.
* bindings/objc/PublicDOMInterfaces.h:
* bindings/scripts/CodeGeneratorObjC.pm:
* css/RGBColor.idl:
* dom/Range.idl:
* page/AbstractView.idl: Added.
WebKit:
Reviewed by Tim H.
Patch for http://bugs.webkit.org/show_bug.cgi?id=11198
Auto-generate a few more Objective-C DOM interfaces
* MigrateHeaders.make:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16882
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sat, 7 Oct 2006 12:39:48 +0000 (12:39 +0000)]
2006-10-07 Andrew Wellington <proton@wiretapped.net>
Reviewed by Eric.
Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
Return null when there is no frame. This matches Firefox.
* bindings/js/kjs_html.cpp:
(KJS::JSHTMLDocument::getValueProperty):
2006-10-07 Andrew Wellington <proton@wiretapped.net>
Reviewed by Eric.
Test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10837
Bug 10837: REGRESSION: Yahoo New Charts Crashes WebKit
* fast/dom/HTMLDocument/frameless-location-bugzilla10837-expected.checksum: Added.
* fast/dom/HTMLDocument/frameless-location-bugzilla10837-expected.png: Added.
* fast/dom/HTMLDocument/frameless-location-bugzilla10837-expected.txt: Added.
* fast/dom/HTMLDocument/frameless-location-bugzilla10837.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16881
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 7 Oct 2006 12:04:21 +0000 (12:04 +0000)]
Fix win32 and qt bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16880
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 7 Oct 2006 11:41:23 +0000 (11:41 +0000)]
Implement scroll corner painting (a white rect fill) for overflow areas to cover up
scrollbar joins properly.
Refactor painting of scrollbars and resizers into common functions. Eliminate the
extra 20 bytes per RenderLayer by cutting out m_resizerImage and m_resizerControlRect.
Reviewed by mitz
* page/FrameView.cpp:
(WebCore::selectCursor):
(WebCore::FrameView::handleMouseMoveEvent):
* platform/mac/PlatformScrollBar.h:
(WebCore::PlatformScrollbar::horizontalScrollbarHeight):
(WebCore::PlatformScrollbar::verticalScrollbarWidth):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::RenderLayer):
(WebCore::RenderLayer::~RenderLayer):
(WebCore::RenderLayer::updateLayerPositions):
(WebCore::scrollCornerRect):
(WebCore::RenderLayer::positionOverflowControls):
(WebCore::RenderLayer::paintOverflowControls):
(WebCore::RenderLayer::isPointInResizeControl):
(WebCore::RenderLayer::paintLayer):
* rendering/RenderLayer.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16879
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sat, 7 Oct 2006 10:42:47 +0000 (10:42 +0000)]
2006-10-07 Mark Rowe <bdash@webkit.org>
Reviewed by Mitz.
Fix memory leak from -[WebDocumentLoadState setTitle:].
* Loader/WebDocumentLoadState.m:
(-[WebDocumentLoadState setTitle:]): Ensure 'trimmed' is released even when length is
zero, and untangle the confusing logic around this case.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16878
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sat, 7 Oct 2006 09:32:55 +0000 (09:32 +0000)]
2006-10-07 Mark Rowe <bdash@webkit.org>
Reviewed by Mitz.
Linux/Gdk build fixes, primarily consisting of s/ScrollBar/Scrollbar/ and
matching recent ResourceLoader changes.
* platform/gdk/FrameGdk.cpp:
(WebCore::FrameGdk::openURL):
(WebCore::FrameGdk::urlSelected):
* platform/gdk/PlatformScrollBar.h:
* platform/gdk/ResourceLoaderCurl.cpp:
(WebCore::ResourceLoader::start):
* platform/gdk/ScrollViewGdk.cpp:
(WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
(WebCore::ScrollView::resizeContents):
(WebCore::ScrollView::scrollBy):
(WebCore::ScrollView::hScrollbarMode):
(WebCore::ScrollView::vScrollbarMode):
(WebCore::ScrollView::suppressScrollbars):
(WebCore::ScrollView::setHScrollbarMode):
(WebCore::ScrollView::setVScrollbarMode):
(WebCore::ScrollView::setScrollbarsMode):
* platform/gdk/TemporaryLinkStubs.cpp:
(FrameView::passMousePressEventToScrollbar):
(Widget::removeFromParent):
(ScrollView::addChild):
(ScrollView::updateScrollbars):
(ScrollView::scrollbarUnderMouse):
(PlatformScrollbar::PlatformScrollbar):
(PlatformScrollbar::~PlatformScrollbar):
(PlatformScrollbar::width):
(PlatformScrollbar::height):
(PlatformScrollbar::setEnabled):
(PlatformScrollbar::paint):
(PlatformScrollbar::updateThumbPosition):
(PlatformScrollbar::updateThumbProportion):
(PlatformScrollbar::setRect):
(Scrollbar::Scrollbar):
(Scrollbar::setSteps):
(Scrollbar::scroll):
(Scrollbar::setValue):
(Scrollbar::setProportion):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16877
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 7 Oct 2006 06:06:22 +0000 (06:06 +0000)]
Fix Qt bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16876
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 7 Oct 2006 06:04:52 +0000 (06:04 +0000)]
Fix win32 bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16875
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 7 Oct 2006 06:03:59 +0000 (06:03 +0000)]
Remove x/y from the log message on debug Mac builds.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16874
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
beidson [Sat, 7 Oct 2006 05:55:26 +0000 (05:55 +0000)]
Reviewed by Darin
Refactored a whole bunch of WebFramePrivate.h SPI to WebFrameInternal
* DefaultDelegates/WebDefaultContextMenuDelegate.m:
* History/WebHistoryItem.m:
* Loader/WebFrameLoader.h:
* Misc/WebCoreStatistics.m:
* Misc/WebElementDictionary.m:
* Plugins/WebNetscapePluginEmbeddedView.m:
* Plugins/WebPluginController.m:
* WebCoreSupport/WebViewFactory.m:
* WebView/WebArchiver.m:
* WebView/WebDataSource.m:
* WebView/WebFrame.m:
(-[WebFrame _isDescendantOfFrame:]):
(-[WebFrame _setShouldCreateRenderers:]):
(-[WebFrame _bodyBackgroundColor]):
(-[WebFrame _isFrameSet]):
(-[WebFrame _firstLayoutDone]):
(-[WebFrame _loadType]):
* WebView/WebFrameInternal.h:
* WebView/WebFramePrivate.h:
* WebView/WebHTMLRepresentation.m:
* WebView/WebScriptDebugDelegate.m:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16873
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Sat, 7 Oct 2006 05:32:26 +0000 (05:32 +0000)]
Add a new method for obtaining accurate window-level clip rectangles. Can be used even by windowed plugins to clip properly.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16872
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Sat, 7 Oct 2006 03:31:22 +0000 (03:31 +0000)]
2006-10-06 David Smith <catfish.man@gmail.com>
Reviewed by Timothy.
Bug 9665: [Drosera] Conditional breakpoints. http://bugs.webkit.org/show_bug.cgi?id=9665
* Drosera/Drosera.xcodeproj/project.pbxproj: Added new files
* Drosera/breakpointEditor.css: Added.
* Drosera/breakpointEditor.html: Added.
* Drosera/breakpointEditor.js: Added.
* Drosera/debugger.js: Added conditional breakpoint support, and the ability to open the breakpoint editor window on option-clicking a breakpoint.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16871
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Sat, 7 Oct 2006 00:42:31 +0000 (00:42 +0000)]
Reviewed by Darin.
- Move all delegate dispatching code out of WebDataSource.
* Loader/WebFrameLoader.m:
(-[WebFrameLoader startLoading]):
(-[WebFrameLoader _identifierForInitialRequest:]):
(-[WebFrameLoader _willSendRequest:forResource:redirectResponse:]):
(-[WebFrameLoader _didReceiveAuthenticationChallenge:forResource:]):
(-[WebFrameLoader _didCancelAuthenticationChallenge:forResource:]):
(-[WebFrameLoader _didReceiveResponse:forResource:]):
(-[WebFrameLoader _didReceiveData:contentLength:forResource:]):
(-[WebFrameLoader _didFinishLoadingForResource:]):
(-[WebFrameLoader _didFailLoadingWithError:forResource:]):
(-[WebFrameLoader _receivedMainResourceError:complete:]):
(-[WebFrameLoader _downloadWithLoadingConnection:request:response:proxy:]):
(-[WebFrameLoader _checkContentPolicyForMIMEType:andCall:withSelector:]):
* WebView/WebDataSource.m:
(-[WebDataSource _setLoadingFromPageCache:]):
(-[WebDataSource _stopLoadingWithError:]):
* WebView/WebDataSourceInternal.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16870
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Sat, 7 Oct 2006 00:36:13 +0000 (00:36 +0000)]
Reviewed by Maciej.
- moved firstLayoutDone BOOL from WebFrame to WebFrameLoader
* Loader/WebFrameLoader.h:
* Loader/WebFrameLoader.m:
(-[WebFrameLoader didFirstLayout]):
(-[WebFrameLoader provisionalLoadStarted]):
(-[WebFrameLoader frameLoadCompleted]):
(-[WebFrameLoader firstLayoutDone]):
* WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge didFirstLayout]):
* WebView/WebFrame.m:
(-[WebFrame _firstLayoutDone]):
(-[WebFrame _provisionalLoadStarted]):
(-[WebFrame _frameLoadCompleted]):
(-[WebFrame _restoreScrollPositionAndViewState]):
* WebView/WebFrameInternal.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16869
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Sat, 7 Oct 2006 00:19:23 +0000 (00:19 +0000)]
Reviewed by Maciej.
- moved more data and the corresponding code from WebFrame to WebFrameLoader
* Loader/WebFrameLoader.h:
* Loader/WebFrameLoader.m:
(-[WebFrameLoader cannotShowMIMETypeForURL:]):
(-[WebFrameLoader _checkNavigationPolicyForRequest:andCall:withSelector:]):
(-[WebFrameLoader shouldReloadToHandleUnreachableURLFromRequest:]):
(-[WebFrameLoader _loadRequest:archive:]):
(-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
(-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
(-[WebFrameLoader reload]):
(-[WebFrameLoader invalidatePendingPolicyDecisionCallingDefaultAction:]):
(-[WebFrameLoader checkNewWindowPolicyForRequest:action:frameName:formState:andCall:withSelector:]):
(-[WebFrameLoader _continueAfterNewWindowPolicy:]):
(-[WebFrameLoader checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
(-[WebFrameLoader continueAfterNavigationPolicy:]):
(-[WebFrameLoader continueAfterWillSubmitForm:]):
(-[WebFrameLoader continueLoadRequestAfterNavigationPolicy:formState:]):
(-[WebFrameLoader loadDataSource:withLoadType:formState:]):
(-[WebFrameLoader handleUnimplementablePolicyWithErrorCode:forURL:]):
(-[WebFrameLoader delegateIsHandlingProvisionalLoadError]):
(-[WebFrameLoader setDelegateIsHandlingProvisionalLoadError:]):
* Loader/WebFrameLoaderClient.h:
* WebView/WebFrame.m:
(-[NSView setWebFrame::]):
(-[WebFramePrivate dealloc]):
(-[WebFrame _checkLoadCompleteForThisFrame]):
(-[WebFrame _loadItem:withLoadType:]):
(-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
(-[WebFrame _postWithURL:referrer:target:data:contentType:triggeringEvent:form:formValues:]):
(-[WebFrame _loadRequest:inFrameNamed:]):
(-[WebFrame stopLoading]):
(-[WebFrame _resetBackForwardList]):
(-[WebFrame _quickRedirectComing]):
(-[WebFrame _provisionalItemIsTarget]):
(-[WebFrame _loadProvisionalItemFromPageCache]):
* WebView/WebFrameInternal.h:
* WebView/WebFramePrivate.h:
* WebKit.xcodeproj/project.pbxproj:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16868
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Fri, 6 Oct 2006 22:49:02 +0000 (22:49 +0000)]
Rubber stamped by Darin.
- removed includes of unused headers.
* WebView/WebDataSource.m:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16867
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Fri, 6 Oct 2006 22:42:38 +0000 (22:42 +0000)]
Not reviewed.
- fix build breakage
* Loader/WebFrameLoader.m:
(-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
(-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16866
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Fri, 6 Oct 2006 22:38:07 +0000 (22:38 +0000)]
Reviewed by Darin.
- move remaining movable WebDataSource fields to WebDocumentLoadState
* Loader/WebDocumentLoadState.h:
* Loader/WebDocumentLoadState.m:
(-[WebDocumentLoadState dealloc]):
(-[WebDocumentLoadState isLoadingInAPISense]):
(-[WebDocumentLoadState addResponse:]):
(-[WebDocumentLoadState stopRecordingResponses]):
(-[WebDocumentLoadState title]):
(-[WebDocumentLoadState setLastCheckedRequest:]):
(-[WebDocumentLoadState lastCheckedRequest]):
(-[WebDocumentLoadState triggeringAction]):
(-[WebDocumentLoadState setTriggeringAction:]):
(-[WebDocumentLoadState responses]):
(-[WebDocumentLoadState setOverrideEncoding:]):
(-[WebDocumentLoadState overrideEncoding]):
(-[WebDocumentLoadState setTitle:]):
* Loader/WebFrameLoader.h:
* Loader/WebFrameLoader.m:
(-[WebFrameLoader _setState:]):
(-[WebFrameLoader _loadRequest:archive:]):
(-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
(-[WebFrameLoader _reloadAllowingStaleDataWithOverrideEncoding:]):
(-[WebFrameLoader reload]):
(-[WebFrameLoader willChangeTitleForDocumentLoadState:]):
(-[WebFrameLoader didChangeTitleForDocumentLoadState:]):
* WebCoreSupport/WebFrameBridge.m:
(-[WebFrameBridge setTitle:]):
(-[WebFrameBridge receivedData:textEncodingName:]):
* WebView/WebDataSource.m:
(-[WebDataSourcePrivate dealloc]):
(-[WebDataSource _didReceiveResponse:forResource:]):
(-[WebDataSource textEncodingName]):
* WebView/WebDataSourceInternal.h:
* WebView/WebFrame.m:
(-[WebFrame _opened]):
(-[WebFrame _checkNavigationPolicyForRequest:dataSource:formState:andCall:withSelector:]):
(-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
(-[WebFrame _addChild:]):
(-[WebFrame _loadDataSource:withLoadType:formState:]):
* WebView/WebHTMLRepresentation.m:
(-[WebHTMLRepresentation title]):
* WebView/WebView.m:
(-[WebView _mainFrameOverrideEncoding]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16865
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Fri, 6 Oct 2006 21:52:08 +0000 (21:52 +0000)]
Reviewed by Maciej.
- moved loadType into WebFrameLoader
* WebView/WebFramePrivate.h: Removed _setLoadType, but not _loadType because it's
currently used by Safari.
* Loader/WebFrameLoader.h:
* Loader/WebFrameLoader.m:
(-[WebFrameLoader _loadRequest:archive:]):
(-[WebFrameLoader _loadRequest:triggeringAction:loadType:formState:]):
(-[WebFrameLoader isReplacing]):
(-[WebFrameLoader setReplacing]):
(-[WebFrameLoader loadType]):
(-[WebFrameLoader setLoadType:]):
* WebCoreSupport/WebFrameBridge.m:
(-[WebFrameBridge isLoadTypeReload]):
* WebView/WebFrame.m:
(-[WebFrame _loadType]):
(-[WebFrame _transitionToCommitted:]):
(-[WebFrame _commitProvisionalLoad:]):
(-[WebFrame _opened]):
(-[WebFrame _checkLoadCompleteForThisFrame]):
(-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
(-[WebFrame _loadURL:referrer:intoChild:]):
(-[WebFrame _currentBackForwardListItemToResetTo]):
(-[WebFrame _itemForRestoringDocState]):
(-[WebFrame _continueLoadRequestAfterNavigationPolicy:formState:]):
(-[WebFrame _didFirstLayout]):
(-[WebFrame _addExtraFieldsToRequest:mainResource:alwaysFromRequest:]):
(-[WebFrame _provisionalLoadStarted]):
(-[WebFrame loadRequest:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16863
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sfalken [Fri, 6 Oct 2006 21:25:16 +0000 (21:25 +0000)]
2006-10-06 Steve Falkenburg <sfalken@apple.com>
Reviewed by Adam.
Add another method we'll need for scrollbar dodging
* platform/ScrollView.h:
* platform/win/TemporaryLinkStubs.cpp:
(ScrollView::resizerOverlapsContent):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16862
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Fri, 6 Oct 2006 21:25:08 +0000 (21:25 +0000)]
Reviewed by Maciej.
- added WebFrameLoaderClient protocol -- to be used to make WebFrameLoader forget all about WebFrame
* Loader/WebDocumentLoadState.h: Added comment about Maciej's planned renaming here.
* Loader/WebFrameLoader.h:
* Loader/WebFrameLoader.m: Renamed webFrame to client and added the new protocol.
Eventually we'll be removing the dependency on WebFrame entirely.
* WebView/WebFrame.m: (-[WebFrame _initWithWebFrameView:webView:bridge:]): Update to call the method
by its new name.
* Loader/WebFrameLoaderClient.h: Added.
* WebKit.xcodeproj/project.pbxproj: Updated for new file, sorted things.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16861
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig [Fri, 6 Oct 2006 21:13:09 +0000 (21:13 +0000)]
Reviewed by Tim H.
Patch for http://bugs.webkit.org/show_bug.cgi?id=11191
Auto-generate the interfaces even for Objective-C DOM
bindings that need custom implementations
- Fully auto-generate DOMEventTarget, DOMNodeFilter and
DOMHTMLOptionElement.
- Auto-generate just the interface for DOMHTMLAppletElement,
DOMHTMLEmbedElement, DOMSVGNumber, DOMSVGPoint and DOMSVGRect
using the new IDL property ObjCCustomImplementation.
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOMEventTarget.h: Removed.
* bindings/objc/DOMHTMLAppletElement.h: Removed.
* bindings/objc/DOMHTMLEmbedElement.h: Removed.
* bindings/objc/DOMHTMLOptionElement.h: Removed.
* bindings/objc/DOMHTMLOptionElement.mm: Removed.
* bindings/objc/DOMInternal.h:
* bindings/objc/DOMNodeFilter.h: Removed.
* bindings/objc/DOMSVGNumber.h: Removed.
* bindings/objc/DOMSVGPoint.h: Removed.
* bindings/objc/DOMSVGPoint.mm:
(-[DOMSVGPoint matrixTransform:]):
* bindings/objc/DOMSVGRect.h: Removed.
* bindings/objc/PublicDOMInterfaces.h:
* bindings/scripts/CodeGeneratorObjC.pm:
* dom/EventTarget.idl:
* html/HTMLAppletElement.idl:
* html/HTMLEmbedElement.idl:
* html/HTMLOptionElement.idl:
* ksvg2/svg/SVGNumber.idl:
* ksvg2/svg/SVGPoint.idl:
* ksvg2/svg/SVGRect.idl:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16860
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Fri, 6 Oct 2006 21:11:29 +0000 (21:11 +0000)]
Reviewed by Darin.
- segregate WebFrame methods into ones that should be moved into WebFrameLoader and ones that don't need to
Also removed useless WebFrameLoader part
* WebView/WebFrame.m:
(-[WebFramePrivate dealloc]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16859
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
thatcher [Fri, 6 Oct 2006 20:48:50 +0000 (20:48 +0000)]
WebCore:
Reviewed by Tim H.
Make Qt/Linux compile again completly.
* platform/qt/WidgetQt.cpp:
(WebCore::Widget::removeFromParent):
WebKitTools:
Reviewed by Tim H.
Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ changes.
* DumpRenderTree/DumpRenderTree.qtproj/DumpRenderTree.cpp:
(WebCore::DumpRenderTree::DumpRenderTree):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16858
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Fri, 6 Oct 2006 20:42:01 +0000 (20:42 +0000)]
Reviewed by Anders.
- moved more data from WebDataSource to WebDocumentLoadState
* Loader/WebDocumentLoadState.h:
* Loader/WebDocumentLoadState.m:
(-[WebDocumentLoadState commitLoadWithData:]):
(-[WebDocumentLoadState prepareForLoadStart]):
(-[WebDocumentLoadState loadingStartedTime]):
(-[WebDocumentLoadState setIsClientRedirect:]):
(-[WebDocumentLoadState isClientRedirect]):
(-[WebDocumentLoadState setPrimaryLoadComplete:]):
(-[WebDocumentLoadState isLoadingInAPISense]):
* Loader/WebFrameLoader.h:
* Loader/WebFrameLoader.m:
(-[WebFrameLoader _setState:]):
(-[WebFrameLoader _finishedLoading]):
(-[WebFrameLoader documentLoadState:mainReceivedCompleteError:]):
(-[WebFrameLoader prepareForLoadStart]):
(-[WebFrameLoader subframeIsLoading]):
* WebView/WebDataSource.m:
(-[WebDataSource _fileWrapperForURL:]):
(-[WebDataSource _startLoading]):
(-[WebDataSource _loadFromPageCache:]):
(-[WebDataSource isLoading]):
* WebView/WebDataSourceInternal.h:
* WebView/WebFrame.m:
(-[WebFrame _transitionToCommitted:]):
(-[WebFrame _opened]):
(-[WebFrame _loadURL:referrer:loadType:target:triggeringEvent:form:formValues:]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16857
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
thatcher [Fri, 6 Oct 2006 20:36:10 +0000 (20:36 +0000)]
Reviewed by Tim H.
Fix Qt/Linux build by adapting the s/ScrollBar/Scrollbar/ patch.
* platform/qt/PlatformScrollBar.h:
* platform/qt/ScrollViewQt.cpp:
(WebCore::ScrollView::hScrollbarMode):
(WebCore::ScrollView::vScrollbarMode):
(WebCore::ScrollView::suppressScrollbars):
(WebCore::ScrollView::setHScrollbarMode):
(WebCore::ScrollView::setVScrollbarMode):
(WebCore::ScrollView::setScrollbarsMode):
(WebCore::ScrollView::scrollbarUnderMouse):
* platform/qt/TemporaryLinkStubs.cpp:
(WebCore::Scrollbar::Scrollbar):
(WebCore::Scrollbar::setSteps):
(WebCore::Scrollbar::scroll):
(WebCore::Scrollbar::setValue):
(WebCore::Scrollbar::setProportion):
(WebCore::PlatformScrollbar::PlatformScrollbar):
(WebCore::PlatformScrollbar::~PlatformScrollbar):
(WebCore::PlatformScrollbar::width):
(WebCore::PlatformScrollbar::height):
(WebCore::PlatformScrollbar::setEnabled):
(WebCore::PlatformScrollbar::paint):
(WebCore::PlatformScrollbar::updateThumbPosition):
(WebCore::PlatformScrollbar::updateThumbProportion):
(WebCore::PlatformScrollbar::setRect):
(FrameView::passMousePressEventToScrollbar):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16856
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Fri, 6 Oct 2006 18:16:38 +0000 (18:16 +0000)]
Reviewed by Brady.
DST and TimeZones were wrong in some cases, specifically on some of the dates where DST changes.
* kjs/DateMath.cpp:
(KJS::equivalentYearForDST):
(KJS::getUTCOffset):
(KJS::getDSTOffsetSimple):
(KJS::getDSTOffset):
(KJS::dateToMseconds):
(KJS::msToTM):
* kjs/DateMath.h:
* kjs/date_object.cpp:
(KJS::gmtoffset):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16855
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Fri, 6 Oct 2006 17:55:21 +0000 (17:55 +0000)]
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=11183
REGRESSION: Safari loads error pages unstyled
* WebView/WebFrame.m:
(-[WebFrame _loadHTMLString:baseURL:unreachableURL:]):
Use utf-8 encoding instead of the string's "fastest" encoding.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16853
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
weinig [Fri, 6 Oct 2006 12:25:52 +0000 (12:25 +0000)]
Reviewed by Tim H.
Patch for http://bugs.webkit.org/show_bug.cgi?id=11177
Another round of Objective-C SVG DOM bindings auto-generation
- Auto-generate DOMSVGAnimatedNumberList, DOMSVGAnimatedRect,
DOMSVGComponentTransferFunctionElement, DOMSVGFEBlendElement,
DOMSVGFEColorMatrixElement, DOMSVGFEComponentTransferElement,
DOMSVGFECompositeElement, DOMSVGFEDiffuseLightingElement,
DOMSVGFEDisplacementMapElement, DOMSVGFEDistantLightElement,
DOMSVGFEFloodElement, DOMSVGFEFuncAElement, DOMSVGFEFuncBElement,
DOMSVGFEFuncGElement, DOMSVGFEFuncRElement, DOMSVGFEGaussianBlurElement,
DOMSVGFEImageElement, DOMSVGFEMergeElement, DOMSVGFEMergeNodeElement,
DOMSVGFEOffsetElement, DOMSVGFEPointLightElement,
DOMSVGFESpecularLightingElement, DOMSVGFESpotLightElement,
DOMSVGFETileElement, DOMSVGFETurbulenceElement,
DOMSVGFilterPrimitiveStandardAttributes and DOMSVGNumberList.
- Adds interfaces and implementation stubs for DOMSVGNumber, DOMSVGPoint
and DOMSVGRect.
- IDL clean up.
- Make numOctaves in SVGFETurbulenceElement use a long instead of an int
in it's macro declaration and definition.
* DerivedSources.make:
* WebCore.xcodeproj/project.pbxproj:
* bindings/objc/DOMCSS.mm:
(+[DOMCSSValue _CSSValueWith:WebCore::]):
* bindings/objc/DOMInternal.h:
* bindings/objc/DOMSVG.h:
* bindings/objc/DOMSVGNumber.h: Added.
* bindings/objc/DOMSVGNumber.mm: Added.
(-[DOMSVGNumber dealloc]):
(-[DOMSVGNumber finalize]):
(-[DOMSVGNumber value]):
(-[DOMSVGNumber setValue:]):
(-[DOMSVGNumber _SVGNumber]):
(-[DOMSVGNumber _initWithFloat:]):
(+[DOMSVGNumber _SVGNumberWith:]):
* bindings/objc/DOMSVGPoint.h: Added.
* bindings/objc/DOMSVGPoint.mm: Added.
(-[DOMSVGPoint dealloc]):
(-[DOMSVGPoint finalize]):
(-[DOMSVGPoint x]):
(-[DOMSVGPoint setX:]):
(-[DOMSVGPoint y]):
(-[DOMSVGPoint setY:]):
(-[DOMSVGPoint WebCore::]):
(-[DOMSVGPoint _initWithFloatPoint:WebCore::]):
(+[DOMSVGPoint _SVGPointWith:WebCore::]):
* bindings/objc/DOMSVGRect.h: Added.
* bindings/objc/DOMSVGRect.mm: Added.
(-[DOMSVGRect dealloc]):
(-[DOMSVGRect finalize]):
(-[DOMSVGRect x]):
(-[DOMSVGRect setX:]):
(-[DOMSVGRect y]):
(-[DOMSVGRect setY:]):
(-[DOMSVGRect width]):
(-[DOMSVGRect setWidth:]):
(-[DOMSVGRect height]):
(-[DOMSVGRect setHeight:]):
(-[DOMSVGRect WebCore::]):
(-[DOMSVGRect _initWithFloatRect:WebCore::]):
(+[DOMSVGRect _SVGRectWith:WebCore::]):
* bindings/scripts/CodeGeneratorObjC.pm:
* ksvg2/svg/SVGAnimatedNumberList.idl:
* ksvg2/svg/SVGAnimatedRect.idl:
* ksvg2/svg/SVGComponentTransferFunctionElement.idl:
* ksvg2/svg/SVGCursorElement.idl:
* ksvg2/svg/SVGFEBlendElement.idl:
* ksvg2/svg/SVGFEColorMatrixElement.idl:
* ksvg2/svg/SVGFEComponentTransferElement.idl:
* ksvg2/svg/SVGFECompositeElement.idl:
* ksvg2/svg/SVGFEDiffuseLightingElement.idl:
* ksvg2/svg/SVGFEDisplacementMapElement.idl:
* ksvg2/svg/SVGFEDistantLightElement.idl:
* ksvg2/svg/SVGFEFloodElement.idl:
* ksvg2/svg/SVGFEFuncAElement.idl:
* ksvg2/svg/SVGFEFuncBElement.idl:
* ksvg2/svg/SVGFEFuncGElement.idl:
* ksvg2/svg/SVGFEFuncRElement.idl:
* ksvg2/svg/SVGFEGaussianBlurElement.idl:
* ksvg2/svg/SVGFEImageElement.idl:
* ksvg2/svg/SVGFEMergeElement.idl:
* ksvg2/svg/SVGFEMergeNodeElement.idl:
* ksvg2/svg/SVGFEOffsetElement.idl:
* ksvg2/svg/SVGFEPointLightElement.idl:
* ksvg2/svg/SVGFESpecularLightingElement.idl:
* ksvg2/svg/SVGFESpotLightElement.idl:
* ksvg2/svg/SVGFETileElement.idl:
* ksvg2/svg/SVGFETurbulenceElement.cpp:
* ksvg2/svg/SVGFETurbulenceElement.h:
* ksvg2/svg/SVGFETurbulenceElement.idl:
* ksvg2/svg/SVGNumberList.idl:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16850
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Fri, 6 Oct 2006 11:18:54 +0000 (11:18 +0000)]
Reviewed by Adam.
- fixed the following bugs:
http://bugs.webkit.org/show_bug.cgi?id=11136
"REGRESSION: Safari snippet editor doesn't work"
http://bugs.webkit.org/show_bug.cgi?id=11140
"REGRESSION: view source window blank"
http://bugs.webkit.org/show_bug.cgi?id=11146
"REGRESSION: Instead of showing the error page, Safari opens its Resources folder in the Finder"
Possibly more.
* Loader/WebDocumentLoadState.h:
* Loader/WebDocumentLoadState.m:
(-[WebDocumentLoadState actualRequest]): New method.
* WebView/WebDataSource.m:
(-[WebDataSource _startLoading]): We need to make sure not to start loading the main
resource with the fake external request for an applewebdata: request.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16848
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Fri, 6 Oct 2006 10:30:17 +0000 (10:30 +0000)]
Fix win32 bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16847
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Fri, 6 Oct 2006 10:28:22 +0000 (10:28 +0000)]
Fix win32 bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16846
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Fri, 6 Oct 2006 10:22:30 +0000 (10:22 +0000)]
Fix build bustage on many platforms by making sure the includes of ScrollBar stay the way they were.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16845
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Fri, 6 Oct 2006 10:18:40 +0000 (10:18 +0000)]
Backing out my previous change.
* WebCore.xcodeproj/project.pbxproj:
* page/FrameView.cpp:
(WebCore::FrameView::adjustViewSize):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16844
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Fri, 6 Oct 2006 10:17:27 +0000 (10:17 +0000)]
Fix build bustage like... everywhere.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16843
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Fri, 6 Oct 2006 10:06:48 +0000 (10:06 +0000)]
Build fix.
* WebCore.xcodeproj/project.pbxproj:
* page/FrameView.cpp:
(WebCore::FrameView::windowResizerRect):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16842
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Fri, 6 Oct 2006 10:01:54 +0000 (10:01 +0000)]
Fix win32 bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16841
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Fri, 6 Oct 2006 09:43:24 +0000 (09:43 +0000)]
Reviewed by Maciej.
More loader tweaks.
* platform/ResourceLoader.h:
* platform/ResourceLoaderInternal.h:
(WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
* platform/win/TemporaryLinkStubs.cpp:
(WebCore::ResourceLoader::newHTTPRequest):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16840
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
sfalken [Fri, 6 Oct 2006 07:44:42 +0000 (07:44 +0000)]
2006-10-05 Steve Falkenburg <sfalken@apple.com>
Reviewed by aroben.
Stub out some methods that we'll be able to use to dodge a window resizer.
* bridge/win/FrameWin.h:
* page/Frame.h:
(WebCore::Frame::windowResizerRect):
* page/FrameView.h:
* platform/ScrollView.h:
(WebCore::ScrollView::windowResizerRect):
* platform/Widget.h:
* platform/win/TemporaryLinkStubs.cpp:
(FrameView::windowResizerRect):
(Widget::setParent):
(Widget::parent):
(FrameWin::windowResizerRect):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16839
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Fri, 6 Oct 2006 06:14:34 +0000 (06:14 +0000)]
Stub out setFrameGeometry.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16838
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Fri, 6 Oct 2006 05:30:09 +0000 (05:30 +0000)]
Temporary hack.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16837
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
adele [Fri, 6 Oct 2006 05:18:36 +0000 (05:18 +0000)]
Reverting autoscroll fix. I need to rework this a little.
* page/Frame.cpp:
(WebCore::Frame::handleAutoscroll):
(WebCore::Frame::autoscrollTimerFired):
(WebCore::Frame::stopAutoscrollTimer):
* page/Frame.h:
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::~RenderLayer):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::~RenderListBox):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16836
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Fri, 6 Oct 2006 04:48:14 +0000 (04:48 +0000)]
2006-10-05 Oliver Hunt <ohunt@apple.com>
Reviewed by Anders.
* Scripts/run-webkit-tests:
Fix pixel tests.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16835
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aliceli1 [Fri, 6 Oct 2006 03:57:08 +0000 (03:57 +0000)]
Reviewed by Adam.
Fixed <rdar://problem/
4731778>
* editing/CommandByName.cpp:
(WebCore::Frame::Command::):
was calling the wrong enabledFn for arrow selection and navigation
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16834
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
adele [Fri, 6 Oct 2006 03:34:36 +0000 (03:34 +0000)]
Reviewed by Maciej.
- Fix for <rdar://problem/
4707489> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active <input type="text">
and <rdar://problem/
4707519> After timers fix, crash below RenderLayer::autoscroll after moving/destroying active textarea
* rendering/RenderLayer.cpp: (WebCore::RenderLayer::~RenderLayer): If the renderer is being autoscrolled, then stop the autoscroll timer.
* rendering/RenderListBox.cpp: (WebCore::RenderListBox::~RenderListBox): ditto.
* page/Frame.cpp: Added getter and setter for the renderer being autoscrolled.
(WebCore::Frame::handleAutoscroll):
(WebCore::Frame::autoscrollTimerFired):
(WebCore::Frame::autoscrollRenderer):
(WebCore::Frame::setAutoscrollRenderer):
(WebCore::Frame::stopAutoscrollTimer):
* page/Frame.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16833
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Fri, 6 Oct 2006 02:48:36 +0000 (02:48 +0000)]
2006-10-05 Don Gibson <dgibson77@gmail.com>
Reviewed by Eric.
Fix win32 build bustage after ggaren's Scrollbar renaming changes.
Properly include PlatformScrollBar.h in WbCore.vcproj.
Clean up WidgetWin.cpp a bit.
* WebCore.vcproj/WebCore/WebCore.vcproj:
* platform/Widget.h:
* platform/win/PlatformScrollBar.h:
* platform/win/ScrollViewWin.cpp:
(WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
(WebCore::ScrollView::resizeContents):
(WebCore::ScrollView::scrollBy):
(WebCore::ScrollView::hScrollbarMode):
(WebCore::ScrollView::vScrollbarMode):
(WebCore::ScrollView::suppressScrollbars):
(WebCore::ScrollView::setHScrollbarMode):
(WebCore::ScrollView::setVScrollbarMode):
(WebCore::ScrollView::setScrollbarsMode):
(WebCore::ScrollView::updateScrollbars):
* platform/win/TemporaryLinkStubs.cpp:
(FrameView::passMousePressEventToScrollbar):
(Widget::removeFromParent):
(ScrollView::scrollbarUnderMouse):
(PlatformScrollbar::PlatformScrollbar):
(PlatformScrollbar::~PlatformScrollbar):
(PlatformScrollbar::width):
(PlatformScrollbar::height):
(PlatformScrollbar::setEnabled):
(PlatformScrollbar::paint):
(PlatformScrollbar::updateThumbPosition):
(PlatformScrollbar::updateThumbProportion):
(PlatformScrollbar::setRect):
(Scrollbar::Scrollbar):
(Scrollbar::setSteps):
(Scrollbar::scroll):
(Scrollbar::setValue):
(Scrollbar::setProportion):
* platform/win/WidgetWin.cpp:
(WebCore::WidgetPrivate::WidgetPrivate):
(WebCore::Widget::Widget):
(WebCore::Widget::setContainingWindow):
(WebCore::Widget::containingWindow):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16832
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
adele [Fri, 6 Oct 2006 01:23:47 +0000 (01:23 +0000)]
Reviewed by the letter 'B'.
More build fixes.
* WebKit.xcodeproj/project.pbxproj:
* WebView/WebDynamicScrollBarsView.h:
* WebView/WebDynamicScrollBarsView.m:
(-[WebDynamicScrollBarsView updateScrollers]):
(-[WebDynamicScrollBarsView setAllowsScrolling:]):
(-[WebDynamicScrollBarsView allowsScrolling]):
(-[WebDynamicScrollBarsView setAllowsHorizontalScrolling:]):
(-[WebDynamicScrollBarsView setAllowsVerticalScrolling:]):
(-[WebDynamicScrollBarsView allowsHorizontalScrolling]):
(-[WebDynamicScrollBarsView allowsVerticalScrolling]):
(-[WebDynamicScrollBarsView horizontalScrollingMode]):
(-[WebDynamicScrollBarsView verticalScrollingMode]):
(-[WebDynamicScrollBarsView setHorizontalScrollingMode:]):
(-[WebDynamicScrollBarsView setVerticalScrollingMode:]):
(-[WebDynamicScrollBarsView setScrollingMode:]):
* WebView/WebView.m:
(-[WebView setAlwaysShowVerticalScroller:]):
(-[WebView alwaysShowVerticalScroller]):
(-[WebView setAlwaysShowHorizontalScroller:]):
(-[WebView alwaysShowHorizontalScroller]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16831
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Fri, 6 Oct 2006 01:01:59 +0000 (01:01 +0000)]
build fix.
* WebCore.xcodeproj/project.pbxproj:
* bridge/mac/BrowserExtensionMac.mm:
(WebCore::BrowserExtensionMac::createNewWindow):
* bridge/mac/FrameMac.mm:
(WebCore::FrameMac::createFrame):
* bridge/mac/FrameViewMac.mm:
(WebCore::FrameView::passMousePressEventToScrollbar):
* bridge/mac/WebCoreFrameBridge.mm:
(-[WebCoreFrameBridge installInFrame:]):
* bridge/mac/WebCoreFrameView.h:
* platform/ScrollBar.cpp:
* platform/Widget.h:
* platform/mac/PlatformScrollBar.h:
* platform/mac/PlatformScrollBarMac.mm:
(NSControlSizeForScrollBarControlSize):
(-[WebCoreScrollBar initWithPlatformScrollbar:]):
(-[WebCoreScrollBar detachPlatformScrollbar]):
(-[WebCoreScrollBar scroll:]):
(-[WebCoreScrollBar widget]):
(WebCore::PlatformScrollbar::PlatformScrollbar):
(WebCore::PlatformScrollbar::~PlatformScrollbar):
(WebCore::PlatformScrollbar::updateThumbPosition):
(WebCore::PlatformScrollbar::updateThumbProportion):
(WebCore::PlatformScrollbar::scrollbarHit):
(WebCore::PlatformScrollbar::width):
(WebCore::PlatformScrollbar::height):
(WebCore::PlatformScrollbar::setRect):
(WebCore::PlatformScrollbar::setEnabled):
(WebCore::PlatformScrollbar::paint):
* platform/mac/ScrollViewMac.mm:
(WebCore::ScrollView::setVScrollbarMode):
(WebCore::ScrollView::setHScrollbarMode):
(WebCore::ScrollView::setScrollbarsMode):
(WebCore::ScrollView::vScrollbarMode):
(WebCore::ScrollView::hScrollbarMode):
(WebCore::ScrollView::suppressScrollbars):
(WebCore::ScrollView::scrollbarUnderMouse):
* platform/mac/WidgetMac.mm:
(WebCore::Widget::removeFromParent):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::destroyScrollbar):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16830
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eseidel [Fri, 6 Oct 2006 00:02:40 +0000 (00:02 +0000)]
2006-10-05 Eric Seidel <eric@eseidel.com>
Reviewed by Tim H.
* coding/coding-style.html: use css styles, add example for whitespace, add example for c++ constructors
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16829
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Thu, 5 Oct 2006 22:26:29 +0000 (22:26 +0000)]
2006-10-06 Mitz Pettel <mitz@webkit.org>
http://bugs.webkit.org/show_bug.cgi?id=8276
Fix broken manual test added back in r13990.
Add resource forks for test resources.
* manual-tests/resources/plain-text-paste/._1.textClipping: Added.
* manual-tests/resources/plain-text-paste/._2.textClipping: Added.
* manual-tests/resources/plain-text-paste/._4.txt: Added.
* manual-tests/resources/plain-text-paste/._5.webloc: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16827
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Thu, 5 Oct 2006 22:14:49 +0000 (22:14 +0000)]
Rename addClip to clip.
Reviewed by darin
* kcanvas/RenderForeignObject.cpp:
(WebCore::RenderForeignObject::paint):
* kcanvas/RenderSVGContainer.cpp:
(WebCore::RenderSVGContainer::paint):
* kcanvas/RenderSVGImage.cpp:
(WebCore::RenderSVGImage::paint):
* platform/GraphicsContext.h:
* platform/cairo/GraphicsContextCairo.cpp:
(WebCore::GraphicsContext::clip):
* platform/cg/GraphicsContextCG.cpp:
(WebCore::GraphicsContext::savePlatformState):
(WebCore::GraphicsContext::restorePlatformState):
(WebCore::GraphicsContext::clip):
(WebCore::GraphicsContext::addRoundedRectClip):
(WebCore::GraphicsContext::addInnerRoundedRectClip):
(WebCore::GraphicsContext::scale):
(WebCore::GraphicsContext::rotate):
(WebCore::GraphicsContext::translate):
(WebCore::GraphicsContext::concatCTM):
* platform/cg/GraphicsContextPlatformPrivate.h:
(WebCore::GraphicsContextPlatformPrivate::save):
(WebCore::GraphicsContextPlatformPrivate::restore):
(WebCore::GraphicsContextPlatformPrivate::clip):
(WebCore::GraphicsContextPlatformPrivate::scale):
(WebCore::GraphicsContextPlatformPrivate::rotate):
(WebCore::GraphicsContextPlatformPrivate::translate):
(WebCore::GraphicsContextPlatformPrivate::concatCTM):
* platform/qt/GraphicsContextQt.cpp:
(WebCore::GraphicsContext::clip):
(WebCore::GraphicsContext::addInnerRoundedRectClip):
(WebCore::GraphicsContext::addRoundedRectClip):
* rendering/InlineFlowBox.cpp:
(WebCore::InlineFlowBox::paintBackground):
(WebCore::InlineFlowBox::paintBackgroundAndBorder):
* rendering/InlineTextBox.cpp:
(WebCore::InlineTextBox::paintSelection):
(WebCore::InlineTextBox::paintTextMatchMarker):
* rendering/RenderBox.cpp:
(WebCore::RenderBox::paintBackgroundExtended):
* rendering/RenderButton.cpp:
(WebCore::RenderButton::paintObject):
* rendering/RenderFileUploadControl.cpp:
(WebCore::RenderFileUploadControl::paintObject):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::beginTransparencyLayers):
(WebCore::setClip):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::paintObject):
* rendering/RenderMenuList.cpp:
(WebCore::RenderMenuList::paintObject):
* rendering/RenderTableCell.cpp:
(WebCore::RenderTableCell::paintBackgroundsBehindCell):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16826
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Thu, 5 Oct 2006 22:03:43 +0000 (22:03 +0000)]
2006-10-05 Mitz Pettel <mitz@webkit.org>
Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=10386
Delete RenderImageButton.* and remove references from .vcproj and .bkl files
* CMakeLists.txt:
* WebCore.vcproj/WebCore/WebCore.vcproj:
* WebCoreSources.bkl:
* rendering/RenderImageButton.cpp: Removed.
* rendering/RenderImageButton.h: Removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16825
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Thu, 5 Oct 2006 21:56:17 +0000 (21:56 +0000)]
2006-10-05 Mitz Pettel <opendarwin.org@mitzpettel.com>
Reviewed by Darin.
- http://bugs.webkit.org/show_bug.cgi?id=11067
manual-tests/scrollbar-hittest2.html is invalid
* manual-tests/scrollbar-hittest2.html:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16824
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Thu, 5 Oct 2006 21:53:59 +0000 (21:53 +0000)]
2006-10-05 Vladimir Olexa <vladimir.olexa@gmail.com>
Reviewed by Timothy.
Bug: http://bugs.webkit.org/show_bug.cgi?id=9887
Continuous spell checking now remembers user's setting. The change is applied globally,
meaning, both TextArea and TextField are affected when either of them enables/disables
spell checking.
* WebView/WebPreferenceKeysPrivate.h: added a define for WebContinuousSpellCheckingEnabled
* WebView/WebView.m:
(-[WebViewPrivate init]): reads WebContinuousSpellCheckingEnabled from NSUserDefaults
(-[WebView setContinuousSpellCheckingEnabled:]):
(-[WebView isContinuousSpellCheckingEnabled]):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16823
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Thu, 5 Oct 2006 21:43:22 +0000 (21:43 +0000)]
2006-10-05 MorganL <morganl.webkit@yahoo.com>
Reviewed by Darin.
Fixes http://bugs.webkit.org/show_bug.cgi?id=11162
* COM/WebFrame.cpp:
(WebFrame::loadDataSource):
(WebFrame::receivedResponse):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16822
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Thu, 5 Oct 2006 21:40:04 +0000 (21:40 +0000)]
2006-10-05 David Carson <dacarson@gmail.com>
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=11152
Adjust the tokenizer chunk size to be smaller for
mobile devices, and also decrease the yield timer
for the tokenizer so that it can resume earlier.
* html/HTMLTokenizer.cpp:
* config.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16821
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Thu, 5 Oct 2006 21:38:44 +0000 (21:38 +0000)]
Removing accidentally-checked-in do-nothing code.
* html/HTMLInputElement.cpp:
(WebCore::HTMLInputElement::defaultEventHandler):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16820
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Thu, 5 Oct 2006 21:35:58 +0000 (21:35 +0000)]
2006-10-05 David Carson <dacarson@gmail.com>
Reviewed by Mitz.
http://bugs.webkit.org/show_bug.cgi?id=11158
Initialize class variables
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::RenderLayer):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16819
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Thu, 5 Oct 2006 20:27:50 +0000 (20:27 +0000)]
2006-10-05 Don Gibson <dgibson77@gmail.com>
WebCore:
Reviewed by Darin, landed by Adam.
http://bugs.webkit.org/show_bug.cgi?id=11176
Fix win32 build, adapt to Maciej's ResourceLoader changes.
* platform/win/ResourceLoaderWin.cpp:
(WebCore::ResourceLoader::start):
WebKit:
Reviewed by Darin, landed by Adam.
http://bugs.webkit.org/show_bug.cgi?id=11176
Fix win32 build, adapt to Maciej's ResourceLoader changes.
* COM/WebFrame.cpp:
(WebFrame::loadDataSource):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16818
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Thu, 5 Oct 2006 20:22:47 +0000 (20:22 +0000)]
2006-10-05 Marvin Decker <marv.decker@gmail.com>
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=10989
Provide a way for embedders to implement BrowserExtensionWin
WebCore:
* WebCore.vcproj/WebCore/WebCore.vcproj:
* bridge/win/BrowserExtensionWin.cpp: Added.
(BrowserExtensionWin::BrowserExtensionWin):
(BrowserExtensionWin::setTypedIconURL):
(BrowserExtensionWin::setIconURL):
(BrowserExtensionWin::getHistoryLength):
(BrowserExtensionWin::canRunModal):
(BrowserExtensionWin::createNewWindow):
(BrowserExtensionWin::canRunModalNow):
(BrowserExtensionWin::runModal):
(BrowserExtensionWin::goBackOrForward):
(BrowserExtensionWin::historyURL):
* bridge/win/BrowserExtensionWin.h:
* bridge/win/FrameWin.cpp:
(WebCore::FrameWin::createNewWindow):
* bridge/win/FrameWin.h:
* platform/win/TemporaryLinkStubs.cpp:
WebKit:
* COM/Interfaces/IWebUIDelegate.idl:
* COM/WebFrame.cpp:
(WebFrame::createNewWindow):
* COM/WebFrame.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16817
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Thu, 5 Oct 2006 19:59:28 +0000 (19:59 +0000)]
Reviewed by Darin.
Fixed <rdar://problem/
4766987>
- renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
except for file names.
- fixed RenderLayer to properly tear down scrollbars, removing them from
their parents.
* bindings/js/kjs_window.cpp:
(KJS::showModalDialog):
(KJS::setWindowFeature):
(KJS::parseWindowFeatures):
* bridge/BrowserExtension.h:
* dom/Document.cpp:
(WebCore::Document::setInPageCache):
* html/HTMLFrameElement.cpp:
(WebCore::HTMLFrameElement::init):
(WebCore::HTMLFrameElement::parseMappedAttribute):
* html/HTMLFrameElement.h:
(WebCore::HTMLFrameElement::scrollingMode):
* page/Frame.cpp:
(WebCore::Frame::finishedParsing):
(WebCore::Frame::scrollbarsVisible):
* page/FrameView.cpp:
(WebCore::FrameViewPrivate::FrameViewPrivate):
(WebCore::FrameViewPrivate::reset):
(WebCore::FrameView::~FrameView):
(WebCore::FrameView::resetScrollbars):
(WebCore::FrameView::clear):
(WebCore::FrameView::initScrollbars):
(WebCore::FrameView::applyOverflowToViewport):
(WebCore::FrameView::layout):
(WebCore::FrameView::handleMousePressEvent):
(WebCore::selectCursor):
(WebCore::FrameView::handleMouseMoveEvent):
(WebCore::FrameView::setScrollbarsMode):
(WebCore::FrameView::setVScrollbarMode):
(WebCore::FrameView::setHScrollbarMode):
(WebCore::FrameView::restoreScrollbar):
(WebCore::FrameView::dispatchMouseEvent):
(WebCore::FrameView::scrollbarMoved):
* page/FrameView.h:
* page/MouseEventWithHitTestResults.cpp:
(WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
* page/MouseEventWithHitTestResults.h:
(WebCore::MouseEventWithHitTestResults::scrollbar):
* platform/ScrollBar.cpp:
(WebCore::Scrollbar::Scrollbar):
(WebCore::Scrollbar::setValue):
(WebCore::Scrollbar::setProportion):
(WebCore::Scrollbar::setSteps):
(WebCore::Scrollbar::scroll):
* platform/ScrollBar.h:
(WebCore::):
(WebCore::ScrollbarClient::~ScrollbarClient):
(WebCore::Scrollbar::~Scrollbar):
(WebCore::Scrollbar::orientation):
(WebCore::Scrollbar::controlSize):
(WebCore::Scrollbar::hasPlatformScrollbars):
(WebCore::Scrollbar::client):
* platform/ScrollBarMode.h:
(WebCore::):
* platform/ScrollView.h:
* rendering/RenderBlock.cpp:
(WebCore::RenderBlock::isPointInScrollbar):
* rendering/RenderLayer.cpp:
(WebCore::RenderLayer::RenderLayer):
(WebCore::RenderLayer::~RenderLayer):
(WebCore::RenderLayer::scrollToOffset):
(WebCore::RenderLayer::horizontaScrollbarWidget):
(WebCore::RenderLayer::verticalScrollbarWidget):
(WebCore::RenderLayer::valueChanged):
(WebCore::RenderLayer::createScrollbar):
(WebCore::RenderLayer::destroyScrollbar):
(WebCore::RenderLayer::setHasHorizontalScrollbar):
(WebCore::RenderLayer::setHasVerticalScrollbar):
(WebCore::RenderLayer::verticalScrollbarWidth):
(WebCore::RenderLayer::horizontalScrollbarHeight):
(WebCore::RenderLayer::updateScrollInfoAfterLayout):
* rendering/RenderLayer.h:
(WebCore::RenderLayer::horizontalScrollbar):
(WebCore::RenderLayer::verticalScrollbar):
* rendering/RenderListBox.cpp:
(WebCore::RenderListBox::~RenderListBox):
(WebCore::RenderListBox::calcMinMaxWidth):
(WebCore::RenderListBox::isPointInScrollbar):
(WebCore::RenderListBox::optionAtPoint):
(WebCore::RenderListBox::valueChanged):
* rendering/RenderListBox.h:
* rendering/RenderObject.h:
(WebCore::RenderObject::NodeInfo::scrollbar):
(WebCore::RenderObject::NodeInfo::setScrollbar):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16815
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Thu, 5 Oct 2006 19:58:23 +0000 (19:58 +0000)]
2006-10-04 Anders Carlsson <acarlsson@apple.com>
Reviewed by Darin.
* Scripts/run-webkit-tests:
Add an environment variable, WebKitExpectedTestResultsDirectory, which controls where expected test
results should be.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16814
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Thu, 5 Oct 2006 19:38:48 +0000 (19:38 +0000)]
2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed and landed by ap.
Cmake: make it possible to install the libraries after having built using 'build-webkit'.
Just set the "WebKitInstallationPrefix" environment variable to your desired prefix.
* Scripts/webkitdirs.pm:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16813
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Thu, 5 Oct 2006 17:57:20 +0000 (17:57 +0000)]
2006-10-05 Don Gibson <dgibson77@gmail.com>
Reviewed by Adam.
http://bugs.webkit.org/show_bug.cgi?id=11138
Incorrect mouse event generation on Windows
* platform/win/MouseEventWin.cpp:
(WebCore::PlatformMouseEvent::PlatformMouseEvent):
(1) Set mouse button even for non-click-related messages.
(2) Track clicks correctly for all buttons, not just the left button.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16811
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Thu, 5 Oct 2006 17:48:53 +0000 (17:48 +0000)]
2006-10-05 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed and landed by ap.
Fix Qt/Linux build, adapt to Eric's Quartz changes and to Maciej's ResourceLoader changes.
* kcanvas/device/qt/KRenderingPaintServerGradientQt.cpp:
(WebCore::KRenderingPaintServerLinearGradientQt::renderPath):
(WebCore::KRenderingPaintServerLinearGradientQt::setup):
(WebCore::KRenderingPaintServerRadialGradientQt::setup):
(WebCore::KRenderingPaintServerRadialGradientQt::renderPath):
* kcanvas/device/qt/KRenderingPaintServerPatternQt.cpp:
(WebCore::KRenderingPaintServerPatternQt::renderPath):
* kcanvas/device/qt/KRenderingPaintServerQt.cpp:
(WebCore::KRenderingPaintServerQt::setPenProperties):
* kcanvas/device/qt/KRenderingPaintServerSolidQt.cpp:
(WebCore::KRenderingPaintServerSolidQt::setup):
(WebCore::KRenderingPaintServerSolidQt::renderPath):
* kcanvas/device/qt/RenderPathQt.cpp:
(WebCore::getPathStroke):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16810
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Thu, 5 Oct 2006 17:20:04 +0000 (17:20 +0000)]
Reviewed by Kevin McCullough.
* wtf/Assertions.cpp: Fix build when _DEBUG is not defined.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16808
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ap [Thu, 5 Oct 2006 16:44:15 +0000 (16:44 +0000)]
Reviewed by Darin.
http://bugs.webkit.org/show_bug.cgi?id=11054
REGRESSION: Traditional Chinese encoding in login authentication
1. Treat GB2312 encoding as GBK (its more modern superset), to match other browsers.
2. On the Web, GB2312 is encoded as EUC-CN or HZ, while ICU provides a native encoding
for encoding GB_2312-80 and several others. So, we need to override this behavior, too.
WebCore:
* platform/StreamingTextDecoderICU.cpp:
(WebCore::TextCodecICU::registerEncodingNames):
LayoutTests:
Each of these tests is passed by Firefox 1.5 and/or WinIE 6.
* fast/encoding/GBK/EUC-CN-expected.txt: Added.
* fast/encoding/GBK/EUC-CN.html: Added.
* fast/encoding/GBK/chinese-expected.txt: Added.
* fast/encoding/GBK/chinese.html: Added.
* fast/encoding/GBK/cn-gb-expected.txt: Added.
* fast/encoding/GBK/cn-gb.html: Added.
* fast/encoding/GBK/csgb2312-expected.txt: Added.
* fast/encoding/GBK/csgb2312.html: Added.
* fast/encoding/GBK/csgb231280-expected.txt: Added.
* fast/encoding/GBK/csgb231280.html: Added.
* fast/encoding/GBK/gb2312-expected.txt: Added.
* fast/encoding/GBK/gb2312.html: Added.
* fast/encoding/GBK/gb_2312-80-expected.txt: Added.
* fast/encoding/GBK/gb_2312-80.html: Added.
* fast/encoding/GBK/gbk-expected.txt: Added.
* fast/encoding/GBK/gbk.html: Added.
* fast/encoding/GBK/iso-ir-58-expected.txt: Added.
* fast/encoding/GBK/iso-ir-58.html: Added.
* fast/encoding/GBK/x-euc-cn-expected.txt: Added.
* fast/encoding/GBK/x-euc-cn.html: Added.
* fast/encoding/GBK/x-gbk-expected.txt: Added.
* fast/encoding/GBK/x-gbk.html: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16807
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eseidel [Thu, 5 Oct 2006 13:59:14 +0000 (13:59 +0000)]
2006-10-05 Eric Seidel <eric@eseidel.com>
Reviewed by mjs.
Removed dead code.
Filed http://bugs.webkit.org/show_bug.cgi?id=11167 to for followup on removed FIXMEs
* WebCore.xcodeproj/project.pbxproj:
* ksvg2/ecma/GlobalObject.cpp: Removed.
* ksvg2/ecma/GlobalObject.h: Removed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16806
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Thu, 5 Oct 2006 13:54:20 +0000 (13:54 +0000)]
Reviewed by Maciej.
Small ResourceLoaderInternal tweak.
* platform/ResourceLoaderInternal.h:
(WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16805
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eseidel [Thu, 5 Oct 2006 13:52:39 +0000 (13:52 +0000)]
2006-10-05 Eric Seidel <eric@eseidel.com>
Reviewed by mjs.
More incremental KCanvas cleanup and optimization.
Added SVGRenderStyle::hasFill() and hasStroke() removed more KSVGPainterFactory methods.
Optimized dash array usage to not malloc.
Also removed un-needed KSVGRenderingStyle includes.
* kcanvas/KCanvasTreeDebug.cpp:
(WebCore::operator<<):
* kcanvas/RenderPath.cpp:
(WebCore::RenderPath::nodeAtPoint):
* kcanvas/device/quartz/KCanvasItemQuartz.mm:
(WebCore::RenderPath::strokeBBox):
* kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
(WebCore::KRenderingPaintServerGradientQuartz::setup):
(WebCore::KRenderingPaintServerGradientQuartz::renderPath):
(WebCore::KRenderingPaintServerGradientQuartz::teardown):
* kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
(WebCore::KRenderingPaintServerSolidQuartz::setup):
(WebCore::KRenderingPaintServerSolidQuartz::renderPath):
(WebCore::KRenderingPaintServerPatternQuartz::setup):
(WebCore::KRenderingPaintServerPatternQuartz::renderPath):
* kcanvas/device/quartz/QuartzSupport.mm:
(WebCore::applyStrokeStyleToContext):
* ksvg2/css/SVGRenderStyle.h:
(WebCore::SVGRenderStyle::hasStroke):
(WebCore::SVGRenderStyle::hasFill):
* ksvg2/misc/KCanvasRenderingStyle.cpp:
(WebCore::KSVGPainterFactory::fillPaintServer):
(WebCore::KSVGPainterFactory::strokePaintServer):
* ksvg2/misc/KCanvasRenderingStyle.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16804
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
mjs [Thu, 5 Oct 2006 13:15:04 +0000 (13:15 +0000)]
Reviewed by Adam.
- changed ResourceLoader to be refcounted
It keeps a ref on itself while loading as well. This makes
for a much saner memory management model than the previous.
* bridge/mac/WebCoreResourceLoaderImp.mm:
(-[WebCoreResourceLoaderImp finishJobAndHandle:]):
* dom/XMLTokenizer.cpp:
(WebCore::openFunc):
* loader/icon/IconLoader.cpp:
(IconLoader::IconLoader):
(IconLoader::~IconLoader):
(IconLoader::startLoading):
(IconLoader::stopLoading):
(IconLoader::receivedData):
* loader/icon/IconLoader.h:
* loader/loader.cpp:
(WebCore::Loader::servePendingRequests):
* platform/ResourceLoader.cpp:
(WebCore::ResourceLoader::create):
(WebCore::ResourceLoader::kill):
* platform/ResourceLoader.h:
* platform/ResourceLoaderInternal.h:
(WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
* platform/mac/ResourceLoaderMac.mm:
(WebCore::ResourceLoader::start):
* xml/XSLTProcessor.cpp:
(WebCore::docLoaderFunc):
* xml/xmlhttprequest.cpp:
(WebCore::XMLHttpRequest::send):
* xml/xmlhttprequest.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16803
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
eseidel [Thu, 5 Oct 2006 12:59:54 +0000 (12:59 +0000)]
2006-10-05 Eric Seidel <eric@eseidel.com>
Reviewed by mjs.
Improve SVG opacity performance by clipping to the object bbox before starting a new opacity layer.
http://bugs.webkit.org/show_bug.cgi?id=11163
No SVG performance tests yet.
* kcanvas/RenderForeignObject.cpp:
(WebCore::RenderForeignObject::paint):
* kcanvas/RenderSVGContainer.cpp:
(WebCore::RenderSVGContainer::paint):
* kcanvas/RenderSVGImage.cpp:
(WebCore::RenderSVGImage::paint):
* kcanvas/RenderSVGText.cpp:
(WebCore::RenderSVGText::paint):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16802
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Thu, 5 Oct 2006 08:58:48 +0000 (08:58 +0000)]
Widget focusability work.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16801
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Thu, 5 Oct 2006 04:58:31 +0000 (04:58 +0000)]
2006-10-04 Anders Carlsson <acarlsson@apple.com>
Reviewed by Adam.
* fast/frames/frame-src-attribute-expected.txt:
Update test result.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16800
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aroben [Thu, 5 Oct 2006 03:08:51 +0000 (03:08 +0000)]
Reviewed by Maciej and Tim H.
Copy some WebKit frame lifetime logic into WebCore -- just a step
along the path to frame lifetime being handled completely in WebCore.
* bridge/mac/FrameMac.mm:
(WebCore::FrameMac::setView): Move platform-independent parts of this
method into Frame.
* page/Frame.cpp:
(WebCore::Frame::setView): Adding platform-independent parts of
FrameMac::setView
(WebCore::Frame::detachChildren): New method to accomplish what
-[WebFrameBridge _detachChildren] currently does.
(WebCore::Frame::clear): Call detachChildren
* page/Frame.h: Add declaration for detachChildren
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16799
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Thu, 5 Oct 2006 01:42:00 +0000 (01:42 +0000)]
Reviewed by Adam.
- Removed an unnecessary assert that was stopping many pages. tm_gmtoff was not set for UTC time in mozilla but is always set for us.
* kjs/DateMath.cpp:
(KJS::getUTCOffset):
(KJS::msToTM):
* kjs/date_object.cpp:
(KJS::gmtoffset):
(KJS::formatTime):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16798
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
ggaren [Thu, 5 Oct 2006 01:07:49 +0000 (01:07 +0000)]
Patch by Darin and me, reviewed by Maciej.
Fixed <rdar://problem/
4518397> REGRESSION(?): Oft-seen but unrepro crash
in JavaScript garbage collection (KJS::Collector::collect())
<rdar://problem/
4752492> Crash in KJS::collect
The issue here was allocating one garbage-collected object in the midst
of allocating a second garbage-collected object. In such a case, the
zeroIfFree word lies.
* kjs/collector.cpp:
(KJS::Collector::allocate):
(KJS::Collector::collect):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16797
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Thu, 5 Oct 2006 00:21:48 +0000 (00:21 +0000)]
2006-10-04 Mark Rowe <bdash@webkit.org>
Reviewed by Stephanie.
Switch the Qt buildbot to the standard set of build steps.
Have JavaScriptCoreTest check the output of run-javascriptcore-tests to
see if any regressions were spotted, and fail the test if so.
* BuildSlaveSupport/build.webkit.org-config/webkit/builders.py:
* BuildSlaveSupport/build.webkit.org-config/webkit/factories.py:
* BuildSlaveSupport/build.webkit.org-config/webkit/steps.py:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16796
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Thu, 5 Oct 2006 00:19:21 +0000 (00:19 +0000)]
Reviewed by Adam.
- Layout test fix
* kjs/DateMath.cpp:
(KJS::dateToDayInYear): accept and correctly handle negative months
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16795
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
aliceli1 [Wed, 4 Oct 2006 23:16:36 +0000 (23:16 +0000)]
Reviewed by Darin.
Fixed <rdar://problem/
4758577> REGRESSION: Business and People widgets fails to complete search query
* xml/xmlhttprequest.cpp:
(WebCore::XMLHttpRequest::setRequestHeader):
removed exception set when the request is not open yet
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16794
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Wed, 4 Oct 2006 22:57:45 +0000 (22:57 +0000)]
build fix
* kjs/DateMath.cpp:
(KJS::dateToDayInYear):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16793
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Wed, 4 Oct 2006 22:25:28 +0000 (22:25 +0000)]
2006-10-05 Mark Rowe <bdash@webkit.org>
Reviewed by maculloch.
Gdk build fix.
* JavaScriptCoreSources.bkl: Add DateMath.cpp to file list.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16790
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Wed, 4 Oct 2006 21:27:29 +0000 (21:27 +0000)]
Reviewed by aroben
- build fix
* JavaScriptCore.xcodeproj/project.pbxproj:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16788
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
bdash [Wed, 4 Oct 2006 21:11:10 +0000 (21:11 +0000)]
2006-10-04 Nikolas Zimmermann <zimmermann@kde.org>
Reviewed by Mitz.
Fix Qt/Linux build by adding DateMath.cpp to compilation.
* CMakeLists.txt: Also replace tabs with spaces.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16787
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Wed, 4 Oct 2006 21:08:43 +0000 (21:08 +0000)]
Reviewed by DethBakin.
- Apparently the build bot uses an older version of XCode which warns about conversions and the newest version does not. I hope this fixes the build but I cann't be sure on my system.
* kjs/DateMath.cpp:
(KJS::msToYear):
(KJS::dayInYear):
(KJS::dateToDayInYear):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16786
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
thatcher [Wed, 4 Oct 2006 20:44:29 +0000 (20:44 +0000)]
Reviewed by Mitz Pettel!
Bug 10708: [Drosera] Make the console input plaintext-only
http://bugs.webkit.org/show_bug.cgi?id=10708
Change the console input -webkit-user-modify property to
read-write-plaintext-only.
* Drosera/console.css:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16785
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
thatcher [Wed, 4 Oct 2006 20:37:02 +0000 (20:37 +0000)]
Reviewed by Tim H.
Bug 10473: [Drosera] Overlapping text in JavaScript Console
http://bugs.webkit.org/show_bug.cgi?id=10473
Using min-height instead of height to avoid overlapping text.
* ChangeLog:
* Drosera/console.css:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16784
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Wed, 4 Oct 2006 20:35:58 +0000 (20:35 +0000)]
Reviewed by Adam.
* wtf/Assertions.cpp: Changed assertion formatting to omit the "======"
lines so you can see more assertions in less space. Also improved format
of file/line information so it works with more development environments.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16783
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
darin [Wed, 4 Oct 2006 20:34:21 +0000 (20:34 +0000)]
Reviewed by Adam.
* wtf/Assertions.cpp: Changed assertion formatting to omit the "======"
lines so you can see more assertions in less space. Also improved format
of file/line information so it works with more development environments.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16782
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
thatcher [Wed, 4 Oct 2006 18:37:48 +0000 (18:37 +0000)]
Reviewed by Tim H.
Added a bash-style command history.
* Drosera/console.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16781
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
kmccullo [Wed, 4 Oct 2006 18:36:29 +0000 (18:36 +0000)]
Reviewed by GGaren
- This is a big makeover for our Date implemenetation. This solves many platform specific issues, specifically dates before 1970, and simplifies some ugly code. The purpose of this was to get us to pass many of the JavaScriptCore tests on windows.
* JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
* JavaScriptCore.xcodeproj/project.pbxproj:
* kjs/DateMath.cpp: Added.
(KJS::):
(KJS::daysInYear):
(KJS::daysFrom1970ToYear):
(KJS::msFrom1970ToYear):
(KJS::msToDays):
(KJS::msToYear):
(KJS::isLeapYear):
(KJS::isInLeapYear):
(KJS::dayInYear):
(KJS::msToMilliseconds):
(KJS::msToWeekDay):
(KJS::msToSeconds):
(KJS::msToMinutes):
(KJS::msToHours):
(KJS::msToMonth):
(KJS::msToDayInMonth):
(KJS::monthToDayInYear):
(KJS::timeToMseconds):
(KJS::dateToDayInYear):
(KJS::equivalentYearForDST):
(KJS::getUTCOffset):
(KJS::getDSTOffsetSimple):
(KJS::getDSTOffset):
(KJS::localTimeToUTC):
(KJS::UTCToLocalTime):
(KJS::dateToMseconds):
(KJS::msToTM):
(KJS::isDST):
* kjs/DateMath.h: Added.
(KJS::):
* kjs/date_object.cpp:
(KJS::gmtoffset):
(KJS::formatTime):
(KJS::DateInstance::getTime):
(KJS::DateInstance::getUTCTime):
(KJS::DateProtoFunc::callAsFunction):
(KJS::DateObjectImp::construct):
(KJS::DateObjectFuncImp::callAsFunction):
(KJS::parseDate):
* kjs/testkjs.cpp:
* os-win32/stdint.h:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16780
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
andersca [Wed, 4 Oct 2006 18:04:16 +0000 (18:04 +0000)]
2006-10-04 Anders Carlsson <acarlsson@apple.com>
Reviewed by John Sullivan.
<rdar://problem/
4654328>
Safari Crashes in WebCore::PluginTokenizer::writeRawData If I Try to Open a SWF File With Plug-ins Turned Off
* loader/PluginDocument.cpp:
(WebCore::PluginTokenizer::writeRawData):
Only send the data to the plug-in if plug-ins are enabled, otherwise just silently eat it.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16779
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Wed, 4 Oct 2006 08:43:29 +0000 (08:43 +0000)]
Fix Gdk bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16778
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Wed, 4 Oct 2006 08:39:10 +0000 (08:39 +0000)]
Fix Gdk bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16777
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Wed, 4 Oct 2006 08:26:17 +0000 (08:26 +0000)]
Fix more win32 and qt bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16776
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
hyatt [Wed, 4 Oct 2006 08:21:56 +0000 (08:21 +0000)]
Fix more win32 bustage.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@16775
268f45cc-cd09-0410-ab3c-
d52691b4dbfc