ChangeLog-2003-10-25 722 KB
Newer Older
vicki's avatar
vicki committed
1 2
=== Safari-111 ===

rjw's avatar
rjw committed
3 4 5 6 7 8 9 10 11 12
2003-10-24  Richard Williamson   <rjw@apple.com>

	Fixed 3425358.  Don't try to create page cache for pages that
	have a nil view().

        Reviewed by Hyatt.

        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge saveDocumentToPageCache]):

13 14 15 16 17 18 19 20 21 22 23 24 25
2003-10-24  David Hyatt  <hyatt@apple.com>

	Fix for 3133375, the minwidth computation for pres is wrong.  There were a couple of bugs here.
	One is that pres only should have a breakable character if they contain a newline.  Otherwise they're
	treated essentially like nowrap.  The other was that m_beginMinWidth and m_endMinWidth needed to be
	set to the maxwidth of the first line and the maxwidth of the last line respectively for pres instead of
	being only the first and last words.
	
        Reviewed by mjs

        * khtml/rendering/render_text.cpp:
        (RenderText::calcMinMaxWidth):

26 27 28 29 30 31 32 33 34 35 36 37 38 39
2003-10-24  David Hyatt  <hyatt@apple.com>

	Two fixes to the computation of min/max width for text runs.
	(1) Make sure that pre runs don't add in word-spacing to the last word on a line (e.g., when a newline explicitly
	breaks a pre).
	(2) Fix a bug where breakable characters weren't getting factored into minwidth properly.  When a word got broken
	because of a breakable character, we were treating the breakable character like a space, and not including its
	width as part of the minimum width of the text run.
	
        Reviewed by john

        * khtml/rendering/render_text.cpp:
        (RenderText::calcMinMaxWidth):

40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
2003-10-23  David Hyatt  <hyatt@apple.com>

	This patch fixes the pseudo-elements ::first-line and ::first-letter to inherit styles properly.  More
	specifically it does the following:

	(1) Implements caching of pseudo-styles once computed off the style() which originated the pseudo-style.
	The old code did this, and this was a regression from my previous patch.

	(2) Fixes first-letter checking so that it happens at layout time rather than during render object
	construction time, since that makes first-letter more dynamic and causes it to be discovered in cases
	where it was being missed before.  This fixes the front page of meyerweb.com.

	(3) Make first-letter inherit from first-line like it's supposed to, and also make first-line styles
	cross blocks and inherit properly from enclosing containers.

	(4) Make first-letter changes cause a detach/attach to fire just as when the display changes.  I generalized
	the notion of needing to detach on a style change by making it a new kind of hint in dom_nodeimpl's style
	diff function.

	(5) Fixed isBlockFlow to return true for inline-blocks.
	
        Reviewed by john

        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::addChildToFlow):
        (khtml::RenderBlock::layoutBlock):
        (khtml::RenderBlock::getFirstLineBox):
        (khtml::RenderBlock::firstLineBlock):
        (khtml::RenderBlock::updateFirstLetter):
        * khtml/rendering/render_block.h:
        (khtml::RenderBlock::isBlockFlow):
        * khtml/rendering/render_line.cpp:
        (InlineFlowBox::paintBackgroundAndBorder):
        * khtml/rendering/render_list.cpp:
        (RenderListItem::setStyle):
        * khtml/rendering/render_object.cpp:
        (RenderObject::RenderObject):
        (RenderObject::firstLineBlock):
        (RenderObject::updateFirstLetter):
        (RenderObject::dump):
        (RenderObject::setStyle):
        (RenderObject::recalcMinMaxWidths):
        (RenderObject::style):
        (RenderObject::getPseudoStyle):
        * khtml/rendering/render_object.h:
        (khtml::RenderObject::overhangingContents):
        * khtml/rendering/render_style.cpp:
        (pseudoBit):
        * khtml/rendering/render_style.h:
        (khtml::RenderStyle::):
        * khtml/rendering/render_table.cpp:
        (RenderTable::firstLineBlock):
        (RenderTable::updateFirstLetter):
        * khtml/rendering/render_table.h:
        * khtml/rendering/render_text.cpp:
        (RenderText::paintObject):
        (RenderText::htmlFont):
        * khtml/xml/dom_elementimpl.cpp:
        (ElementImpl::recalcStyle):
        * khtml/xml/dom_nodeimpl.cpp:
        (NodeImpl::diff):
        * khtml/xml/dom_nodeimpl.h:
        (DOM::NodeImpl::):

kocienda's avatar
kocienda committed
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123
2003-10-23  Ken Kocienda  <kocienda@apple.com>

        Reviewed by David

	Fix for these bugs:

	<rdar://problem/3171929>: Safari picks a different button in a 
	form when you hit return if the first button has no name
	<rdar://problem/3200386>: investigate which button is activated 
	when hitting return in form text input fields

	HTML spec says that buttons must have names to be considered
	successful. However, other browsers do not impose this constraint.
	Therefore, we behave differently, and can use different buttons than
	the author intended.

        * khtml/html/html_formimpl.cpp:
        (HTMLButtonElementImpl::isSuccessfulSubmitButton)
        (HTMLInputElementImpl::isSuccessfulSubmitButton)

124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143
2003-10-22  David Hyatt  <hyatt@apple.com>

	Fix for 3460726, the user agent string was returning nil.  

	Fix for 3386544, empty documents did not get a layout, and so they looked white.  Also fixed the positioning
	of widgets to account for border/padding in updateWidgetPositions.

	Fix for espn.com crasher, 3458143, caused by layout object not being properly cleared when layouts were
	unscheduled.
	
        Reviewed by darin

        * khtml/khtmlview.cpp:
        * khtml/rendering/render_canvas.cpp:
        (RenderCanvas::RenderCanvas):
        * khtml/rendering/render_replaced.cpp:
        (RenderWidget::updateWidgetPositions):
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::userAgent):

mjs's avatar
mjs committed
144 145 146 147 148 149 150 151 152 153
2003-10-22  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by 

	- fixed 3460664 - Exception handlers not properly removed
	
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::mouseMoved): Don't return from exception block
        (KWQKHTMLPart::khtmlMouseReleaseEvent): Add exception blocking (whoops)

154 155 156 157 158 159 160 161 162 163 164 165 166
2003-10-22  John Sullivan  <sullivan@apple.com>

	- fixed 3460652 -- REGRESSION (100-110+): Can't tab out of a 
	frameset page

        Reviewed by Darin (actually he made the change on my machine)

        * khtml/html/html_baseimpl.cpp:
        (HTMLFrameSetElementImpl::defaultEventHandler):
	only set defaultHandled for the one event that we actually
	handle (mouse event to resize frame borders); this was always
	being set, hence preventing key events from being used elsewhere.

rjw's avatar
rjw committed
167 168 169 170 171 172 173 174 175 176 177 178 179 180
2003-10-22  Richard Williamson   <rjw@apple.com>

	Fixed 3454067.  RenderText's repaint wasn't called because of recent changes to de-virtualize repaint.  Modified getAbsoluteRepaintRect() to return containing block's getAbsoluteRepaintRect().
	
	Also removed the long standing +1 from QFontMetrics::height().

        Reviewed by Hyatt.

        * khtml/rendering/render_text.cpp:
        (RenderText::getAbsoluteRepaintRect):
        * khtml/rendering/render_text.h:
        * kwq/KWQFontMetrics.mm:
        (QFontMetrics::height):

181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
2003-10-22  David Hyatt  <hyatt@apple.com>

	Fix visibility to be done when widgets are added or when styles are set rather than at paint time.  Fixes
	the ads painting on top of content at tvguide.com.
	
        Reviewed by cblu

        * khtml/rendering/render_replaced.cpp:
        (RenderWidget::setQWidget):
        (RenderWidget::setStyle):
        (RenderWidget::paintObject):
        * kwq/KWQWidget.h:
        * kwq/KWQWidget.mm:
        (QWidget::QWidget):
        (QWidget::show):
        (QWidget::hide):

mjs's avatar
mjs committed
198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224
2003-10-21  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Dave.

	Finished exception blocking changes, so now I can finally say:

	- fixed 3137084 - Many non-reproducible crashers in ContextImp::mark / ScopeChain::mark
	- fixed 3308848 - nil-deref in KHTMLView::topLevelWidget
	- fixed 3311511 - nil deref inside KJS::Screen
	- fixed 3397422 - 7B51: Safari crashed in KJS::ObjectImp::mark()
	- fixed 3408373 - Panther7B58 : Safari Crashed in KJS::ObjectImp::mark
	- fixed 3409307 - 7B55: safari crashed in KJS::Interpreter::globalExec() (idle, nothing particular going on)
	- fixed 3410160 - 7B60 Safari crashed in KHTMLPart::parentPart called from JS while in the background
	- fixed 3413224 - unrepro crash in KJS::Window::mark
	- fixed 3419940 - unrepro crash in KJS::Collector::allocate trying to access http://www.lindyinthepalms.com
	- fixed 3420123 - Panther7B66: Safari crashed while going to http://www.tangents.co.uk/index2.html
	- fixed 3423225 - Safari crash in vtable for KWQMapImpl (vtable for KWQMapImpl + 8).
	- fixed 3437190 - nil-deref on quit in calling marked() from ScopeChain::mark()

        * WebCore.pbproj/project.pbxproj:
        * kwq/KWQFontMetrics.mm:
        * kwq/KWQPainter.mm:
        (QPainter::drawPixmap):
        (QPainter::drawTiledPixmap):
        (QPainter::_updateRenderer):
        * kwq/WebCoreTextRenderer.h:

225 226 227 228 229 230 231 232
2003-10-21  David Hyatt  <hyatt@apple.com>

	http://placenamehere.com/safari/fixedbgtest.html is now fixed with a patch from the KHTML trunk.
	Fixed backgrounds repeated when they weren't supposed to.
	
        * khtml/rendering/render_box.cpp:
        (RenderBox::paintBackgroundExtended):

233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270
2003-10-21  David Hyatt  <hyatt@apple.com>

	Change pseudo-element style resolution to be lazy and to not occur until the style is actually asked
	for by the front end render objects.  Also fix first-letter to inherit properly from first-line styles.
	
        Reviewed by mjs

        * khtml/css/cssstyleselector.cpp:
        (khtml::CSSStyleSelector::initForStyleResolve):
        (khtml::CSSStyleSelector::styleForElement):
        (khtml::CSSStyleSelector::pseudoStyleForElement):
        (khtml::CSSStyleSelector::checkSelector):
        (khtml::CSSStyleSelector::checkOneSelector):
        * khtml/css/cssstyleselector.h:
        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::addChildToFlow):
        * khtml/rendering/render_container.cpp:
        (RenderContainer::updatePseudoChild):
        * khtml/rendering/render_object.cpp:
        (RenderObject::setStyle):
        (RenderObject::createInlineBox):
        (RenderObject::style):
        (RenderObject::getPseudoStyle):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_style.cpp:
        (pseudoBit):
        (RenderStyle::hasPseudoStyle):
        (RenderStyle::setHasPseudoStyle):
        (RenderStyle::getPseudoStyle):
        (RenderStyle::addPseudoStyle):
        * khtml/rendering/render_style.h:
        (khtml::RenderStyle::NonInheritedFlags::operator==):
        (khtml::RenderStyle::setBitDefaults):
        * khtml/rendering/render_text.cpp:
        (InlineTextBox::paintSelection):
        (RenderText::paintObject):
        (RenderText::htmlFont):

mjs's avatar
mjs committed
271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326
2003-10-21  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Dave.

	More exception blocking.

        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::~KWQKHTMLPart):
        (KWQKHTMLPart::generateFrameName):
        (KWQKHTMLPart::openURL):
        (KWQKHTMLPart::openURLRequest):
        (regExpForLabels):
        (KWQKHTMLPart::clearRecordedFormValues):
        (KWQKHTMLPart::recordFormValue):
        (KWQKHTMLPart::submitForm):
        (KHTMLPart::frameDetached):
        (KWQKHTMLPart::urlSelected):
        (KWQKHTMLPart::createPart):
        (KWQKHTMLPart::setTitle):
        (KWQKHTMLPart::setStatusBarText):
        (KWQKHTMLPart::scheduleClose):
        (KWQKHTMLPart::unfocusWindow):
        (KWQKHTMLPart::jumpToSelection):
        (KWQKHTMLPart::redirectionTimerStartedOrStopped):
        (KWQKHTMLPart::userAgent):
        (KWQKHTMLPart::mimeTypeForFileName):
        (KWQKHTMLPart::nextKeyView):
        (KWQKHTMLPart::currentEventIsMouseDownInWidget):
        (KWQKHTMLPart::openURLFromPageCache):
        (KWQKHTMLPart::saveDocumentState):
        (KWQKHTMLPart::restoreDocumentState):
        (KWQKHTMLPart::requestedURLString):
        (KWQKHTMLPart::incomingReferrer):
        (KWQKHTMLPart::runJavaScriptAlert):
        (KWQKHTMLPart::runJavaScriptConfirm):
        (KWQKHTMLPart::runJavaScriptPrompt):
        (KWQKHTMLPart::createEmptyDocument):
        (KWQKHTMLPart::keyEvent):
        (KWQKHTMLPart::khtmlMousePressEvent):
        (KWQKHTMLPart::passWidgetMouseDownEventToWidget):
        (KWQKHTMLPart::lastEventIsMouseUp):
        (findViewInSubviews):
        (KWQKHTMLPart::khtmlMouseMoveEvent):
        (KWQKHTMLPart::passSubframeEventToSubframe):
        (KWQKHTMLPart::buttonForCurrentEvent):
        (KWQKHTMLPart::stateForCurrentEvent):
        (KWQKHTMLPart::mouseDown):
        (KWQKHTMLPart::mouseDragged):
        (KWQKHTMLPart::mouseUp):
        (KWQKHTMLPart::sendFakeEventsAfterWidgetTracking):
        (KWQKHTMLPart::mouseMoved):
        (KWQKHTMLPart::sendContextMenuEvent):
        (fileWrapperForElement):
        (KWQKHTMLPart::attributedString):
        (KWQKHTMLPart::keyboardUIMode):

cblu's avatar
cblu committed
327 328 329 330 331 332 333 334 335 336
2003-10-21  Chris Blumenberg  <cblu@apple.com>

	Fixed: <rdar://problem/3176170>: OBJECT tag with no or empty TYPE is mishandled

        Reviewed by rjw.

        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::createPart): call renamed frameRequiredForMIMEType:URL:
        * kwq/WebCoreBridge.h: renamed frameRequiredForMIMEType: to frameRequiredForMIMEType:URL:

337 338 339 340 341 342 343 344 345 346 347 348
2003-10-20  David Hyatt  <hyatt@apple.com>

	Fix generated content (before/after) so that it no longer has any restrictions on it.   CSS2.1 lifted 
	restrictions preventing the floating/positioning of generated content.
	
        Reviewed by rjw

        * khtml/css/cssstyleselector.cpp:
        (khtml::CSSStyleSelector::adjustRenderStyle):
        * khtml/rendering/render_container.cpp:
        (RenderContainer::updatePseudoChild):

