Timeline
Feb 18, 2005:
- 5:13 PM Changeset in webkit [8636] by
-
- 7 edits in trunk/WebCore
Reviewed by Darin.
Fix for <rdar://problem/3975568> REGRESSION(125-180)Australian Open pages have drawing problem
This patch fixes two problems caused by our added support for custom tags. First, the layout problem at the sites mentioned in the bug
was caused by custom tags within tables. In checkChild, we needed to treat these tags as spans so they get placed correctly in the DOM tree.
Also, we were indexing the tagPriority and endTag arrays with id values from the custom tags that were greater than the size of the array. So now
we have functions to check for the custom tags, and again, treat them as spans. To avoid confusion, we changed the names of the arrays to
endTagArray and tagPriorityArray.
- khtml/html/dtd.h: changed all uses of the endTag array to endTagArray for our new wrapper functions (DOM::tagPriority): added function to check array bounds and to treat custom tags as spans (DOM::endTagRequirement): added function to check array bounds and to treat custom tags as spans
- khtml/html/dtd.cpp: changed name of endTag and tagPriority arrays to endTagArray and tagPriorityArray (DOM::checkChild): treat custom tags as spans during this check
- khtml/html/html_elementimpl.cpp: changed all uses of the endTag array to the endTagRequirement function (HTMLElementImpl::createContextualFragment): (HTMLElementImpl::setInnerText): (HTMLElementImpl::setOuterText): (HTMLElementImpl::toString):
- khtml/html/htmlparser.cpp: changed all uses of the endTag array to the endTagRequirement function and all uses of the tagPriority array to the tagPriority function. (KHTMLParser::parseToken): (KHTMLParser::insertNode):
- khtml/html/htmltokenizer.cpp: (khtml::HTMLTokenizer::parseTag): changed all uses of the endTag array to the endTagRequirement function
- khtml/editing/markup.cpp: changed all uses of the endTag array to the endTagRequirement function (khtml::endMarkup): (khtml::markup):
- 2:10 PM Changeset in webkit [8635] by
-
- 2 edits in trunk/WebCore
Fixed build: Whoops, setNeedsLayout's parameter is NOT optional!
- 1:39 PM Changeset in webkit [8634] by
-
- 5 edits in trunk/WebCore
[3603191] REGRESSION: Applets not receiving all of the Applet Parameters in Java 1.4.1/1.4.2. Fix is to defer instantiating the applet plugin until the applet tag and its nested param tags have been completely parsed.
- 12:49 PM Changeset in webkit [8633] by
-
- 2 edits in trunk/WebCore
Fixed <rdar://problem/4006161> Tiger8A380: Widgets leak dashboard regions
We were leaking the DashboardRegionImpls.
Reviewed by Kevin.
- khtml/css/css_valueimpl.cpp: (DOM::CSSPrimitiveValueImpl::cleanup):
- 12:11 PM Changeset in webkit [8632] by
-
- 8 edits in trunk
WebCore:
Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
Reviewed by kocienda.
- khtml/editing/htmlediting.cpp: (khtml::ApplyStyleCommand::addInlineStyleIfNeeded): don't set class on element returned by createStyleSpanElement since that's already done (khtml::ReplacementFragment::ReplacementFragment): take matchStyle param, don't call computeStylesAndRemoveUnrendered() if !matchStyle (khtml::ReplaceSelectionCommand::ReplaceSelectionCommand): take matchStyle param (khtml::ReplaceSelectionCommand::doApply): if m_matchStyle, use selection.start() as the insertion position and don't call applyStyleToInsertedNodes()
- khtml/editing/htmlediting.h:
- kwq/WebCoreBridge.h:
- kwq/WebCoreBridge.mm: (-[WebCoreBridge replaceSelectionWithFragment:selectReplacement:smartReplace:matchStyle:]): take matchStyle param and pass it (-[WebCoreBridge replaceSelectionWithNode:selectReplacement:smartReplace:]): pass NO for matchStyle (-[WebCoreBridge replaceSelectionWithMarkupString:baseURLString:selectReplacement:smartReplace:]): pass NO for matchStyle (-[WebCoreBridge replaceSelectionWithText:selectReplacement:smartReplace:]): pass YES for matchStyle
WebKit:
Fixed: <rdar://problem/3945271> REGRESSION (Mail): pasted plain text should pick up typing style instead of being unstyled
Reviewed by kocienda.
- WebView.subproj/WebDataSource.m: (-[WebDataSource _replaceSelectionWithArchive:selectReplacement:]): pass NO for matchStyle to replaceSelection
- WebView.subproj/WebHTMLView.m: (-[WebHTMLView _documentFragmentFromPasteboard:allowPlainText:chosePlainText:]): return new chosePlainText parameter (-[WebHTMLView _pasteWithPasteboard:allowPlainText:]): pass chosePlainText for matchStyle to replaceSelection (-[WebHTMLView concludeDragForDraggingInfo:actionMask:]): ditto
- 11:55 AM Changeset in webkit [8631] by
-
- 5 edits in trunk
Reviewed by Chris
Fix for these bugs:
<rdar://problem/4013025> Copy/Paste of quoted word results in removal of any following <cr>
<rdar://problem/4013100> Copy/Paste quoted text and then decrease quote level does not change text color
For the most part, these bugs were caused by errors and lack of foresight on my part when
I added the better paste code. Chalk these fixes up to the result of bake time.
- khtml/editing/htmlediting.cpp: (khtml::ReplacementFragment::ReplacementFragment): Need to move count of number of blocks in fragment after the call to remove unrendered nodes. Meant to do this before, but forgot to. (khtml::ReplacementFragment::removeStyleNodes): Need to remove inline styles from elements! Terrible omission now fixed. (khtml::ReplacementFragment::removeBlockquoteColorsIfNeeded): Remove blockquote colors for now. Code has a more extensive comment in it now to explain the difficulty, and the need for more study and changes. (khtml::ReplaceSelectionCommand::doApply): Need to call applyStyleToInsertedNodes() in the m_fragment.hasInterchangeNewline() case. This was just missed before.
- layout-tests/editing/pasteboard/paste-text-011-expected.txt: Updated results, subtly different, but OK.
- layout-tests/editing/pasteboard/paste-text-017-expected.txt: Updated for <p> to <div> change in test content.
- layout-tests/editing/pasteboard/paste-text-017.html: Needed to change <p> to <div> to make this test go with the new design of using <div> tags for default paragraphs.
- 11:37 AM Changeset in webkit [8630] by
-
- 3 edits in trunk/WebCore
Fix for 3974263 (and possibly others). Don't let fixed tables use maxint as their maxwidth when some
cells have percentage values.
Reviewed by kocienda
- khtml/misc/arena.cpp: (ArenaAllocate):
- khtml/rendering/table_layout.cpp: (FixedTableLayout::calcWidthArray): (FixedTableLayout::calcMinMaxWidth): (AutoTableLayout::layout):
- 11:35 AM Changeset in webkit [8629] by
-
- 2 adds in trunk/LayoutTests/fast/table
new layout test
Feb 17, 2005:
- 5:51 PM Changeset in webkit [8628] by
-
- 2 edits in trunk/WebKit
Removed code that should not have been checked in from
last patch.
- WebCoreSupport.subproj/WebTextRendererFactory.m: (-[WebTextRendererFactory isFontFixedPitch:]):
- 5:30 PM Changeset in webkit [8627] by
-
- 3 edits in trunk/WebCore
Reviewed by Kevin.
- fixed <rdar://problem/3998627> WebKit crashes when deleting text in a modified div
- khtml/khtml_part.cpp: (KHTMLPart::selectionComputedStyle): Add a ref and deref to keep the element alive until it's added to the DOM tree.
- kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::styleForSelectionStart): Ditto.
- 5:26 PM Changeset in webkit [8626] by
-
- 6 edits in trunk
WebCore:
Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
Fixed w/o introducing a performance regression. Add early
check for Osaka-Mono to avoid expensive call into WebKit.
Reviewed by Vicki.
- kwq/KWQFont.mm: (QFont::isFixedPitch):
WebKit:
Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
Fixed w/o introducing a performance regression.
Reviewed by Vicki (and earlier by Dave Harrison).
- WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer _computeWidthForSpace]): (widthForNextCharacter):
- WebCoreSupport.subproj/WebTextRendererFactory.h:
- WebCoreSupport.subproj/WebTextRendererFactory.m: (-[NSFont _web_isFakeFixedPitch]): (-[WebTextRendererFactory isFontFixedPitch:]): (-[WebTextRendererFactory fontWithFamily:traits:size:]):
- 5:25 PM Changeset in webkit [8625] by
-
- 2 edits in trunk/WebCore
Reviewed by Kevin.
- fixed <rdar://problem/4011210> REGRESSION (180-181): Maxlength property for INPUT object not working
- kwq/KWQTextField.mm: (-[KWQTextField textView:shouldChangeTextInRange:replacementString:]): If controller returns YES, go on to call super, since super does the text formatter handling, which we need. (-[KWQSecureTextField textView:shouldChangeTextInRange:replacementString:]): Ditto. (-[KWQSearchField textView:shouldChangeTextInRange:replacementString:]): Ditto.
- 5:23 PM Changeset in webkit [8624]
-
- 3 copies in tags/Safari-187
This commit was manufactured by cvs2svn to create tag 'Safari-187'.
- 5:23 PM Changeset in webkit [8623] by
-
- 1 edit in trunk/WebCore/ChangeLog-2005-08-23
move the Safari-187 release marker in the WebCore Changelog, since we're going to include <rdar://problem/4012058> in Safari-187
- 5:13 PM Changeset in webkit [8622] by
-
- 2 edits in trunk/JavaScriptCore
Fixed <rdar://problem/4003251> Safari crashed at www.icelandair.com in LiveConnect code converting a Java object to a string
Added nil check.
Reviewed by John Sullivan.
- bindings/jni/jni_runtime.cpp: (JavaField::valueFromInstance):
- 4:38 PM Changeset in webkit [8621] by
-
- 4 edits in trunk/WebCore
Reviewed by Hyatt
Fix for this bug:
<rdar://problem/4012058> Copy from quoted text and paste results in blue text
The relatively-new paste code tries hard to retain style of the content from the
source location. However, in the case of quoted material in mail messages, we do
not want to carry the quoting color along. This fixes the problem by factoring
out such colors.
- khtml/editing/htmlediting.cpp: (khtml::ReplacementFragment::computeStylesAndRemoveUnrendered): Now calls removeBlockquoteColorsIfNeeded() to fix bug. (khtml::ReplacementFragment::removeBlockquoteColorsIfNeeded): New function. Factors out colors that are the result of text being quoted. (khtml::isNodeRendered): Function moved in file. No other change. (khtml::isProbablyBlock): Function moved in file. No other change. (khtml::closestMailBlockquote): New function. Helps fix bug. (khtml::isMailBlockquote): Function moved to be free-floating instead of being a member of CompositeEditCommand. No other change.
- khtml/editing/htmlediting.h: Moved around some functions. Added removeBlockquoteColorsIfNeeded().
- khtml/editing/markup.cpp: Remove redundant static implementation of isMailBlockquote.
- 4:11 PM Changeset in webkit [8620] by
-
- 2 edits in trunk/WebKit
Fixed <rdar://problem/3959304> PDF in img tag is not rendered correctly anymore
We were incorrectly adding image position when flipping coordinates.
Reviewed by David Harrison.
- WebCoreSupport.subproj/WebImageData.m: (-[WebImageData _PDFDrawFromRect:toRect:operation:alpha:flipped:context:]):
- 4:09 PM Changeset in webkit [8619] by
-
- 5 edits in trunk/WebKit
Fixed <rdar://problem/4007262> Seed: Flight tracker scrolling moves to the left
Added SPI for dashboard to disable wheel scrolling of the WebClipView.
Reviewed by Ken.
- ChangeLog:
- WebView.subproj/WebClipView.m: (-[WebClipView _focusRingVisibleRect]): (-[WebClipView scrollWheel:]):
- WebView.subproj/WebView.m: (-[WebViewPrivate init]): (-[WebView drawRect:]): (-[WebView _dashboardBehavior:]):
- WebView.subproj/WebViewInternal.h:
- WebView.subproj/WebViewPrivate.h:
- 4:05 PM Changeset in webkit [8618] by
-
- 3 edits in trunk
versioning for TOT, Safari 2.0 (187+)
- 3:59 PM Changeset in webkit [8617] by
-
- 6 edits in trunk
Safari-187 stamp
- 3:31 PM Changeset in webkit [8616] by
-
- 3 edits in trunk/WebCore
I checked in when the tree was closed. Rolling out.
- 3:27 PM Changeset in webkit [8615] by
-
- 3 edits in trunk/WebCore
Reviewed by Hyatt
Fix for this bug:
<rdar://problem/4003463> Mail.app HTML uses inline styling markup not understood by Entourage and Eudora
- khtml/editing/htmlediting.cpp: (khtml::StyleChange::styleModeForParseMode): Helper to map a document parse mode to a use/don't use legacy-html-styles value. (khtml::StyleChange::checkForLegacyHTMLStyleChange): Add support for colors, font faces, and font sizes. (khtml::ApplyStyleCommand::applyTextDecorationStyle): Now call styleModeForParseMode to determine whether to use legacy html styles or not. (khtml::ApplyStyleCommand::addBlockStyleIfNeeded): Ditto. (khtml::ApplyStyleCommand::addInlineStyleIfNeeded): Ditto.
- khtml/editing/htmlediting.h: All the following support the new bits of data we need to store. (khtml::StyleChange::applyFontColor) (khtml::StyleChange::applyFontFace) (khtml::StyleChange::applyFontSize) (khtml::StyleChange::fontColor) (khtml::StyleChange::fontFace) (khtml::StyleChange::fontSize)
- 3:04 PM Changeset in webkit [8614] by
-
- 4 edits in trunk/WebKit
- roll out this change, since it causes a 1.5% performance regression
2005-02-15 Richard Williamson <rjw@apple.com>
Fixed <rdar://problem/3999467> when Osaka-Mono is specified as fixed width font, Osaka used instead
Lie about Osaka-Mono. Treat it as fixed pitch, even though,
strictly speaking it isn't. (Similar to what we do with
Courier New.)
Reviewed by David Harrison.
- WebCoreSupport.subproj/WebTextRenderer.m: (-[WebTextRenderer _computeWidthForSpace]):
- WebCoreSupport.subproj/WebTextRendererFactory.h:
- WebCoreSupport.subproj/WebTextRendererFactory.m: (-[NSFont _web_isFakeFixedPitch]): (-[WebTextRendererFactory isFontFixedPitch:]): (-[WebTextRendererFactory fontWithFamily:traits:size:]):
- 1:24 PM Changeset in webkit [8613] by
-
- 2 edits in trunk/WebCore
Fixed <rdar://problem/4008163> dynamic support for -apple-dashboard-region is flakey
Style operator== wasn't including regions.
- 1:17 PM Changeset in webkit [8612] by
-
- 2 edits in trunk/WebCore
Reviewed by Chris.
fix for <rdar://problem/4010028> 8A383: Safari v185 crash loading united.com multi city fare finder page.
- khtml/dom/dom_string.cpp: (DOM::DOMString::operator += ): prevent nil dereference when DOMString being added is nil
- 11:53 AM Changeset in webkit [8611] by
-
- 4 edits in trunk/WebCore
Fix for rdar://3963151 "Mail only pasted ~950 of 1407 text lines into my message!" Force tokenizer to run synchronously while parsing document fragments, so it doesnt stop halfway through and cause truncated content.
- 9:48 AM Changeset in webkit [8610] by
-
- 2 edits in trunk/WebKit
Reviewed by Ken.
- fixed <rdar://problem/3997185> The Web view on .Mac Prefs caused System Prefs to lockup (resolved by re-boot only)
- WebCoreSupport.subproj/WebBridge.m: (-[WebBridge nextKeyViewOutsideWebFrameViews]): Don't allow recursion here; assert on debug build, return nil on deployment. I couldn't get my machine into a state to repro this problem (and neither could the originator), but it's obvious from the stack crawl that this method was recursing when it shouldn't have.
- 9:35 AM Changeset in webkit [8609] by
-
- 20 edits in trunk
Reviewed by Hyatt
Fix for this bug:
<rdar://problem/3982183> Mail's HTML paragraphs appear with unintended margins in Entourage and Eudora
- khtml/editing/htmlediting.cpp: (khtml::createDefaultParagraphElement): Change element we make from <p> to <div>. This fixes the problem, as these other mailers show <div> elements without margins.
Some test files needed to change to preserve the ability to "eyeball" the results.
Many others changed just because their <p> elements changed to <div> elements.
- layout-tests/editing/deleting/delete-3928305-fix-expected.txt
- layout-tests/editing/deleting/delete-at-paragraph-boundaries-002-expected.txt
- layout-tests/editing/inserting/insert-div-013-expected.txt
- layout-tests/editing/inserting/insert-div-013.html
- layout-tests/editing/inserting/insert-div-014-expected.txt
- layout-tests/editing/inserting/insert-div-014.html
- layout-tests/editing/inserting/insert-div-018-expected.txt
- layout-tests/editing/inserting/insert-div-018.html
- layout-tests/editing/inserting/insert-div-019-expected.txt
- layout-tests/editing/inserting/insert-div-019.html
- layout-tests/editing/inserting/insert-div-020-expected.txt
- layout-tests/editing/inserting/insert-div-020.html
- layout-tests/editing/inserting/insert-div-021-expected.txt
- layout-tests/editing/inserting/insert-div-021.html
- layout-tests/editing/style/remove-underline-across-paragraph-expected.txt
- layout-tests/editing/style/remove-underline-across-paragraph-in-bold-expected.txt
- layout-tests/editing/style/remove-underline-after-paragraph-expected.txt
- layout-tests/editing/style/remove-underline-after-paragraph-in-bold-expected.txt
- 9:28 AM Changeset in webkit [8608] by
-
- 3 edits in trunk/WebCore
Reviewed by Hyatt
Fix for this bug:
<rdar://problem/3996737> REGRESSION (Mail): Copy/paste in Mail inserts returns
The root cause of the problem is that a couple of pieces of code in AppKit and Mail
insert newlines into markup as it is generated, and the paste code in WebCore was
not smart about nodes that do not render (as is the case with these added newlines).
So, the solution is to remove these unrendered nodes in the paste code in a pre-pass.
Fortunately, my recent addition of such a pass to the paste code to handle styles
gave me a convenient place to put this new logic.
- khtml/editing/htmlediting.cpp: (khtml::ReplacementFragment::ReplacementFragment): Use new name for function below. (khtml::ReplacementFragment::computeStylesAndRemoveUnrendered): Name change from computeStylesForNodes(). Now does the additional work of removing unrendered nodes, as mentioned above. (khtml::isNodeRendered): New helper function.
- khtml/editing/htmlediting.h: Updated as necessary.
- 9:23 AM Changeset in webkit [8607] by
-
- 1 edit in trunk/WebCore/ChangeLog-2005-08-23
Forgot to paste in radar URL to show which bug I fixed
- 9:21 AM Changeset in webkit [8606] by
-
- 2 edits2 adds in trunk
Reviewed by Hyatt
Fix for this bug:
The styling code did not move to the next node when the starting position was
at the last offset of a node. Instead, it styled it. Clearly wrong. Solution
is to borrow a check from the delete algorithm. Though I call caretMaxOffset(),
which I consider deprecated, it is still the simplest and most strightforward
way to ask the right question for this kind of problem.
- khtml/editing/htmlediting.cpp: (khtml::ApplyStyleCommand::applyInlineStyle): Fixed, as described above.
- layout-tests/editing/style/style-3998892-fix-expected.txt: Added.
- layout-tests/editing/style/style-3998892-fix.html: Added.