1. 17 Dec, 2002 1 commit
    • mjs's avatar
      Reviewed by Darin. · 1dbdf723
      mjs authored
      	- fixed 3125283 - HOMEPAGE: in onload of an IMG, the width and height are equal to zero
      
      	There were two problems here. First, the calls to get image width
      	and height didn't force a layout in all the cases where it was
      	required. Second, layout wouldn't lay out images at all until
      	parsing was done, due to a hack to block inline layout until that
      	point. I'm not sure if this will have other bad consquences, but
      	nearly every page I tried, including Hebrew and Japanese pages as
      	well as every page on the base PLT laid out properly.
      
              * khtml/html/html_imageimpl.cpp:
              (HTMLImageElementImpl::width): Force a layout if not laid out.
              (HTMLImageElementImpl::height): Likewise.
              * khtml/html/htmlparser.cpp:
      	(KHTMLParser::insertNode): Remove setBlockBidi hack - this was
      	preventing images from getting laid out until the document was
      	totally done parsing.
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::RenderFlow): More setBLockBidi removal.
              (RenderFlow::layout): Likewise.
              (RenderFlow::close): Likewise.
              (RenderFlow::addChildToFlow): Likewise.
              (RenderFlow::printTree): Likewise.
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3097 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1dbdf723
  2. 14 Dec, 2002 1 commit
    • hyatt's avatar
      Fix for 3016385, menus on webreference.com don't show up. · 953820ad
      hyatt authored
      	Fixes to make webreference.com menus show up.  This involved
      	fixing layers to not clip positioned objects when overflow:hidden
      	is set, fixing the stupid clip/sync layout hack for livepage
      	so that it doesn't break webreference, and implementing
      	navigator.productSub (right now the date is set to
      	Christmas 2002).
      
              Reviewed by gramps/maciej.
      
              * khtml/ecma/kjs_navigator.cpp:
              (Navigator::getValueProperty):
              * khtml/ecma/kjs_navigator.h:
              * khtml/ecma/kjs_navigator.lut.h:
              * khtml/rendering/render_box.cpp:
              (RenderBox::getOverflowClipRect):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::layout):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::paint):
              (RenderLayer::nodeAtPoint):
              (RenderLayer::constructZTree):
              * khtml/rendering/render_layer.h:
              * khtml/rendering/render_object.cpp:
              (RenderObject::setLayouted):
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3054 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      953820ad
  3. 13 Dec, 2002 2 commits
    • rjw's avatar
      Fixed 3127310 and 3127920. · 3f425be4
      rjw authored
              Implemented findWordBoundary.  We now correctly detect word boundaries.
              This function makes use of carbon unicode utilities.
      
              With help from hyatt, made selection correctly account for render
              continuations.  This fixes many of the 'unable to select' issues.
      
              Reviewed by trey and hyatt.
      
              * khtml/khtml_events.cpp:
              (khtml::MouseEvent::offset):
              * khtml/khtml_part.cpp:
              (findWordBoundary):
              (KHTMLPart::khtmlMousePressEvent):
              (KHTMLPart::khtmlMouseMoveEvent):
              * khtml/rendering/render_object.cpp:
              (RenderObject::checkSelectionPoint):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_text.cpp:
              (RenderText::checkSelectionPoint):
              * khtml/rendering/render_text.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3050 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3f425be4
    • hyatt's avatar
      Fix for 3121865, content missing at disney.com. Make · dda1d1b4
      hyatt authored
      	sure blocks track width overflow as well as height
      	overflow and ensure that a layer's dimensions expand
      	to encompass both width and height overflow.
      
      	Also fixes a bug with line breaking that allowed unbreakable
      	words to actually be broken up when they were the only word
      	on a line.  This is wrong and differs from all other
      	browsers, so the patch in bidi.cpp fixes us to match
      	other browsers.  (This was required to fix the above bug.)
      
              Reviewed by mjs.
      
              * khtml/rendering/bidi.cpp:
              (RenderFlow::findNextLineBreak):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::RenderFlow):
              (RenderFlow::layout):
              (RenderFlow::layoutBlockChildren):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::updateLayerPosition):
              * khtml/rendering/render_object.cpp:
              (RenderObject::nodeAtPoint):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_table.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      dda1d1b4
  4. 06 Dec, 2002 1 commit
    • hyatt's avatar
      Sigh. I forgot to commit the first layer fix (that has already · 7133ed22
      hyatt authored
      	been reviewed), so now this is also including that.
      
      	The first layer fix was to deal with the yale.edu crasher.
      	It involved making sure that append/remove of render object
      	trees drill down into those trees to remove/append corresponding
      	layers (instead of just checking the root of the trees).
      
      	The second fix involves making sure that cliprects are right
      	for painting backgrounds and borders of clipped objects.
      	Fixes benoit's bug.
      
              Reviewed by: mjs and darin (fix 1), mjs and gramps (fix 2)
      
              * khtml/rendering/render_container.cpp:
              (RenderContainer::removeChildNode):
              (RenderContainer::appendChildNode):
              (RenderContainer::insertChildNode):
              * khtml/rendering/render_container.h:
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::paint):
              (RenderLayer::constructZTree):
              * khtml/rendering/render_layer.h:
              * khtml/rendering/render_object.cpp:
              (RenderObject::appendLayers):
              (RenderObject::removeLayers):
              (RenderObject::enclosingLayer):
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2965 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7133ed22
  5. 05 Dec, 2002 1 commit
  6. 04 Dec, 2002 1 commit
    • hyatt's avatar
      Fix shroudedisles.com table misalignment by removing more\ · 4948ef9f
      hyatt authored
      	bogus rules from html4.css.
      
      	Fix forums on macosx.com by implementing support for the align
      	attribute on the <P> tag.
      
      	Implement min-width and max-width for block level floating
      	and normal flow elements.
      
      	Fix event handling so that :hover notifications get through to
      	objects inside floats.
      
              Reviewed by: rjw
      
              * khtml/css/html4.css:
              * khtml/html/html_blockimpl.cpp:
              (HTMLParagraphElementImpl::parseAttribute):
              * khtml/html/html_blockimpl.h:
              * khtml/rendering/render_box.cpp:
              (RenderBox::calcWidth):
              (RenderBox::calcWidthUsing):
              (RenderBox::calcHeight):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::layoutBlockChildren):
              (RenderFlow::nodeAtPoint):
              * khtml/rendering/render_flow.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_object.cpp:
              (RenderObject::nodeAtPoint):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_root.cpp:
              (RenderRoot::calcHeight):
              * khtml/rendering/render_style.cpp:
              (StyleBoxData::StyleBoxData):
              * khtml/rendering/render_text.cpp:
              (RenderText::nodeAtPoint):
              * khtml/rendering/render_text.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2937 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4948ef9f
  7. 27 Nov, 2002 1 commit
    • hyatt's avatar
      Numerous overflow: hidden improvements to fix espn.com. · 81607eb8
      hyatt authored
      	First stop absolute positioned overflow hidden elements
      	from growing to accommodate their overflow.  (Actually
      	absolute positioned elements should never grow to do this,
      	but fixing it for non-overflow hidden elements is hard,
      	so later.)
      
      	Second fix the render layer code to not allow background/borders
      	of the object with overflow: hidden from being clipped.  This
      	involves an extra paint step where the object paints its
      	background and borders prior to establishing the clip rect
      	for the children.  (This will also be necessary for overflow:auto
      	and overflow:scroll).
      
              * ChangeLog:
              * khtml/rendering/render_box.cpp:
              (RenderBox::getClipRect):
              (RenderBox::calcAbsoluteVertical):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::paint):
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2892 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      81607eb8
  8. 24 Nov, 2002 1 commit
    • hyatt's avatar
      This landing adds support for blocks inside inlines. It · d18db816
      hyatt authored
      	gets rid of the old broken way KHTML used to handle this
      	and implements a brand new mechanism.
      
      	With this change, I have decreased the tag priority of <font>
      	and <a> to match other inlines (<i>, <span>, etc.), and I
      	now allow all the inlines to contain blocks for relaxed parsing.
      
      	Now if you open an <i> or a <b> and just leave it open across
      	blocks, this will work.
      
      	I also fixed a bad DHTML bug caused by the WebCoreBridge
      	forceLayout method.  The basic pattern is that someone does
      	a tiny repaint of just a sliver of the window, then someone
      	schedules a layout (which means they want a full repaint), but
      	then drawRect comes along and calls forceLayout which unschedules
      	the layout, thus preventing the full repaint from occurring.
      
      	Any basic DHTML that used append/remove child was broken because
      	of this pattern.  For now I have just removed the unscheduleLayout
      	call at the end of forceLayout.
      
              * khtml/html/dtd.cpp:
              (DOM::checkChild):
              * khtml/html/htmlparser.cpp:
              (KHTMLParser::popInlineBlocks):
              * khtml/rendering/render_container.cpp:
              (RenderContainer::removeChild):
              (RenderContainer::removeLeftoverAnonymousBoxes):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::setStyle):
              (RenderFlow::layoutBlockChildren):
              (RenderFlow::continuationBefore):
              (cloneInline):
              (RenderFlow::splitInlines):
              (RenderFlow::splitFlow):
              (RenderFlow::addChildWithContinuation):
              (RenderFlow::addChild):
              (RenderFlow::addChildToFlow):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_object.cpp:
              (RenderObject::mouseInside):
              * khtml/rendering/render_object.h:
              * kwq/KWQKHTMLPart.mm:
              (KWQKHTMLPart::forceLayout):
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge copyRenderNode:copier:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2854 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d18db816
  9. 19 Nov, 2002 2 commits
    • hyatt's avatar
      Fix for 3049663. Table cells don't grow to accommodate block · a70560aa
      hyatt authored
      	overflow.
      
              * khtml/rendering/bidi.cpp:
              (RenderFlow::layoutInlineChildren):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::RenderFlow):
              (RenderFlow::layout):
              (RenderFlow::layoutBlockChildren):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a70560aa
    • hyatt's avatar
      Implement phased painting to correct the paint order of blocks, · c12f0487
      hyatt authored
      	floats, and inlines.
      
              * khtml/rendering/render_body.cpp:
              (RenderBody::paintBoxDecorations):
              * khtml/rendering/render_body.h:
              * khtml/rendering/render_box.cpp:
              (RenderBox::paint):
              (RenderBox::paintBoxDecorations):
              (RenderBox::paintBackground):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_br.h:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::paint):
              (RenderFlow::paintObject):
              (RenderFlow::paintFloats):
              (RenderFlow::addChild):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_html.cpp:
              (RenderHtml::setStyle):
              (RenderHtml::paint):
              (RenderHtml::paintBoxDecorations):
              * khtml/rendering/render_html.h:
              * khtml/rendering/render_image.cpp:
              (RenderImage::setStyle):
              (RenderImage::paintObject):
              * khtml/rendering/render_image.h:
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::paint):
              (RenderLayer::nodeAtPoint):
              * khtml/rendering/render_list.cpp:
              (RenderListItem::paint):
              (RenderListItem::paintObject):
              (RenderListMarker::paint):
              (RenderListMarker::paintObject):
              * khtml/rendering/render_list.h:
              * khtml/rendering/render_object.cpp:
              (RenderObject::RenderObject):
              (RenderObject::paintBorder):
              (RenderObject::paintOutline):
              (RenderObject::paint):
              (RenderObject::dump):
              (RenderObject::setStyle):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              (RenderReplaced::paint):
              (RenderWidget::setStyle):
              (RenderWidget::paintObject):
              * khtml/rendering/render_replaced.h:
              * khtml/rendering/render_root.cpp:
              (RenderRoot::paint):
              (RenderRoot::paintObject):
              * khtml/rendering/render_root.h:
              * khtml/rendering/render_table.cpp:
              (RenderTable::paint):
              (RenderTableCell::RenderTableCell):
              (RenderTableCell::setStyle):
              (RenderTableCell::paint):
              (RenderTableCell::paintBoxDecorations):
              * khtml/rendering/render_table.h:
              * khtml/rendering/render_text.cpp:
              (TextSlave::paintSelection):
              (TextSlave::paintDecoration):
              (TextSlave::paintBoxDecorations):
              (RenderText::paintObject):
              (RenderText::paint):
              (RenderText::paintTextOutline):
              * khtml/rendering/render_text.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2752 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c12f0487
  10. 17 Nov, 2002 2 commits
    • hyatt's avatar
      Add support for specifying whether repaint should be immediate or · 7d5a4793
      hyatt authored
      	not.  Default to async for now to maintain current behavior.
      
      	For clipped object repainting (e.g., livepage.apple.com and mrskin)
      	switch to immediate repainting, since this makes the marquees
      	faster, stops dropping updates, and keeps the hover effects and
      	painting on the rest of the page fast (since the marquee rect doesn't
      	get unioned with links or images that you roll over).
      
              * khtml/rendering/render_box.cpp:
              (RenderBox::repaint):
              (RenderBox::repaintRectangle):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_html.cpp:
              (RenderHtml::repaint):
              * khtml/rendering/render_html.h:
              * khtml/rendering/render_object.cpp:
              (RenderObject::setLayouted):
              (RenderObject::repaintRectangle):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_root.cpp:
              (RenderRoot::repaintRectangle):
              (RenderRoot::repaint):
              * khtml/rendering/render_root.h:
              * khtml/rendering/render_table.cpp:
              (RenderTableRow::repaint):
              (RenderTableCell::repaintRectangle):
              (RenderTableCell::repaint):
              * khtml/rendering/render_table.h:
              * khtml/rendering/render_text.cpp:
              (RenderText::repaint):
              * khtml/rendering/render_text.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2719 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7d5a4793
    • hyatt's avatar
      This is a fix for bug 3058470. The bug was that replaced elements · c84035d7
      hyatt authored
      	were computing their min and max widths wrong.  Specifically they
      	were not adding in borders and padding!  This means that any image
      	with a border around it would potentially break to another line
      	too early.
      
      	Once I fixed this for replaced elements I then went in and
      	fixed form controls.  I added two APPLE_CHANGES features for
      	our form controls.  First I overrode the border/padding functions
      	to always return 0 for all form controls, since no Aqua control
      	honors border/padding (nor should it).  This fixes the menulist
      	at the top of wired.com.
      
      	Second I made sure that certain controls will ignore CSS-specified
      	heights and always use their intrinsic heights.  These include
      	<select size=1> (combobox), single line text fields, and buttons.
      	I allow listboxes and textareas to honor height.
      
              * khtml/rendering/render_box.cpp:
              (RenderBox::contentWidth):
              (RenderBox::contentHeight):
              (RenderBox::calcWidth):
              (RenderBox::calcHeight):
              * khtml/rendering/render_form.h:
              * khtml/rendering/render_image.h:
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              (RenderReplaced::calcMinMaxWidth):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c84035d7
  11. 15 Nov, 2002 1 commit
  12. 13 Nov, 2002 2 commits
    • darin's avatar
      - fixed 3100895 -- REGRESSION: Assertion on http://www.w3.org/Style/CSS/ · aed62356
      darin authored
      	A few arena-related fixes.
      
              * khtml/rendering/bidi.h: Don't define the operator new without the arena parameter.
      	That way, we get a link failure if we use it by accident, rather than an assert at runtime.
      	It would be even better to get a compile-time error, but I don't know how to make that happen.
              * khtml/rendering/render_layer.h: Ditto.
              * khtml/rendering/render_object.h: Ditto.
              * khtml/rendering/render_text.h: Ditto.
      
              * khtml/rendering/render_container.cpp:
              (RenderContainer::addChild): Create the RenderTable with the appropriate arena.
              (RenderContainer::insertPseudoChild): Create the RenderFlow objects with the appropriate arena.
      
              * khtml/rendering/render_text.cpp: (RenderText::deleteSlaves): Don't try to get the arena
      	when there are no slaves. This can happen after the element is nil, and in that case we will
      	do a nil-dereference.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2665 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      aed62356
    • hyatt's avatar
      Rewrite cellpadding to not use the style system at all and · 80844874
      hyatt authored
      	to make table cells just get the padding from the table
      	itself (overriding style).
      
              * khtml/html/html_tableimpl.cpp:
              (HTMLTableElementImpl::HTMLTableElementImpl):
              (HTMLTableElementImpl::attach):
              (HTMLTableElementImpl::parseAttribute):
              (HTMLTableCellElementImpl::init):
              * khtml/html/html_tableimpl.h:
              * khtml/rendering/bidi.cpp:
              (RenderFlow::layoutInlineChildren):
              * khtml/rendering/render_box.cpp:
              (RenderBox::contentWidth):
              (RenderBox::contentHeight):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::layoutBlockChildren):
              (RenderFlow::leftOffset):
              (RenderFlow::rightOffset):
              (RenderFlow::calcMinMaxWidth):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_table.cpp:
              (RenderTable::RenderTable):
              (RenderTableCell::paddingTop):
              (RenderTableCell::paddingBottom):
              (RenderTableCell::paddingLeft):
              (RenderTableCell::paddingRight):
              * khtml/rendering/render_table.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2657 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      80844874
  13. 12 Nov, 2002 1 commit
    • hyatt's avatar
      This patch lands a rewrite of whitespace-handling in the · 33f8d493
      hyatt authored
      	layout engine and adds support for the CSS2 white-space
      	property.
      
      	It also includes a rewrite of inlines' min/max width
      	calculations (for both flow inlines and raw text).
      
      	A problem with <form> margins has been fixed (this is a
      	regression I caused with my collapsing margin checkin).
      
              * WebCore.pbproj/project.pbxproj:
              * khtml/css/html4.css:
              * khtml/html/dtd.cpp:
              (DOM::checkChild):
              * khtml/html/html_baseimpl.cpp:
              (HTMLBodyElementImpl::attach):
              (HTMLFrameElementImpl::attach):
              (HTMLFrameSetElementImpl::attach):
              (HTMLHtmlElementImpl::attach):
              (HTMLIFrameElementImpl::attach):
              * khtml/html/html_formimpl.cpp:
              (HTMLFormElementImpl::HTMLFormElementImpl):
              (HTMLInputElementImpl::attach):
              (HTMLSelectElementImpl::attach):
              (HTMLTextAreaElementImpl::attach):
              * khtml/html/html_formimpl.h:
              * khtml/html/html_imageimpl.cpp:
              (HTMLImageElementImpl::attach):
              * khtml/html/html_inlineimpl.cpp:
              (HTMLBRElementImpl::attach):
              * khtml/html/html_objectimpl.cpp:
              (HTMLAppletElementImpl::attach):
              (HTMLEmbedElementImpl::attach):
              (HTMLObjectElementImpl::attach):
              * khtml/html/htmlparser.cpp:
              (KHTMLParser::reset):
              (KHTMLParser::parseToken):
              (KHTMLParser::insertNode):
              (KHTMLParser::popBlock):
              (KHTMLParser::popOneBlock):
              * khtml/html/htmlparser.h:
              * khtml/html/htmltokenizer.cpp:
              (HTMLTokenizer::addPending):
              (HTMLTokenizer::write):
              * khtml/misc/arena.cpp: Added.
              (CeilingLog2):
              (InitArenaPool):
              (ArenaAllocate):
              (ArenaGrow):
              (FreeArenaList):
              (ArenaRelease):
              (FreeArenaPool):
              (FinishArenaPool):
              (ArenaFinish):
              * khtml/misc/arena.h: Added.
              * khtml/rendering/bidi.cpp:
              (BidiIterator::detach):
              (throw):
              (BidiIterator::operator delete):
              (appendRunsForObject):
              (appendRun):
              (RenderFlow::bidiReorderLine):
              (deleteMidpoints):
              (RenderFlow::layoutInlineChildren):
              (RenderFlow::findNextLineBreak):
              * khtml/rendering/bidi.h:
              * khtml/rendering/render_arena.cpp: Added.
              (RenderArena::RenderArena):
              (RenderArena::~RenderArena):
              (RenderArena::allocate):
              (RenderArena::free):
              * khtml/rendering/render_arena.h: Added.
              * khtml/rendering/render_box.cpp:
              (RenderBox::setStyle):
              (RenderBox::~RenderBox):
              (RenderBox::detach):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_br.cpp:
              (RenderBR::RenderBR):
              * khtml/rendering/render_container.cpp:
              (RenderContainer::~RenderContainer):
              (RenderContainer::detach):
              * khtml/rendering/render_container.h:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::setStyle):
              (RenderFlow::layout):
              (RenderFlow::calcInlineMinMaxWidth):
              (RenderFlow::calcBlockMinMaxWidth):
              (RenderFlow::calcMinMaxWidth):
              (RenderFlow::addChild):
              (RenderFlow::makeChildrenNonInline):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_html.cpp:
              (RenderHtml::RenderHtml):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::~RenderLayer):
              (throw):
              (RenderLayer::operator delete):
              (RenderLayer::detach):
              (RenderLayer::paint):
              (RenderLayer::nodeAtPoint):
              (RenderLayer::constructZTree):
              (RenderLayer::RenderLayerElement::operator delete):
              (RenderLayer::RenderLayerElement::detach):
              (RenderLayer::RenderZTreeNode::operator delete):
              (RenderLayer::RenderZTreeNode::detach):
              * khtml/rendering/render_layer.h:
              * khtml/rendering/render_list.cpp:
              (RenderListItem::setStyle):
              * khtml/rendering/render_object.cpp:
              (throw):
              (RenderObject::operator delete):
              (RenderObject::createObject):
              (RenderObject::renderArena):
              (RenderObject::detach):
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::detach):
              * khtml/rendering/render_replaced.h:
              * khtml/rendering/render_root.cpp:
              (RenderRoot::RenderRoot):
              * khtml/rendering/render_table.cpp:
              (RenderTable::addChild):
              (RenderTable::calcWidth):
              (RenderTable::setCellWidths):
              (RenderTableSection::addChild):
              (RenderTableRow::addChild):
              * khtml/rendering/render_text.cpp:
              (TextSlave::detach):
              (throw):
              (TextSlave::operator delete):
              (TextSlaveArray::TextSlaveArray):
              (RenderText::RenderText):
              (RenderText::~RenderText):
              (RenderText::detach):
              (RenderText::deleteSlaves):
              (RenderText::trimmedMinMaxWidth):
              (RenderText::calcMinMaxWidth):
              (RenderText::position):
              * khtml/rendering/render_text.h:
              * khtml/xml/dom_docimpl.cpp:
              (DocumentImpl::DocumentImpl):
              (DocumentImpl::~DocumentImpl):
              (DocumentImpl::attach):
              (DocumentImpl::detach):
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              (NodeImpl::detach):
              (NodeImpl::isReadOnly):
              (NodeImpl::previousRenderer):
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_stringimpl.cpp:
              * khtml/xml/dom_stringimpl.h:
              * khtml/xml/dom_textimpl.cpp:
              (CharacterDataImpl::containsOnlyWhitespace):
              (TextImpl::attach):
              * khtml/xml/dom_textimpl.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2635 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33f8d493
  14. 22 Oct, 2002 2 commits
    • cblu's avatar
      WebCore: · 68c92173
      cblu authored
      	Fixed: 3023814 - contexual menus and dragging doesn't work for some images
      
      	Added a innerNonSharedNode to NodeInfo that points to the node which is not shared by another node. In this case, the innerNonSharedNode is the image node not the area node.
      
              * khtml/rendering/render_frames.cpp:
              (RenderFrameSet::nodeAtPoint): call setInnerNonSharedNode
              * khtml/rendering/render_image.cpp:
              (RenderImage::nodeAtPoint): call setInnerNonSharedNode
              * khtml/rendering/render_object.cpp:
              (RenderObject::nodeAtPoint): call setInnerNonSharedNode
              * khtml/rendering/render_object.h:
              * kwq/WebCoreBridge.mm:
              (-[WebCoreBridge elementAtPoint:]): use the innerNonSharedNode
      
      WebKit:
      
      	Made new plug-in API headers private.
      
              * WebKit.pbproj/project.pbxproj:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2425 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      68c92173
    • hyatt's avatar
      Ok, this patch does a lot of stuff. It contains a complete · 5168fbcb
      hyatt authored
      	rewrite of the WinIE quirk for handling collapsing margins
      	at the tops and bottoms of table cells.  We match WinIE's
      	behavior for all HTML4 block-level elements.
      
      	This patch also applies a bottom margin to <form> elements,
      	which is what was causing the missing space on livepage.apple.com
      	underneath the textfield on the right.  WinIE and Gecko both
      	put a bottom margin on all forms.
      
      	This patch also updates the collapsing margin code to detect
      	inlines that have been morphed into blocks by KHTML (this is
      	so wrong, don't even get me started, you can't treat an inline
      	as a block, this code is lame, etc. etc.) and to properly ignore
      	their margins completely.  Fixing the code to not morph inlines
      	is another architectural problem that will have to be dealt
      	with (sigh).
      
              * khtml/css/css_valueimpl.h:
              * khtml/css/cssparser.cpp:
              (StyleBaseImpl::parseValue):
              (StyleBaseImpl::parseUnit):
              * khtml/css/cssparser.h:
              * khtml/css/cssstyleselector.cpp:
              * khtml/css/html4.css:
              * khtml/misc/khtmllayout.h:
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::RenderFlow):
              (RenderFlow::layout):
              (RenderFlow::layoutBlockChildren):
              (RenderFlow::addChild):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2406 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5168fbcb
  15. 21 Oct, 2002 1 commit
  16. 18 Oct, 2002 1 commit
  17. 16 Oct, 2002 1 commit
  18. 14 Oct, 2002 1 commit
  19. 12 Sep, 2002 1 commit
    • hyatt's avatar
      Fix the Warcraft 3 page on blizzard.com so that the relative · c64a61ad
      hyatt authored
      	positioned blocks inside centered tables inside enclosing tables
      	with percentage widths work correctly.
      
      	This fix also causes the textfields on mrskin.com to show up
      	again.
      
              * khtml/rendering/render_box.cpp:
              (RenderBox::RenderBox):
              (RenderBox::setPos):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_container.cpp:
              (RenderContainer::addChild):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::constructZTree):
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c64a61ad
  20. 11 Sep, 2002 2 commits
    • hyatt's avatar
      Fix clipping to work with layers. This fixes the marquee · c206f008
      hyatt authored
      	(once again) on livepage.apple.com.
      
              * khtml/rendering/render_box.cpp:
              (RenderBox::getClipRect):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_container.cpp:
              (RenderContainer::addChild):
              (RenderContainer::removeChildNode):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::setStyle):
              (RenderFlow::printObject):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::enclosingPositionedAncestor):
              (RenderLayer::convertToLayerCoords):
              (RenderLayer::paint):
              (RenderLayer::constructZTree):
              * khtml/rendering/render_layer.h:
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_replaced.cpp:
              (RenderReplaced::print):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2042 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c206f008
    • hyatt's avatar
      This patch fixes a slew of bugs. It is an implementation · a026dc29
      hyatt authored
      	of the IE extensions offsetLeft, offsetTop, and offsetParent.
      	Konqueror actually had implementations for these properties
      	that were totally wrong, leading any DHTML that would use
      	these properties (like the DHTML on brainjar.com or livepage.apple.com)
      	to misposition child elements.
      
      	With these properties now implemented, the menus on brainjar.com
      	position correctly, and the marquee on livepage.apple.com once
      	again shows up (and now you can see how I've regressed clipping
      	by not shoving it into the layer system as well).
      
      	Next up will be fixing the clipping bug on livepage.apple.com.
      
              * khtml/ecma/kjs_dom.cpp:
              (DOMNode::getValueProperty):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::offsetHeight):
              (RenderFlow::offsetLeft):
              (RenderFlow::offsetTop):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_object.cpp:
              (RenderObject::offsetLeft):
              (RenderObject::offsetTop):
              (RenderObject::offsetParent):
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2030 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a026dc29
  21. 10 Sep, 2002 1 commit
  22. 29 Aug, 2002 1 commit
    • hyatt's avatar
      Begin connecting the layer system. The root box and the <html> · 130a831d
      hyatt authored
      	box now construct layers for themselves.  Those layers are
      	connected in a layer tree properly and they correctly update
      	their positions.
      
      	Implemented all the code for layer construction and for keeping
      	the layer tree in sync with the render object tree.
      
      	The goal is to get the layer tree fully constructed and correct
      	(with lots of testing) before actually switching over to it for
      	painting.
      
      	This change requires a clean of WebCore.
      
              * force-clean-timestamp:
              * khtml/rendering/render_box.cpp:
              (RenderBox::RenderBox):
              (RenderBox::~RenderBox):
              (RenderBox::setPos):
              (RenderBox::positionChildLayers):
              * khtml/rendering/render_box.h:
              * khtml/rendering/render_container.cpp:
              (RenderContainer::~RenderContainer):
              (RenderContainer::addChild):
              (RenderContainer::removeChildNode):
              * khtml/rendering/render_container.h:
              * khtml/rendering/render_html.cpp:
              (RenderHtml::RenderHtml):
              * khtml/rendering/render_layer.cpp:
              (RenderLayer::updateLayerPosition):
              * khtml/rendering/render_layer.h:
              * khtml/rendering/render_object.h:
              * khtml/rendering/render_root.cpp:
              (RenderRoot::RenderRoot):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1938 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      130a831d
  23. 12 Aug, 2002 1 commit
    • hyatt's avatar
      Make the news ticker on livepage.apple.com scroll properly. · 0810ec43
      hyatt authored
      	It still doesn't clip though.  Fixing this involved correctly
      	dirtying the render tree when dynamic DOM changes occurred
      	(this was a bug in KHTML's DOM), as well as providing an
      	implementation of the MSIE offsetWidth extension that took
      	inlines into account (KHTML's impl was always returning a width
      	of 0 for inlines).
      
              * khtml/ecma/kjs_dom.cpp:
              (DOMNode::getValueProperty):
              * khtml/rendering/render_flow.cpp:
              (RenderFlow::offsetWidth):
              (RenderFlow::offsetHeight):
              * khtml/rendering/render_flow.h:
              * khtml/rendering/render_object.h:
              * khtml/xml/dom_nodeimpl.cpp:
              (NodeBaseImpl::insertBefore):
              (NodeBaseImpl::replaceChild):
              (NodeBaseImpl::appendChild):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1803 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0810ec43
  24. 29 Jul, 2002 1 commit
    • hyatt's avatar
      Fix for 3008660, arstechnica regression. Move the acquisition · 2a25018f
      hyatt authored
      	of the document's text color (and the addition of CSS properties)
      	to the attach() call instead of the constructor.  The table won't
      	add the properties until it is building its render object.
      
      	Also removing the #ifndef around the layout scheduler.  This fixes
      	:hover feedback and reflows from things like the marquee on
      	livepage.apple.com.
      
              * khtml/html/html_tableimpl.cpp:
              (HTMLTableElementImpl::HTMLTableElementImpl):
              (HTMLTableElementImpl::id):
              (HTMLTableElementImpl::attach):
              * khtml/html/html_tableimpl.h:
              * khtml/rendering/render_object.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1693 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a25018f
  25. 21 Jul, 2002 1 commit
    • darin's avatar
      JavaScriptCore: · 74f6ed62
      darin authored
              * kjs/*: Roll KDE 3.0.2 changes in. Also switch to not using APPLE_CHANGES
      	for some of the changes that we definitely want to contribute upstream.
      
      WebCore:
      
      	* khtml/*: Roll KDE 3.0.2 changes in. Also switch to not using APPLE_CHANGES
      	for some of the changes that we definitely want to contribute upstream.
      
              * WebCore.pbproj/project.pbxproj: Add KWQStyle.mm, remove KWQStyle.h, moving contents
      	into qstyle.h.
      
              * kwq/KWQApplication.mm: (QApplication::globalStrut): Remove _logNotYetImplemented().
      
              * kwq/KWQButton.mm: (QButton::QButton): Use plain release, not autorelease.
              * kwq/KWQComboBox.mm: (QComboBox::init): Use plain release, not autorelease.
              * kwq/KWQListBox.mm: (QListBox::QListBox): Use plain release, not autorelease.
              * kwq/KWQPainter.mm: (QPainter::drawArc): Use plain release, not autorelease.
      
              * kwq/KWQKHTMLPartBrowserExtension.mm: Remove import of KWQKHTMLPartImpl.h, now that
      	it's always part of khtml_part.h.
              * kwq/KWQKHTMLPartImpl.cpp: Simplify.
              * kwq/KWQKHTMLPartImpl.h: Add wrapper to allow multiple inclusion. Don't include
      	khtml_part.h any more, since that file now includes this one to minimize changes to
      	KDE code that needs to get to functions in here.
              * kwq/KWQKHTMLPartImpl.mm:
              (KHTMLPart::onURL), (KHTMLPart::nodeActivated), (KHTMLPart::setStatusBarText):
      	Moved here from khtml_part.cpp.
              * kwq/KWQLoaderImpl.mm: Include khtml_part.h instead of KWQKHTMLPartImpl.h.
      
              * kwq/KWQPushButton.mm:
              (buttonFontMetrics), (QPushButton::fontMetrics): Added. Used by the form code to size buttons.
              * kwq/KWQStyle.mm: Added.
              (QStyle::sizeFromContents): Added. Used by the form code to size buttons.
      
              * kwq/KWQStyle.h: Removed.
              * kwq/qt/qstyle.h: Moved contents of KWQStyle.h in here.
              * kwq/qt/qwidget.h: Include <qstyle.h> rather than KWQStyle.h.
      
              * kwq/WebCoreBridge.mm: (-[WebCoreBridge isFrameSet]): Call straight to impl.
      
              * kwq/kdeui/klineedit.h: Add KLineEdit::frameWidth().
              * kwq/qt/qnamespace.h: Remove GUIStyle, MacStyle, and WindowsStyle.
              * kwq/qt/qpaintdevice.h: Add QInternal, QInternal::Printer, and QPaintDevice::devType().
              * kwq/qt/qpainter.h: Add QPainter::device().
              * kwq/qt/qpushbutton.h: Add QPushButton::fontMetrics().
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1623 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      74f6ed62
  26. 20 Jul, 2002 1 commit
  27. 10 Jun, 2002 1 commit
    • darin's avatar
      JavaScriptCore: · f028f81b
      darin authored
      	Merged in changes from KDE 3.0.1.
      
      	* kjs/collector.cpp:
      	* kjs/date_object.cpp:
      	* kjs/function.cpp:
      	* kjs/internal.cpp:
      	* kjs/lookup.h:
      	* kjs/object.cpp:
      	* kjs/operations.cpp:
      	* kjs/regexp.cpp:
      	* kjs/regexp_object.cpp:
      	* kjs/regexp_object.h:
      	* kjs/string_object.cpp:
      	* kjs/testkjs.cpp:
      	* kjs/ustring.cpp:
      	* kjs/value.cpp:
      	* kjs/value.h:
      	Do the merge, and add APPLE_CHANGES as needed to make things compile.
      
      	* kjs/date_object.lut.h: Re-generated.
      
      WebCore:
      
      	Merged in changes from KDE 3.0.1.
      
      	* kwq/kdecore/kurl.h:
      	* kwq/KWQKURL.mm: (operator==): New, needed by some 3.0.1 code.
      
      	* kwq/qt/qpalette.h: Add QPalette::NColorGroups and QColorGroup::NColorRoles.
      	* kwq/KWQPalette.mm: Simplify by getting rid of "private" indirection.
      	(QPalette::color): New, needed by some 3.0.1 code.
      	* kwq/KWQColorGroup.mm: Simplify by getting rid of "private" indirection.
      
      	* kwq/qt/qstring.h:
      	* kwq/KWQString.mm: (QConstString::QConstString): Change parameter to const QChar *
      	to match Qt so we compile.
      
      	* kwq/qt/qtextedit.h:
      	* kwq/KWQTextEdit.mm: (QTextEdit::setTabStopWidth): Add unimplemented placeholder,
      	needed by some 3.0.1 code.
      
      	* kwq/qt/qvaluelist.h:
      	* kwq/KWQValueListImpl.h:
      	* kwq/KWQValueListImpl.mm: Simplify implementation.
      
      	* WebCore-tests.exp: Update for changes in QValueList implementation.
      
      	* kwq/kdecore/klibloader.h: Add include of <kio/global.h> to make something compile.
      
      	* kwq/khtml/java/kjavaappletcontext.h: Add JType and constructor that takes DCOPObject*.
      
      	* kwq/kio/global.h: Add KIO::CacheControl.
      
      	* khtml/css/css_ruleimpl.cpp:
      	* khtml/css/css_ruleimpl.h:
      	* khtml/css/css_stylesheetimpl.cpp:
      	* khtml/css/css_stylesheetimpl.h:
      	* khtml/css/css_valueimpl.cpp:
      	* khtml/css/css_valueimpl.h:
      	* khtml/css/cssparser.cpp:
      	* khtml/css/cssparser.h:
      	* khtml/css/cssstyleselector.cpp:
      	* khtml/css/cssstyleselector.h:
      	* khtml/css/html4.css:
      	* khtml/dom/css_rule.cpp:
      	* khtml/dom/css_rule.h:
      	* khtml/dom/css_stylesheet.cpp:
      	* khtml/dom/css_stylesheet.h:
      	* khtml/dom/css_value.cpp:
      	* khtml/dom/dom2_events.cpp:
      	* khtml/dom/dom2_range.cpp:
      	* khtml/dom/dom2_range.h:
      	* khtml/dom/dom2_views.cpp:
      	* khtml/dom/dom_doc.cpp:
      	* khtml/dom/dom_element.cpp:
      	* khtml/dom/dom_exception.h:
      	* khtml/dom/dom_node.cpp:
      	* khtml/dom/dom_string.cpp:
      	* khtml/dom/dom_text.cpp:
      	* khtml/dom/dom_xml.cpp:
      	* khtml/dom/html_base.cpp:
      	* khtml/dom/html_block.cpp:
      	* khtml/dom/html_document.cpp:
      	* khtml/dom/html_element.cpp:
      	* khtml/dom/html_element.h:
      	* khtml/dom/html_form.cpp:
      	* khtml/dom/html_head.cpp:
      	* khtml/dom/html_image.cpp:
      	* khtml/dom/html_inline.cpp:
      	* khtml/dom/html_list.cpp:
      	* khtml/dom/html_misc.cpp:
      	* khtml/dom/html_object.cpp:
      	* khtml/dom/html_table.cpp:
      	* khtml/ecma/kjs_html.cpp:
      	* khtml/ecma/kjs_proxy.cpp:
      	* khtml/ecma/kjs_traversal.cpp:
      	* khtml/ecma/kjs_window.cpp:
      	* khtml/html/html_baseimpl.cpp:
      	* khtml/html/html_formimpl.cpp:
      	* khtml/html/html_miscimpl.h:
      	* khtml/html/html_objectimpl.cpp:
      	* khtml/html/html_objectimpl.h:
      	* khtml/html/htmlparser.cpp:
      	* khtml/html/htmlparser.h:
      	* khtml/html/htmltokenizer.cpp:
      	* khtml/html/htmltokenizer.h:
      	* khtml/khtml_part.cpp:
      	* khtml/khtmlpart_p.h:
      	* khtml/khtmlview.cpp:
      	* khtml/misc/helper.cpp:
      	* khtml/misc/khtmllayout.h:
      	* khtml/misc/loader.cpp:
      	* khtml/misc/loader.h:
      	* khtml/misc/loader_client.h:
      	* khtml/misc/shared.h: Added.
      	* khtml/rendering/bidi.cpp:
      	* khtml/rendering/break_lines.cpp:
      	* khtml/rendering/font.cpp:
      	* khtml/rendering/render_applet.cpp:
      	* khtml/rendering/render_applet.h:
      	* khtml/rendering/render_container.cpp:
      	* khtml/rendering/render_form.cpp:
      	* khtml/rendering/render_form.h:
      	* khtml/rendering/render_frames.cpp:
      	* khtml/rendering/render_image.cpp:
      	* khtml/rendering/render_object.cpp:
      	* khtml/rendering/render_object.h:
      	* khtml/rendering/render_replaced.cpp:
      	* khtml/rendering/render_replaced.h:
      	* khtml/rendering/render_root.cpp:
      	* khtml/rendering/render_style.cpp:
      	* khtml/rendering/render_style.h:
      	* khtml/rendering/render_table.cpp:
      	* khtml/rendering/render_table.h:
      	* khtml/rendering/render_text.cpp:
      	* khtml/rendering/render_text.h:
      	* khtml/xml/dom2_eventsimpl.h:
      	* khtml/xml/dom2_rangeimpl.h:
      	* khtml/xml/dom2_traversalimpl.cpp:
      	* khtml/xml/dom2_traversalimpl.h:
      	* khtml/xml/dom2_viewsimpl.h:
      	* khtml/xml/dom_docimpl.cpp:
      	* khtml/xml/dom_docimpl.h:
      	* khtml/xml/dom_elementimpl.h:
      	* khtml/xml/dom_nodeimpl.cpp:
      	* khtml/xml/dom_nodeimpl.h:
      	* khtml/xml/dom_stringimpl.cpp:
      	* khtml/xml/dom_stringimpl.h:
      	* khtml/xml/xml_tokenizer.h:
      	Merge in 3.0.1 changes and add APPLE_CHANGES as necessary to get it to compile.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1326 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f028f81b
  28. 15 Apr, 2002 1 commit
    • darin's avatar
      Merged KDE 3.0 final code in and: · b70665a4
      darin authored
      JavaScriptCore:
      
      	* kjs/internal.cpp:
      	* kjs/property_map.cpp:
      	* kjs/ustring.h:
      	Removed some unneeded <config.h> includes so we are more similar
      	to the real KDE sources.
      
      	Merged changes from KDE 3.0 final and did some build fixes.
      
      	* JavaScriptCore.pbproj/project.pbxproj: Added nodes2string.cpp.
      
      	* kjs/grammar.*: Regenerated.
      	* kjs/*.lut.h: Regenerated.
      
      WebCore:
      
      	* src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
      	Remove some minor gratuitous diffs vs. KDE.
      
      	* src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
              Richard updated to reflect changes in KDE.
      
      	* src/kdelibs/khtml/css/css_valueimpl.cpp:
      	(FontFamilyValueImpl::FontFamilyValueImpl): Fix comment.
      	* src/kdelibs/khtml/css/cssstyleselector.cpp: Remove some gratuitous diffs vs. KDE.
      	* src/kdelibs/khtml/html/html_objectimpl.cpp:
      	(HTMLEmbedElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days.
      	* src/kdelibs/khtml/html/html_tableimpl.cpp:
      	(HTMLTableElementImpl::parseAttribute),
      	(HTMLTablePartElementImpl::parseAttribute): Remove unneeded copy from KWQ's early days.
      	* src/kdelibs/khtml/html/htmltokenizer.cpp: (HTMLTokenizer::processToken): Redo the
      	APPLE_CHANGES ifdef here.
      	* src/kdelibs/khtml/khtmlpart_p.h: Update to latest kde.
      	* src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::KHTMLView): Add ifdef APPLE_CHANGES.
      	(KHTMLView::~KHTMLView): Add ifdef APPLE_CHANGES.
      	(KHTMLView::print): Remove code left in here during merge process.
      	* src/kwq/KWQKHTMLPart.mm: Remove unused setFontSizes(), fontSizes(), and
      	resetFontSizes(). After the merge is landed, remove more.
      	* src/libwebcore.exp: Export updateStyleSelector() for WebKit.
      
      	Fix text to it displays at the right font size.
      
      	* src/kdelibs/khtml/css/cssstyleselector.cpp:
      	(CSSStyleSelector::computeFontSizes): Apply the same SCREEN_RESOLUTION hack here
      	that we do elsewhere.
      	* src/kdelibs/khtml/rendering/font.cpp: (Font::width): Use kMin instead of max (oops).
      	(Font::update): Turn off font database chicanery.
      	* src/kwq/KWQKHTMLPart.mm: (KHTMLPart::zoomFactor): Use zoom factor 100, not 1.
      
      	More fixes so text displays (still at wrong font size).
      
      	* src/kdelibs/khtml/rendering/font.cpp: (max): New helper.
      	(Font::drawText): Simplified implementation for now.
      	(Font::width): Simplified implementation for now.
      	* src/kwq/KWQColorGroup.mm: Reinstated QCOLOR_GROUP_SIZE.
      
      	* src/kwq/qt/qfontmetrics.h: Removed charWidth and changed _width to take QChar *.
      	* src/kwq/KWQFontMetrics.mm: Removed charWidth and changed _width to take QChar *.
      
      	Merged changes from KDE 3.0 final. Other fixes to get things compiling.
      
      	* src/kdelibs/khtml/css/css_valueimpl.cpp:
      	(CSSStyleDeclarationImpl::setProperty): Fix unused variable.
      	* src/kdelibs/khtml/khtmlview.cpp: (KHTMLView::contentsContextMenuEvent):
      	Fix unused variable.
      	* src/kdelibs/khtml/rendering/font.cpp: (Font::drawText), (Font::width),
      	(Font::update): Disable special "nsbp" logic for now. We can reenable it
      	if necessary.
      	* src/kdelibs/khtml/rendering/render_replaced.cpp: Fix mismerge.
      	* src/kdelibs/khtml/rendering/render_text.cpp: (RenderText::nodeAtPoint):
      	Fix unused variable.
      	* src/kwq/KWQApplication.mm: (QDesktopWidget::width), (QApplication::desktop):
      	Fix mismerge.
      	* src/kwq/KWQColorGroup.mm: Fix QCOLOR_GROUP_SIZE.
      	* src/kwq/KWQFontMetrics.mm: (QFontMetrics::lineSpacing): New.
      	(QFontMetrics::width): Remove unused optimization.
      	* src/kwq/qt/qfontmetrics.h: Add lineSpacing().
      
              Merged changes from previous merge pass.
      
              2002-03-25  Darin Adler  <darin@apple.com>
      
              Last bit of making stuff compile and link. Probably will drop the merge now
              and take it up again when it's time to merge in KDE 3.0 final.
      
      	* src/kwq/KWQEvent.mm: (QFocusEvent::reason): New.
      	* src/kwq/KWQPainter.mm: (QPainter::drawText): New overload.
      
              2002-03-25  Darin Adler  <darin@apple.com>
      
      	* src/kdelibs/khtml/rendering/font.cpp: (Font::width): Make it call _width so we
              don't lose the optimization.
      
      	* src/kwq/KWQApplication.mm: (QDesktopWidget::screenNumber): New.
      	(QDesktopWidget::screenGeometry): New.
              (QApplication::style): New.
      	* src/kwq/KWQColorGroup.mm: (QColorGroup::highlight): New.
      	(QColorGroup::highlightedText): New.
      	* src/kwq/KWQFont.mm: (QFont::setPixelSize): New.
      	* src/kwq/KWQFontMetrics.mm: (QFontMetrics::charWidth): New.
      	* src/kwq/KWQKGlobal.mm: (KGlobal::locale): Implement.
              (KLocale::KLocale): New.
      	(KLocale::languageList): New.
      	* src/kwq/KWQKHTMLPart.mm: (KHTMLPart::sheetUsed): New.
      	(KHTMLPart::setSheetUsed): New.
              (KHTMLPart::zoomFactor): New.
      	* src/kwq/KWQKHTMLSettings.mm: (KHTMLSettings::mediumFontSize): New.
      	* src/kwq/KWQScrollView.mm: (QScrollView::childX): New.
              (QScrollView::childY): New.
      
      	* src/kwq/qt/qapplication.h: style() returns a QStyle &.
      	* src/kwq/qt/qpalette.h: Add Highlight and HighlightedText.
      
              2002-03-24  Darin Adler  <darin@apple.com>
      
              More compiling. Still won't link.
      
      	* src/kdelibs/khtml/khtmlview.cpp: Disable printing and drag and drop code.
      	* src/kdelibs/khtml/rendering/render_text.cpp: (TextSlave::printDecoration):
              Temporarily turn off our smarter underlining since it relies on access to the
              string, and TextSlave doesn't have that any more.
      	(RenderText::nodeAtPoint): Get rid of a workaround we don't need any more for
              a bug that was fixed by KDE folks.
      	* src/kwq/KWQApplication.mm: (QApplication::desktop): Make the desktop be a
              QDesktopWidget.
      	* src/kwq/qt/qnamespace.h: Add MetaButton.
      	* src/kwq/qt/qtooltip.h: Add a maybeTip virtual function member and a virtual
              destructor.
      
              2002-03-24  Darin Adler  <darin@apple.com>
      
              Some fixes to get more stuff to compile.
      
      	* src/kdelibs/khtml/ecma/kjs_dom.cpp: (DOMDocument::getValueProperty):
              Don't try to look at the private m_bComplete to display "complete". Just do
              "loading" and "loaded".
              * src/kdelibs/khtml/khtmlpart_p.h: #ifdef this all out for APPLE_CHANGES.
      	* src/kdelibs/khtml/rendering/font.cpp: (Font::update): Add an explicit cast to
              int to avoid float -> int warning.
      	* src/kdelibs/khtml/rendering/render_table.cpp: (RenderTable::calcColMinMax):
              Add an explicit cast to int to avoid uint compared with int warning.
      	* src/kdelibs/khtml/xml/dom_docimpl.cpp: (DocumentImpl::recalcStyleSelector):
              Use sheetUsed() and setSheetUsed() functions on KHTMLPart intead of getting
              at private fields the way the real KDE code does.
      
              * src/kwq/KWQKHTMLPart.h: Declare zoomFactor(), sheetUsed(), and setSheetUsed().
      	* src/kwq/KWQStyle.h: Add PM_DefaultFramWidth as another metric.
      	* src/kwq/kdecore/klocale.h: Add languageList().
      	* src/kwq/khtml/khtml_settings.h: Add mediumFontSize().
      	* src/kwq/qt/qapplication.h: Add style() and QDesktopWidget.
      	* src/kwq/qt/qevent.h: Add reason().
      	* src/kwq/qt/qfont.h: Add setPixelSize(int).
      	* src/kwq/qt/qfontmetrics.h: Add charWidth() and _charWidth() functions.
      	* src/kwq/qt/qpainter.h: Add drawText() overload with position parameter.
      	* src/kwq/qt/qpalette.h: Add highlight() and highlightedText().
      	* src/kwq/qt/qscrollview.h: Add childX() and childY().
      
      	* src/kwq/KWQApplication.mm: Change KWQDesktopWidget to QDesktopWidget.
      
      WebKit:
      
      	* WebView.subproj/IFPreferences.h:
      	* WebView.subproj/IFPreferences.mm: (+[IFPreferences load]): Remove the old
      	WebKitFontSizes preference.
      	(-[IFPreferences mediumFontSize]), (-[IFPreferences setMediumFontSize:]): New.
      
      	* WebView.subproj/IFWebView.mm: (-[IFWebView reapplyStyles]): Call
      	updateStyleSelector() instead of recalcStyle().
      
              Merged changes from previous merge branch.
      
              2002-03-25  Darin Adler  <darin@apple.com>
      
      	* WebView.subproj/IFPreferences.mm: (+[IFPreferences load]):
              Add WebKitMediumFontSizePreferenceKey.
      
      WebBrowser:
      
      	* Preferences.subproj/TextPreferences.m: (-[TextPreferences defaultFontSize]),
      	(-[TextPreferences setDefaultFontSize:]): Just get and set the new mediumFontSize
      	preference rather than doing the whole fontSizes preference dance.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b70665a4
  29. 21 Mar, 2002 1 commit
  30. 24 Aug, 2001 1 commit