kocienda's avatar
kocienda committed
349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412
2003-10-20  Ken Kocienda  <kocienda@apple.com>

        Reviewed by David

        * khtml/dom/dom2_events.cpp:
        (UIEvent::keyCode): Change over to use ascii value for key code.
        (UIEvent::which): Ditto.
        (KeyboardEvent::KeyboardEvent): New key event class which
	tracks the DOM Level 3 spec more closely.
        (KeyboardEvent::operator = ): New function.
        (KeyboardEvent::~KeyboardEvent): New function.
        (KeyboardEvent::ctrlKey): New function.
        (KeyboardEvent::shiftKey): New function.
        (KeyboardEvent::altKey): New function.
        (KeyboardEvent::metaKey): New function.
        (KeyboardEvent::altGraphKey): New function.
        (KeyboardEvent::initKeyboardEvent): New function.
        * khtml/dom/dom2_events.h: Ditto.
        * khtml/html/html_formimpl.cpp:
        (HTMLGenericFormElementImpl::defaultEventHandler): Use key 
	identifiers to test which key was pressed, instead of removed keyVal().
        (HTMLInputElementImpl::defaultEventHandler): Ditto.
        (HTMLSelectElementImpl::defaultEventHandler): Ditto.
        * khtml/html/html_inlineimpl.cpp:
        (HTMLAnchorElementImpl::defaultEventHandler): Change casts to match new
	class name. Use key identifiers to test which key was pressed, 
	instead of removed keyVal(). Use new modifier accessors.
        * khtml/xml/dom2_eventsimpl.cpp:
        (EventImpl::typeToId): Some reorganization of the constants in the
	switch statements. Name change for these to remove the KHTML_ prefix
	from the key up and key down events will happen soon.
        (EventImpl::idToType): Ditto.
        (KeyboardEventImpl::KeyboardEventImpl): New key event class which
        tracks the DOM Level 3 spec more closely.
        (KeyboardEventImpl::~KeyboardEventImpl): Ditto.
        (KeyboardEventImpl::initKeyboardEvent): Ditto.
        * khtml/xml/dom2_eventsimpl.h:
        (DOM::EventImpl::): Some reorganization of the constants in the
        switch statements. Name change for these to remove the KHTML_ prefix
        from the key up and key down events will happen soon.
        (DOM::KeyboardEventImpl::keyIdentifier): New function.
        (DOM::KeyboardEventImpl::keyLocation): New function.
        (DOM::KeyboardEventImpl::ctrlKey): New function.
        (DOM::KeyboardEventImpl::shiftKey): New function.
        (DOM::KeyboardEventImpl::altKey): New function.
        (DOM::KeyboardEventImpl::metaKey): New function.
        (DOM::KeyboardEventImpl::altGraphKey): New function.
        (DOM::KeyboardEventImpl::qKeyEvent): New function.
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::createEvent): Now can create keyboard events.
        * khtml/xml/dom_nodeimpl.cpp:
        (NodeImpl::dispatchKeyEvent): Class name changes.
        * kwq/KWQEvent.h: Added QString identifier member.
        * kwq/KWQEvent.mm:
        (hexDigit): Added helper.
        (identifierForKeyText): Added new function to map keys to DOM
	key identifiers as listed in the DOM spec.
        (QKeyEvent::identifier): Added accessor.
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::stateForCurrentEvent): Added check to see if
	a key press is on one of the numeric keypad keys.
        * kwq/KWQLogging.h: Added log constant for DOM events.
        * kwq/KWQLogging.m: Ditto

413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439
2003-10-20  David Hyatt  <hyatt@apple.com>

	Make first-letter and before/after work with text transforms.
	
        Reviewed by mjs

        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::addChildToFlow):
        * khtml/rendering/render_container.cpp:
        (RenderContainer::updatePseudoChild):
        * khtml/rendering/render_text.cpp:
        (RenderText::setStyle):
        (RenderText::isTextFragment):
        (RenderText::originalString):
        (RenderText::setText):
        (m_generatedContentStr):
        (m_start):
        (RenderTextFragment::~RenderTextFragment):
        (RenderTextFragment::isTextFragment):
        (RenderTextFragment::originalString):
        * khtml/rendering/render_text.h:
        (khtml::RenderTextFragment::start):
        (khtml::RenderTextFragment::end):
        (khtml::RenderTextFragment::contentString):
        * khtml/xml/dom_nodeimpl.h:
        (DOM::NodeImpl::setRenderer):

440 441 442 443 444 445 446 447
2003-10-19  David Hyatt  <hyatt@apple.com>

	Remove the "flow-around-floats" hack for lists.  Other browsers don't do this.
	
        Reviewed by darin

        * khtml/css/quirks.css:

448 449 450 451 452 453 454 455 456 457 458
2003-10-19  David Hyatt  <hyatt@apple.com>

	Fix for a regression/crash on tivocommunity.com caused by faulty border-collapse code in the collapsedRightBorder
	case.  I forgot to deal with colspans.
	
        Reviewed by darin

        * khtml/rendering/render_table.cpp:
        (RenderTable::cellRight):
        (RenderTableCell::collapsedRightBorder):

459 460 461 462 463 464 465 466
2003-10-19  David Hyatt  <hyatt@apple.com>

	Patch from KHTML trunk that makes textareas work properly even when they have no render objects.

        * khtml/html/html_formimpl.cpp:
        (HTMLTextAreaElementImpl::encoding):
        (HTMLTextAreaElementImpl::value):

darin's avatar
darin committed
467 468 469 470 471 472 473 474 475 476
2003-10-18  Darin Adler  <darin@apple.com>

        Reviewed by Maciej.

        - fixed 3454444 -- contents of mailto form shows up in Mail title instead of body (IE sends mail directly)

        * kwq/KWQKURL.mm: (KURL::parse): Changed non-hierarchical code to consider everything
        after a question mark as a query, just the way the hierarchical code does. This makes
        the code that constructs the mailto URL work properly.

477 478 479 480 481 482 483 484 485 486 487
2003-10-18  David Hyatt  <hyatt@apple.com>

	Fix the intrinsic minmax width computation for blocks and XUL boxes to actually check fixed min/max CSS widths.
	
        Reviewed by darin

        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::calcMinMaxWidth):
        * khtml/rendering/render_flexbox.cpp:
        (khtml::RenderFlexibleBox::calcMinMaxWidth):

488 489 490 491 492 493 494 495 496 497 498 499 500
2003-10-18  David Hyatt  <hyatt@apple.com>

	Change the names of the border-spacing properties to border-horizontal-spacing and border-vertical-spacing.
	
        * khtml/css/cssparser.cpp:
        (CSSParser::parseValue):
        * khtml/css/cssproperties.c:
        (findProp):
        * khtml/css/cssproperties.h:
        * khtml/css/cssproperties.in:
        * khtml/css/cssstyleselector.cpp:
        (khtml::CSSStyleSelector::applyRule):

501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517
2003-10-18  David Hyatt  <hyatt@apple.com>

	Fix for diveintomark className parsing bug.  class="bigblue blue" would fail to match a rule with .blue.
	The bug was in the selector matching code for class attributes.

	Also fixing a minmax width bug for blocks on the mozilla.org Web site.  XUL boxes had the same bug as
	well.
	
        Reviewed by darin

        * khtml/css/cssstyleselector.cpp:
        (khtml::CSSStyleSelector::checkOneSelector):
        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::calcMinMaxWidth):
        * khtml/rendering/render_flexbox.cpp:
        (khtml::RenderFlexibleBox::calcMinMaxWidth):

518 519 520 521 522 523 524 525 526
2003-10-18  David Hyatt  <hyatt@apple.com>

	Fix for 3443502, generated content sometimes doesn't generate.  The bug is caused by an
	uninitialized variable.  m_isContinuation needed to be set to false in the RenderInline
	constructor.
	
        * khtml/rendering/render_inline.cpp:
        (m_isContinuation):

darin's avatar
darin committed
527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545
2003-10-17  Darin Adler  <darin@apple.com>

        Reviewed by Maciej.

        - make text areas set the base writing direction based on the direction in the CSS style

        * kwq/KWQTextArea.h: Added setBaseWritingDirection method.
        * kwq/KWQTextArea.mm:
        (-[KWQTextArea _createTextView]): Use _KWQ_setTypingParagraphStyle.
        (-[KWQTextArea setWordWrap:]): Use _KWQ_setTypingParagraphStyle.
        (-[KWQTextArea setBaseWritingDirection:]): Added. New method that sets the base writing
        direction in both the style of the text and the typing attributes.
        (-[NSTextView _KWQ_typingParagraphStyle]): Added. Helper method to make setBaseWritingDirection:
        a little less gigantic.
        (-[NSTextView _KWQ_setTypingParagraphStyle:]): Ditto.
        (-[NSTextStorage _KWQ_setBaseWritingDirection:]): Ditto.

        * kwq/KWQTextEdit.mm: (QTextEdit::setAlignment): Set both alignment and base writing direction.

546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651
2003-10-17  David Hyatt  <hyatt@apple.com>

	Implement horizontal and vertical border-spacing.  Allow them to be specified individually.

        Reviewed by mjs

	------

	Fix the calcWidth method of tables to account for horizontal margins properly.

	Reviewed by john

	------

	Implement border collapsing in tables.

	Reviewed by kocienda

        * khtml/css/cssparser.cpp:
        (CSSParser::parseValue):
        * khtml/css/cssproperties.c:
        (hash_prop):
        (findProp):
        * khtml/css/cssproperties.h:
        * khtml/css/cssproperties.in:
        * khtml/css/cssstyleselector.cpp:
        (khtml::CSSStyleSelector::applyRule):
        * khtml/css/cssvalues.c:
        * khtml/css/cssvalues.h:
        * khtml/css/cssvalues.in:
        * khtml/rendering/bidi.cpp:
        (khtml::RenderBlock::layoutInlineChildren):
        * khtml/rendering/render_box.cpp:
        (RenderBox::paintBoxDecorations):
        * khtml/rendering/render_form.cpp:
        (RenderFieldset::paintBorderMinusLegend):
        * khtml/rendering/render_object.cpp:
        (RenderObject::paintBorder):
        (RenderObject::collectBorders):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_style.cpp:
        (StyleInheritedData::StyleInheritedData):
        (StyleInheritedData::operator==):
        (RenderStyle::diff):
        * khtml/rendering/render_style.h:
        (khtml::):
        (khtml::CollapsedBorderValue::precedence):
        (khtml::CollapsedBorderValue::width):
        (khtml::CollapsedBorderValue::style):
        (khtml::CollapsedBorderValue::exists):
        (khtml::CollapsedBorderValue::color):
        (khtml::CollapsedBorderValue::isTransparent):
        (khtml::CollapsedBorderValue::operator==):
        (khtml::RenderStyle::borderLeft):
        (khtml::RenderStyle::borderRight):
        (khtml::RenderStyle::borderTop):
        (khtml::RenderStyle::borderBottom):
        (khtml::RenderStyle::horizontalBorderSpacing):
        (khtml::RenderStyle::verticalBorderSpacing):
        (khtml::RenderStyle::setHorizontalBorderSpacing):
        (khtml::RenderStyle::setVerticalBorderSpacing):
        * khtml/rendering/render_table.cpp:
        (RenderTable::RenderTable):
        (RenderTable::setStyle):
        (RenderTable::calcWidth):
        (RenderTable::paint):
        (RenderTable::borderLeft):
        (RenderTable::borderRight):
        (RenderTable::borderTop):
        (RenderTable::borderBottom):
        (RenderTable::cellAbove):
        (RenderTable::cellBelow):
        (RenderTable::cellLeft):
        (RenderTable::cellRight):
        (RenderTableSection::setCellWidths):
        (RenderTableSection::calcRowHeight):
        (RenderTableSection::layoutRows):
        (compareBorders):
        (RenderTableCell::collapsedLeftBorder):
        (RenderTableCell::collapsedRightBorder):
        (RenderTableCell::collapsedTopBorder):
        (RenderTableCell::collapsedBottomBorder):
        (RenderTableCell::borderLeft):
        (RenderTableCell::borderRight):
        (RenderTableCell::borderTop):
        (RenderTableCell::borderBottom):
        (collapsedBorderStyle):
        (CollapsedBorder::CollapsedBorder):
        (CollapsedBorders:::count):
        (CollapsedBorders::addBorder):
        (CollapsedBorders::nextBorder):
        (addBorderStyle):
        (RenderTableCell::collectBorders):
        (RenderTableCell::paintCollapsedBorder):
        (RenderTableCell::paintObject):
        (RenderTableCell::paintBoxDecorations):
        * khtml/rendering/render_table.h:
        (khtml::RenderTable::hBorderSpacing):
        (khtml::RenderTable::vBorderSpacing):
        (khtml::RenderTable::bordersPaddingAndSpacing):
        (khtml::RenderTable::currentBorderStyle):
        * khtml/rendering/table_layout.cpp:
        (FixedTableLayout::layout):
        (AutoTableLayout::calcEffectiveWidth):
        (AutoTableLayout::layout):

mjs's avatar
mjs committed
652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669
2003-10-16  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by John.

	More exception blocking.
	
        * kwq/KWQFont.mm:
        (QFont::isFixedPitch):
        (QFont::getNSFont):
        * kwq/KWQKJobClasses.mm:
        (KIO::TransferJob::~TransferJob):
        * kwq/KWQLoader.mm:
        (KWQServeRequest):
        (KWQCheckIfReloading):
        (KWQCheckCacheObjectStatus):
        (KWQRetainResponse):
        (KWQReleaseResponse):
        (KWQResponseMIMEType):
670 671 672

=== Safari-110 ===

vicki's avatar
vicki committed
673 674 675 676 677 678 679 680 681
2003-10-16  Darin Adler <darin@apple.com>

        Reviewed by vicki. 

	- fix buildit build failure 

        * kwq/KWQScrollView.mm: 
        (QScrollView::resizeContents):

vicki's avatar
vicki committed
682

darin's avatar
darin committed
683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715
2003-10-15  Darin Adler  <darin@apple.com>

        Reviewed by Ken.

        - change "volatile X * volatile" to "X * volatile" in cases where the
          pointer needs to be volatile but the object pointed to do does not

        * kwq/KWQKConfigBase.mm: (KConfig::readEntry):
        * kwq/KWQKCursor.mm: (+[NSCursor _WebCore_cursorWithName:hotSpot:]):
        * kwq/KWQKLocale.mm:
        (inputElementAltText):
        (resetButtonDefaultLabel):
        (searchableIndexIntroduction):
        (submitButtonDefaultLabel):
        (KLocale::language):
        * kwq/KWQLineEdit.mm: (QLineEdit::text):
        * kwq/KWQScrollView.mm:
        (QScrollView::setContentsPos):
        (QScrollView::addChild):
        (QScrollView::updateContents):
        (QScrollView::contentsToViewport):
        (QScrollView::viewportToContents):
        (QScrollView::getDocumentView):
        * kwq/KWQTextEdit.mm:
        (QTextEdit::text):
        (QTextEdit::textWithHardLineBreaks):
        * kwq/KWQWidget.mm: (QWidget::getOuterView):
        Removed the excess volatiles and excess casts that go with them.

        * kwq/KWQKCookieJar.mm: (KWQKCookieJar::cookie): Do the same, but also
        remove an unnecessary nil check that is the same as QString::fromNSString's
        default behavior.

mjs's avatar
mjs committed
716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738
2003-10-15  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Dave.

	More objc-exception-blocking excitement.

        * kwq/KWQKConfigBase.mm:
        (KConfig::readEntry):
        (KConfig::readNumEntry):
        (RefreshPlugins):
        * kwq/KWQKCursor.mm:
        (+[NSCursor _WebCore_cursorWithName:hotSpot:]):
        * kwq/KWQKJavaAppletWidget.mm:
        (KJavaAppletWidget::showApplet):
        * kwq/KWQKLocale.mm:
        (inputElementAltText):
        (resetButtonDefaultLabel):
        (searchableIndexIntroduction):
        (submitButtonDefaultLabel):
        (KLocale::language):
        * kwq/KWQRegion.mm:
        (QRegion::QRegion):

739 740 741 742 743 744 745 746 747 748 749 750
2003-10-14  David Hyatt  <hyatt@apple.com>

	Fix an obvious little typo with smallCaps inheritance.  Richard reviewed.

	Also merge in Dirk's patch to fix a crasher caused by an obvious deref mistake.
	
        Reviewed by rjw and nobody

        * khtml/css/cssstyleselector.cpp:
        (khtml::convertToLength):
        (khtml::CSSStyleSelector::applyRule):

