Timeline
Nov 15, 2002:
- 11:29 PM Changeset in webkit [2707] by
-
- 7 edits in trunk/WebCore
Fix for livepage.apple.com slowness. Ensure that
clipped regions only paint their own rectangles
when they or any children inside of them need to
be reflowed.
This fix is intended as an interim band-aid for a much
larger problem (that all of layout doesn't just auto-invalidate
the regions it needs to, and that DHTML doesn't have
specialized behavior to avoid async repainting or even
relayout when only a repaint is required).
- khtml/khtmlview.cpp: (KHTMLView::timerEvent):
- khtml/rendering/render_container.cpp: (RenderContainer::removeChildNode): (RenderContainer::appendChildNode): (RenderContainer::insertChildNode): (RenderContainer::layout):
- khtml/rendering/render_object.cpp: (RenderObject::setLayouted): (RenderObject::scheduleRelayout):
- khtml/rendering/render_root.cpp: (RenderRoot::repaintRectangle):
- 6:23 PM Changeset in webkit [2706] by
-
- 4 edits in trunk/WebCore
Fix the problem where the last lines of paragrpahs were getting
justified incorrectly.
- khtml/rendering/bidi.cpp: (RenderFlow::findNextLineBreak):
- 4:09 PM Changeset in webkit [2705] by
-
- 4 edits in trunk/WebCore
Fix bustage with <nobr> tags. Inline nowrap elements were
breaking on images when they shouldn't have.
- khtml/rendering/render_flow.cpp: (RenderFlow::calcInlineMinMaxWidth):
- 4:06 PM Changeset in webkit [2704] by
-
- 6 edits in trunk/WebCore
Fix for this bug:
Radar 3102708 (REGRESSION: assertion failure backing up to page)
KWQCheckCacheObjectStatus did not create an NSURL in a way that
dealt with the fact that we handle non-NSURL-compliant URL strings.
I have fixed it so it does, and in the process, factored out
the code to do it into a new KURL static function (KURL::getNSURLFromString).
- kwq/KWQKURL.h:
- kwq/KWQKURL.mm: (KURL::getNSURL): Now calls through to KURL::getNSURLFromString (KURL::encode_string) (KURL::getNSURLFromString): New function to handle NSURL creation
- kwq/KWQLoader.mm: (KWQCheckCacheObjectStatus)
- 3:56 PM Changeset in webkit [2703] by
-
- 5 edits in trunk/WebCore
Fix asserts in tables.
- khtml/rendering/render_table.cpp: (RenderTableRow::layout):
- 2:42 PM Changeset in webkit [2702] by
-
- 4 edits in trunk/WebKit
- fixed 3079214 -- text/plain page shows up slowly, a few pages at a time
- WebView.subproj/WebTextView.m: (-[WebTextView initWithFrame:]): Remove unneeded setWidthTracksTextView:, because that's the default. (-[WebTextView dataSourceUpdated:]): Replace the thing each time in the RTF case. (-[WebTextView viewDidMoveToSuperview]): Here's where we resize, but only the width. Resizing the height was causing the bug. (-[WebTextView layout]): Do nothing. (-[WebTextView setAcceptsDrags:]): Update to new name. Since we weren't importing WebDocument.h, we never noticed that this file got out of sync. (-[WebTextView acceptsDrags]): Ditto. (-[WebTextView setAcceptsDrops:]): Ditto. (-[WebTextView acceptsDrops]): Ditto.
- WebView.subproj/WebDocument.h: Fix typo. It said setAcceptsDrags: twice.
- 2:35 PM Changeset in webkit [2701] by
-
- 4 edits in trunk/WebCore
Fix for whitespace regressions that caused text overlapping
and text spilling.
- khtml/rendering/bidi.cpp: (appendRunsForObject):
- 1:32 PM Changeset in webkit [2700] by
-
- 6 edits in trunk/WebCore
Fix newlines getting stripped out of textareas by not making
rendertext objects for children of textareas.
- khtml/rendering/render_form.h:
- khtml/rendering/render_object.h:
- khtml/xml/dom_textimpl.cpp: (TextImpl::attach):
- 1:02 PM Changeset in webkit [2699] by
-
- 6 edits in trunk/WebCore
Make <form> inside <table> stay inside the <table> but demote
itself to a leaf. Then the children of the <form> are treated
as though they occurred underneath the <table> itself. Everything
KHTML does with this is completely wrong but this band-aid should
hopefully suffice until 1.0.
Also allowing <input type="hidden"> to be constructed and attached
under <table>s. Since they have no render objects this is safe.
Again, total hack, since CSS2 anonymous table construction should be
implemented and that would have fixed all this.
This collection of hacks makes travelocity render correctly on the
PLT.
- khtml/css/html4.css:
- khtml/html/dtd.cpp: (DOM::checkChild):
- khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::addChild):
- khtml/html/htmlparser.cpp: (KHTMLParser::parseToken): (KHTMLParser::insertNode):
- 12:04 PM Changeset in webkit [2698] by
-
- 4 edits in trunk/WebCore
Fix Hixie's blog. Background images can be transparent, so
if the root's color isn't valid always do a fixup even if you
have a valid background image.
- khtml/rendering/render_html.cpp: (RenderHtml::printBoxDecorations):
- 11:42 AM Changeset in webkit [2697] by
-
- 4 edits in trunk/WebCore
- kwq/KWQWindowWidget.mm: (KWQWindowWidget::setFrameGeometry): Oops. Make that display:YES.
- 11:14 AM Changeset in webkit [2696] by
-
- 4 edits in trunk/WebCore
- fixed 3090219 -- Window jumps up and down when loading nikon page
- kwq/KWQWindowWidget.mm: (KWQWindowWidget::setFrameGeometry): Don't pass display:NO when resizing the window.
- 10:34 AM Changeset in webkit [2695] by
-
- 3 edits in trunk/WebKit
- WebView.subproj/WebFramePrivate.m: Removed a bunch of tabs and fixed indenting.
- 10:30 AM Changeset in webkit [2694] by
-
- 7 edits in trunk/WebKit
- fixed 3102016 - REGRESSION: Command-clicking on a link can open _two_ windows.
- WebView.subproj/WebDataSourcePrivate.h:
- WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _setJustOpenedForTargetedLink:]): (-[WebDataSource _justOpenedForTargetedLink]):
- WebView.subproj/WebFrame.m: (-[WebFrame findOrCreateFramedNamed:]):
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _continueAfterNavigationPolicy:]): (-[WebFrame _loadDataSource:withLoadType:]): (-[WebFrame _downloadRequest:toPath:]): (-[WebFrame _setJustOpenedForTargetedLink:]):
- 10:22 AM Changeset in webkit [2693] by
-
- 4 edits in trunk/WebCore
Remove characters RFC 2396 describes as "unwise" from the
BadChar character class. This causes them to remain unescaped
in KURL objects. As a result, some extra escaping needed to
be added into the getNSURL() function to enable NSURL
objects to be created using a KURL.
This enables me to fix this bug:
Radar 3050437 (Clicking link leads to page with garbled content)
Note, however, that my fix for 3050437 relies on this bug remaining unfixed:
Radar 3102332 (Square bracket characters "sneak through" CFURL illegal character checks)
- kwq/KWQKURL.mm: (KURL::getNSURL)
- 9:59 AM Changeset in webkit [2692] by
-
- 3 edits in trunk/WebKit
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]): Give the listener a slightly longer lifetime, to make this API a bit more foolproof.
- 8:46 AM Changeset in webkit [2691] by
-
- 6 edits in trunk/WebCore
Tools:
- Scripts/update-alex-localizable-strings: Fix it so that the line numbers in error messages will be accurate.
WebCore:
- fixed 3027460 -- text areas don't have focus rectangles
- fixed 2937204 -- text areas have solid black borders
- kwq/KWQSignal.mm: (KWQSignal::disconnect): Add a special case so we don't hear about finishedParsing all the time.
- kwq/KWQTextArea.mm: (-[KWQTextArea initWithFrame:]): Use a bezel border, not a line border. (-[KWQTextArea getCursorPositionAsIndex:inParagraph:]): Fix bug where it would return a bogus value for an empty text area. (-[KWQTextArea setCursorPositionToIndex:inParagraph:]): Use setSelectedRange: ratherr than setMarkedText:selectedRange:. (-[KWQTextArea drawRect:]): Draw a focus ring if our text view is first responder. (-[KWQTextArea _KWQ_setKeyboardFocusRingNeedsDisplay]): Added. (-[KWQTextAreaTextView becomeFirstResponder]): Call _KWQ_setKeyboardFocusRingNeedsDisplay. (-[KWQTextAreaTextView resignFirstResponder]): Call _KWQ_setKeyboardFocusRingNeedsDisplay. (-[NSView _KWQ_setKeyboardFocusRingNeedsDisplay]): Calls the same thing on parent.
- WebCore.pbproj/project.pbxproj: PB is a cruel master.
WebBrowser:
- fixed problem I introduced where text would get too close to the right button
- LocationTextField.m: (-[LocationTextField didShowOrHideRightButton]): Add back logic to adjust the right border. I removed this because it was incompatible with my changes, but now I made a new compatible version by adding a new method.
- TextFieldWithControls.h: Rename showRightButton: to setIsShowingRightButton:, and added isShowingRightButton, and didShowOrHideRightButton methods.
- TextFieldWithControls.m: (-[TextFieldWithControls isShowingRightButton]): Added. (-[TextFieldWithControls didShowOrHideRightButton]): Added. (-[TextFieldWithControls setIsShowingRightButton:]): Call didShowOrHideRightButton at the right moment so we can properly respond to any changes it makes to the cell.
- BrowserWindowController.m: (-[BrowserWindowController updateSnapBackButtons]): Update for method name change.
- WebBrowser.pbproj/project.pbxproj: PB is a cruel master.
- 8:40 AM Changeset in webkit [2690] by
-
- 3 edits in trunk/WebKit
Fix world leak I introduced, and also add an early return when needed.
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _invalidatePendingPolicyDecisionCallingDefaultAction:]): (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]):
- 7:11 AM Changeset in webkit [2689] by
-
- 4 edits in trunk/WebCore
- khtml/html/html_formimpl.cpp: (HTMLInputElementImpl::attach): Removed a stray printf.
- 5:40 AM Changeset in webkit [2688] by
-
- 11 edits2 adds in trunk/WebKit
WebKit:
Make navigation policy asynchronous for real.
- WebKit.pbproj/project.pbxproj:
- WebView.subproj/WebControllerPolicyDelegate.h:
- WebView.subproj/WebControllerPolicyDelegate.m: (-[WebPolicyDecisionListenerPrivate initWithTarget:action:]): (-[WebPolicyDecisionListenerPrivate dealloc]): (-[WebPolicyDecisionListener usePolicy:]): (-[WebPolicyDecisionListener _initWithTarget:action:]): (-[WebPolicyDecisionListener dealloc]): (-[WebPolicyDecisionListener _invalidate]):
- WebView.subproj/WebControllerPolicyDelegatePrivate.h: Added.
- WebView.subproj/WebDefaultPolicyDelegate.m: (-[WebDefaultPolicyDelegate decideNavigationPolicyForAction:andRequest:inFrame:decisionListener:]):
- WebView.subproj/WebFrame.m: (-[WebFrame stopLoading]):
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFramePrivate dealloc]): (-[WebFrame _invalidatePendingPolicyDecisionCallingDefaultAction:]): (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]): (-[WebFrame _continueAfterNavigationPolicy:]): (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): (-[WebFrame _loadDataSource:withLoadType:]):
WebBrowser:
Make navigation policy asynchronous.
- BrowserWebController.m: (-[BrowserWebController decideNavigationPolicyForAction:andRequest:inFrame:decisionListener:]):
- 3:33 AM Changeset in webkit [2687] by
-
- 6 edits in trunk/WebKit
Wrap content policy invocation to look asynchronous.
- WebView.subproj/WebBaseResourceHandleDelegate.h:
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient continueAfterContentPolicy:response:]): (-[WebMainResourceClient checkContentPolicyForResponse:andCallSelector:]): (-[WebMainResourceClient handle:didReceiveResponse:]):
- 2:48 AM Changeset in webkit [2686] by
-
- 8 edits in trunk/WebKit
Refactor so that all invocations of navigation policy are set up
to be asynchronous. However, the actually delegate method is not
async yet.
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _checkNavigationPolicyForRequest:dataSource:andCall:withSelector:]): (-[WebFrame _continueFragmentScrollAfterNavigationPolicy:request:]): (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): (-[WebFrame _continueLoadRequestAfterNavigationPolicy:request:]): (-[WebFrame _loadDataSource:withLoadType:]):
- WebView.subproj/WebMainResourceClient.h:
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient stopLoadingForPolicyChange]): (-[WebMainResourceClient continueAfterNavigationPolicy:request:]): (-[WebMainResourceClient handle:willSendRequest:]): (-[WebMainResourceClient handle:didReceiveResponse:]):
Nov 14, 2002:
- 10:08 PM Changeset in webkit [2685] by
-
- 7 edits in trunk/WebCore
WebCore:
- fixed most of the problems with OPTGROUP
- khtml/html/htmlparser.cpp: (KHTMLParser::insertNode): Make OPTGROUPs pop out of other unclosed OPTGROUPs, not just out of options.
- kwq/KWQListBox.h: Add private member function.
- kwq/KWQListBox.mm: (QListBox::insertItem): Use shared insertItem function. (QListBox::insertGroupLabel): Create an attributed string for the group label, with bold font. (-[KWQListBoxTableViewDelegate tableView:shouldSelectRow:]): Return YES only for the plain strings, that way you can't select the group labels.
- WebCore.pbproj/project.pbxproj: Let PB do its thing.
WebBrowser:
- BrowserDocument.h: Remove unused BrowserDocumentPageTitleChangedNotification.
- BrowserDocument.m: (-[BrowserDocument _pageTitleHasChanged]): Remove unused notification. (-[BrowserDocument goToBugReportingPage:]): Escape URL so it works in the form parameters.
- PoofAnimator.m: (-[PoofAnimator init]): Remove use of private _setHasShadow: which is just the same thing as the public setHasShadow:.
- BrowserWindowController.m: Tweak formatting.
- Preferences.subproj/GeneralPreferences.m: Tweak.
- WebBrowser.pbproj/project.pbxproj: Let PB do its thing.
- 9:48 PM Changeset in webkit [2684] by
-
- 5 edits in trunk/WebKit
Refactor things a bit so all loads bottleneck through a single
method (_loadDataSource:withLoadType:).
- WebView.subproj/WebFrame.m: (-[WebFrame loadRequest:]): (-[WebFrame reload]):
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _loadItem:fromItem:withLoadType:]): (-[WebFrame _loadRequest:triggeringAction:loadType:]): (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): (-[WebFrame _postWithURL:data:contentType:triggeringEvent:]): (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]): (-[WebFrame _loadDataSource:withLoadType:]): (-[WebFrame _downloadRequest:toPath:]):
- 8:23 PM Changeset in webkit [2683] by
-
- 17 edits in trunk/WebKit
WebKit:
Change things so the public interface to loading is loadRequest:
and everything else is private.
- Plugins.subproj/WebBaseNetscapePluginView.m: (-[WebBaseNetscapePluginView loadRequest:inTarget:withNotifyData:]):
- Plugins.subproj/WebPluginController.m: (-[WebPluginController showURL:inFrame:]):
- WebView.subproj/WebController.h:
- WebView.subproj/WebController.m: (-[WebController init]):
- WebView.subproj/WebControllerPrivate.m: (-[WebController _createFrameNamed:inParent:allowsScrolling:]): (-[WebController _downloadURL:toPath:]):
- WebView.subproj/WebFrame.h:
- WebView.subproj/WebFrame.m: (-[WebFrame init]): (-[WebFrame initWithName:webView:controller:]): (-[WebFrame loadRequest:]): (-[WebFrame reload]):
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _timedLayout:]): (-[WebFrame _clearProvisionalDataSource]): (-[WebFrame _loadItem:fromItem:withLoadType:]): (-[WebFrame _loadRequest:triggeringAction:]): (-[WebFrame _reloadAllowingStaleDataWithOverrideEncoding:]): (-[WebFrame _itemForRestoringDocState]): (-[WebFrame _setProvisionalDataSource:]): (-[WebFrame _startLoading]): (-[WebFrame _downloadRequest:toPath:]):
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:willSendRequest:]): (-[WebMainResourceClient stopLoadingAfterContentPolicy]): (-[WebMainResourceClient handle:didReceiveResponse:]):
- WebView.subproj/WebView.m: (-[WebView concludeDragOperation:]):
WebBrowser:
Change things so the public interface to loading is loadRequest:
and everything else is private.
- BrowserDocument.m: (-[BrowserDocument goToRequest:]):
- BrowserWebController.m: (-[BrowserWebController initWithBrowserDocument:]):
- Debug/SnippetController.h:
- Debug/SnippetController.m: (-[SnippetController dealloc]): (-[SnippetController windowWillClose:]): (-[SnippetController load]): (-[SnippetController loadComplete]): (-[SnippetController mainDataSource]):
- 6:23 PM Changeset in webkit [2682] by
-
- 4 edits in trunk/WebCore
Fix spinner.com mislayout on the PLT. Make sure
<input type=image> honors the width attribute and
make sure that its render object calls updateFromElement.
- khtml/html/html_formimpl.cpp: (HTMLInputElementImpl::parseAttribute): (HTMLInputElementImpl::attach):
- 4:04 PM Changeset in webkit [2681] by
-
- 3 edits in trunk/WebKit
Move text measurement and layout beyond onload. This
shoudl speed up i-bench substantially and morrison's
PLT test slightly. Note that the adjustFrames layout
stuff has been removed from isLoadComplete.
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _timedLayout:]): (-[WebFrame _isLoadComplete]):
- 3:57 PM Changeset in webkit [2680] by
-
- 7 edits in trunk/WebCore
Move text measurement and layout beyond onload. This
shoudl speed up i-bench substantially and morrison's
PLT test slightly.
Also allow <table>s as children of <p> and <h1>-<h6>.
This fixes floats on slashdot.org (the left side) and
the floating tables in articles on wired.com.
- khtml/html/dtd.cpp: (DOM::checkChild):
- khtml/html/html_documentimpl.cpp: (HTMLDocumentImpl::HTMLDocumentImpl): (HTMLDocumentImpl::close):
- khtml/html/html_documentimpl.h:
- khtml/html/htmlparser.cpp: (KHTMLParser::insertNode):
- 1:46 PM Changeset in webkit [2679] by
-
- 4 edits in trunk/WebCore
Fixed 3099505. With the recent white space changes, multiple slaves may
be created for contiguous text on the same line. The fix changes the
iteration order of over the slave array. Now, when searching for the end
point of a line we'll always find the last slave on a line first.
- khtml/khtml_part.cpp: (lastSlaveAt):
- 11:37 AM Changeset in webkit [2678] by
-
- 4 edits in trunk/WebCore
- fixed 3095854 -- small select boxes get no scrollbar
- kwq/KWQListBox.mm: (QListBox::sizeForNumberOfLines): Always use a minimum of 4 lines.
- 11:19 AM Changeset in webkit [2677] by
-
- 3 edits in trunk/WebKit
WebFoundation:
- English.lproj/StringsNotToBeLocalized.txt: Updated for recent changes.
WebKit:
- English.lproj/Localizable.strings: Updated to include the new error messages that Maciej just added. I wonder what effect this will have if we see those errors in Alex-32?
- 10:51 AM Changeset in webkit [2676]
-
- 3 copies in tags/Alexander-32
This commit was manufactured by cvs2svn to create tag 'Alexander-32'.
- 10:51 AM Changeset in webkit [2675] by
-
- 8 edits in trunk
Alex-32 stamp
- 10:35 AM Changeset in webkit [2674] by
-
- 4 edits in trunk/JavaScriptCore
- fixed 3101243 -- excite passes date that can't be parsed, results in bogus date at top right corner
- kjs/date_object.cpp: (KJS::KRFCDate_parseDate): Handle errors from strtol by checking errno. Check the "string in a haystack" to be sure it's a multiple of 3. Add case that allows year to be after time.
- 10:11 AM Changeset in webkit [2673] by
-
- 4 edits in trunk/JavaScriptCore
- fixed 3101191 -- REGRESSION: Hang loading excite.com
- kjs/date_object.cpp: (mktimeUsingCF): Pick an arbitrary cutoff of 3000, and return -1 if the year passed in is that big so we don't infinite loop. Also validate the rest of the date with CFGregorianDateIsValid. (DateProtoFuncImp::call): Handle a -1 result from mktime. (DateObjectImp::construct): Check for NaN before calling mktime, and also handle a -1 result from mktime. (DateObjectFuncImp::call): Check for NaN before calling mktime, and also handle a -1 result from mktime.
- 6:52 AM Changeset in webkit [2672] by
-
- 4 edits in trunk/WebKit
- WebView.subproj/WebControllerPolicyDelegate.h:
Added missing semi-colon in definition of WebPolicyDecisionListener to
fix build error.
- 5:18 AM Changeset in webkit [2671] by
-
- 13 edits in trunk/WebKit
WebKit:
Combined file URL policy with content policy. We don't actually
bother to ask earlier for file URLs yet, since that will make
things more complicated.
- Misc.subproj/WebKitErrors.h:
- WebView.subproj/WebControllerPolicyDelegate.h:
- WebView.subproj/WebDefaultPolicyDelegate.m:
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _handleUnimplementablePolicy:errorCode:forURL:]): (-[WebFrame _continueAfterNavigationPolicyForRequest:dataSource:]):
- WebView.subproj/WebMainResourceClient.h:
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient stopLoadingAfterContentPolicy]): (-[WebMainResourceClient handle:didReceiveResponse:]):
- WebView.subproj/WebView.m: (+[WebView initialize]):
WebBrowser:
Combined file URL policy with content policy. Also adjusted error
handling to continue to handle file errors well.
- BrowserWebController.m: (-[BrowserWebController unableToImplementPolicy:error:forURL:inFrame:]): (-[BrowserWebController contentPolicyForMIMEType:andRequest:inFrame:]):
- LocationChangeError.m: (-[LocationChangeHandler specializedTitleForError:]): (-[LocationChangeHandler specializedMessageForError:]):
- LocationChangeHandler.m: (-[LocationChangeHandler locationChangeDone:forDataSource:]):
- WebBrowser.pbproj/project.pbxproj:
- 1:13 AM Changeset in webkit [2670] by
-
- 10 edits in trunk
WebCore:
- fixed 3099240 -- REGRESSION: repro assert d->m_doc->parsing
Don't force all redirects to be reloads, because the ones from JavaScript must
not be. Maybe a better solution post-Alex-32 will be to pass a flag that distinguishes
redirects from other location changes.
- khtml/khtml_part.cpp: (KHTMLPart::slotRedirect): Don't ignore the anchor when comparing URLs to see if they should be a reload. We'll still do a reload if the URLs are actually equal, but if they differ in anchor we will just go to the anchor. This is the bug fix.
- kwq/WebCoreBridge.h: Add reload parameter.
- kwq/WebCoreBridge.mm: (-[WebCoreBridge openURL:reload:headers:]): Stuff the reload parameter into the URLArgs.
WebKit:
- fixed 3099240 -- REGRESSION: repro assert d->m_doc->parsing
Make the reload flag pass across the bridge.
- WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _commitIfReady]): Pass a reload flag, based on the load type, to the bridge.
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): Pass a reload flag of NO in the anchor case. Preserve reload load types even when doing client redirects (have to talk with Trey about this tomorrow).
- 12:37 AM Changeset in webkit [2669] by
-
- 9 edits in trunk
WebCore:
- fixed 3100235 -- nil-deference in khtml::RenderTable at money.cnn.com
- kwq/WebCoreBridge.h: Add needsLayout.
- kwq/WebCoreBridge.mm: (-[WebCoreBridge needsLayout]): Return true if the render tree root says "layouted" is false. It would be more elegant to use more of this WebCore layout logic and have less of our own on the WebKit side.
- WebCore.pbproj/project.pbxproj: Oh, that Project Builder.
WebKit:
- fixed 3100235 -- nil-deference in khtml::RenderTable at money.cnn.com
- WebView.subproj/WebHTMLView.m: (-[WebHTMLView drawRect:]): If the WebCore side needs layout, then do layout before trying to draw.
Nov 13, 2002:
- 11:24 PM Changeset in webkit [2668] by
-
- 5 edits in trunk/WebKit
Fixed client redirects, some more. The upshot is that they do not
generate two items in the back-forward list. iBench still works.
- WebCoreSupport.subproj/WebBridge.m: (-[WebBridge reportClientRedirectTo:delay:fireDate:]): Call straight to the frame for all impl. (-[WebBridge reportClientRedirectCancelled]): Call straight to the frame for all impl. (-[WebBridge loadURL:reload:triggeringEvent:isFormSubmission:]): clientRedirect param removed when sending _loadURL: to frame.
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _loadURL:loadType:triggeringEvent:isFormSubmission:]): clientRedirect param removed. Check our own ivar to know if we are in client redirect case. (-[WebFrame _loadURL:intoChild:]): clientRedirect param removed when sending _loadURL: . (-[WebFrame _clientRedirectedTo:delay:fireDate:]): Note that we are doing a redirect if time=0 and we're not completed. Also includes previous impl moved from Bridge. (-[WebFrame _clientRedirectCancelled]): Previous impl moved from Bridge.
- 10:16 PM Changeset in webkit [2667] by
-
- 5 edits in trunk/WebCore
- fixed 3100895 -- REGRESSION: Crash (was assertion) on http://www.w3.org/Style/CSS/
- khtml/rendering/render_text.h: Add an optional arena parameter to deleteSlaves.
- khtml/rendering/render_text.cpp: (RenderText::detach): Pass the render arena in to deleteSlaves. (RenderText::deleteSlaves): Use the passed-in arena.
- 10:09 PM Changeset in webkit [2666] by
-
- 11 edits in trunk/WebCore
WebFoundation:
- Misc.subproj/WebAssertions.m: (vprintf_stderr_objc): Don't use displayableString. Makes us able to build on Panther.
- WebFoundation.pbproj/project.pbxproj: Project Builder wanted to touch this.
WebCore:
- fixed another crash on http://www.w3.org/Style/CSS/, but still not done
- khtml/rendering/render_box.cpp: (RenderBox::setStyle): Call renderArena() from RenderObject rather than going at the document directly. Safer because it works even when we don't have a node yet.
- khtml/rendering/render_flow.cpp: (RenderFlow::addChild): Ditto.
- khtml/rendering/render_layer.cpp: (RenderLayer::paint): Ditto. (RenderLayer::nodeAtPoint): Ditto. (RenderLayer::constructZTree): Ditto.
- khtml/rendering/render_list.cpp: (RenderListItem::setStyle): Ditto.
- khtml/rendering/render_text.cpp: (RenderText::deleteSlaves): Ditto. (RenderText::position): Ditto. This is the one that actually crashed.
- khtml/misc/makeattrs: Fixed handling of failure case.
- khtml/misc/maketags: Ditto.
- WebCore.pbproj/project.pbxproj: Project Builder wanted to touch this.
- 9:11 PM Changeset in webkit [2665] by
-
- 9 edits in trunk/WebCore
- fixed 3100895 -- REGRESSION: Assertion on http://www.w3.org/Style/CSS/
A few arena-related fixes.
- khtml/rendering/bidi.h: Don't define the operator new without the arena parameter. That way, we get a link failure if we use it by accident, rather than an assert at runtime. It would be even better to get a compile-time error, but I don't know how to make that happen.
- khtml/rendering/render_layer.h: Ditto.
- khtml/rendering/render_object.h: Ditto.
- khtml/rendering/render_text.h: Ditto.
- khtml/rendering/render_container.cpp: (RenderContainer::addChild): Create the RenderTable with the appropriate arena. (RenderContainer::insertPseudoChild): Create the RenderFlow objects with the appropriate arena.
- khtml/rendering/render_text.cpp: (RenderText::deleteSlaves): Don't try to get the arena when there are no slaves. This can happen after the element is nil, and in that case we will do a nil-dereference.
- 8:53 PM Changeset in webkit [2664] by
-
- 5 edits in trunk/WebCore
WebCore:
- kwq/KWQLineEdit.mm: (QLineEdit::sizeForCharacterWidth): Use the "0" instead of the "x" as the canonical character for width. This is slightly wider and is better for credit card numbers, for example.
- WebCore.pbproj/project.pbxproj: Tweak.
WebBrowser:
- English.lproj/StringsNotToBeLocalized.txt: Let the script sort this file.
- 8:44 PM Changeset in webkit [2663] by
-
- 4 edits in trunk/JavaScriptCore
- fixed 3099930 -- dates/times without time zones are parsed as UTC by kjs, local time by other browsers
- kjs/date_object.cpp: (DateProtoFuncImp::call): Handle the NaN case better, like Mozilla and OmniWeb. (DateObjectFuncImp::call): Return NaN rather than Undefined() for bad dates. (KJS::parseDate): Return NaN rather than Undefined() or 0 for bad dates. (KJS::KRFCDate_parseDate): Return -1 rather than 0 for bad dates. Assume local time if no time zone is passed. Don't return 1 if we parse 0.
- 7:20 PM Changeset in webkit [2662] by
-
- 7 edits in trunk/WebKit
WebKit:
Pass mime type instead of full response to content policy delegate
method, in preparation for merging it with the file URL policy.
- WebView.subproj/WebControllerPolicyDelegate.h:
- WebView.subproj/WebDefaultPolicyDelegate.m:
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:didReceiveResponse:]):
WebBrowser:
Pass mime type instead of full response to content policy delegate
method, in preparation for merging it with the file URL policy.
- BrowserWebController.m: (-[BrowserWebController contentPolicyForMIMEType:andRequest:inFrame:]):
- 3:46 PM Changeset in webkit [2661] by
-
- 1 edit in trunk/WebCore/khtml/misc/arena.h
tiny change made by rjw to fix build breakage
- 3:32 PM Changeset in webkit [2660] by
-
- 18 edits in trunk
WebCore:
- fixed 3083982 -- Logging into AOL gives null view
Turns out AOL was using a refresh header, which we were not supporting.
- khtml/khtml_part.h: Declare receivedFirstData, a private member function.
- khtml/khtml_part.cpp: (KHTMLPart::receivedFirstData): Separate out the part of slotData we want to share, which really seems kinda separate anyway. (KHTMLPart::slotData): More of the same.
- kwq/KWQKHTMLPart.h: Declare addMetaData.
- kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::slotData): Call receivedFirstData instead of doing the same thing ourselves. (KWQKHTMLPart::addMetaData): Added. Puts metadata into the job.
- kwq/KWQKHTMLPartBrowserExtension.mm: (KHTMLPartBrowserExtension::createNewWindow): Fix bug where this was calling openURL: but meant to call loadURL:.
- kwq/WebCoreBridge.h: Add headers to openURL method. Remove setContentType.
- kwq/WebCoreBridge.mm: (-[WebCoreBridge openURL:withHeaders:]): Handle Content-Type and Refresh. This method is big enough that I should probably move the guts to KWQKHTMLPart.
- other things
- kwq/KWQListImpl.mm: (KWQListImpl::~KWQListImpl): I overlooked something while doing my "bug fix" in here a while back. Change an assignment statement to an assert.
WebKit:
- fixed 3083982 -- Logging into AOL gives null view
Turns out AOL was using a refresh header, which we were not supporting.
- WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _commitIfReady]): Call openURL: and pass headers in.
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:isFormSubmission:]): Pass nil for headers in this case, since we know it's just an anchor change.
- other things
- WebCoreSupport.subproj/WebBridge.h: Remove dataSourceChanged and dataSource methods. We try to keep the bridge methods down to actual bridging.
- WebCoreSupport.subproj/WebBridge.m: Remove dataSourceChanged altogether, and move dataSource up in the file.
- WebView.subproj/WebHTMLRepresentation.m: (-[WebHTMLRepresentation setDataSource:]): Keep the data source around, so we don't need to ask the bridge for it. (-[WebHTMLRepresentation documentSource]): Use it here.
- 3:01 PM Changeset in webkit [2659] by
-
- 4 edits in trunk/WebCore
Fix for floats. Force relayout if collapsing margins
have to adjust the position of an object.
- khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren):
- 2:13 PM Changeset in webkit [2658] by
-
- 4 edits in trunk/WebKit
Fixed 3100084 - REGRESSION: web page is not first responder after visiting web page
- WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _commitIfReady]): Make the rep before _transitionToCommitted. This is the way it used to be. (-[WebDataSource _makeRepresentation]): Don't make the docView here.
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _transitionToCommitted]): Make the docView here, after we save the scroll state but before notifying the delegate.
- 2:07 PM Changeset in webkit [2657] by
-
- 11 edits in trunk/WebCore
Rewrite cellpadding to not use the style system at all and
to make table cells just get the padding from the table
itself (overriding style).
- khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::HTMLTableElementImpl): (HTMLTableElementImpl::attach): (HTMLTableElementImpl::parseAttribute): (HTMLTableCellElementImpl::init):
- khtml/html/html_tableimpl.h:
- khtml/rendering/bidi.cpp: (RenderFlow::layoutInlineChildren):
- khtml/rendering/render_box.cpp: (RenderBox::contentWidth): (RenderBox::contentHeight):
- khtml/rendering/render_flow.cpp: (RenderFlow::layoutBlockChildren): (RenderFlow::leftOffset): (RenderFlow::rightOffset): (RenderFlow::calcMinMaxWidth):
- khtml/rendering/render_object.h:
- khtml/rendering/render_table.cpp: (RenderTable::RenderTable): (RenderTableCell::paddingTop): (RenderTableCell::paddingBottom): (RenderTableCell::paddingLeft): (RenderTableCell::paddingRight):
- khtml/rendering/render_table.h:
- 1:40 PM Changeset in webkit [2656] by
-
- 4 edits in trunk/WebCore
Bump WebCore cache to 4 MB (was 1 MB).
- khtml/misc/loader.cpp
- 1:15 PM Changeset in webkit [2655] by
-
- 5 edits in trunk/JavaScriptCore
- fixed 3073230 -- JavaScript time calls do I/O by lstat()ing /etc/localtime
- kjs/date_object.cpp: (formatDate): Added. (formatTime): Added. (formatLocaleDate): Added. (formatLocaleTime): Added. (DateProtoFuncImp::call): Changed to use the above functions instead of using strftime.
- 10:30 AM Changeset in webkit [2654] by
-
- 3 edits in trunk/WebKit
- fixed 3100013 -- REGRESSION: Can't get results from i-Bench anymore
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _isLoadComplete]): Don't set the state to WebFrameStateComplete if it has already been set to WebFrameStateProvisional. If it has, that means we already began a new load; that one is not yet complete.
- 9:17 AM Changeset in webkit [2653] by
-
- 4 edits in trunk/WebKit
2002-11-13 John Sullivan <sullivan@apple.com>
- fixed 3099922 -- REGRESSION: Back button always pops up menu
- Misc.subproj/WebNSViewExtras.h:
- Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:xHysteresis:yHysteresis:]: Fixed a copy/paste error I made yesterday -- this method was never noticing the mouse-up events because it was checking the event type against the wrong number. Also changed the hysteresis values from unsigneds to floats (unsigned was just wrong).
- 2:56 AM Changeset in webkit [2652] by
-
- 15 edits in trunk
WebCore:
- fixed 3050447 - Policy handlers have no way of telling client that the proposed navigation is a form post
- khtml/khtml_part.cpp: (KHTMLPart::submitForm): Call kwq->submitForm
- kwq/KWQKHTMLPart.h:
- kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::openURL): Adjusted for bridge API change. (KWQKHTMLPart::openURLRequest): Removed POST handling. (KWQKHTMLPart::submitForm): Added this back, because we need to know what URL navigations are caused by form submission, even if they are not POSTs. (KWQKHTMLPart::urlSelected): Adjusted for bridge API change.
- kwq/WebCoreBridge.h: Add triggeringEvent: parameter to postURL: and isFormSubmission: parameter to loadURL:.
WebKit:
- fixed 3050447 - Policy handlers have no way of telling client that the proposed navigation is a form post
Now we pass form submissions through all the normal policy steps.
- WebCoreSupport.subproj/WebBridge.m: (-[WebBridge loadURL:reload:triggeringEvent:isFormSubmission:]): (-[WebBridge postWithURL:data:contentType:triggeringEvent:]): (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]):
- WebView.subproj/WebDataSourcePrivate.h:
- WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSourcePrivate dealloc]): (-[WebDataSource _setTriggeringAction:]): (-[WebDataSource _triggeringAction]): (-[WebDataSource _lastCheckedRequest]): (-[WebDataSource _setLastCheckedRequest:]):
- WebView.subproj/WebFrame.m: (-[WebFrame setProvisionalDataSource:]):
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _shouldShowRequest:]): (-[WebFrame _loadRequest:triggeringAction:]): (-[WebFrame _actionInformationForNavigationType:event:]): (-[WebFrame _continueAfterNavigationPolicyForRequest:dataSource:]): (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:isFormSubmission:]): (-[WebFrame _loadURL:intoChild:]): (-[WebFrame _postWithURL:data:contentType:triggeringEvent:]):
Nov 12, 2002:
- 8:52 PM Changeset in webkit [2651] by
-
- 8 edits in trunk/WebKit
WebKit:
Combine click policy and URL policy into navigation policy.
- WebView.subproj/WebControllerPolicyDelegate.h:
- WebView.subproj/WebDefaultPolicyDelegate.h:
- WebView.subproj/WebDefaultPolicyDelegate.m: (-[WebDefaultPolicyDelegate navigationPolicyForAction:andRequest:inFrame:]):
- WebView.subproj/WebFramePrivate.h:
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _shouldShowRequest:]): (-[WebFrame _actionInformationForNavigationType:event:]): (-[WebFrame _continueAfterFileURLPolicyForRequest:]): (-[WebFrame _continueAfterNavigationPolicyForRequest:event:]): (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]):
WebBrowser:
Combined click policy and URL policy into navigation policy.
- BrowserDocument.m: (-[BrowserDocument goToRequest:]):
- BrowserWebController.m: (-[BrowserWebController navigationPolicyForAction:andRequest:inFrame:]):
- 7:24 PM Changeset in webkit [2650] by
-
- 5 edits in trunk/WebCore
Fix for 3032869, the background image for the body was being
propagated up to the root properly but was not being tiled over
the whole canvas.
- khtml/rendering/render_box.cpp: (RenderBox::printBackground):
- khtml/rendering/render_html.cpp: (RenderHtml::printBoxDecorations):
- 6:20 PM Changeset in webkit [2649] by
-
- 3 edits in trunk/WebKit
fixed 3096030 - Crash in -[WebBackForwardList goToEntry:] when playing with SnapBack and dictionary.com
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _isLoadComplete]): Set state=completed only after we tell the bridge to end the load. This allows client redirects to be processed before we think we're complete. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]): Only process client redirects as such if we are not already complete. This makes JS driven navigations after load-time work like the user would expect, as normal navigations.
- 6:15 PM Changeset in webkit [2648] by
-
- 4 edits in trunk/WebCore
Fix the top of moveabletype.org. The maxwidth/minwidth
calculation for blocks with inline content did not properly
deal with margins and padding on inline elements like <a>.
- khtml/rendering/render_flow.cpp: (RenderFlow::calcInlineMinMaxWidth):
- 5:59 PM Changeset in webkit [2647] by
-
- 6 edits in trunk/WebCore
Fix for 2953367, padding is incorrectly inherited into table cells
and also incorrectly overrides cellpadding on the table itself.
Fixes dailyf1.com.
- khtml/css/html4.css:
- khtml/html/html_tableimpl.cpp: (HTMLTableElementImpl::parseAttribute): (HTMLTableCellElementImpl::init):
- khtml/html/html_tableimpl.h:
- 5:56 PM Changeset in webkit [2646] by
-
- 10 edits in trunk/WebKit
- fixed 3099487 - REGRESSION: dragging an image always puts it in the download directory
- WebView.subproj/WebControllerPrivate.h:
- WebView.subproj/WebControllerPrivate.m: (-[WebController _downloadURL:]): Call _downloadURL:toPath: with nil path. (-[WebController _downloadURL:toPath:]): New method that predetermines the path to download to (needed for DnD).
- WebView.subproj/WebHTMLView.m: (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]): Use _downloadURL:toPath:
- WebView.subproj/WebImageView.m: (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]): Use _downloadURL:toPath:
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:didReceiveResponse:]): Don't ask delegate for download path if we already have one.
- 5:49 PM Changeset in webkit [2645] by
-
- 3 edits in trunk/WebKit
Fixed likely cause of 3099047 (and others). Width buffer could underrun in
some situations.
- WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:letterSpacing:wordSpacing:]):
- 5:33 PM Changeset in webkit [2644] by
-
- 4 edits in trunk/WebCore
For now make text/xml files use HTML parsing/documents.
This avoids the infinite loop we get into when loading
text/xml. If/when we finally support XML, we can undo
this change.
- khtml/khtml_part.cpp: (KHTMLPart::begin):
- 5:28 PM Changeset in webkit [2643] by
-
- 4 edits in trunk/WebCore
Fix for 3086321, stylesheets not loading if titles are
specified. Note that 4 of the pages on the PLT were
affected by this, so I fully expect a slight performance
degradation (the boost from the regression was artificial).
- khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyleSelector):
- 5:27 PM Changeset in webkit [2642] by
-
- 4 edits in trunk/WebKit
WebKit:
- Misc.subproj/WebNSViewExtras.h:
- Misc.subproj/WebNSViewExtras.m: (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:xHysteresis:yHysteresis:]): new method (-[NSView _web_dragShouldBeginFromMouseDown:withExpiration:]): now calls the new method, passing the default hysteresis values
WebBrowser:
- fixed 3096528 -- don't let initially-horizontal drags of toolbar bookmarks escape from toolbar
Unfortunately I left behind a drawing glitch, recorded as
bug 3099488. Ideas to fix this are hereby solicited.
- FavoritesBar.m: (-[FavoritesBar slideButtonsIntoPlace]): renamed from repositionButtons for clarity (-[FavoritesBar maxButtonX]): new method, extracted from _layOutButtons (-[FavoritesBar _layOutButtons]): now calls maxButtonX (-[FavoritesBar setDropIndex:]): updated for name change (-[FavoritesBar specialBookmarkSourcesCount]): new method, extracted from duplicated code (-[FavoritesBar lastNonFavoriteIndex]): new method, extracted from dropIndexFromDraggingInfo: (-[FavoritesBar dropIndexFromLocalPoint:]): new method, extracted from dropIndexFromDraggingInfo: (-[FavoritesBar dropIndexFromDraggingInfo:]): now calls dropIndexFromLocalPoint: (-[FavoritesBar addDroppedBookmarks:atIndex:]): new method, extracted from performDragOperation: (-[FavoritesBar performDragOperation:]): now calls addDroppedBookmarks:atIndex: (-[FavoritesBar _lastDraggedEventFollowing:]), (-[FavoritesBar _lastDraggedOrUpEventFollowing:]): new methods, cribbed from AppKit (-[FavoritesBar constrainProposedButtonFrame:]): new method (-[FavoritesBar reorderFavoriteButton:fromMouseDownEvent:]): new method, drags (but not using CoreDragging stuff) button horizontally within bar only
- FavoritesBarView.h: added definition of FavoritesBarReorderingDelegate informal protocol
- FavoritesBarView.m: (-[FavoritesBarView reorderFavoriteButton:fromMouseDownEvent:]): pass call through to delegate (FavoritesBar)
- FavoriteButton.m: (-[FavoriteButton currentEventOffsetFromEvent:]): new method, extracted from performDragFromEvent: (-[FavoriteButton performDragFromEvent:]): now calls extracted method (-[FavoriteButton canDrag]): renamed from canDragButton; now checks whether superview is a FavoritesBarView (-[FavoriteButton mouseDown:]): checks whether initial dragging movement was primarily vertical or horizontal; if horizontal, calls new reordering code; if vertical, uses larger hysteresis to minimize accidental poofing
- 5:18 PM Changeset in webkit [2641] by
-
- 4 edits in trunk/WebCore
Oops, removed debugging.
- khtml/rendering/font.cpp: (Font::drawText):
- 5:07 PM Changeset in webkit [2640] by
-
- 14 edits in trunk
Implemented letter-spacing and word-spacing CSS properties.
- khtml/rendering/font.cpp: (Font::drawText): (Font::floatWidth): (Font::floatCharacterWidths):
- kwq/KWQFontMetrics.h:
- kwq/KWQFontMetrics.mm: (QFontMetrics::width): (QFontMetrics::floatWidth): (QFontMetrics::floatCharacterWidths):
- kwq/KWQPainter.h:
- kwq/KWQPainter.mm: (QPainter::drawText):
- kwq/WebCoreTextRenderer.h:
Implemented letter-spacing and word-spacing CSS properties.
- Misc.subproj/WebStringTruncator.m: (+[WebStringTruncator rightTruncateString:toWidth:withFont:]): (+[WebStringTruncator centerTruncateString:toWidth:withFont:]):
- WebCoreSupport.subproj/WebTextRenderer.h:
- WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer widthForCharacters:length:]): (-[WebTextRenderer drawCharacters:stringLength:fromCharacterPosition:toCharacterPosition:atPoint:withPadding:withTextColor:backgroundColor:rightToLeft:letterSpacing:wordSpacing:]): (-[WebTextRenderer floatWidthForCharacters:stringLength:characterPosition:]): (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:]): (-[WebTextRenderer floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:letterSpacing:wordSpacing:]): (-[WebTextRenderer _floatWidthForCharacters:stringLength:fromCharacterPosition:numberOfCharacters:withPadding:applyRounding:attemptFontSubstitution:widths:fonts:glyphs:numGlyphs:letterSpacing:wordSpacing:]):
Changed to reflect method name change.
- EtchedStringView.m: (-[EtchedStringView drawRect:]):
- 5:03 PM Changeset in webkit [2639] by
-
- 8 edits in trunk/WebCore
Revert floats so that they don't use layers any more.
Floats have to be able to paint in between the background
and foreground of inlines, so they can't have layers.
- khtml/rendering/render_box.cpp: (RenderBox::setStyle):
- khtml/rendering/render_flow.cpp: (RenderFlow::printObject): (RenderFlow::paintFloats): (RenderFlow::addOverHangingFloats): (RenderFlow::nodeAtPoint):
- khtml/rendering/render_flow.h:
- khtml/rendering/render_layer.cpp: (RenderLayer::constructZTree):
- khtml/rendering/render_list.cpp: (RenderListItem::printObject):
- 4:54 PM Changeset in webkit [2638] by
-
- 17 edits2 deletes in trunk/WebKit
WebKit:
Removed policy classes and instead use the policy enums directly,
since we no longer hold the path in the enum.
- Downloads.subproj/WebDownloadHandler.m:
- WebKit.exp:
- WebKit.pbproj/project.pbxproj:
- WebView.subproj/WebControllerPolicyDelegate.h:
- WebView.subproj/WebControllerPolicyDelegate.m:
- WebView.subproj/WebControllerPolicyDelegatePrivate.h: Removed.
- WebView.subproj/WebControllerPrivate.m:
- WebView.subproj/WebDefaultPolicyDelegate.h:
- WebView.subproj/WebDefaultPolicyDelegate.m: (+[WebDefaultPolicyDelegate defaultURLPolicyForRequest:]): (-[WebDefaultPolicyDelegate URLPolicyForRequest:inFrame:]): (-[WebDefaultPolicyDelegate fileURLPolicyForMIMEType:andRequest:inFrame:]): (-[WebDefaultPolicyDelegate unableToImplementPolicy:error:forURL:inFrame:]): (-[WebDefaultPolicyDelegate clickPolicyForAction:andRequest:inFrame:]):
- WebView.subproj/WebFramePrivate.m: (-[WebFrame handleUnimplementablePolicy:errorCode:forURL:]): (-[WebFrame _shouldShowRequest:]): (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:didReceiveResponse:]):
WebBrowser:
Adjusted for WebKit API changes.
- BrowserDocument.m: (-[BrowserDocument goToRequest:]):
- BrowserWebController.m: (-[BrowserWebController URLPolicyForRequest:inFrame:]): (-[BrowserWebController unableToImplementPolicy:error:forURL:inFrame:]): (-[BrowserWebController fileURLPolicyForMIMEType:andRequest:inFrame:]): (-[BrowserWebController contentPolicyForResponse:andRequest:inFrame:]): (-[BrowserWebController clickPolicyForAction:andRequest:inFrame:]):
- 3:24 PM Changeset in webkit [2637] by
-
- 4 edits in trunk/WebCore
- kwq/KWQCursor.mm: (QCursor::QCursor): Use nil instead of [NSCursor arrowCursor]. This will probably fix the performance regression.
- 2:10 PM Changeset in webkit [2636] by
-
- 5 edits in trunk/WebCore
- fixed 3080250 -- Hands-free crash at wired.com in KHTMLPart::slotChildStarted
- kwq/KWQListImpl.mm: (KWQListImpl::~KWQListImpl): Set the node of each iterator to NULL too, not just the list. This is the bug fix for the bug above. (KWQListIteratorImpl::toFirst): Check for list of NULL. (KWQListIteratorImpl::toLast): ditto.
- kwq/KWQSlot.mm: Tweaks.
- 1:44 PM Changeset in webkit [2635] by
-
- 44 edits4 adds in trunk/WebCore
This patch lands a rewrite of whitespace-handling in the
layout engine and adds support for the CSS2 white-space
property.
It also includes a rewrite of inlines' min/max width
calculations (for both flow inlines and raw text).
A problem with <form> margins has been fixed (this is a
regression I caused with my collapsing margin checkin).
- WebCore.pbproj/project.pbxproj:
- khtml/css/html4.css:
- khtml/html/dtd.cpp: (DOM::checkChild):
- khtml/html/html_baseimpl.cpp: (HTMLBodyElementImpl::attach): (HTMLFrameElementImpl::attach): (HTMLFrameSetElementImpl::attach): (HTMLHtmlElementImpl::attach): (HTMLIFrameElementImpl::attach):
- khtml/html/html_formimpl.cpp: (HTMLFormElementImpl::HTMLFormElementImpl): (HTMLInputElementImpl::attach): (HTMLSelectElementImpl::attach): (HTMLTextAreaElementImpl::attach):
- khtml/html/html_formimpl.h:
- khtml/html/html_imageimpl.cpp: (HTMLImageElementImpl::attach):
- khtml/html/html_inlineimpl.cpp: (HTMLBRElementImpl::attach):
- khtml/html/html_objectimpl.cpp: (HTMLAppletElementImpl::attach): (HTMLEmbedElementImpl::attach): (HTMLObjectElementImpl::attach):
- khtml/html/htmlparser.cpp: (KHTMLParser::reset): (KHTMLParser::parseToken): (KHTMLParser::insertNode): (KHTMLParser::popBlock): (KHTMLParser::popOneBlock):
- khtml/html/htmlparser.h:
- khtml/html/htmltokenizer.cpp: (HTMLTokenizer::addPending): (HTMLTokenizer::write):
- khtml/misc/arena.cpp: Added. (CeilingLog2): (InitArenaPool): (ArenaAllocate): (ArenaGrow): (FreeArenaList): (ArenaRelease): (FreeArenaPool): (FinishArenaPool): (ArenaFinish):
- khtml/misc/arena.h: Added.
- khtml/rendering/bidi.cpp: (BidiIterator::detach): (throw): (BidiIterator::operator delete): (appendRunsForObject): (appendRun): (RenderFlow::bidiReorderLine): (deleteMidpoints): (RenderFlow::layoutInlineChildren): (RenderFlow::findNextLineBreak):
- khtml/rendering/bidi.h:
- khtml/rendering/render_arena.cpp: Added. (RenderArena::RenderArena): (RenderArena::~RenderArena): (RenderArena::allocate): (RenderArena::free):
- khtml/rendering/render_arena.h: Added.
- khtml/rendering/render_box.cpp: (RenderBox::setStyle): (RenderBox::~RenderBox): (RenderBox::detach):
- khtml/rendering/render_box.h:
- khtml/rendering/render_br.cpp: (RenderBR::RenderBR):
- khtml/rendering/render_container.cpp: (RenderContainer::~RenderContainer): (RenderContainer::detach):
- khtml/rendering/render_container.h:
- khtml/rendering/render_flow.cpp: (RenderFlow::setStyle): (RenderFlow::layout): (RenderFlow::calcInlineMinMaxWidth): (RenderFlow::calcBlockMinMaxWidth): (RenderFlow::calcMinMaxWidth): (RenderFlow::addChild): (RenderFlow::makeChildrenNonInline):
- khtml/rendering/render_flow.h:
- khtml/rendering/render_html.cpp: (RenderHtml::RenderHtml):
- khtml/rendering/render_layer.cpp: (RenderLayer::~RenderLayer): (throw): (RenderLayer::operator delete): (RenderLayer::detach): (RenderLayer::paint): (RenderLayer::nodeAtPoint): (RenderLayer::constructZTree): (RenderLayer::RenderLayerElement::operator delete): (RenderLayer::RenderLayerElement::detach): (RenderLayer::RenderZTreeNode::operator delete): (RenderLayer::RenderZTreeNode::detach):
- khtml/rendering/render_layer.h:
- khtml/rendering/render_list.cpp: (RenderListItem::setStyle):
- khtml/rendering/render_object.cpp: (throw): (RenderObject::operator delete): (RenderObject::createObject): (RenderObject::renderArena): (RenderObject::detach):
- khtml/rendering/render_object.h:
- khtml/rendering/render_replaced.cpp: (RenderWidget::detach):
- khtml/rendering/render_replaced.h:
- khtml/rendering/render_root.cpp: (RenderRoot::RenderRoot):
- khtml/rendering/render_table.cpp: (RenderTable::addChild): (RenderTable::calcWidth): (RenderTable::setCellWidths): (RenderTableSection::addChild): (RenderTableRow::addChild):
- khtml/rendering/render_text.cpp: (TextSlave::detach): (throw): (TextSlave::operator delete): (TextSlaveArray::TextSlaveArray): (RenderText::RenderText): (RenderText::~RenderText): (RenderText::detach): (RenderText::deleteSlaves): (RenderText::trimmedMinMaxWidth): (RenderText::calcMinMaxWidth): (RenderText::position):
- khtml/rendering/render_text.h:
- khtml/xml/dom_docimpl.cpp: (DocumentImpl::DocumentImpl): (DocumentImpl::~DocumentImpl): (DocumentImpl::attach): (DocumentImpl::detach):
- khtml/xml/dom_docimpl.h:
- khtml/xml/dom_nodeimpl.cpp: (NodeImpl::detach): (NodeImpl::isReadOnly): (NodeImpl::previousRenderer):
- khtml/xml/dom_nodeimpl.h:
- khtml/xml/dom_stringimpl.cpp:
- khtml/xml/dom_stringimpl.h:
- khtml/xml/dom_textimpl.cpp: (CharacterDataImpl::containsOnlyWhitespace): (TextImpl::attach):
- khtml/xml/dom_textimpl.h:
- 1:43 PM Changeset in webkit [2634] by
-
- 3 edits in trunk/WebKit
Keep the triggering event around on the data source, so it can be
used with redirects.
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _loadRequest:triggeringEvent:]): (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]): (-[WebFrame _postWithURL:data:contentType:]):
- 1:36 PM Changeset in webkit [2633] by
-
- 4 edits in trunk/WebCore
- fixed 3094819 -- Crash in -[KWQObjectTimerTarget timerFired]
- kwq/KWQObject.mm: (QObject::~QObject): Call the _destroyed signal. (QObject::killTimers): Simplify the code a bit using makeObjectsPerformSelector:.
- 10:43 AM Changeset in webkit [2632] by
-
- 6 edits in trunk/WebCore
- fixed 3079499 -- blank page at http://www.sonyericsson.com/T68i/
- khtml/misc/loader.cpp: (CachedCSSStyleSheet::checkNotify): Copy the clients list before iterating over it, since clients can move around in the list or be removed. (CachedScript::checkNotify): Ditto. (CachedImage::do_notify): Ditto. (CachedImage::movieStatus): Ditto.
- fixed double calls to openURL I noticed
- khtml/khtml_part.cpp: (KHTMLPart::processObjectRequest): Don't call openURL here at all. That happens indirectly as a result of the load we kick off.
- kwq/KWQKHTMLPart.mm: Tweaks.
- 9:22 AM Changeset in webkit [2631] by
-
- 7 edits in trunk
WebCore:
- fixed 3083043 -- Alex doesn't decode % sequences in javascript: URLs
Some places here did KURL::decode_string, but others didn't.
- khtml/khtml_part.cpp: (KHTMLPart::slotShowDocument): Added call to KURL::decode_string. (KHTMLPart::overURL): Ditto. (KHTMLPart::urlSelected): Ditto. (KHTMLPart::requestFrame): Ditto. (KHTMLPart::slotChildURLRequest): Ditto.
WebKit:
- improved the code that manages observing the window and superview
- WebView.subproj/WebHTMLView.m: (-[WebHTMLView addSuperviewObservers]): Added. (-[WebHTMLView removeSuperviewObservers]): Added. (-[WebHTMLView addWindowObservers]): Added. (-[WebHTMLView removeWindowObservers]): Added. (-[WebHTMLView viewWillMoveToSuperview:]): Call removeSuperviewObservers. (-[WebHTMLView viewDidMoveToSuperview]): Call addSuperviewObservers. (-[WebHTMLView viewWillMoveToWindow:]): Call removeWindowObservers and removeSuperviewObservers. (-[WebHTMLView viewDidMoveToWindow]): Call addWindowObservers and addSuperviewObservers.
WebBrowser:
- fixed 3083043 -- Alex doesn't decode % sequences in javascript: URLs
- BrowserWebBookmarkExtras.m: (-[WebBookmark _goToWithWindowPolicy:]): Call CFURLCreateStringByReplacingPercentEscapes on the URL fragment before passing it to stringByEvaluatingJavaScriptFromString:.
- BrowserWindowController.m: (-[BrowserWindowController goToToolbarLocation:]): Ditto.
- fixed world leaks seen when playing with the snippet window
- Debug/SnippetController.m: (-[SnippetController dealloc]): Release the location change delegate to avoid a leak. Also release the data source now that we retain it. (-[SnippetController windowWillClose:]): Release everything here. If we don't we get a world leak. Also remove the WebView from the superview. If we don't, it leaks. At some point we should look into this because it may indicate a WebKit problem, so I marked it with a FIXME. (-[SnippetController load]): Retain the data source. (-[SnippetController loadComplete]): Release the old text storage.
- Debug/SnippetController.h: Tweaks.
Nov 11, 2002:
- 11:17 PM Changeset in webkit [2630] by
-
- 19 edits in trunk/WebKit
WebKit:
Remove contentPolicy parameter from _downloadURL, and remove
remaining traces of path from policy object.
- WebView.subproj/WebControllerPolicyDelegate.h:
- WebView.subproj/WebControllerPolicyDelegate.m: (-[WebPolicyPrivate dealloc]): (+[WebURLPolicy webPolicyWithURLAction:]): (+[WebFileURLPolicy webPolicyWithFileAction:]): (+[WebContentPolicy webPolicyWithContentAction:]): (+[WebClickPolicy webPolicyWithClickAction:]):
- WebView.subproj/WebControllerPolicyDelegatePrivate.h:
- WebView.subproj/WebControllerPrivate.h:
- WebView.subproj/WebControllerPrivate.m: (-[WebController _downloadURL:]):
- WebView.subproj/WebDefaultContextMenuDelegate.m: (-[WebDefaultContextMenuDelegate downloadURL:]):
- WebView.subproj/WebDefaultPolicyDelegate.m: (-[WebDefaultPolicyDelegate clickPolicyForAction:andRequest:inFrame:]):
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _continueAfterClickPolicyForEvent:request:]):
- WebView.subproj/WebHTMLView.m: (-[WebHTMLView namesOfPromisedFilesDroppedAtDestination:]):
- WebView.subproj/WebImageView.m: (-[WebImageView namesOfPromisedFilesDroppedAtDestination:]):
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:didReceiveResponse:]):
WebBrowser:
Don't pass path when making policy objects.
- BrowserWebController.m: (-[BrowserWebController contentPolicyForResponse:andRequest:inFrame:]): (-[BrowserWebController clickPolicyForAction:andRequest:inFrame:]):
- 10:33 PM Changeset in webkit [2629] by
-
- 8 edits in trunk
WebFoundation:
- English.lproj/StringsNotToBeLocalized.txt: Update.
WebCore:
- kwq/KWQWidget.mm: (QWidget::setCursor): Remove printf I left in by accident.
WebKit:
- Plugins.subproj/WebNetscapePluginPackage.m: (-[WebNetscapePluginPackage load]): Use fileSystemRepresentationWithPath, not cString, to turn a path into something to pass to FSPathMakeRef.
- English.lproj/StringsNotToBeLocalized.txt: Update.
WebBrowser:
- BrowserNSStringExtras.m: (-[NSString compareVersionString:]): Use lossyCString so we don't get an exception if a string is bad.
- English.lproj/StringsNotToBeLocalized.txt: Update.
- 6:06 PM Changeset in webkit [2628] by
-
- 11 edits in trunk
WebCore:
- tighten up cursor handling a bit more
- kwq/KWQWidget.mm: (QWidget::setCursor): Use setDocumentCursor: instead of our own protocol. (QWidget::cursor): Use documentCursor instead of storing our own cursor.
- kwq/WebCoreFrameView.h: Remove setCursor: method.
WebKit:
- tighten up cursor handling a bit more
- WebView.subproj/WebDynamicScrollBarsView.m:
- WebView.subproj/WebHTMLView.m: (-[WebHTMLView addMouseMovedObserver]): Call _frameOrBoundsChanged so we emit a mouse moved event right away. (-[WebHTMLView viewWillMoveToSuperview:]): Remove the colon since I removed the parameter from _frameOrBoundsChanged.
- WebView.subproj/WebHTMLViewPrivate.h: Declare _frameOrBoundsChanged.
- WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView _frameOrBoundsChanged]): Remove parameter.
- 5:47 PM Changeset in webkit [2627] by
-
- 7 edits in trunk/WebCore
- fixed 3084704 -- crash in HTMLTokenizer on page with JavaScript HTMLDocument::Close inside a <script>
I think it's going to work this time. The key was to hook up the
KHTML submitFormAgain machinery.
- khtml/khtml_part.cpp: (KHTMLPart::submitForm): Take out the APPLE_CHANGES ifdef that was disabling the submitFormAgain logic.
- kwq/KWQKHTMLPart.h: Remove submitForm(), because openURLRequest() handles it fine.
- kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::openURLRequest): Move the logic for handling POST here from submitForm() and remove submitForm().
- kwq/KWQSlot.mm: (KWQSlot::KWQSlot): Add support for the submitFormAgain slot. (KWQSlot::call): Ditto.
- 11:27 AM Changeset in webkit [2626] by
-
- 3 edits in trunk/WebKit
Fixed 3015884 - Reloading a page should remember the scroll position
- WebView.subproj/WebFramePrivate.m: (-[WebFrame _transitionToCommitted]): Save scroll position on reload (-[WebFrame _isLoadComplete]): Restore position on reload
- 11:04 AM Changeset in webkit [2625] by
-
- 8 edits2 adds in trunk/WebCore
- fixed 3092421 -- javascript: URL that opens window crashes Alex if typed into empty window
- kwq/KWQKHTMLPart.h:
- kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::KWQKHTMLPart): Set _ownsView to false. (KWQKHTMLPart::~KWQKHTMLPart): Delete the view if we own it. Also release _currentEvent to fix a leak. (KWQKHTMLPart::setView): Delete the old view if we own it. Also, set the _ownsView flag. (KWQKHTMLPart::createDummyDocument): Create a dummy view too.
- kwq/KWQDummyView.h: Added.
- kwq/KWQDummyView.m: Added.
- WebCore.pbproj/project.pbxproj: Added KWQDummyView.
- kwq/WebCoreBridge.h: Remove bridgeOwnsKHTMLView and currentEvent.
- kwq/WebCoreBridge.mm: (-[WebCoreBridge createKHTMLViewWithNSView:marginWidth:marginHeight:]): Pass true to setView instead of setting bridgeOwnsKHTMLView. (-[WebCoreBridge removeFromFrame]): Just call setView on the part. It knows how to handle ownership now. (-[WebCoreBridge installInFrame:]): Call setOwnsView instead of setting bridgeOwnsKHTMLView.
- 10:33 AM Changeset in webkit [2624] by
-
- 21 edits in trunk
First checkin of making frames work with the back forward list, restoring scroll position and form state. Fixing:
3014555 Lose frameset context going back/forward
3078151 History inconsistency after loading frame content
3089551 REGRESSION: www.bmwusa.com frames don't load in alex-30
3095878 refresh doesn't preserve frame state
WebCore:
- khtml/khtml_part.cpp: (KHTMLPart::requestFrameName): Call through bridge to get generated frame name.
- kwq/KWQKHTMLPart.h:
- kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::generateFrameName): New call that just forwards through the bridge.
- kwq/WebCoreBridge.h:
WebKit:
- History.subproj/WebBackForwardList.m: (-[WebBackForwardList addEntry:]): Yank code to avoid adding a duplicate entry, to catch the refresh case. That's dealt with in WebFramePrivate now. (-[WebBackForwardList description]): Enhanced to print more info.
- History.subproj/WebHistoryItem.h: History items now hold an array of subitems to mirror the frame tree. One item in the tree is designated the target of the navigation.
- History.subproj/WebHistoryItem.m: (-[WebHistoryItem dealloc]): Release new ivars. (-[WebHistoryItem isTargetItem]): (-[WebHistoryItem setIsTargetItem:]): New setter and setter. (-[WebHistoryItem _recurseToFindTargetItem]): (-[WebHistoryItem targetItem]): Search the tree to find the target item. (-[WebHistoryItem children]): (-[WebHistoryItem addChildItem:]): (-[WebHistoryItem childItemWithName:]): Maintain and search new child item list. (-[WebHistoryItem description]): Enhanced to print out the tree of items. (-[WebHistoryItem dictionaryRepresentation]): (-[WebHistoryItem initFromDictionaryRepresentation:]): Save and load the new state.
- WebCoreSupport.subproj/WebBridge.m: (-[WebBridge generateFrameName]): New call from KWQ, just forwards to Frame. (-[WebBridge createChildFrameNamed:withURL:renderPart:allowsScrolling:marginWidth:marginHeight:]): Call new frame method dedicated to this case. (-[WebBridge saveDocumentState:]): (-[WebBridge documentState]): Call frame methods to get the right item to save/restore to/from.
- WebView.subproj/WebController.m: (-[WebController _goToItem:withLoadType:]): Stop any current loading before going to a new item. (-[WebController goBack]): (-[WebController goForward]): (-[WebController goBackOrForwardToItem:]): Name change of private method (for consistency)
- WebView.subproj/WebDataSourcePrivate.h: ProvisionalItem and PreviousItem are moved back up to WebFrame, where we know more about the state transitions that happen during loading.
- WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSourcePrivate dealloc]): Don't release removed ivars. (-[WebDataSource _commitIfReady]): Make the view representations -after- the transition to committed. This allows us to save away the scroll location successfully, since making the view was resetting it.
- WebView.subproj/WebFrame.h:
- WebView.subproj/WebFrame.m: (-[WebFrame setProvisionalDataSource:]): Saving the scroll location has moved elsewhere to handle frames. (-[WebFrame stopLoading]): Skip all the work if we're already state=complete.
- WebView.subproj/WebFramePrivate.h: The frame now holds a ref to the current, previous and provisional back-forward items.
- WebView.subproj/WebFramePrivate.m: (-[WebFramePrivate dealloc]): Release new state. (-[WebFramePrivate setProvisionalItem:]): (-[WebFramePrivate setPreviousItem:]): (-[WebFramePrivate setCurrentItem:]): New setters (1 line getters were missed by script) (-[WebFrame _addBackForwardItemClippedAtTarget:]): Adds a BF item to the top of the BF list. (-[WebFrame _createItem]): Create a single BF item. (-[WebFrame _createItemTreeWithTargetFrame:clippedAtTarget:]): Create a tree of BF items, which mirror the frame tree. (-[WebFrame _immediateChildFrameNamed:]): New frame search utility (doesn't recurse) (-[WebFrame _detachFromParent]): Save the scroll position when detaching a frame. (-[WebFrame _transitionToCommitted]): Maintain new item ivars. Save scroll position when appropriate. Hook up items for child frames to their parent, as they are created. (-[WebFrame _setState:]): Clear previousItem whenever we reach committed. (-[WebFrame _isLoadComplete]): Clear previousItem if we are committed. (-[WebFrame _childFramesMatchItem:]): Does the frame's frame tree match the one held by the item? (-[WebFrame _loadItem:fromItem:withLoadType:]): Only do simple anchor navigation if the frame has no children (fixes oddball corner case with a frame reloading itself). Set provisional item. (-[WebFrame _recursiveGoToItem:fromItem:withLoadType:]): Heart of returning to an item that had frames. We either find that the existing content is good, or initiate a load. (-[WebFrame _goToItem:withLoadType:]): Adjust the BF list cursor, and recurse to do the work. (-[WebFrame _loadURL:loadType:clientRedirect:triggeringEvent:]): Only do anchor-style nav if the destination URL has a fragment. Save scroll position. (-[WebFrame _loadURL:intoChild:]): If returning to an item with frames, possibly replace the new content with the stuff that was there at the time, substituting the URL. (-[WebFrame _saveScrollPositionToItem:]): Don't croak on nil item or view. (-[WebFrame _restoreScrollPosition]): Do croak (ASSERT) on nil item. (-[WebFrame _scrollToTop]): Nit cleanup. (-[WebFrame _addFramePathToString:]): Add a component for our frame to the frame name we're generating. (-[WebFrame _generateFrameName]): Generate a frame name that is repeatable. (-[WebFrame _itemForSavingDocState]): Returns correct item to use for formstate save. (-[WebFrame _itemForRestoringDocState]): Returns correct item to use for formstate restore
WebBrowser:
- BrowserDocument.m: (-[BrowserDocument _addItem:toMenu:]): For a back-forward item that's a tree because its for a frameset, use the right item of the tree to generate the menu contents.
- 7:01 AM Changeset in webkit [2623] by
-
- 12 edits in trunk/WebKit
WebKit:
Store path and the fact that we're downloading in the data source,
instead of storing the content policy.
- Downloads.subproj/WebDownloadHandler.m: (-[WebDownloadHandler cleanUpAfterFailure]): (-[WebDownloadHandler createFileIfNecessary]): (-[WebDownloadHandler finishedLoading]):
- WebView.subproj/WebControllerPrivate.m: (-[WebController _downloadURL:withContentPolicy:]):
- WebView.subproj/WebDataSource.h:
- WebView.subproj/WebDataSource.m: (+[WebDataSource registerRepresentationClass:forMIMEType:]): (-[WebDataSource isDownloading]): (-[WebDataSource downloadPath]):
- WebView.subproj/WebDataSourcePrivate.h:
- WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSourcePrivate dealloc]): (-[WebDataSource _commitIfReady]): (-[WebDataSource _setIsDownloading:]): (-[WebDataSource _setDownloadPath:]):
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient receivedError:]): (-[WebMainResourceClient handle:didReceiveResponse:]): (-[WebMainResourceClient handleDidFinishLoading:]):
WebBrowser:
Adjusted for WebKit API changes.
- DownloadProgressEntry.m: (+[DownloadProgressEntry entryWithDataSource:]): (-[DownloadProgressEntry path]):
- 4:49 AM Changeset in webkit [2622] by
-
- 8 edits in trunk/WebKit
WebKit:
Don't ask for the content policy any more if the previous policies
said to save - in effect this means to ask only if the previous
policies said to use the content policy. Also, remove now-useless
previous content policy parameter from content policy delegate.
- WebView.subproj/WebControllerPolicyDelegate.h:
- WebView.subproj/WebDataSourcePrivate.m: (-[WebDataSource _setContentPolicy:]): Retain new policy before releasing the old one.
- WebView.subproj/WebDefaultPolicyDelegate.m:
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:didReceiveResponse:]): Don't ask for content policy if the delegate already decided to save.
WebBrowser:
Adjusted for WebKit API change.
- BrowserWebController.m: (-[BrowserWebController contentPolicyForResponse:andRequest:inFrame:]):
- 1:29 AM Changeset in webkit [2621] by
-
- 7 edits in trunk/WebKit
WebKit:
Added new policy delegate callback to get the filename - this
won't be up to the content policy any more.
- WebView.subproj/WebControllerPolicyDelegate.h:
- WebView.subproj/WebDefaultPolicyDelegate.m: (-[WebDefaultPolicyDelegate saveFilenameForResponse:andRequest:]):
- WebView.subproj/WebMainResourceClient.m: (-[WebMainResourceClient handle:didReceiveResponse:]):
WebBrowser:
Added new policy delegate callback to get the filename - this
won't be up to the content policy any more.
- BrowserWebController.m: (-[BrowserWebController contentPolicyForResponse:andRequest:inFrame:withContentPolicy:]): (-[BrowserWebController saveFilenameForResponse:andRequest:]):
- 12:46 AM Changeset in webkit [2620] by
-
- 4 edits in trunk/WebCore
- fixed 3097253 -- text tagged <small> inside <h1> is too small
- khtml/css/html4.css: Change BIG to use "font-size: larger" rather than "font-size: large" and SMALL to use "font-size: smaller" rather than "font-size: small".
- 12:31 AM Changeset in webkit [2619] by
-
- 15 edits in trunk
WebCore:
- kwq/WebCoreBridge.h: Remove unused modifierTrackingEnabled method.
WebKit:
- made some improvements to cursor setting for greater speed and correctness
- WebView.subproj/WebDynamicScrollBarsView.m: (-[WebDynamicScrollBarsView setCursor:]): Just use setDocumentCursor: instead of our own logic. This allows us to remove code and may fix some bugs or anomalies as well. (-[WebDynamicScrollBarsView dealloc]): Release the cursor. I think we were leaking before.
- WebView.subproj/WebHTMLView.m: (-[WebHTMLView viewWillMoveToSuperview:]): Use _frameOrBoundsChanged: method now, which has been moved into the private file. (-[WebHTMLView dragImage:at:offset:event:pasteboard:source:slideBack:]): Don't bother finding topmost WebHTMLView to call _updateMouseoverWithEvent: on; now it works fine no matter which level it's called at.
- WebView.subproj/WebHTMLViewPrivate.m: (-[WebHTMLView _frameOrBoundsChanged:]): Moved the code here that was formerly in the _setNeedsLayoutIfSizeChanged method, also added code that does _updateMouseoverWithEvent: so that we get properly updated cursor when we scroll. (-[WebHTMLView _updateMouseoverWithEvent:]): Remove unneeded assert. This method works equally well no matter which WebHTMLView calls it; everything is done at the window and controller level.
- WebView.subproj/WebControllerPrivate.h: Added lastElementWasNotNil field and _mouseDidMoveOverElement:modifierFlags: method.
- WebView.subproj/WebControllerPrivate.m: (-[WebController _mouseDidMoveOverElement:modifierFlags:]): Call through to the delegate, but don't do multiple calls if they are all nil.
- WebCoreSupport.subproj/WebBridge.m: Remove unused modifierTrackingEnabled method.
- WebView.subproj/WebHTMLViewPrivate.h: Remove unused _setModifierTrackingEnabled and _modifierTrackingEnabled methods.
WebBrowser:
- AppController.m: (-[AppController awakeFromNib]): Remove unneeded call to set unused modifierTrackingEnabled flag. The code that used to care about this flag is now in WebBrowser and there's no need to inform WebCore and WebKit about whether we are passing in flags-changed events.