kocienda's avatar
kocienda committed
751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798
2003-10-14  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Hyatt

        * khtml/dom/dom_misc.h: Declared TristateFlag enum used to implement
	inheritance behavior for inheritable attributes like designMode.
        * khtml/dom/html_document.cpp:
        (HTMLDocument::designMode): Added getter.
        (HTMLDocument::setDesignMode): Added setter.
        * khtml/dom/html_document.h: Added declarations for designMode getter and setter.
        * khtml/dom/html_element.cpp:
        (HTMLElement::isContentEditable): Added convenience.
        (HTMLElement::contentEditable): Added getter.
        (HTMLElement::setContentEditable): Added setter.
        * khtml/dom/html_element.h: Added declarations for contentEditable accessors.
        * khtml/ecma/kjs_html.cpp: Added js support for contentEditable and designMode.
        (KJS::HTMLDocument::tryGet)
        (KJS::HTMLDocument::putValue)
        (KJS::HTMLElement::getValueProperty)
        (KJS::HTMLElement::putValue)
        * khtml/ecma/kjs_html.h:
        (KJS::HTMLDocument::): Added DesignMode to attribuute enum.
        (KJS::HTMLElement::): Added ContentEditable to attribute enum.
        * khtml/html/html_documentimpl.cpp:
        (HTMLDocumentImpl::designMode): Added getter.
        (HTMLDocumentImpl::setDesignMode): Added setter.
        * khtml/html/html_documentimpl.h: Declared designMode accessors.
        * khtml/html/html_elementimpl.cpp:
        (HTMLElementImpl::HTMLElementImpl):
        (HTMLElementImpl::parseAttribute): Added support for contentEditable.
        (HTMLElementImpl::isContentEditable): Added. Implements inheritance feature
	for this attribute.
        (HTMLElementImpl::contentEditable): Getter for contentEditable attribute.
        (HTMLElementImpl::setContentEditable): Setter for contentEditable attribute.
        * khtml/html/html_elementimpl.h:
        * khtml/khtml_part.cpp:
        (KHTMLPart::setEditMode): Added.
        (KHTMLPart::editMode): Added. Implements inheritance behavior for
	attribute.
        (KHTMLPart::inEditMode): Helper that calls on editMode function.
        (KHTMLPart::parentPart): Made const.
        * khtml/khtml_part.h: Rolled in a couple of typo fixes. Added
	declarations for the changes made in the implementation file.
        * khtml/khtmlpart_p.h:
        (KHTMLPartPrivate::KHTMLPartPrivate): Declared editMode flag.
	Also added support for editMode flag in initializers and copy function.
        * khtml/misc/htmlattrs.in: Added contentEditable as an attribute name.

799 800 801 802 803 804 805 806 807 808
2003-10-13  David Hyatt  <hyatt@apple.com>

	Fix for a small-caps rendering error when used in conjunction with ::first-line.  Always update
	the Font variable even when QFonts are the same, since small-caps is not stored in QFonts.
	
        Reviewed by rjw

        * khtml/rendering/render_text.cpp:
        (RenderText::paintObject):

809 810 811 812 813 814 815 816 817
2003-10-13  Richard Williamson (Home0  <rjw@apple.com>

	Updated layout tests actuals to reflect implementation of small-caps style.

        * layout-tests/css1/font_properties/font-expected.txt:
        * layout-tests/css1/font_properties/font_variant-expected.txt:
        * layout-tests/css1/pseudo/firstline-expected.txt:
        * layout-tests/css1/pseudo/multiple_pseudo_elements-expected.txt:

rjw's avatar
rjw committed
818 819 820 821 822 823 824 825 826 827 828
2003-10-13  Richard Williamson <rjw@apple.com>

	Added support for small-caps.

        Reviewed by John.

        * khtml/rendering/font.h:
        (khtml::Font::isSmallCaps):
        * khtml/rendering/render_text.cpp:
        (RenderText::shouldUseMonospaceCache):

829 830 831 832 833 834 835 836
2003-10-12  Darin Adler  <darin@apple.com>

        * layout-tests/fast/js/date-parse-test.html: Fixed a couple of silly mistakes.

        * kwq/character-sets.txt: New version of file from www.iana.org. No substantive change.
        Also, now that we don't use MIB numbers any more, I could leave out our one local change,
        the MIB number we added for ISO-10646-J-1.

837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853
2003-10-10  David Hyatt  <hyatt@apple.com>

	Beginning of work on border collapsing.  This patch makes sure that cell spacing between cells is
	ignored and that padding on tables is ignored.  This ensures that there is no space between cells
	or between the edges of cells and the border of the table itself.  

        Reviewed by john

        * khtml/rendering/render_style.h:
        (khtml::RenderStyle::setBitDefaults):
        * khtml/rendering/render_table.cpp:
        (RenderTable::setStyle):
        (RenderTable::layout):
        * khtml/rendering/render_table.h:
        (khtml::RenderTable::collapseBorders):
        (khtml::RenderTable::bordersPaddingAndSpacing):

854 855 856 857 858 859
2003-10-10  David Hyatt  <hyatt@apple.com>

	Fix for table regression 3449444, as well as a patch to support padding on tables and to stop
	honoring borders on row groups (both of which are correct for the "separate" border model).
	
	* khtml/rendering/render_table.cpp:
860 861 862 863 864 865 866 867 868 869
        (RenderTable::layout):
        (RenderTableSection::calcRowHeight):
        (RenderTableSection::layoutRows):
        * khtml/rendering/render_table.h:
        (khtml::RenderTable::bordersPaddingAndSpacing):
        * khtml/rendering/table_layout.cpp:
        (FixedTableLayout::calcMinMaxWidth):
        (FixedTableLayout::layout):
        (AutoTableLayout::calcMinMaxWidth):
        (AutoTableLayout::layout):
870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924

	Reviewed by darin

2003-10-10  David Hyatt  <hyatt@apple.com>
	
	Patch to move the widgets during layout instead of at paint time.
	
        Reviewed by darin

        * khtml/khtmlview.cpp:
        * khtml/rendering/render_canvas.cpp:
        (RenderCanvas::repaintViewRectangle):
        * khtml/rendering/render_form.cpp:
        (RenderFormElement::baselinePosition):
        (RenderFormElement::layout):
        * khtml/rendering/render_object.cpp:
        (RenderObject::updateWidgetPositions):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_replaced.cpp:
        (RenderWidget::layout):
        (RenderWidget::updateWidgetPositions):
        * khtml/rendering/render_replaced.h:
        * kwq/KWQCheckBox.h:
        * kwq/KWQCheckBox.mm:
        (QCheckBox::baselinePosition):
        * kwq/KWQComboBox.h:
        * kwq/KWQComboBox.mm:
        (QComboBox::baselinePosition):
        * kwq/KWQFileButton.h:
        * kwq/KWQFileButton.mm:
        (KWQFileButton::baselinePosition):
        * kwq/KWQLineEdit.h:
        * kwq/KWQLineEdit.mm:
        (QLineEdit::baselinePosition):
        * kwq/KWQPushButton.h:
        * kwq/KWQPushButton.mm:
        (QPushButton::baselinePosition):
        * kwq/KWQRadioButton.h:
        * kwq/KWQRadioButton.mm:
        (QRadioButton::baselinePosition):
        * kwq/KWQWidget.h:
        * kwq/KWQWidget.mm:
        (QWidget::baselinePosition):
        (QWidget::setFrameGeometry):
        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:

2003-10-10  David Hyatt  <hyatt@apple.com>

	Make sure the i-beam cursor is only forced if you have a selection.

	Reviewed by John

	* khtml/khtmlview.cpp
	
kocienda's avatar
kocienda committed
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953
2003-10-10  Ken Kocienda  <kocienda@apple.com>

        Reviewed by John

	Fix for this bug:

	<rdar://problem/3440703>: Textarea form controls do not respect disabled attribute

        * khtml/rendering/render_form.cpp:
        (RenderTextArea::updateFromElement): Check for disabled attribute.
        * kwq/KWQTextArea.h:
        * kwq/KWQTextArea.mm:
        (-[KWQTextArea setEnabled:]): Added. 
        (-[KWQTextArea isEnabled]): Added.
        (-[KWQTextArea drawRect:]): Draws a disabled-looking  bezel when disabled.
        (-[KWQTextAreaTextView becomeFirstResponder]): Return NO if disabled.
        (-[KWQTextAreaTextView mouseDown:]): Block events if disabled.
        (-[KWQTextAreaTextView keyDown:]): Ditto.
        (-[KWQTextAreaTextView keyUp:]): Ditto.
        (-[KWQTextAreaTextView setEnabled:]): Added. Pass value through to editable
	attribute on text view.
        (-[KWQTextAreaTextView isEnabled]): Added.
        (-[KWQTextAreaTextView drawRect:]): Set the text color to a disabled color
	when disabled.
        * kwq/KWQTextEdit.h:
        * kwq/KWQTextEdit.mm:
        (QTextEdit::isDisabled): Added.
        (QTextEdit::setDisabled): Added.

954 955 956 957 958 959 960 961 962 963
2003-10-10  Maciej Stachowiak  <mjs@apple.com>

	- fixed 3449405 - REGRESSION: reproducible crash changing focus w/ button on page, e.g. on www.aa.com
	
	More fallout from the exception blocking.

        * kwq/KWQButton.mm:
        (QButton::focusPolicy): Don't return from exception block (caught
	by Darin).

darin's avatar
darin committed
964 965 966 967 968 969 970 971 972 973 974 975
2003-10-09  Darin Adler  <darin@apple.com>

        Reviewed by Maciej.

        - fixed 3449280 -- REGRESSION: crash copying a selection that ends in a <br>

        * khtml/rendering/render_br.h: Add checkSelectionPointIgnoringContinuations.
        * khtml/rendering/render_br.cpp: (RenderBR::checkSelectionPointIgnoringContinuations):
        Override to never return an offset of 1. We can't use a character offset because the
        DOM doesn't know that we're implemented as a text object. So an offset of 1 turns into
        "after this element".

mjs's avatar
mjs committed
976 977 978 979 980 981 982 983
2003-10-09  Maciej Stachowiak  <mjs@apple.com>

        - fixed crash I just added.

        * kwq/KWQWidget.mm:
        (QWidget::setCursor): Move BLOCK_NS_EXCEPTIONS macros so
	you don't `break' out of the blocking code.

mjs's avatar
mjs committed
984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103
2003-10-09  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Ken.

	More Cocoa exception blocking work.

        * kwq/KWQFrame.mm:
        (QFrame::setFrameStyle):
        * kwq/KWQLineEdit.mm:
        (QLineEdit::QLineEdit):
        (QLineEdit::~QLineEdit):
        (QLineEdit::setEchoMode):
        (QLineEdit::setFont):
        (QLineEdit::setText):
        (QLineEdit::text):
        (QLineEdit::isReadOnly):
        (QLineEdit::setReadOnly):
        (QLineEdit::maxLength):
        (QLineEdit::selectAll):
        (QLineEdit::edited):
        (QLineEdit::setEdited):
        (QLineEdit::sizeForCharacterWidth):
        (QLineEdit::baselinePosition):
        (QLineEdit::setAlignment):
        * kwq/KWQListBox.mm:
        (QListBox::QListBox):
        (QListBox::~QListBox):
        (QListBox::count):
        (QListBox::clear):
        (QListBox::setSelectionMode):
        (QListBox::insertItem):
        (QListBox::insertGroupLabel):
        (QListBox::endBatchInsert):
        (QListBox::setSelected):
        (QListBox::isSelected):
        (QListBox::setEnabled):
        (QListBox::sizeForNumberOfLines):
        (QListBox::focusPolicy):
        * kwq/KWQPushButton.mm:
        (QPushButton::QPushButton):
        (QPushButton::sizeHint):
        (QPushButton::baselinePosition):
        (QPushButton::dimensions):
        * kwq/KWQRadioButton.mm:
        (QRadioButton::QRadioButton):
        (QRadioButton::setChecked):
        (QRadioButton::isChecked):
        (QRadioButton::dimensions):
        * kwq/KWQScrollBar.mm:
        (-[KWQScrollBar initWithQScrollBar:]):
        (:m_valueChanged):
        (QScrollBar::~QScrollBar):
        (QScrollBar::setValue):
        (QScrollBar::setKnobProportion):
        (QScrollBar::scrollbarHit):
        * kwq/KWQScrollView.mm:
        (QScrollView::visibleWidth):
        (QScrollView::visibleHeight):
        (QScrollView::contentsWidth):
        (QScrollView::contentsHeight):
        (QScrollView::contentsX):
        (QScrollView::contentsY):
        (QScrollView::setContentsPos):
        (QScrollView::setVScrollBarMode):
        (QScrollView::setHScrollBarMode):
        (QScrollView::setScrollBarsMode):
        (QScrollView::vScrollBarMode):
        (QScrollView::hScrollBarMode):
        (QScrollView::hasVerticalScrollBar):
        (QScrollView::hasHorizontalScrollBar):
        (QScrollView::suppressScrollBars):
        (QScrollView::addChild):
        (QScrollView::removeChild):
        (QScrollView::resizeContents):
        (QScrollView::updateContents):
        (QScrollView::contentsToViewport):
        (QScrollView::viewportToContents):
        (QScrollView::setStaticBackground):
        (QScrollView::ensureVisible):
        (QScrollView::getDocumentView):
        * kwq/KWQTextEdit.mm:
        (QTextEdit::QTextEdit):
        (QTextEdit::setText):
        (QTextEdit::text):
        (QTextEdit::textWithHardLineBreaks):
        (QTextEdit::getCursorPosition):
        (QTextEdit::setCursorPosition):
        (QTextEdit::wordWrap):
        (QTextEdit::setWordWrap):
        (QTextEdit::isReadOnly):
        (QTextEdit::setReadOnly):
        (QTextEdit::selectAll):
        (QTextEdit::setFont):
        (QTextEdit::setAlignment):
        (QTextEdit::sizeWithColumnsAndRows):
        * kwq/KWQWidget.mm:
        (QWidget::QWidget):
        (QWidget::~QWidget):
        (QWidget::setActiveWindow):
        (QWidget::setEnabled):
        (QWidget::isEnabled):
        (QWidget::frameGeometry):
        (QWidget::hasFocus):
        (QWidget::setFocus):
        (QWidget::focusPolicy):
        (QWidget::isVisible):
        (QWidget::setCursor):
        (QWidget::cursor):
        (QWidget::setFrameGeometry):
        (QWidget::mapFromGlobal):
        (QWidget::setView):
        (QWidget::getOuterView):
        (QWidget::lockDrawingFocus):
        (QWidget::unlockDrawingFocus):
        (QWidget::disableFlushDrawing):
        (QWidget::enableFlushDrawing):
        (QWidget::setDrawingAlpha):
        (QWidget::paint):
        (QWidget::sendConsumedMouseUp):

1104 1105 1106 1107 1108 1109 1110 1111
2003-10-09  David Hyatt  <hyatt@apple.com>

	Stop printing extra spaces before list items.  Fixes ordered lists with list-style-position: inside.
	
        Reviewed by mjs

        * khtml/rendering/render_list.cpp:

1112 1113 1114 1115 1116 1117 1118 1119 1120
2003-10-09  David Hyatt  <hyatt@apple.com>

	Make definition of kMin and kMax match the KHTML trunk.  Someone still needs to eliminate uses of QMIN
	and QMAX from the code.

        * kwq/KWQDef.h:
        (kMin):
        (kMax):

cblu's avatar
cblu committed
1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134
2003-10-09  Chris Blumenberg  <cblu@apple.com>

	Fixed: <rdar://problem/3333897>: should support navigator.plugins.refresh as a way to add a plugin without restarting Safari

        Reviewed by rjw.

        * khtml/ecma/kjs_navigator.cpp:
        (PluginBase::refresh): new
        (PluginsFunc::tryCall): call refresh
        * kwq/KWQKConfigBase.h:
        * kwq/KWQKConfigBase.mm:
        (RefreshPlugins): new
        * kwq/WebCoreViewFactory.h:

vicki's avatar
vicki committed
1135 1136
=== Safari-109 ===

1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147
2003-10-08  David Hyatt  <hyatt@apple.com>

	Fix for 3436723, the shrink-to-fit algorithm for positioned elements did not match
	the algorithm specified in section 10.3.7 of the CSS2.1 specification.  The min-width
	of the element was not being taken into account like it should have been.
	
        Reviewed by mjs

        * khtml/rendering/render_box.cpp:
        (RenderBox::calcAbsoluteHorizontal):

1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162
2003-10-08  David Hyatt  <hyatt@apple.com>

	Implement min/max width and min/max height support for replaced elements.
	
        Reviewed by ken

        * khtml/rendering/render_box.cpp:
        (RenderBox::calcReplacedWidth):
        (RenderBox::calcReplacedWidthUsing):
        (RenderBox::calcReplacedHeight):
        (RenderBox::calcReplacedHeightUsing):
        (RenderBox::availableHeight):
        (RenderBox::availableHeightUsing):
        * khtml/rendering/render_box.h:

mjs's avatar
mjs committed
1163 1164 1165 1166 1167 1168
2003-10-08  Maciej Stachowiak  <mjs@apple.com>

	Fix development build.
	
        * kwq/KWQExceptions.h: Correct assertion args.

mjs's avatar
mjs committed
1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240
2003-10-08  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Ken.

	Start on blocking Cocoa exceptions when calling ObjC from C++ to
	avoid unreproducible crashes when this happens.

        * kwq/KWQExceptions.h: Added. Helper macros for exception blocking.
        * WebCore.pbproj/project.pbxproj: Add new header

	In all these files, block exceptions when calling ObjC from C++,
	or explain why not.
	
        * kwq/KWQAccObjectCache.mm:
        * kwq/KWQApplication.mm:
        * kwq/KWQButton.mm:
        (QButton::QButton):
        (QButton::~QButton):
        (QButton::setText):
        (QButton::text):
        (QButton::clicked):
        (QButton::simulateClick):
        (QButton::setFont):
        (QButton::focusPolicy):
        * kwq/KWQCheckBox.mm:
        (QCheckBox::QCheckBox):
        (QCheckBox::setChecked):
        (QCheckBox::isChecked):
        (QCheckBox::dimensions):
        * kwq/KWQColor.mm:
        * kwq/KWQComboBox.mm:
        (QComboBox::QComboBox):
        (QComboBox::~QComboBox):
        (QComboBox::insertItem):
        (QComboBox::sizeHint):
        (QComboBox::setCurrentItem):
        (QComboBox::updateCurrentItem):
        (QComboBox::setFont):
        (QComboBox::dimensions):
        * kwq/KWQCursor.mm:
        * kwq/KWQFile.mm:
        * kwq/KWQFileButton.mm:
        (KWQFileButton::KWQFileButton):
        (KWQFileButton::~KWQFileButton):
        (KWQFileButton::setFilename):
        (KWQFileButton::sizeForCharacterWidth):
        (KWQFileButton::frameGeometry):
        (KWQFileButton::setFrameGeometry):
        (KWQFileButton::baselinePosition):
        (KWQFileButton::filenameChanged):
        * kwq/KWQKCookieJar.mm:
        (KWQKCookieJar::cookie):
        (KWQKCookieJar::setCookie):
        (KWQKCookieJar::cookieEnabled):
        * kwq/KWQKHTMLPartBrowserExtension.mm:
        (KHTMLPartBrowserExtension::createNewWindow):
        (KHTMLPartBrowserExtension::setIconURL):
        (KHTMLPartBrowserExtension::setTypedIconURL):
        * kwq/KWQKHistoryProvider.mm:
        (KParts::HistoryProvider::contains):
        * kwq/KWQKPartsBrowserInterface.mm:
        (KParts::BrowserInterface::callMethod):
        * kwq/KWQKStandardDirs.mm:
        * kwq/KWQKURL.mm:
        * kwq/KWQKWinModule.mm:
        (KWinModule::workArea):
        * kwq/KWQObject.mm:
        * kwq/KWQString.mm:
        (QString::getNSString):
        * kwq/KWQTimer.mm:
        * kwq/KWQWindowWidget.mm:

1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261
2003-10-07  David Hyatt  <hyatt@apple.com>

	Fix for link dragging regression in the titles of links.  More accessibility 
	improvements.
	
        Reviewed by darin

        * khtml/khtml_part.cpp:
        (KHTMLPart::text):
        * kwq/KWQAccObject.mm:
        (-[KWQAccObject role]):
        (-[KWQAccObject roleDescription]):
        (-[KWQAccObject helpText]):
        (-[KWQAccObject textUnderElement]):
        (-[KWQAccObject value]):
        (-[KWQAccObject title]):
        (-[KWQAccObject accessibilityIsIgnored]):
        (-[KWQAccObject accessibilityAttributeValue:]):
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge elementAtPoint:]):

kocienda's avatar
kocienda committed
1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342
2003-10-07  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Darin

	Fix for these bugs:

	<rdar://problem/3443296>: REGRESSION: pop-up menu gets focus, but once it has 	
	focus doesn't work right
	<rdar://problem/3444873>: Select widgets that use list views do not take part in tab order
	<rdar://problem/3446306>: Text area form widgets do not accept DOM focus correctly
	<rdar://problem/3446323>: Using keyboard to work popup button select form 
	widget causes a crash

	The intention of this patch is to add keyboard navigation support for
	HTML form select widgets. This includes the two visual representations
	for these widgets: popup buttons and lists. Many keyboard, focus, and
	tabbing fixes are included in this work, as indicated below.

        * khtml/html/html_formimpl.cpp:
        (HTMLSelectElementImpl::defaultEventHandler): Added. Submit form when
	return or enter key is pressed when focused on a select widget.
        * khtml/html/html_formimpl.h: Make HTMLSelectElementImpl a friend class
	of HTMLInputElementImpl. This is done so that an HTMLSelectElementImpl
	can call the private method which simulates a form submit.
	Also add declaration of defaultEventHandler function.
        * kwq/KWQButton.h: Clean up focusPolicy declaration.
        * kwq/KWQComboBox.h: Add focusPolicy declaration.
        * kwq/KWQComboBox.mm:
        (QComboBox::focusPolicy): Added. Widget will focus if full keyboard
	access is on.
        (-[KWQPopUpButtonCell trackMouse:inRect:ofView:untilMouseUp:]): Now
	calls sendFakeEventsAfterWidgetTracking instead of 
	doFakeMouseUpAfterWidgetTracking now that name has changed.
        (-[KWQPopUpButton becomeFirstResponder]): Added. Needed for setting
	focus correctly.
        (-[KWQPopUpButton resignFirstResponder]): Ditto.
        (-[KWQPopUpButton nextKeyView]): Added. Makes tabbing work correctly
	for this widget.
        (-[KWQPopUpButton previousKeyView]): Ditto.
        (-[KWQPopUpButton nextValidKeyView]): Ditto.
        (-[KWQPopUpButton previousValidKeyView]): Ditto.
        * kwq/KWQKHTMLPart.h: Change name of doFakeMouseUpAfterWidgetTracking
	to sendFakeEventsAfterWidgetTracking now that it handles key events
	as well.
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::sendFakeEventsAfterWidgetTracking): Name change as
	noted above. Also handles sending simulated key up events.
        * kwq/KWQLineEdit.h:
        (QLineEdit::checksDescendantsForFocus): Added. This is a big
	part of the fiz for <rdar://problem/3446306>.
        * kwq/KWQListBox.h:
        (QListBox::checksDescendantsForFocus): Ditto. Yes for this widget.
        * kwq/KWQListBox.mm:
        (QListBox::focusPolicy): Added. Widget will focus if full keyboard
        access is on.
        (-[KWQListBoxScrollView becomeFirstResponder]): Added. Needed for setting
        focus correctly. This sets the focus to its document view.
        (-[KWQTableView becomeFirstResponder]): Added. Needed for setting
        focus correctly.
        (-[KWQTableView resignFirstResponder]): Added. Needed for setting
        focus correctly.
        (-[KWQTableView nextKeyView]): Added. Makes tabbing work correctly
        for this widget.
        (-[KWQTableView previousKeyView]): Ditto.
        (-[KWQTableView nextValidKeyView]): Ditto.
        (-[KWQTableView previousValidKeyView]): Ditto.
        (-[KWQTableView _KWQ_setKeyboardFocusRingNeedsDisplay]): Added.
        * kwq/KWQTextArea.mm:
        (-[KWQTextAreaTextView becomeFirstResponder]): Other part of fix for
	<rdar://problem/3446306>. The recursion guards were bad and wrong.
	The checksDescendantsForFocus improvement prevents the erroneous
	recursion from happening.
        * kwq/KWQTextEdit.h:
        (QTextEdit::checksDescendantsForFocus): Added. Yes for this widget.
        * kwq/KWQWidget.h:
        (QWidget::checksDescendantsForFocus): Added. No by default.
        * kwq/KWQWidget.mm:
        (QWidget::hasFocus): Now uses checksDescendantsForFocus to perform
	proper checks for views that may have a subview which is first
	responder.

1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383
2003-10-07  David Hyatt  <hyatt@apple.com>

	Fix for 3363421, event handlers could be triggered for content outside an overflow:hidden
	area.  The layer checks that test for intersection/point containment need to only include
	layers with overhanging floats if the element is overflow:visible.

	Fix for 3366801, assignment to scrollLeft/Top of an overflow:hidden layer makes the layer
	disappear.  overflow:hidden blocks actually were never computing their scroll dimensions,
	and so had bogus answers for those values.

	Fix for 3366686, no reliable scrollHeight/Width reporting for overflow:hidden or
	overflow:visible elements.  The former was caused by the same bug as 3366801.  The
	latter was just me using the wrong method (clientWidth/Height instead of
	overflowWidth/Height).

	This patch also tightens the assignment to scrollLeft/Top to not do anything if you don't 
	have an overflow value other than visible.
	
        Reviewed by darin

        * khtml/ecma/kjs_dom.cpp:
        (DOMNode::putValue):
        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::layoutBlock):
        * khtml/rendering/render_flexbox.cpp:
        (khtml::RenderFlexibleBox::layoutBlock):
        * khtml/rendering/render_layer.cpp:
        (RenderLayer::RenderLayer):
        (RenderLayer::scrollToOffset):
        (RenderLayer::scrollWidth):
        (RenderLayer::scrollHeight):
        (RenderLayer::computeScrollDimensions):
        (RenderLayer::updateScrollInfoAfterLayout):
        (RenderLayer::intersectsDamageRect):
        (RenderLayer::containsPoint):
        * khtml/rendering/render_layer.h:
        * khtml/rendering/render_object.cpp:
        (RenderObject::scrollWidth):
        (RenderObject::scrollHeight):
        * khtml/rendering/render_object.h:

darin's avatar
darin committed
1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394
2003-10-07  Darin Adler  <darin@apple.com>

        Reviewed by Chris.

        - fixed some exceptions I was seeing with my recent text change

        * khtml/khtml_part.cpp:
        (KHTMLPart::text): Return an empty string for a null range rather than raising an exception.
        (KHTMLPart::selection): Return a null range rather than raising an exception if there is
        no selection.

darin's avatar
darin committed
1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413
2003-10-07  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - removed code that mutates \n into a space so we can pass more W3C DOM Level 1 Core tests

        * khtml/rendering/bidi.cpp:
        (khtml::addRun): Treat \n as a space.
        (khtml::RenderBlock::computeHorizontalPositionsForLine): Treat \n as a space.
        (khtml::RenderBlock::findNextLineBreak): Treat \n outside <pre> as a space.
        Removed code that mutates the \n into a space.

        * khtml/rendering/render_text.cpp:
        (RenderText::trimmedMinMaxWidth): Treat \n outside <pre> as a space.
        (RenderText::calcMinMaxWidth): Treat \n outside <pre> as a space.
        Removed code that mutates the \n into a space.
        (RenderText::position): Detect a <br> with isBR instead of assuming a 1-character
        string with a \n in it is a <br>.

1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497
2003-10-06  David Hyatt  <hyatt@apple.com>

	Several fixes preparing for the incremental repainting patch to be enabled.

	(1) Make layers update their positions after layout instead of during layout or
	during painting.

	(2) Fix a regression from the overflow:hidden body quirk landing.  Make sure repaint()
	understands that quirk exists and avoids clipping when it shouldn't.

	(3) Fix a regression from the scrollbar improvements.  The vertical scrollbar repainted
	on every layout.

	(4) Make sure outside list bullets are repainted when a list item needs to repaint.
	
	(5) A whole bunch of INCREMENTAL_REPAINTING code that isn't turned on yet.
	
        Reviewed by kocienda

        * khtml/khtmlview.cpp:
        (KHTMLViewPrivate::KHTMLViewPrivate):
        (KHTMLViewPrivate::reset):
        (KHTMLView::resetScrollBars):
        (KHTMLView::needsFullRepaint):
        * khtml/khtmlview.h:
        * khtml/rendering/bidi.cpp:
        (khtml::RenderBlock::layoutInlineChildren):
        * khtml/rendering/render_block.cpp:
        (khtml::RenderBlock::layoutBlock):
        (khtml::RenderBlock::layoutBlockChildren):
        (khtml::RenderBlock::getAbsoluteRepaintRectIncludingFloats):
        (khtml::RenderBlock::repaintFloatingDescendants):
        (khtml::RenderBlock::repaintObjectsBeforeLayout):
        * khtml/rendering/render_block.h:
        * khtml/rendering/render_box.cpp:
        (RenderBox::computeAbsoluteRepaintRect):
        (RenderBox::repaintDuringLayoutIfMoved):
        * khtml/rendering/render_box.h:
        * khtml/rendering/render_canvas.cpp:
        (RenderCanvas::layout):
        * khtml/rendering/render_canvas.h:
        (khtml::RenderCanvas::hasOverhangingFloats):
        * khtml/rendering/render_flexbox.cpp:
        (khtml::RenderFlexibleBox::layoutBlock):
        (khtml::RenderFlexibleBox::layoutHorizontalBox):
        (khtml::RenderFlexibleBox::layoutVerticalBox):
        (khtml::RenderFlexibleBox::placeChild):
        * khtml/rendering/render_flexbox.h:
        * khtml/rendering/render_flow.cpp:
        (RenderFlow::getAbsoluteRepaintRect):
        * khtml/rendering/render_image.cpp:
        (RenderImage::setPixmap):
        (RenderImage::layout):
        * khtml/rendering/render_layer.cpp:
        (RenderLayer::RenderLayer):
        (RenderLayer::computeRepaintRects):
        (RenderLayer::updateLayerPositions):
        (RenderLayer::updateLayerPosition):
        (RenderLayer::checkScrollbarsAfterLayout):
        (RenderLayer::paintLayer):
        (RenderLayer::calculateClipRects):
        (RenderLayer::calculateRects):
        * khtml/rendering/render_layer.h:
        (khtml::RenderLayer::relativePositionOffset):
        * khtml/rendering/render_list.cpp:
        (RenderListItem::getAbsoluteRepaintRect):
        * khtml/rendering/render_list.h:
        (khtml::RenderListMarker::listImage):
        * khtml/rendering/render_object.cpp:
        (RenderObject::repaint):
        (RenderObject::repaintRectangle):
        (RenderObject::repaintAfterLayoutIfNeeded):
        (RenderObject::repaintDuringLayoutIfMoved):
        (RenderObject::repaintFloatingDescendants):
        (RenderObject::checkForRepaintDuringLayout):
        (RenderObject::repaintObjectsBeforeLayout):
        (RenderObject::getAbsoluteRepaintRectIncludingFloats):
        (RenderObject::container):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_table.cpp:
        (RenderTable::layout):
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::passWidgetMouseDownEventToWidget):

darin's avatar
darin committed
1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517
2003-10-06  Darin Adler  <darin@apple.com>

        Reviewed by Ken.
        
        - preparation for the upcoming whitespace patch; refactored some of the code that extracts text

        * khtml/khtml_part.h: Added text() member function.
        * khtml/khtml_part.cpp:
        (KHTMLPart::text): Added. Refactored from selectedText; takes a DOM::Range as a parameter.
        Also added code to change newlines to spaces when extracting text from the DOM.
        (KHTMLPart::selectedText): Now calls text().
        (KHTMLPart::selection): Removed stray declaration.

        * kwq/KWQAccObject.mm: (-[KWQAccObject value]): Changed to call KHTMLPart::text.
        * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]): Changed to call KHTMLPart::text
        instead of doing it ourselves.
        
        * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::attributedString): Added code to change change '\n'
        newlines to spaces when extracting text from the DOM.

mjs's avatar
mjs committed
1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533
2003-10-05  Maciej Stachowiak  <mjs@apple.com>

	Reviewed by Ken.

	- fixed 3444255 - REGRESSION: www.aa.com crashes (innerHTML)

        * khtml/html/html_elementimpl.cpp:
        (HTMLElementImpl::createContextualFragment): Keep the fragment
	ref'd since the tokenizer will ref and deref it. Then turn
	TreeShared's evil against itself to get the fragment back in the
	floating 0-ref state.
        * khtml/html/html_elementimpl.h: Remove stray whitespace.
        * khtml/html/htmlparser.cpp:
        (KHTMLParser::KHTMLParser): Initialize current to 0 in the other
	constructor too.

darin's avatar
darin committed
1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546
2003-10-06  Darin Adler  <darin@apple.com>

        * khtml/ecma/kjs_css.lut.h:
        * khtml/ecma/kjs_dom.lut.h:
        * khtml/ecma/kjs_events.lut.h:
        * khtml/ecma/kjs_html.lut.h:
        * khtml/ecma/kjs_navigator.lut.h:
        * khtml/ecma/kjs_range.lut.h:
        * khtml/ecma/kjs_traversal.lut.h:
        * khtml/ecma/kjs_views.lut.h:
        * khtml/ecma/kjs_window.lut.h:
        Regenerated, without stray semicolon.

1547 1548 1549 1550 1551 1552 1553 1554
2003-10-03  Darin Adler  <darin@apple.com>

        - updated layout tests for recent WebTextRenderer changes

        * layout-tests/apple-only/base/www.cnn.com/index-expected.txt:
        * layout-tests/apple-only/base/www.sun.com/index-expected.txt:
        * layout-tests/css1/font_properties/font_weight-expected.txt:

1555 1556 1557 1558 1559 1560 1561
2003-10-03  Chris Blumenberg  <cblu@apple.com>

        Removed eastCursor.tiff because it was added by mistake.

        * Resources/eastCursor.tiff: Removed.
        * WebCore.pbproj/project.pbxproj:

mjs's avatar
mjs committed
1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584
2003-10-03  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Richard.
	
	- fixed 3398420 - crash when creating a new document.body object in <body>

	Also included David Faure's improvement to throw an exception.
	
        * khtml/html/html_documentimpl.cpp:
        (HTMLDocumentImpl::setBody): Don't remove the body when null is passed in,
	as this means type error at the higher level, so throw an exception.
        * khtml/html/htmlparser.cpp:
        (KHTMLParser::KHTMLParser): Initialize current to 0.
        (KHTMLParser::setCurrent): Ref new current and deref old; we need to
	keep it ref'd because script execution could drop the current node on the
	floor.
	(KHTMLParser::reset): Use setCurrent.
        (KHTMLParser::insertNode): Likewise.
        (KHTMLParser::reopenResidualStyleTags): Likewise.
        (KHTMLParser::popOneBlock): Likewise.
        (KHTMLParser::finished): Likewise.
        * khtml/html/htmlparser.h: Prototype setCurrent.

1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601
2003-10-03  Chris Blumenberg  <cblu@apple.com>

	Ran compress-tiffs on new cursor images.

        * Resources/eastCursor.tiff:
        * Resources/eastResizeCursor.tiff:
        * Resources/helpCursor.tiff:
        * Resources/moveCursor.tiff:
        * Resources/northEastResizeCursor.tiff:
        * Resources/northResizeCursor.tiff:
        * Resources/northWestResizeCursor.tiff:
        * Resources/southEastResizeCursor.tiff:
        * Resources/southResizeCursor.tiff:
        * Resources/southWestResizeCursor.tiff:
        * Resources/waitCursor.tiff:
        * Resources/westResizeCursor.tiff:

kocienda's avatar
kocienda committed
1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633
2003-10-03  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Darin, with much help from Maciej and Hyatt

        Fix for these bugs:

        <rdar://problem/3441321>: Form buttons do not respond to key events when focused
        <rdar://problem/3441060>: Form buttons do not scroll to view when focused

        * khtml/html/html_formimpl.cpp:
        (HTMLInputElementImpl::simulateMouseClickForEvent): Added helper to simulate
        mouse clicks in elements. Used to trigger button actions in response to
        keyboard events.
        (HTMLInputElementImpl::defaultEventHandler): Improved handler to process
        key press events for radio, checkbox, image, reset, and submit buttons.
        * khtml/html/html_formimpl.h: Added simulateMouseClickForEvent function.
        * khtml/xml/dom2_eventsimpl.h:
        (DOM::EventImpl::isKeyboardEvent): Added type check virtual function.
        (DOM::KeyEventImpl::isKeyboardEvent): Ditto.
        * kwq/KWQButton.h:
        * kwq/KWQButton.mm:
        (-[KWQButton simulateClick]): New method. This makes AppKit do a 
	button click programatically for button types. For <input type=image>, 
	we just simulate a the click in the DOM since there is no real "clickable"
	AppKit widget.
        (-[KWQButton becomeFirstResponder]): Fixes the button scroll to visible when
        focused issue.
        (-[KWQButton resignFirstResponder]): Correctly give up focus when user clicks
        into the page body when a button has the focus.
        (QButton::simulateClick): QWidget bridge to the KWQButton simulateClick
	method.

1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653
2003-10-03  David Hyatt  <hyatt@apple.com>

	Removing redundant layouts and adding a few !needsLayout and !normalChildNeedsLayout
	checks to prevent extra layouts.

	Also, fixing the recalcStyle changed() bottleneck to go through view's layout and to
	not do a full repaint.  The layout method will then do the right thing (full repaint
	without INCREMENTAL_REPAINTING turned on, the precise repainting needed otherwise).
	
        Reviewed by darin

        * khtml/html/html_tableimpl.cpp:
        (HTMLTableElementImpl::parseAttribute):
        * khtml/rendering/render_block.cpp:
        * khtml/rendering/render_container.cpp:
        (RenderContainer::appendChildNode):
        (RenderContainer::insertChildNode):
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::recalcStyle):

1654 1655 1656 1657 1658 1659 1660 1661 1662 1663
2003-10-02  David Hyatt  <hyatt@apple.com>

	Remove the speed hit from using the UC break locators by not using them when
	checking if the current character is &nbsp; and by also using a global text
	break locator object.
	
        Reviewed by rjw

        * khtml/rendering/break_lines.cpp:

vicki's avatar
vicki committed
1664 1665
=== Safari-108 ===

mjs's avatar
mjs committed
1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698
2003-10-02  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Darin.

	- fixed 3398622 - Crash when JavaScript changes display style

	This was a problem with one of the many global variables in
	bidi.cpp, last, having a stale value from the last layout that
	pointed to a dead node. I fixed this by refactoring the code to
	put most of the global variables in a struct allocated on the
	stack, and pass around a reference to the struct. Seems much
	cleaner (if somewhat wordier) this way. There are still more
	global variables to kill here.
	
        * khtml/rendering/bidi.cpp:
        (khtml::BidiIterator::BidiIterator):
        (khtml::BidiStatus::BidiStatus):
        (khtml::BidiInfo::BidiInfo):
        (khtml::Bidinext):
        (khtml::first):
        (khtml::BidiIterator::increment):
        (khtml::checkMidpoints):
        (khtml::appendRunsForObject):
        (khtml::appendRun):
        (khtml::embed):
        (khtml::RenderBlock::computeHorizontalPositionsForLine):
        (khtml::RenderBlock::bidiReorderLine):
        (khtml::buildCompactRuns):
        (khtml::RenderBlock::layoutInlineChildren):
        (khtml::RenderBlock::findNextLineBreak):
        * khtml/rendering/bidi.h:
        * khtml/rendering/render_block.h:

1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731
2003-10-02  David Hyatt  <hyatt@apple.com>

	Work on exposing elements to the Acc API.  This patch gets us to the point where text
	under the mouse is voiced.
	
        Reviewed by darin

        * kwq/KWQAccObject.h:
        * kwq/KWQAccObject.mm:
        (-[KWQAccObject initWithRenderer:]):
        (-[KWQAccObject parentObject]):
        (-[KWQAccObject parentObjectUnignored]):
        (-[KWQAccObject addChildrenToArray:]):
        (-[KWQAccObject role]):
        (-[KWQAccObject roleDescription]):
        (-[KWQAccObject value]):
        (-[KWQAccObject title]):
        (-[KWQAccObject position]):
        (-[KWQAccObject size]):
        (-[KWQAccObject accessibilityIsIgnored]):
        (-[KWQAccObject accessibilityAttributeNames]):
        (-[KWQAccObject accessibilityActionNames]):
        (-[KWQAccObject accessibilityIsAttributeSettable:]):
        (-[KWQAccObject accessibilityAttributeValue:]):
        (-[KWQAccObject accessibilityHitTest:]):
        * kwq/KWQAccObjectCache.mm:
        (KWQAccObjectCache::accObject):
        (KWQAccObjectCache::setAccObject):
        (KWQAccObjectCache::removeAccObject):
        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge accessibilityTree]):

darin's avatar
darin committed
1732 1733 1734 1735 1736 1737 1738 1739 1740 1741
2003-10-02  Darin Adler  <darin@apple.com>

        Reviewed by Ken.

        * kwq/KWQRenderTreeDebug.cpp: (quoteAndEscapeNonPrintables): Since our text rendering renders
        non-breaking spaces the same as spaces, dump them as spaces. Do the same with newlines since
        I am about to change our text rendering to do the same with newlines.

        * layout-tests: Updated test results.

1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752
2003-10-01  David Hyatt  <hyatt@apple.com>

	Avoid doing extra work when tearing down the document by checking to see if
	we're in the destruction of the document.
	
        Reviewed by darin

        * khtml/rendering/render_block.cpp:
        * khtml/rendering/render_container.cpp:
        (RenderContainer::removeChildNode):

rjw's avatar
rjw committed
1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772
2003-10-01  Richard Williamson   <rjw@apple.com>

	Fixed 3438441.  Pass extra info up to WebKit about load type, specifically is a load is triggered by JS running in an onLoad handler.

        Reviewed by Ken.

        * khtml/ecma/kjs_binding.h:
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::openURL):
        (KWQKHTMLPart::openURLRequest):
        (KWQKHTMLPart::submitForm):
        (KWQKHTMLPart::urlSelected):
        * kwq/KWQKHTMLPartBrowserExtension.mm:
        (KHTMLPartBrowserExtension::createNewWindow):

        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge saveDocumentToPageCache]):
	Nothing changed.  Tweaked spacing.

1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816
2003-10-01  Chris Blumenberg  <cblu@apple.com>

	<rdar://problem/2942589>: CSS cursors are not implemented

        Reviewed by Dave.

        * Resources/eastCursor.tiff: Added.
        * Resources/eastResizeCursor.tiff: Added.
        * Resources/helpCursor.tiff: Added.
        * Resources/moveCursor.tiff: Added.
        * Resources/northEastResizeCursor.tiff: Added.
        * Resources/northResizeCursor.tiff: Added.
        * Resources/northWestResizeCursor.tiff: Added.
        * Resources/southEastResizeCursor.tiff: Added.
        * Resources/southResizeCursor.tiff: Added.
        * Resources/southWestResizeCursor.tiff: Added.
        * Resources/waitCursor.tiff: Added.
        * Resources/westResizeCursor.tiff: Added.
        * WebCore.pbproj/project.pbxproj:
        * khtml/css/cssparser.cpp: special-case the hand cursor to mean pointer
        (CSSParser::parseValue):
        * khtml/css/cssvalues.c: generated changes
        (hash_val):
        (findValue):
        * khtml/css/cssvalues.h: generated changes
        * khtml/css/cssvalues.in: removed the progress cursor from the list because it was messing up the mapping
        * khtml/khtmlview.cpp: call new cursor methods
        * kwq/KWQKCursor.h:
        * kwq/KWQKCursor.mm:
        (+[NSCursor _WebCore_cursorWithName:hotSpot:]): new, loads and caches cursors
        (KCursor::crossCursor): get the AppKit cross hair cursor
        (KCursor::handCursor): call _WebCore_cursorWithName:hotSpot:
        (KCursor::sizeAllCursor): ditto
        (KCursor::waitCursor): ditto
        (KCursor::whatsThisCursor): ditto
        (KCursor::eastResizeCursor): new, call _WebCore_cursorWithName:hotSpot:
        (KCursor::northResizeCursor): ditto
        (KCursor::northEastResizeCursor): ditto
        (KCursor::northWestResizeCursor): ditto
        (KCursor::southResizeCursor): ditto
        (KCursor::southEastResizeCursor): ditto
        (KCursor::southWestResizeCursor): ditto
        (KCursor::westResizeCursor): ditto

1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932
2003-10-01  David Hyatt  <hyatt@apple.com>

	Clean up our detach model so that you can always get to a document, even for
	anonymous content.  Also stubbing out and adding the accessibility objects.
	
        Reviewed by darin, mjs, john

        * ChangeLog:
        * WebCore.pbproj/project.pbxproj:
        * khtml/rendering/render_block.cpp:
        * khtml/rendering/render_box.cpp:
        (RenderBox::detach):
        * khtml/rendering/render_box.h:
        * khtml/rendering/render_canvas.cpp:
        (RenderCanvas::RenderCanvas):
        * khtml/rendering/render_container.cpp:
        (RenderContainer::detach):
        (RenderContainer::addChild):
        (RenderContainer::updatePseudoChild):
        (RenderContainer::insertChildNode):
        (RenderContainer::removeLeftoverAnonymousBoxes):
        * khtml/rendering/render_container.h:
        * khtml/rendering/render_flow.cpp:
        (RenderFlow::createAnonymousFlow):
        (RenderFlow::deleteLineBoxes):
        (RenderFlow::detach):
        * khtml/rendering/render_flow.h:
        * khtml/rendering/render_form.cpp:
        (RenderTextArea::detach):
        * khtml/rendering/render_form.h:
        * khtml/rendering/render_image.cpp:
        (RenderImage::RenderImage):
        (RenderImage::detach):
        * khtml/rendering/render_image.h:
        * khtml/rendering/render_inline.cpp:
        (RenderInline::addChildToFlow):
        (RenderInline::splitFlow):
        (RenderInline::renderName):
        * khtml/rendering/render_list.cpp:
        (RenderListItem::setStyle):
        (RenderListItem::detach):
        (RenderListItem::updateMarkerLocation):
        (RenderListMarker::RenderListMarker):
        * khtml/rendering/render_list.h:
        * khtml/rendering/render_object.cpp:
        (RenderObject::RenderObject):
        (RenderObject::information):
        (RenderObject::dump):
        (RenderObject::createAnonymousBlock):
        (RenderObject::remove):
        (RenderObject::detach):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_replaced.cpp:
        (RenderWidget::detach):
        * khtml/rendering/render_replaced.h:
        * khtml/rendering/render_table.cpp:
        (RenderTable::addChild):
        (RenderTableSection::detach):
        (RenderTableSection::addChild):
        (RenderTableRow::detach):
        (RenderTableRow::addChild):
        (RenderTableCell::detach):
        * khtml/rendering/render_table.h:
        * khtml/rendering/render_text.cpp:
        (RenderText::detach):
        (RenderText::deleteRuns):
        * khtml/rendering/render_text.h:
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::DocumentImpl):
        (DocumentImpl::~DocumentImpl):
        (DocumentImpl::detach):
        (DocumentImpl::getOrCreateAccObjectCache):
        * khtml/xml/dom_docimpl.h:
        * khtml/xml/dom_nodeimpl.cpp:
        (NodeImpl::detach):
        * kwq/KWQAccObject.h: Added.
        * kwq/KWQAccObject.mm: Added.
        (-[KWQAccObject x]):
        (-[KWQAccObject y]):
        (-[KWQAccObject width]):
        (-[KWQAccObject height]):
        (-[KWQAccObject detached]):
        (-[KWQAccObject detach]):
        (-[KWQAccObject data]):
        (-[KWQAccObject setData:]):
        (-[KWQAccObject firstChild]):
        (-[KWQAccObject lastChild]):
        (-[KWQAccObject previousSibling]):
        (-[KWQAccObject nextSibling]):
        (-[KWQAccObject parentObject]):
        * kwq/KWQAccObjectCache.h: Added.
        * kwq/KWQAccObjectCache.mm: Added.
        (KWQAccObjectCache::KWQAccObjectCache):
        (KWQAccObjectCache::~KWQAccObjectCache):
        (KWQAccObjectCache::accObject):
        (KWQAccObjectCache::setAccObject):
        (KWQAccObjectCache::removeAccObject):
        (KWQAccObjectCache::detach):
        * layout-tests/css1/pseudo/firstletter-expected.txt:
        * layout-tests/css1/pseudo/multiple_pseudo_elements-expected.txt:
        * layout-tests/fast/css-generated-content/002-expected.txt:
        * layout-tests/fast/css-generated-content/004-expected.txt:
        * layout-tests/fast/css-generated-content/005-expected.txt:
        * layout-tests/fast/css-generated-content/006-expected.txt:
        * layout-tests/fast/selectors/039-expected.txt:
        * layout-tests/fast/selectors/039b-expected.txt:
        * layout-tests/fast/selectors/041-expected.txt:
        * layout-tests/fast/selectors/042-expected.txt:
        * layout-tests/fast/selectors/166a-expected.txt:
        * layout-tests/fast/selectors/168-expected.txt:
        * layout-tests/fast/selectors/168a-expected.txt:
        * layout-tests/fast/selectors/169-expected.txt:
        * layout-tests/fast/selectors/169a-expected.txt:
        * layout-tests/fast/text/firstline/002-expected.txt:
        * layout-tests/fast/text/firstline/003-expected.txt:

1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949
2003-10-01  David Hyatt  <hyatt@apple.com>

	Fix for 3163840, the images are mispositioned on the DHTML menus at the top of
	www.aa.com (and in many other places).  We needed to support returning the right
	value from hasProperty and tryGet for 'cssFloat'.  

	This patch also adds support for getting/setting our custom CSS properties (-khtml-*)
	and just factors the code a bit better for all the special values.
	
        Reviewed by darin

        * khtml/ecma/kjs_css.cpp:
        (cssPropertyName):
        (DOMCSSStyleDeclaration::hasProperty):
        (DOMCSSStyleDeclaration::tryGet):
        (DOMCSSStyleDeclaration::tryPut):

darin's avatar
darin committed
1950 1951 1952 1953 1954 1955 1956 1957 1958 1959
2003-10-01  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - fixed 3437309 -- REGRESSION (100-107): Javascript menu doesn't work at www.aa.com

        * khtml/xml/dom_elementimpl.cpp: (ElementImpl::removeAttribute): Restored the old behavior
        for removeAttribute and removeAttributeNS; these don't give NOT_FOUND_ERR. But keep the
        NOT_FOUND_ERR for removeAttributeNode and removedNamedItem.

kocienda's avatar
kocienda committed
1960 1961 1962 1963 1964 1965 1966
2003-10-01  Ken Kocienda  <kocienda@apple.com>

        Reviewed by me

        * kwq/KWQWidget.mm:
        (QWidget::focusPolicy): Improved comment.

kocienda's avatar
kocienda committed
1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998
2003-10-01  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Maciej

	Fix for these bugs:

	<rdar://problem/3439736>: WebCore form button widgets do not accept focus
	<rdar://problem/3440770>: WebCore form button widgets do not take part in tabbing order

        * kwq/KWQButton.h: Add focusPolicy function declaration.
        * kwq/KWQButton.mm: 
        (-[KWQButton nextKeyView]): Add tabbing support for buttons.
        (-[KWQButton previousKeyView]): Ditto
        (-[KWQButton nextValidKeyView]): Ditto
        (-[KWQButton previousValidKeyView]): Ditto
        (QButton::focusPolicy): Add focusPolicy implementation. This calls through
        to the recently-added accessor for full keyboard access to help in the
        determination for focus policy. For now, full keyboard access must be
        turned on for buttons to receive focus.
        * kwq/KWQTextEdit.h: Remove focusPolicy specialization from this class. The
	implementation in QWidget now serves this class well.
        * kwq/KWQTextEdit.mm: Ditto
        * kwq/KWQWidget.h: Added isEnabled function. Small, unrelated cleanup to 
	move the no-implementation setFocusPolicy() and setFocusProxy() functions
	fully into the header file.
        * kwq/KWQWidget.mm:
        (QWidget::isEnabled): Added. Calls through to the Cocoa view to retrieve
	this information.
        (QWidget::focusPolicy): Much improved focus policy function is now more
	general in stipulating the conditions for focus policy, and will work for
	more widgets.

1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009
2003-10-01  David Hyatt  <hyatt@apple.com>

	Fix for 3440804, broken scrollbars in downloads window.  Make Auto be the default
	value in the enum, so that all scrollviews will be automatically initialized to be
	auto.

	Reviewed by cblu

        * kwq/KWQScrollView.h:
        * kwq/WebCoreFrameView.h:

kocienda's avatar
kocienda committed
2010 2011 2012 2013 2014 2015
2003-09-30  Ken Kocienda  <kocienda@apple.com>

        Reviewed by me

        * WebCore.pbproj/project.pbxproj: Made WebCoreKeyboardAccess.h a private header.

kocienda's avatar
kocienda committed
2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030
2003-09-30  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Maciej
        
        Fix for this bug:
        
        <rdar://problem/3439688>: WebKit needs to retrieve full keyboard access preference
        
        * WebCore.pbproj/project.pbxproj:
        * kwq/KWQKHTMLPart.h: Declare keyboardUIMode accessor.
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::keyboardUIMode): Implement keyboardUIMode accessor (calls through the bridge).
        * kwq/WebCoreBridge.h: Declare the bridge accessor.
        * kwq/WebCoreKeyboardAccess.h: Added. Header defines keyboard UI mode constants.
        
mjs's avatar
mjs committed
2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058
2003-09-30  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Ken.

	- fixed 3375281 - Keyboard event handlers not fired if focus not in form field
	- fixed 3242927 - KeyPressed Event in Javascript don't work
	- fixed 3375353 - keyboard event.target not updated when blurring from form items
	- fixed 3183754 - returning false from key press handlers does not prevent typing or form submission
	
        * khtml/xml/dom_nodeimpl.cpp:
	(NodeImpl::dispatchKeyEvent): Force false when defaultHandled instead of
	based on a weird rule appropriate for KDE but not for us.
        * kwq/KWQKHTMLPart.mm:
	(KWQKHTMLPart::keyEvent): If there's no focus node, give the event
	to the body element instead of giving up. Also, reverse
	expectedsense of return value dispatchKeyEvent, since it returns
	true if it *didn't* swallow the event. And finally, let the key press
	event as well as the key down event for the initial NSKeyDown block
	default handling.
	* kwq/KWQListBox.mm:
        (-[KWQTableView keyDown:]): Respect return value from interceptKeyEvent:
        (-[KWQTableView keyUp:]): ditto
        * kwq/KWQTextArea.mm:
        (-[KWQTextAreaTextView keyDown:]): ditto
        (-[KWQTextAreaTextView keyUp:]): ditto
        * kwq/KWQTextField.mm:
        (-[KWQTextField textView:shouldHandleEvent:]): ditto

2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112
2003-09-30  David Hyatt  <hyatt@apple.com>

	Improvements to layout transitions and scrollbar appearance/disappearance.  
	Also implementing a fix for 3264346, overflow applied to body should apply to
	the document's scrollers.
	
        Reviewed by darin

        * khtml/html/html_baseimpl.cpp:
        (HTMLFrameElementImpl::parseAttribute):
        * khtml/khtmlview.cpp:
        (KHTMLView::KHTMLView):
        (KHTMLView::~KHTMLView):
        (KHTMLView::resetScrollBars):
        (KHTMLView::clear):
        (KHTMLView::initScrollBars):
        (KHTMLView::applyBodyScrollQuirk):
        (KHTMLView::inLayout):
        * khtml/khtmlview.h:
        * khtml/rendering/render_block.cpp:
        * khtml/rendering/render_block.h:
        * khtml/rendering/render_canvas.cpp:
        (RenderCanvas::layout):
        * khtml/rendering/render_form.cpp:
        (TextAreaWidget::TextAreaWidget):
        * khtml/rendering/render_frames.cpp:
        (RenderFrame::slotViewCleared):
        (RenderPartObject::slotViewCleared):
        * khtml/rendering/render_list.cpp:
        (RenderListMarker::calcMinMaxWidth):
        * khtml/rendering/render_object.cpp:
        (RenderObject::repaint):
        (RenderObject::repaintRectangle):
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::setInPageCache):
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::createPart):
        * kwq/KWQRenderTreeDebug.cpp:
        (write):
        (externalRepresentation):
        * kwq/KWQScrollView.h:
        * kwq/KWQScrollView.mm:
        (QScrollView::setVScrollBarMode):
        (QScrollView::setHScrollBarMode):
        (QScrollView::setScrollBarsMode):
        (QScrollView::vScrollBarMode):
        (QScrollView::hScrollBarMode):
        (QScrollView::hasVerticalScrollBar):
        (QScrollView::hasHorizontalScrollBar):
        (QScrollView::suppressScrollBars):
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge installInFrame:]):
        * kwq/WebCoreFrameView.h:

2113 2114 2115 2116 2117 2118 2119 2120 2121 2122
2003-09-30  David Hyatt  <hyatt@apple.com>

	Fix for 3437260, nil deref of the render style because it hasn't been set yet.
	Fallout from my incremental repainting landing.
	
        Reviewed by darin

        * khtml/rendering/render_replaced.cpp:
        (RenderWidget::setQWidget):

2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133
2003-09-29  David Hyatt  <hyatt@apple.com>

	Fix for 3438479, tables expand on every layout when a cell has percentage height
	children.
	
        Reviewed by darin

        * khtml/rendering/render_table.cpp:
        (RenderTableSection::calcRowHeight):
        (RenderTableRow::layout):

2134 2135 2136 2137 2138 2139 2140 2141 2142
2003-09-29  Chris Blumenberg  <cblu@apple.com>

	Fixed: <rdar://problem/3332460>: nil-deref in khtml::RenderWidget::eventFilter with onchange handler

        Reviewed by darin.

        * kwq/KWQTextField.mm:
        (-[KWQTextField controlTextDidEndEditing:]): call setHasFocus:NO last so we have the widget that lets us get to the bridge and lets us call controlTextDidEndEditing

2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156
2003-09-29  David Hyatt  <hyatt@apple.com>

	Fix for 3425053, text past the bottom of a positioned table doesn't repaint.
	3426847 is the same bug.  Both are fixed by ensuring that calcHeight doesn't actually
	do anything other than margin computation and position determination for positioned
	elements.  In reality, for weird edge cases like implying the height via explicit top and
	bottom properties, we'll still be wrong.
	
        Reviewed by darin

        * ChangeLog:
        * khtml/rendering/render_table.cpp:
        (RenderTable::layout):

2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172
2003-09-29  David Hyatt  <hyatt@apple.com>

	Make sure that timeouts updateRendering after they execute the scheduled timer
	action.  

	Also fixing 3429455, maxwidth of pres miscomputed when two blank lines occur at
	the end of a pre text run.
	
        Reviewed by darin, mjs (setTimeout fix), darin (pre fix)

        * khtml/ecma/kjs_window.cpp:
        (ScheduledAction::execute):
        * khtml/rendering/render_text.cpp:
        (RenderText::trimmedMinMaxWidth):
        (RenderText::calcMinMaxWidth):

darin's avatar
darin committed
2173 2174 2175 2176 2177 2178 2179 2180 2181 2182
2003-09-29  Darin Adler  <darin@apple.com>

        Reviewed by John.

        - fixed 3437292 -- Safari uses wrong characters for &and; and &or; entities

        * khtml/html/kentities.gperf: Corrected values for &and; and &or; entities.
        Checked all the rest against a list on the W3C site, and those are the only two that were wrong.
        * khtml/html/kentities.c: Regnenerated.

kocienda's avatar
kocienda committed
2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197
2003-09-26  Ken Kocienda  <kocienda@apple.com>

        Reviewed by John

	Fix for this bug:

	<rdar://problem/3435532>: REGRESSION: tabbing to textareas causes infinite recursion

	Add recursion guards to the becomeFirstResponder method, otherwise calling
	eventFilter with a FocusIn event will cause the infinite recursion
	described in the bug.

        * kwq/KWQTextArea.mm:
        (-[KWQTextAreaTextView becomeFirstResponder]):

mjs's avatar
mjs committed
2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209
2003-09-25  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by John.

        * khtml/ecma/kjs_window.cpp:
        (Window::installTimeout): Variant that takes a function and args.
	(WindowFunc::tryCall): If the argument is a function, call the
	function variant of installTimeout instead of pointlessly passing
	the string. Also, correctly implement the code to pass extra args
	along.
        * khtml/ecma/kjs_window.h:

mjs's avatar
mjs committed
2210 2211 2212 2213 2214 2215
2003-09-25  Maciej Stachowiak  <mjs@apple.com>

	Roll out build system change since it did not actually work. :-(
	
        * WebCore.pbproj/project.pbxproj:

2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302
2003-09-25  David Hyatt  <hyatt@apple.com>

	Landing the new repainting code.  This code eliminates many redundant layouts, makes
	layout scheduling work properly when called from WebKit, cleans up relpositioned inlines
	that act as containing blocks for absolute positioned children, and eliminates the
	repaint timer.
	
        Reviewed by kocienda

        * khtml/html/html_documentimpl.cpp:
        (HTMLDocumentImpl::close):
        * khtml/khtmlview.cpp:
        (KHTMLView::KHTMLView):
        * khtml/khtmlview.h:
        * khtml/rendering/render_block.cpp:
        * khtml/rendering/render_block.h:
        * khtml/rendering/render_box.cpp:
        (RenderBox::setStyle):
        (RenderBox::setPixmap):
        (RenderBox::getAbsoluteRepaintRect):
        (RenderBox::computeAbsoluteRepaintRect):
        (RenderBox::repaintIfMoved):
        (RenderBox::calcAbsoluteHorizontal):
        (RenderBox::calcAbsoluteVertical):
        * khtml/rendering/render_box.h:
        * khtml/rendering/render_canvas.cpp:
        (RenderCanvas::layout):
        (RenderCanvas::repaintViewRectangle):
        (RenderCanvas::getAbsoluteRepaintRect):
        (RenderCanvas::computeAbsoluteRepaintRect):
        * khtml/rendering/render_canvas.h:
        * khtml/rendering/render_container.cpp:
        (RenderContainer::addChild):
        (RenderContainer::removeChildNode):
        (RenderContainer::removeChild):
        (RenderContainer::appendChildNode):
        (RenderContainer::insertChildNode):
        * khtml/rendering/render_flexbox.cpp:
        * khtml/rendering/render_flow.cpp:
        (RenderFlow::getAbsoluteRepaintRect):
        * khtml/rendering/render_flow.h:
        * khtml/rendering/render_image.cpp:
        (RenderImage::setPixmap):
        (RenderImage::layout):
        * khtml/rendering/render_inline.cpp:
        (RenderInline::addChildToFlow):
        * khtml/rendering/render_layer.cpp:
        (RenderLayer::convertToLayerCoords):
        * khtml/rendering/render_list.cpp:
        (RenderListMarker::setPixmap):
        * khtml/rendering/render_object.cpp:
        (RenderObject::RenderObject):
        (RenderObject::setNeedsLayout):
        (RenderObject::setChildNeedsLayout):
        (RenderObject::markContainingBlocksForLayout):
        (RenderObject::containingBlock):
        (RenderObject::repaint):
        (RenderObject::repaintRectangle):
        (RenderObject::repaintAfterLayoutIfNeeded):
        (RenderObject::repaintIfMoved):
        (RenderObject::repaintPositionedAndFloatingDescendants):
        (RenderObject::getAbsoluteRepaintRect):
        (RenderObject::getAbsoluteRepaintRectIncludingDescendants):
        (RenderObject::computeAbsoluteRepaintRect):
        (RenderObject::setStyle):
        (RenderObject::container):
        (RenderObject::detach):
        (RenderObject::scheduleRelayout):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_style.cpp:
        (RenderStyle::diff):
        * khtml/rendering/render_table.cpp:
        (RenderTable::layout):
        (RenderTableRow::getAbsoluteRepaintRect):
        (RenderTableCell::computeAbsoluteRepaintRect):
        * khtml/rendering/render_table.h:
        * khtml/xml/dom_nodeimpl.cpp:
        (NodeBaseImpl::insertBefore):
        (NodeBaseImpl::replaceChild):
        (NodeBaseImpl::appendChild):
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::clearTimers):
        * kwq/KWQRenderTreeDebug.cpp:
        (write):
        (externalRepresentation):
        * kwq/KWQRenderTreeDebug.h:

mjs's avatar
mjs committed
2303 2304 2305 2306 2307 2308 2309
2003-09-25  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Darin.

        * WebCore.pbproj/project.pbxproj: Don't hack install name. Instead
	of embedding into Safari, embed into WebKit as sub-umbrella.

vicki's avatar
vicki committed
2310 2311
=== Safari-107 ===

2312 2313 2314 2315 2316 2317
2003-09-25  Darin Adler  <darin@apple.com>

        - rolled out change to fix 3390850 because it caused a performance regression

        * khtml/misc/decoder.cpp: (Decoder::decode): Rolled out change.

kocienda's avatar
kocienda committed
2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364
2003-09-25  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Dave

	Name change: TextRun is now InlineTextBox. Some related names
	have been changed as well. There should be no change in
	behavior as a result of this patch.

        * khtml/khtml_part.cpp:
        (KHTMLPart::selectedText):
        (firstRunAt):
        (lastRunAt):
        (startAndEndLineNodesIncludingNode):
        * khtml/rendering/bidi.cpp:
        * khtml/rendering/render_flow.cpp:
        (RenderFlow::paintLineBoxDecorations):
        * khtml/rendering/render_line.cpp:
        (InlineFlowBox::placeBoxesHorizontally):
        (InlineFlowBox::placeBoxesVertically):
        * khtml/rendering/render_line.h:
        * khtml/rendering/render_text.cpp:
        (InlineTextBox::detach):
        (throw):
        (InlineTextBox::operator delete):
        (InlineTextBox::paintSelection):
        (InlineTextBox::paintDecoration):
        (InlineTextBox::checkSelectionPoint):
        (InlineTextBoxArray::InlineTextBoxArray):
        (InlineTextBoxArray::compareItems):
        (InlineTextBoxArray::findFirstMatching):
        (RenderText::deleteRuns):
        (RenderText::findNextInlineTextBox):
        (RenderText::nodeAtPoint):
        (RenderText::checkSelectionPointIgnoringContinuations):
        (RenderText::cursorPos):
        (RenderText::posOfChar):
        (RenderText::paintObject):
        (RenderText::createInlineBox):
        (RenderText::position):
        (RenderText::width):
        * khtml/rendering/render_text.h:
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::attributedString):
        * kwq/KWQRenderTreeDebug.cpp:
        (writeTextRun):
        (write):

darin's avatar
darin committed
2365 2366 2367 2368 2369 2370 2371
2003-09-25  Darin Adler  <darin@apple.com>

        Added a new layout test.

        * layout-tests/fast/forms/form-element-geometry-expected.txt: Added.
        * layout-tests/fast/forms/form-element-geometry.html: Added.

2372 2373 2374 2375
2003-09-24  Darin Adler  <darin@apple.com>

        * layout-tests/fast/table/003-expected.txt: Updated for textarea width change.

2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386
2003-09-24  David Hyatt  <hyatt@apple.com>

	Fix for 3429646, <img src="blah"<img src="foo"> should show up as two images.
	
        Reviewed by darin

        * khtml/html/htmlparser.cpp:
        (KHTMLParser::handleResidualStyleCloseTagAcrossBlocks):
        * khtml/html/htmltokenizer.cpp:
        (HTMLTokenizer::parseTag):

darin's avatar
darin committed
2387 2388 2389 2390 2391 2392 2393 2394 2395 2396
2003-09-24  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - fixed a recent regression, and ...
        - fixed 3386544 -- ARCH: <object>s don't support transclusion like <iframe>s do

        * khtml/khtml_part.cpp: (KHTMLPart::childFrame): Added back a cast I should
        not have removed to fix the function.

2397 2398 2399 2400 2401 2402 2403 2404 2405 2406
2003-09-24  David Hyatt  <hyatt@apple.com>

	Fix for 3430612, crash on about:blank in updateHoverActiveState.  Just missing
	a null-check.  Also remove a hover optimization that was bogus.
	
        Reviewed by darin

        * khtml/rendering/render_layer.cpp:
        (RenderLayer::updateHoverActiveState):

rjw's avatar
rjw committed
2407 2408 2409 2410 2411 2412 2413 2414
2003-09-24  Richard Williamson   <rjw@apple.com>

	Fixed 3420736.  Clear renderer caches when get an ATS font changed notification.  This fix may be moot depending on progress toward fixing 2695906.

        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:
        (+[WebCoreBridge updateAllViews]):

2415 2416 2417 2418 2419 2420 2421
2003-09-24  Darin Adler  <darin@apple.com>

        - a new test for JavaScript date parsing

        * layout-tests/fast/js/date-parse-test-expected.txt: Added.
        * layout-tests/fast/js/date-parse-test.html: Added.

darin's avatar
darin committed
2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445
2003-09-24  Darin Adler  <darin@apple.com>

        Reviewed by Ken.

        - fixed ownerElement for documents in HTML objects (helpful for some work Dave is doing)

        * khtml/khtml_part.h: Change name of frame function to childFrame for clarity.
        * khtml/khtml_part.cpp:
        (KHTMLPart::slotChildStarted): Call the frame function by its new name, childFrame.
        (KHTMLPart::slotChildCompleted): Ditto.
        (KHTMLPart::slotChildURLRequest): Ditto.
        (KHTMLPart::childFrame): Change name from frame to childFrame for clarity, and make it work
        for parts inside HTML objects, not just normal frames and iframes. The change in behavior is
        the actual fix. Note that for the three callers above, it's an error to call this when the
        result would be 0, so there's no harm in doing the extra search of HTML objects in those cases.

        * khtml/xml/dom_docimpl.cpp: (DocumentImpl::ownerElement): Call the frame function by its new
        name, childFrame. This is the caller that will benefit most from the change in behavior.

        * kwq/KWQKHTMLPart.h: Remove childFrameForPart function, which is superseded by the
        childFrame function now.
        * kwq/KWQKHTMLPart.mm: (KWQKHTMLPart::nextKeyViewInFrameHierarchy): Use childFrame instead
        of childFrameForPart.

darin's avatar
darin committed
2446 2447 2448 2449 2450 2451 2452 2453 2454
2003-09-23  Darin Adler  <darin@apple.com>

        Reviewed by Ken.

        - fixed 3390850 -- Shift_JIS in meta tag ignored because <img> tag in JavaScript comes first (vintagecomp.com)

        * khtml/misc/decoder.cpp: (Decoder::decode): Don't let tags inside a script make us think we're in the body.
        Later we can enhance this even more.

darin's avatar
darin committed
2455 2456 2457 2458 2459 2460 2461 2462 2463 2464
2003-09-22  Darin Adler  <darin@apple.com>

        Reviewed by Ken.

        - fixed 3292723 -- onBlur() getting called twice on <input type=text>

        * khtml/rendering/render_replaced.cpp: (RenderWidget::eventFilter):
        Call setFocusNode(0) instead of explicitly sending a blur event, otherwise
        setFocusNode will send a second blur event later.

2465 2466 2467 2468 2469 2470 2471
2003-09-22  Darin Adler  <darin@apple.com>

        - fixed 3391837 -- we list ISO-8859-8-E as visual ordering for Hebrew; it's "explicit ordering", not supported

        * kwq/mac-encodings.txt: Removed ISO-8859-8-E.
        * kwq/KWQCharsetData.c: Regenerated.

2472 2473 2474 2475
2003-09-22  Darin Adler  <darin@apple.com>

        * kwq/KWQTextEdit.mm: (QTextEdit::sizeWithColumnsAndRows): Made it compile.

darin's avatar
darin committed
2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501
2003-09-22  Darin Adler  <darin@apple.com>

        Reviewed by Maciej.

        - fixed 3306041 -- Airborne tracking number field too narrow, tracking doesn't work (textare col property)

        * khtml/rendering/render_form.cpp: (RenderTextArea::calcMinMaxWidth): Call the QTextEdit
        to ask it what size, rather than trying to compute it. This is the same thing we do with
        other widgets, I just hadn't done textarea yet.

        * kwq/KWQTextEdit.h: Added sizeWithColumnsAndRows function.
        * kwq/KWQTextEdit.mm: (QTextEdit::sizeWithColumnsAndRows): Added. Calls through to the
        KWQTextArea object.

        * kwq/KWQTextArea.h: Added sizeWithColumns:rows: method.
        * kwq/KWQTextArea.mm:
        (-[KWQTextArea _createTextView]): Make consistent with other callers of the size mapping methods
        by using [self class] instead of NSScrollView, and getting hasHorizontalScroller and
        hasVerticalScroller from the view.
        (-[KWQTextArea setFrame:]): Make consistent with other callers of the size mapping methods
        by using [self class] instead of NSScrollView.
        (-[KWQTextArea sizeWithColumns:rows:]): Added. Starts by computing the width and height of the
        columns specified, using a canonical width of a "0" character. Then converts that to a container
        size by adding line fragment padding. Then converts that into the text view size by adding the
        text container inset. Then converts that into the scroll view size by calling frameSizeForContentSize:.

darin's avatar
darin committed
2502 2503 2504 2505
2003-09-22  Darin Adler  <darin@apple.com>

        * WebCore.pbproj/project.pbxproj: Rename Mixed build style to OptimizedWithSymbols.

darin's avatar
darin committed
2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521
2003-09-22  Darin Adler  <darin@apple.com>

        Reviewed by Ken.

        - research determined we were using nothing defined in config.h, so I got rid of it

        * Makefile.am: Removed rules to generate config.h.
        * config.h: Removed.

        * WebCore.pbproj/project.pbxproj: Removed define of HAVE_CONFIG_H.

        * WebCorePrefix.h: Removed include of <config.h>.

        * ForwardingHeaders/config.h: Emptied this file out. Can't remove this because there are
        some includes of <config.h> without HAVE_CONFIG_H wrappers.

darin's avatar
darin committed
2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537
2003-09-21  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - fixed 3106411 -- show title attribute for page elements in tooltip on mouseover (important for PeopleSoft)

        * kwq/WebCoreBridge.mm: (-[WebCoreBridge elementAtPoint:]): Set the value of a new element dictionary
        key, WebCoreElementTitleKey. This gives the title for an element, walking up the DOM tree as necessary
        to find it. It's used for tool tips at the WebKit level.
        * kwq/WebCoreBridge.h: Added WebCoreElementTitleKey and WebCorePageCacheStateKey.

        * WebCore.exp: Added all the constants from WebCoreBridge.h; these should be exported even though they
        are not being used at the moment because the "WebCore and WebKit use the same constant keys" hack we
        are doing at the WebKit level means we can just use the WebKit keys on the WebKit side.
        * WebCore-combined.exp: Regenerated.

darin's avatar
darin committed
2538 2539 2540 2541 2542 2543 2544 2545
2003-09-20  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - fixed 3328481 -- selection in select element list box does not scroll into view when set programatically

        * kwq/KWQListBox.mm: (QListBox::setSelected): Scroll newly-selected item into view.

darin's avatar
darin committed
2546 2547 2548 2549 2550 2551 2552 2553
2003-09-20  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - fixed 3429384 -- REGRESSION (89-90): nil-deref in KHTMLPart::write() (cheshiremotorcyclesalvage.com)

        * khtml/khtml_part.cpp: (KHTMLPart::write): Add a nil check.

darin's avatar
darin committed
2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582
2003-09-20  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - more fixes for the W3C DOM tests

        * khtml/dom/dom_doc.cpp: (Document::createAttributeNS): Check that the attribute name
        is valid and throw INVALID_CHARACTER_ERR if not.

        * khtml/dom/dom_element.cpp:
        (Element::removeAttributeNode): Get the attribute name properly. The old code would always
        get a 0, so this function would always fail.
        (Element::setAttributeNS): Check that the attribute name is valid and throw
        INVALID_CHARACTER_ERR if not.
        (Element::setAttributeNodeNS): Remove redundant exception checks that are also done by
        setNamedItem in the implementation. I had to change the implementation of one, so I decided
        it was better not to have any duplication.

        * khtml/xml/dom_docimpl.h: Added isValidName function.
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::createHTMLElement): Check that the attribute name is valid and throw
        INVALID_CHARACTER_ERR if not.
        (DocumentImpl::isValidName): Added. Used to check for valid names.

        * khtml/xml/dom_elementimpl.cpp:
        (NamedAttrMapImpl::setNamedItem): Don't do the document check until after checking for
        the "replace self" case. Otherwise we raise a spurious "in use" exception.
        (NamedAttrMapImpl::addAttribute): Point the new attribute at the element.

mjs's avatar
mjs committed
2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594
2003-09-19  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Darin.

	Roll out old fix for 3410980 and do a new better fix.

        * khtml/html/html_documentimpl.cpp:
        (HTMLDocumentImpl::close):
        * khtml/khtml_part.h:
        * kwq/KWQKHTMLPart.mm:
        * kwq/WebCoreBridge.h:

darin's avatar
darin committed
2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636
2003-09-19  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - update layout tests for Dave's change

        * layout-tests/apple-only/base/www.excite.com/index-expected.txt:
        * layout-tests/fast/block/positioning/051-expected.txt:
        * layout-tests/fast/overflow/003-expected.txt:

        - fixed 3426272 -- sites that use text-shadow cause leaks (QPainter::setShadow)

        * kwq/KWQPainter.mm: (QPainter::setShadow): Release the color space and color.

        - fixed some errors that caused failures in the W3C DOM suite

        * khtml/ecma/kjs_binding.cpp:
        (DOMObject::get): Put "code" in the error object.
        (DOMObject::put): Put "code" in the error object.
        (DOMFunction::get): Put "code" in the error object.

        * khtml/ecma/kjs_dom.cpp: (DOMCharacterDataProtoFunc::tryCall):
        Add checks for negative count values. Not clear whether this change is
        really great, but it helps us pass W3C DOM tests and clearly won't affect
        normal pages in any bad way.

        * khtml/xml/dom_elementimpl.cpp:
        (AttrImpl::AttrImpl): Set m_specified to true. Since we never set up the
        attributes from the DTD anyway, this is fine for now. If we ever go crazy
        and implement that, then the bit field is sitting here waiting for us.
        (NamedAttrMapImpl::removeNamedItem): The comment from KHTML says they
        don't raise the not found exception because "the DOM 2 spec doesn't say
        you should". But the DOM Level 1 specification clearly does, and the W3C
        DOM Level 1 Core test requires it, so I'm putting it in.

        * khtml/xml/dom_nodeimpl.cpp: (NodeImpl::checkAddChild): Typo; this was
        returning the wrong error code in the "wrong document" case.

        * khtml/xml/dom_stringimpl.cpp:
        (DOMStringImpl::remove): Fix overflow case.
        (DOMStringImpl::substring): Fix overflow case.
        
2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715
2003-09-19  David Hyatt  <hyatt@apple.com>

	Fix for 3401409, fix negative z-index.  This code actually substantially
	reworks layers to be more efficient in both painting and event handling.
	It also fixes bugs with clipping as well as with negative z-indices.
	
        Reviewed by kocienda

        * khtml/css/cssstyleselector.cpp:
        * khtml/rendering/render_block.cpp:
        * khtml/rendering/render_block.h:
        * khtml/rendering/render_box.cpp:
        (RenderBox::setStyle):
        (RenderBox::repaintRectangle):
        * khtml/rendering/render_box.h:
        * khtml/rendering/render_frames.cpp:
        (RenderFrameSet::nodeAtPoint):
        * khtml/rendering/render_frames.h:
        * khtml/rendering/render_image.cpp:
        (RenderImage::nodeAtPoint):
        * khtml/rendering/render_image.h:
        * khtml/rendering/render_inline.cpp:
        (RenderInline::nodeAtPoint):
        * khtml/rendering/render_inline.h:
        * khtml/rendering/render_layer.cpp:
        (RenderLayer::RenderLayer):
        (RenderLayer::~RenderLayer):
        (RenderLayer::updateLayerPosition):
        (RenderLayer::stackingContext):
        (RenderLayer::enclosingPositionedAncestor):
        (RenderLayer::transparentAncestor):
        (RenderLayer::addChild):
        (RenderLayer::removeChild):
        (RenderLayer::convertToLayerCoords):
        (RenderLayer::checkScrollbarsAfterLayout):
        (RenderLayer::paintScrollbars):
        (RenderLayer::paint):
        (setClip):
        (restoreClip):
        (RenderLayer::paintLayer):
        (RenderLayer::nodeAtPoint):
        (RenderLayer::nodeAtPointForLayer):
        (RenderLayer::calculateClipRects):
        (RenderLayer::calculateRects):
        (RenderLayer::intersectsDamageRect):
        (RenderLayer::containsPoint):
        (hoverAncestor):
        (commonAncestor):
        (RenderLayer::updateHoverActiveState):
        (sortByZOrder):
        (RenderLayer::dirtyZOrderLists):
        (RenderLayer::updateZOrderLists):
        (RenderLayer::collectLayers):
        * khtml/rendering/render_layer.h:
        * khtml/rendering/render_object.cpp:
        (RenderObject::setStyle):
        (RenderObject::document):
        (RenderObject::renderArena):
        (RenderObject::nodeAtPoint):
        * khtml/rendering/render_object.h:
        * khtml/rendering/render_text.cpp:
        (RenderText::nodeAtPoint):
        * khtml/rendering/render_text.h:
        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::DocumentImpl):
        (DocumentImpl::~DocumentImpl):
        (DocumentImpl::recalcStyleSelector):
        (DocumentImpl::setHoverNode):
        * khtml/xml/dom_docimpl.h:
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::paint):
        (KWQKHTMLPart::paintSelectionOnly):
        (KWQKHTMLPart::adjustPageHeight):
        * kwq/KWQRect.h:
        * kwq/KWQRenderTreeDebug.cpp:
        (write):
        (writeLayers):
        (externalRepresentation):

darin's avatar
darin committed
2716 2717 2718 2719 2720 2721
2003-09-19  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        * layout-tests: Updated for my mini-controls change.

darin's avatar
darin committed
2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777
2003-09-19  Darin Adler  <darin@apple.com>

        Reviewed by Dave.

        - do the prep work for the mini controls feature; Dave will finish this

        * khtml/rendering/render_form.cpp: (RenderFormElement::updateFromElement):
        Tell the widget about the font size. Our widgets use the font size to
        decide whether to use Aqua normal, small, or mini.

        * kwq/KWQButton.h: Add setFont.
        * kwq/KWQButton.mm:
        (QButton::setFont): Set control size based on font.
        (KWQNSControlSizeForFont): Determine control size given a font. Dave is going
        to tweak this later.

        * kwq/KWQCheckBox.h: Add dimensions function for metrics for each control size.
        * kwq/KWQCheckBox.mm:
        (QCheckBox::sizeHint): Use dimensions.
        (QCheckBox::frameGeometry): Use dimensions.
        (QCheckBox::setFrameGeometry): Use dimensions.
        (QCheckBox::baselinePosition): Use dimensions.
        (QCheckBox::dimensions): Added. Has newly tweaked values for all dimensions for
        all three control sizes.

        * kwq/KWQComboBox.h: Add setFont and dimensions.
        * kwq/KWQComboBox.mm:
        (QComboBox::sizeHint): Use dimensions.
        (QComboBox::frameGeometry): Use dimensions.
        (QComboBox::setFrameGeometry): Use dimensions.
        (QComboBox::baselinePosition): Use dimensions.
        (QComboBox::setFont): Use dimensions.
        (QComboBox::dimensions): Added. Has newly tweaked values for all dimensions for
        all three control sizes.

        * kwq/KWQFileButton.mm: (KWQFileButton::baselinePosition): Change to adapt to
        flipped version of file button NSControl.

        * kwq/KWQPushButton.h: Add dimensions function for metrics for each control size.
        * kwq/KWQPushButton.mm:
        (QPushButton::sizeHint): Use dimensions.
        (QPushButton::frameGeometry): Use dimensions.
        (QPushButton::setFrameGeometry): Use dimensions.
        (QPushButton::baselinePosition): Use dimensions.
        (QPushButton::dimensions): Added. Has newly tweaked values for all dimensions for
        all three control sizes.

        * kwq/KWQRadioButton.h: Add dimensions function for metrics for each control size.
        * kwq/KWQRadioButton.mm:
        (QRadioButton::sizeHint): Use dimensions.
        (QRadioButton::frameGeometry): Use dimensions.
        (QRadioButton::setFrameGeometry): Use dimensions.
        (QRadioButton::baselinePosition): Use dimensions.
        (QRadioButton::dimensions): Added. Has newly tweaked values for all dimensions for
        all three control sizes.

mjs's avatar
mjs committed
2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793
2003-09-19  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Darin.
	
	- fixed 3410980 - FileMaker: going forward with an empty forward list makes a frame come out blank sometimes
	
        * khtml/html/html_documentimpl.cpp:
        (HTMLDocumentImpl::close): Remove redundant check removed.
        * khtml/khtml_part.h:
        * kwq/KWQKHTMLPart.h:
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::scheduleHistoryNavigation): Only call the base class
	method to actually schedule when it's possible to go back or forward
	that number of steps.
        * kwq/WebCoreBridge.h:

sullivan's avatar
sullivan committed
2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840
2003-09-17  John Sullivan  <sullivan@apple.com>

	- WebCore part of fix for 3157018 -- Would like option to
	not print backgrounds	

        Reviewed by Darin

        * kwq/KWQKHTMLSettings.h:
	add _shouldPrintBackgrounds field and accessors

        * kwq/WebCoreSettings.h:
	add shouldPrintBackgrounds field and accessors
        * kwq/WebCoreSettings.mm:
        (-[WebCoreSettings setShouldPrintBackgrounds:]):
	new method, passes value to KHTMLSettings
        (-[WebCoreSettings shouldPrintBackgrounds]):
	new method

        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge styleSheetForPrinting]):
	new method, returns a style sheet that has backgrounds
	turned off if preference is set that way.
        (-[WebCoreBridge reapplyStylesForDeviceType:]):
	if printing, set the printStyleSheet to the one we
	created based on the preferences. (KHTML has always
	had support for a special printStyleSheet, but it was
	only being used in !APPLE_CHANGES code.)

        * khtml/rendering/render_style.h:
	add shouldCorrectTextColor boolean field and accessors 

        * khtml/xml/dom_docimpl.cpp:
        (DocumentImpl::recalcStyle):
	tell style to correct text colors if backgrounds aren't being printed

        * khtml/rendering/render_text.cpp:
        (TextRun::paintSelection):
	added comment
        (simpleDifferenceBetweenColors):
	new function, computes a quick measure of difference
	between colors
        (correctedTextColor):
	if text and background colors are too similar, returns
	lightened or darkened text color
        (RenderText::paintObject):
	if style says to correct text colors, call correctedTextColor

darin's avatar
darin committed
2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851
2003-09-17  Darin Adler  <darin@apple.com>

        Reviewed by Ken.

        - fixed 3423404 -- REGRESSION: Japanese page appears blank due to unexpected kTECPartialCharErr

        * kwq/KWQTextCodec.mm: (KWQTextDecoder::convertOneChunkUsingTEC): In the case where we're already
        going from the small buffer back to the large one, treat kTECPartialCharErr the same as noErr.
        Otherwise we'll get confused and drop the contents of the big buffer.
        (KWQTextDecoder::convert): Improve the debugging code a bit (still turned off).

2852 2853
=== WebCore-105 ===

darin's avatar
darin committed
2854 2855 2856 2857 2858 2859 2860 2861 2862 2863
2003-09-15  Ken as Darin  <darin@apple.com>

        Reviewed by Darin and Don.

        - fixed 3419957 -- REGRESSION: lines drawn across multiple columns at washingtonpost.com

        * khtml/rendering/render_box.cpp: (RenderBox::calcWidth): Always use the width of the line
        rather than the width of the containing block for "flow around floats" blocks (<hr>).
        This undoes half of the change made to fix bug 3384609.

darin's avatar
darin committed
2864 2865 2866 2867 2868 2869 2870 2871
2003-09-15  Darin Adler  <darin@apple.com>

        Reviewed by Ken and Don.

        - fixed 3417604 -- REGRESSION: dragging scroll thumb causes textarea contents to vanish

        * kwq/KWQTextArea.mm: (-[KWQTextArea initWithFrame:]): Deallocated cached graphics state for
        the text view as well as for the clip view.
vicki's avatar
vicki committed
2872

darin's avatar
darin committed
2873 2874 2875 2876 2877 2878 2879 2880 2881
2003-09-13  Darin Adler  <darin@apple.com>

        Reviewed by Maciej.

        - fixed 3420547 -- REGRESSION: repro crash in khtml::RenderBlock::findNextLineBreak (wisdomtips.com)

        * khtml/rendering/render_block.cpp: (RenderBlock::addChildToFlow): Exclude BR elements when looking for
        an element to process first-letter style.

2882 2883 2884 2885 2886
2003-09-13  Darin Adler  <darin@apple.com>

        * layout-tests/fast/frames/empty-frame-src-expected.txt: Updated test results that changed
        due to the change in our handling of frame borders.

vicki's avatar
vicki committed
2887 2888
=== WebCore-104 ===

rjw's avatar
rjw committed
2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903
2003-09-12  Richard Williamson   <rjw@apple.com>

	Fixed 3420097.  Pass flag up to WebKit indicating that redirects are being cancelled during a pending load.

        Reviewed by Darin.

        * khtml/khtml_part.cpp:
        (KHTMLPart::cancelRedirection):
        * khtml/khtml_part.h:
        * khtml/khtmlpart_p.h:
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::provisionalLoadStarted):
        (KWQKHTMLPart::redirectionTimerStartedOrStopped):
        * kwq/WebCoreBridge.h:

2904 2905
=== WebCore-103 ===

mjs's avatar
mjs committed
2906 2907 2908 2909 2910 2911 2912
2003-09-12  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Darin.

        * khtml/css/html4.css: Use the same hardcoded default size for
	OBJECT and EMBED tags as for IFRAME.

darin's avatar
darin committed
2913 2914 2915 2916 2917
2003-09-12  Darin Adler  <darin@apple.com>

        Reviewed by Ken.

        - fixed 3403223 -- <input type=file> with initial value causes exception, bad results afterwards, when submitted
mjs's avatar
mjs committed
2918

darin's avatar
darin committed
2919 2920 2921 2922
        * kwq/KWQFile.mm: (QFile::QFile): Don't pass an empty string to fileSystemRepresentation,
        because that will cause an exception.

=== WebCore-101 ===
mjs's avatar
mjs committed
2923

rjw's avatar
rjw committed
2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945
2003-09-11  Richard Williamson   <rjw@apple.com>

	Fixed 3406671.  Added a private method for Mail to get selection
	rect.

	Fixed 3417688.  Don't allow https page into page cache.

        Reviewed by Darin.

        * kwq/KWQFrame.h:
        * kwq/KWQFrame.mm:
        (QFrame::setFrameStyle):
        (QFrame::frameWidth):
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::canCachePage):
        * kwq/WebCoreBridge.h:
        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge selectionRect]):
        (-[WebCoreBridge visibleSelectionRect]):
        (-[WebCoreBridge selectionImage]):
        (-[WebCoreBridge adjustViewSize]):

vicki's avatar
vicki committed
2946 2947
=== Safari-100 ===

darin's avatar
darin committed
2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964
2003-09-09  Darin Adler  <darin@apple.com>

        Reviewed by Chris.

        - fixed 3373654 -- REGRESSION: Yahoo chat applet reloads over and over due to "baseURL" param name conflict

        After some research by the Java team, we discovered that there was no need to
        pass in baseURL at all This patch gets rid of that by only passingindividual specified
        arguments, rather than passing all the arguments, as applet parameters.

        * khtml/rendering/render_applet.cpp: (RenderApplet::processArguments): Remove the
        call to KJavaApplet::processArguments, because we only want the individual arguments.
        * kwq/KWQKJavaAppletWidget.h: Implement setAppletClass, setAppletName, setArchives, and
        setCodeBase. Remove processArguments.
        * kwq/KWQKJavaAppletWidget.mm: (KJavaAppletWidget::setParameter): Lowercase all the
        parameters as we put them in the dictionary, since this is the semantics required by Java.

vicki's avatar
vicki committed
2965 2966
=== Safari-99 ===

darin's avatar
darin committed
2967 2968 2969 2970 2971 2972 2973 2974 2975 2976
2003-09-07  Darin Adler  <darin@apple.com>

        Reviewed by Maciej.

        - fixed 3411827 -- REGRESSION: text drawing after text-shadow does not respect smoothing style (asahi.com)

        * kwq/KWQPainter.mm: (QPainter::clearShadow): Call CGContextSetShadowWithColor with a color of NULL,
        which actually clears the shadow, rather than CGContextSetShadow, which sets a black shadow (even
        if it is zero pixels in size).

vicki's avatar
vicki committed
2977 2978
=== Safari-98 ===

kocienda's avatar
kocienda committed
2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000
2003-09-05  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Darin

	Fix for this bug:

	<rdar://problem/3226083>: REGRESSION (Panther): white box 
	overlaying select lists at nvidia.com drivers page

        * kwq/KWQListBox.mm:
        (QListBox::QListBox): Re-add releaseGState fix that Darin
	added, but then removed. It turns out that we do need 
	this workaround in place to get proper drawing.

	Fix for this bug:

	<rdar://problem/3310943>: REGRESSION (Panther): textareas 
	in forms sometimes draw blank (bugreporter)

        * kwq/KWQTextArea.mm:
        (-[KWQTextArea initWithFrame:]): Same fix as above.

mjs's avatar
mjs committed
3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019
2003-09-05  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Darin.

	- fixed - REGRESSION (85-92): Javascript on page isn't triggered by typed characters (onKeyUp)

	(This actually also requires an AppKit fix to be a full fix.)

        * kwq/KWQListBox.mm:
        (-[KWQTableView keyDown:]): Added. Send event through DOM.
        (-[KWQTableView keyUp:]): Likewise.
        (-[KWQTableView becomeFirstResponder]): Added. Report focus change
	to DOM.
	* kwq/KWQTextArea.mm:
        (-[KWQTextAreaTextView keyUp:]): Added. Send event through DOM.
        * kwq/KWQTextField.mm:
        (-[KWQTextField textView:shouldHandleEvent:]): Pass NSKeyUp events too
	(not going to work until we get an AppKit fix).

3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032
2003-09-04  John Sullivan  <sullivan@apple.com>

	- fixed 3399880 -- Repro crash when filling out a form to
	download Macromedia software. I managed to check in this
	ChangeLog comment a few days ago without actually checking
	in the changed file, weird.

        Reviewed by Chris

        * kwq/WebCoreBridge.mm:
        (-[WebCoreBridge elementForView:]):
	check for nil widget before dereferencing

3033 3034 3035 3036 3037 3038 3039 3040 3041 3042
2003-09-04  David Hyatt  <hyatt@apple.com>

	Fix for 3408630, leak of child frame parts caused by a missing deref when frames
	get detached from their parent frame list.
	
        Reviewed by mjs

        * kwq/KWQKHTMLPart.mm:
        (KHTMLPart::frameDetached):

3043 3044 3045 3046 3047
2003-09-04  Darin Adler  <darin@apple.com>

        * layout-tests/apple-only/base/www.msn.com/index-expected.txt: Update for residual style fix.
        * layout-tests/fast/invalid/003-expected.txt: Update for residual style fix.

3048 3049 3050 3051 3052
2003-09-04  Darin Adler  <darin@apple.com>

        * kwq/KWQRenderTreeDebug.cpp: (write): Fix clip rectangle computation.
        * layout-tests: Update test results.

vicki's avatar
vicki committed
3053 3054
=== Safari-97 ===

mjs's avatar
mjs committed
3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065
2003-09-03  Maciej Stachowiak  <mjs@apple.com>

        Reviewed by Darin.

        * khtml/khtml_part.cpp:
	(KHTMLPart::clear): Un-ifdef cleanup of frames, and add similar
	cleanup for objects. Replace delete with deref.
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::createPart): Add an extra ref to KHTMLParts since
	both the bridge and the parent part want to deref.

3066 3067 3068 3069 3070 3071 3072 3073 3074 3075
2003-09-03  David Hyatt  <hyatt@apple.com>

	Fix for 3404398, leak in residual style code.  The code that built up the
	residualStyleStack was messed up and discarded tags.
	
        Reviewed by mjs

        * khtml/html/htmlparser.cpp:
        (KHTMLParser::popBlock):

kocienda's avatar
kocienda committed
3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089
2003-09-02  Ken Kocienda  <kocienda@apple.com>

        Reviewed by Darin

	Fix for this bug:

	<rdar://problem/3399169>: 4 leaks of DOMString objects (Mail)

	Remove circular reference between AttributeImpl and AttrImpl objects.
	This was causing the leak.

        * khtml/xml/dom_elementimpl.cpp:
        (AttributeImpl::allocateImpl):

3090 3091 3092 3093 3094 3095 3096 3097 3098
2003-09-02  David Hyatt  <hyatt@apple.com>

	Fix for 3359408, DirWS should not be used when collapsing/stripping spaces,
	since only ASCII spaces are supposed to be collapsed/stripped.
	
        Reviewed by mjs

        * khtml/rendering/bidi.cpp:

darin's avatar
darin committed
3099 3100 3101 3102 3103 3104 3105 3106 3107
2003-09-02  Darin Adler  <darin@apple.com>

        Reviewed by John.

        - fixed 3403388 -- decoder mishandles pages which fill the decoding buffer (mainly ISO-2022-JP)

        * kwq/KWQTextCodec.mm: (KWQTextDecoder::convertUsingTEC): Keep decoding, passing in no additional bytes,
        until we get noErr, don't ever stop after a kTECOutputBufferFullStatus error.

3108 3109 3110