1. 18 Mar, 2007 2 commits
    • hyatt's avatar
      Change the frameborder color to be light gray for framesets. · 99324a12
      hyatt authored
              Reviewed by aroben
      
              * rendering/RenderFrameSet.cpp:
              (WebCore::borderFillColor):
              (WebCore::RenderFrameSet::paintColumnBorder):
              (WebCore::RenderFrameSet::paintRowBorder):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20288 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      99324a12
    • hyatt's avatar
      WebCore: · 0fa2fbcf
      hyatt authored
              Move frame borders out of WebKit and into WebCore.
      
              Reviewed by aroben, olliej
      
              * bridge/mac/FrameViewMac.mm:
              * css/html4.css:
              * html/HTMLFrameSetElement.cpp:
              (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
              (WebCore::HTMLFrameSetElement::mapToEntry):
              (WebCore::HTMLFrameSetElement::parseMappedAttribute):
              (WebCore::HTMLFrameSetElement::attach):
              * html/HTMLFrameSetElement.h:
              (WebCore::HTMLFrameSetElement::hasBorderColor):
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              * page/FrameView.h:
              * page/mac/WebCoreFrameBridge.h:
              * platform/graphics/IntRect.h:
              (WebCore::IntRect::topLeft):
              (WebCore::IntRect::topRight):
              (WebCore::IntRect::bottomLeft):
              (WebCore::IntRect::bottomRight):
              * rendering/RenderFrame.cpp:
              (WebCore::RenderFrame::viewCleared):
              * rendering/RenderFrameSet.cpp:
              (WebCore::borderStartEdgeColor):
              (WebCore::borderEndEdgeColor):
              (WebCore::RenderFrameSet::paintColumnBorder):
              (WebCore::RenderFrameSet::paintRowBorder):
              (WebCore::RenderFrameSet::paint):
              * rendering/RenderFrameSet.h:
              * rendering/RenderPartObject.cpp:
              (WebCore::RenderPartObject::viewCleared):
              * rendering/RenderView.cpp:
              (WebCore::RenderView::repaintViewRectangle):
      
      WebKit:
      
              Move frame borders out of WebKit and into WebCore.
      
              Reviewed by aroben, olliej
      
              * WebCoreSupport/WebFrameBridge.mm:
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebFrameView.mm:
              (-[WebFrameView drawRect:]):
              (-[WebFrameView setFrameSize:]):
              * WebView/WebFrameViewInternal.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0fa2fbcf
  2. 03 Jan, 2007 1 commit
  3. 19 Dec, 2006 1 commit
    • darin's avatar
      Reviewed by Geoff. · 8c216134
      darin authored
              - <rdar://problem/4885227>
                frame resizing is now live and no longer does direct drawing
      
              * html/HTMLFrameSetElement.h: Made frameBorder() and noResize() const.
              Added rowLengths() and colLengths() getters so that we don't have to
              have RenderFrameSet as a friend. Stopped using bit fields.
      
              * html/HTMLFrameSetElement.cpp:
              (WebCore::HTMLFrameSetElement::defaultEventHandler): Removed now-uneeded
              check for contextmenu events. Look at return value from userResize to
              decide whether to mark the event as "default handled". In the case where
              the event is handled, don't call through to the base class.
      
              * rendering/RenderFrameSet.h: No longer mark HTMLFrameSetElement as a
              friend. Made positionFrames and canResize private, and changed canResize
              to take an IntPoint. Added isResizingRow, isResizingColumn, canResizeRow,
              and canResizeColumn functions to be used soon for cursor feedback.
              Removed override of non-virtual element() function and replaced it with
              a private frameSet() inline function. Grouped all the data members for
              each axis into a GridAxis class, and made one called m_cols and one called
              m_rows. Used vectors for the resizable bits of this instead of new/delete
              arrays. Added a constant named "noSplit" so we don't have to use -1
              everywhere explicitly for this purpose. Renamed setResizing to
              setIsResizing and made it private. Eliminated resizing() function.
              Added new private helper functions, layOutAxis, findNonResizableSplits,
              splitPosition, hitTestSplit, startResizing, and continueResizing.
              Renamed m_resizing to m_isResizing, and m_clientResizing to
              m_isChildResizing.
      
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::RenderFrameSet): Removed now-unneeded initialization
              that is handled by the GridAxis and Vector constructors.
              (WebCore::RenderFrameSet::~RenderFrameSet): Ditto (for destructors).
              (WebCore::RenderFrameSet::GridAxis::GridAxis): Added.
              (WebCore::RenderFrameSet::frameSet): Added. Inline function so we don't have
              to cast the result of node() or element() everywhere.
              (WebCore::RenderFrameSet::nodeAtPoint): Updated for name changes.
              (WebCore::RenderFrameSet::GridAxis::resize): Added. Helper function to be used
              in the layout function.
              (WebCore::RenderFrameSet::layOutAxis): Added. Factored out the part of the
              layout function that used to be inside a for loop for the two axes.
              The algorithm is otherwise unchanged.
              (WebCore::RenderFrameSet::findNonResizableSplits): Added. Factored out the
              code that set up the "split variable" arrays from the layout function.
              (WebCore::RenderFrameSet::layout): Moved the bulk of this function into the
              new helpers. This allowed me to remove the use of goto.
              (WebCore::RenderFrameSet::positionFrames): Updated for change to data structures.
              Also added some more local variables for clarity.
              (WebCore::RenderFrameSet::startResizing): Added. Code factored out of the
              userResize function that handles mousedown events that might begin a resize.
              (WebCore::RenderFrameSet::continueResizing): Added. Code factored out of the
              userResize function that handles mouse events that continue a resize already
              in progress, including mouseup events that end the resizing. Uses the new
              splitPosition function so it can be used over and over again while resizing.
              (WebCore::RenderFrameSet::userResize): Restructured to use the new helper
              functions. Removed the direct drawing of a gray bar during mouse movement;
              instead we do the resizing live.
              (WebCore::RenderFrameSet::setIsResizing): Updated for name changes.
              (WebCore::RenderFrameSet::isResizingRow): Added.
              (WebCore::RenderFrameSet::isResizingColumn): Added.
              (WebCore::RenderFrameSet::canResize): Changed to use hitTestSplit for clarity.
              (WebCore::RenderFrameSet::canResizeRow): Added.
              (WebCore::RenderFrameSet::canResizeColumn): Added.
              (WebCore::RenderFrameSet::splitPosition): Added.
              (WebCore::RenderFrameSet::hitTestSplit): Added. Contains the guts of the code
              that was used both in canResize and userResize before -- now it's shared.
              (WebCore::RenderFrameSet::dump): Updated for name changes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18333 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8c216134
  4. 18 Dec, 2006 1 commit
    • hyatt's avatar
      Eliminate the Pen object in favor of separate stroke variables, since... · 801efce1
      hyatt authored
              Eliminate the Pen object in favor of separate stroke variables, since most code just wants to set the
              stroke color.  This also makes it easier for us to push only stroke color through into CG synchronously
              while leaving the others alone.
      
              Reviewed by olliej
      
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState):
              (WebCore::GraphicsContext::setStrokeThickness):
              (WebCore::GraphicsContext::setStrokeStyle):
              (WebCore::GraphicsContext::setStrokeColor):
              (WebCore::GraphicsContext::strokeThickness):
              (WebCore::GraphicsContext::strokeStyle):
              (WebCore::GraphicsContext::strokeColor):
              (WebCore::GraphicsContext::setPlatformStrokeStyle):
              (WebCore::GraphicsContext::setPlatformStrokeThickness):
              * platform/graphics/GraphicsContext.h:
              (WebCore::):
              * platform/graphics/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::drawRect):
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::drawEllipse):
              (WebCore::GraphicsContext::drawArc):
              (WebCore::GraphicsContext::drawConvexPolygon):
              (WebCore::GraphicsContext::drawLineForText):
              (WebCore::GraphicsContext::setPlatformStrokeColor):
              * platform/graphics/qt/GraphicsContextQt.cpp:
              (WebCore::toQPenStyle):
              (WebCore::GraphicsContext::setPlatformStrokeColor):
              (WebCore::GraphicsContext::setPlatformStrokeStyle):
              (WebCore::GraphicsContext::setPlatformStrokeThickness):
              * platform/mac/FontMac.mm:
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawGlyphs):
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::paintDecorations):
              * rendering/InlineTextBox.cpp:
              (WebCore::updateTextColor):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintObject):
              * rendering/RenderBox.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::drawBorderArc):
              (WebCore::RenderObject::drawBorder):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::paint):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::paint):
              * rendering/RenderText.cpp:
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::paintMenuListButton):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18294 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      801efce1
  5. 14 Nov, 2006 1 commit
    • darin's avatar
      WebCore: · 60e537f5
      darin authored
              Reviewed by Anders.
      
              - created EventHandler class, moved event handling code from both
                Frame and FrameView in there
      
              - added ScrollTypes.h header so you can include the scroller-related
                enums without all of Scrollbar.h
      
              * page/EventHandler.cpp: Added.
              * page/EventHandler.h: Added.
              * page/mac/EventHandlerMac.mm: Added.
      
              * platform/ScrollBarMode.h: Removed.
              * platform/ScrollTypes.h: Added.
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::FrameMac):
              (WebCore::FrameMac::~FrameMac):
              (WebCore::FrameMac::bridgeForWidget):
              (WebCore::FrameMac::imageFromRect):
              * bridge/mac/FrameViewMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge scrollOverflowInDirection:granularity:]):
              (-[WebCoreFrameBridge nextKeyView]):
              (-[WebCoreFrameBridge previousKeyView]):
              (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
              (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
              (-[WebCoreFrameBridge _visiblePositionForPoint:]):
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreFrameBridge concludeDragForDraggingInfo:]):
              (-[WebCoreFrameBridge dragSourceMovedTo:]):
              (-[WebCoreFrameBridge dragSourceEndedAt:operation:]):
              * dom/Document.cpp:
              (WebCore::Document::hoveredNodeDetached):
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::defaultEventHandler):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::SelectionController):
              * editing/SelectionController.h:
              (WebCore::SelectionController::setCaretBlinkingSuspended):
              (WebCore::SelectionController::isCaretBlinkingSuspended):
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::isKeyboardFocusable):
              * html/HTMLFrameElementBase.cpp:
              (WebCore::HTMLFrameElementBase::setFocus):
              * html/HTMLFrameElementBase.h:
              * html/HTMLGenericFormElement.cpp:
              (WebCore::HTMLGenericFormElement::isKeyboardFocusable):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultEventHandler):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::listBoxDefaultEventHandler):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::clear):
              (WebCore::FrameLoader::open):
      
              * page/Frame.cpp:
              (WebCore::Frame::caretBlinkTimerFired):
              (WebCore::Frame::frameForWidget):
              (WebCore::Frame::eventHandler):
              (WebCore::Frame::setProhibitsScrolling):
              (WebCore::FramePrivate::FramePrivate):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::FrameView):
              (WebCore::FrameView::~FrameView):
              (WebCore::FrameView::clear):
              (WebCore::FrameView::adjustViewSize):
              (WebCore::FrameView::addRepaintInfo):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::scrollPointRecursively):
              (WebCore::FrameView::setContentsPos):
              (WebCore::FrameView::scheduleRelayoutOfSubtree):
              (WebCore::FrameView::scheduleEvent):
              (WebCore::FrameView::updateOverflowStatus):
              (WebCore::FrameView::dispatchScheduledEvents):
              (WebCore::FrameView::windowClipRectForLayer):
              (WebCore::FrameView::handleMouseMoveEvent):
              (WebCore::FrameView::handleMouseReleaseEvent):
              * page/FrameView.h:
              * page/PageState.cpp:
              (WebCore::PageState::PageState):
              (WebCore::PageState::restore):
              * page/PageState.h:
              * platform/ScrollBar.h:
              * platform/ScrollView.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/PopupMenuMac.mm:
              (WebCore::PopupMenu::show):
              * platform/mac/SliderMac.mm:
              (-[WebCoreSlider becomeFirstResponder]):
              (-[WebCoreSlider nextKeyView]):
              (-[WebCoreSlider previousKeyView]):
              (-[WebCoreSlider canBecomeKeyView]):
              (Slider::focusPolicy):
              * platform/mac/WebCoreTextField.mm:
              (-[WebCoreTextFieldController textView:shouldHandleEvent:]):
              (-[WebCoreTextFieldController setHasFocus:]):
              (-[WebCoreSearchField nextKeyView]):
              (-[WebCoreSearchField previousKeyView]):
              (-[WebCoreSearchFieldCell _addStringToRecentSearches:]):
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::hasFocus):
              (WebCore::Widget::clearFocus):
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::setResizing):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::autoscroll):
              (WebCore::RenderLayer::resize):
              (WebCore::RenderLayer::updateOverflowStatus):
              * rendering/RenderLayer.h:
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::autoscroll):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::draggableNode):
              (WebCore::RenderObject::destroy):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::RepaintInfo::RepaintInfo):
              * rendering/RenderPartObject.cpp:
              (WebCore::RenderPartObject::viewCleared):
      
      WebKit:
      
              Reviewed by Anders.
      
              - update for creation of EventHandler
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::actionDictionary):
              * WebView/WebHTMLView.m:
              (-[WebHTMLView _updateMouseoverWithEvent:]):
              (-[NSArray menuForEvent:]):
              (-[NSArray scrollWheel:]):
              (-[NSArray acceptsFirstMouse:]):
              (-[NSArray shouldDelayWindowOrderingForEvent:]):
              (-[NSArray mouseDown:]):
              (-[NSArray mouseDragged:]):
              (-[NSArray mouseUp:]):
              (-[NSArray keyDown:]):
              (-[NSArray keyUp:]):
              (-[NSArray performKeyEquivalent:]):
              (-[WebHTMLView elementAtPoint:allowShadowContent:]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17770 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60e537f5
  6. 03 Nov, 2006 1 commit
  7. 31 Oct, 2006 1 commit
    • bdakin's avatar
      WebCore: · c4d8acc9
      bdakin authored
              Reviewed by Maciej.
      
              Fix for http://bugs.webkit.org/show_bug.cgi?id=11461 HitTestResult 
              should be split into HitTestRequest and HitTestResult
      
              This patch creates a new struct called HitTestRequest that holds 
              the three boolean values (readonly, active, and mouseMove) that 
              were formerly a part of HitTestRequest. all hitTest() and 
              nodeAtPoint() functions now take a HitTestRequest in addition to 
              the HitTestResult.
      
      WebKit:
              Reviewed by Maciej.
      
              Small tweaks to WebKit because of http://bugs.webkit.org/
              show_bug.cgi?id=11461 HitTestResult should be split into 
              HitTestRequest and HitTestResult
      
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebHTMLView.m:
              (-[WebHTMLView elementAtPoint:allowShadowContent:]): The 
              HitTestResult initializer now just takes a point.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17494 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c4d8acc9
  8. 30 Oct, 2006 1 commit
    • weinig's avatar
      Reviewed by Mitz. · c24ab182
      weinig authored
              Fix for http://bugs.webkit.org/show_bug.cgi?id=11441
              More rendering code cleaning
      
              * WebCore.xcodeproj/project.pbxproj:
              * rendering/RenderApplet.cpp:
              (WebCore::RenderApplet::RenderApplet):
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/RenderApplet.h:
              * rendering/RenderArena.cpp:
              (WebCore::):
              (WebCore::RenderArena::RenderArena):
              (WebCore::RenderArena::allocate):
              (WebCore::RenderArena::free):
              * rendering/RenderArena.h:
              * rendering/RenderBR.cpp:
              (WebCore::RenderBR::RenderBR):
              (WebCore::RenderBR::baselinePosition):
              (WebCore::RenderBR::lineHeight):
              (WebCore::RenderBR::setStyle):
              (WebCore::RenderBR::caretMinOffset):
              (WebCore::RenderBR::positionForCoordinates):
              (WebCore::RenderBR::inlineBox):
              * rendering/RenderBR.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              (WebCore::RenderBlock::maxTopMargin):
              (WebCore::RenderBlock::maxBottomMargin):
              (WebCore::RenderBlock::initMaxMarginValues):
              (WebCore::RenderBlock::containsFloats):
              (WebCore::RenderBlock::setHasMarkupTruncation):
              (WebCore::RenderBlock::BlockSelectionInfo::BlockSelectionInfo):
              (WebCore::RenderBlock::BlockSelectionInfo::block):
              (WebCore::RenderBlock::BlockSelectionInfo::state):
              (WebCore::RenderBlock::FloatingObject::FloatingObject):
              (WebCore::RenderBlock::CompactInfo::clear):
              * rendering/RenderButton.cpp:
              (WebCore::RenderButton::removeChild):
              (WebCore::RenderButton::paintObject):
              * rendering/RenderButton.h:
              (WebCore::RenderButton::renderName):
              (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::RenderContainer):
              * rendering/RenderContainer.h:
              (WebCore::RenderContainer::firstChild):
              (WebCore::RenderContainer::lastChild):
              (WebCore::RenderContainer::calcMinMaxWidth):
              * rendering/RenderCounter.cpp:
              (WebCore::RenderCounter::RenderCounter):
              (WebCore::toRoman):
              (WebCore::toHebrew):
              (WebCore::RenderCounter::calcMinMaxWidth):
              * rendering/RenderCounter.h:
              * rendering/RenderFieldset.cpp:
              (WebCore::RenderFieldset::paintBoxDecorations):
              (WebCore::RenderFieldset::paintBorderMinusLegend):
              (WebCore::RenderFieldset::setStyle):
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::~RenderFileUploadControl):
              (WebCore::RenderFileUploadControl::setStyle):
              (WebCore::RenderFileUploadControl::paintObject):
              (WebCore::RenderFileUploadControl::calcMinMaxWidth):
              * rendering/RenderFileUploadControl.h:
              (WebCore::RenderFileUploadControl::renderName):
              * rendering/RenderFlexibleBox.h:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFlow.h:
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::RenderForeignObject):
              (WebCore::RenderForeignObject::paint):
              (WebCore::RenderForeignObject::computeAbsoluteRepaintRect):
              (WebCore::RenderForeignObject::layout):
              (WebCore::RenderForeignObject::nodeAtPoint):
              * rendering/RenderForeignObject.h:
              (WebCore::RenderForeignObject::renderName):
              * rendering/RenderFormElement.cpp:
              (WebCore::RenderFormElement::setStyle):
              (WebCore::RenderFormElement::layout):
              (WebCore::RenderFormElement::textAlignment):
              * rendering/RenderFormElement.h:
              * rendering/RenderFrame.cpp:
              * rendering/RenderFrame.h:
              (WebCore::RenderFrame::element):
              * rendering/RenderFrameSet.cpp:
              * rendering/RenderFrameSet.h:
              (WebCore::RenderFrameSet::element):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::RenderHTMLCanvas):
              (WebCore::RenderHTMLCanvas::paint):
              * rendering/RenderHTMLCanvas.h:
              (WebCore::RenderHTMLCanvas::renderName):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::RenderImage):
              (WebCore::RenderImage::setStyle):
              (WebCore::RenderImage::setContentObject):
              (WebCore::RenderImage::setCachedImage):
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::paint):
              (WebCore::RenderImage::layout):
              (WebCore::RenderImage::updateAltText):
              * rendering/RenderImage.h:
              (WebCore::RenderImage::element):
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::RenderInline):
              (WebCore::RenderInline::~RenderInline):
              (WebCore::RenderInline::setStyle):
              (WebCore::RenderInline::addChildToFlow):
              (WebCore::RenderInline::cloneInline):
              (WebCore::RenderInline::splitInlines):
              (WebCore::RenderInline::splitFlow):
              (WebCore::RenderInline::paint):
              (WebCore::RenderInline::absoluteRects):
              (WebCore::RenderInline::calcMinMaxWidth):
              (WebCore::RenderInline::requiresLayer):
              (WebCore::RenderInline::width):
              (WebCore::RenderInline::height):
              (WebCore::RenderInline::renderName):
              (WebCore::RenderInline::nodeAtPoint):
              (WebCore::RenderInline::positionForCoordinates):
              * rendering/RenderInline.h:
              (WebCore::RenderInline::layout):
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              (WebCore::ClipRects::ClipRects):
              (WebCore::RenderLayer::nextSibling):
              (WebCore::RenderLayer::root):
              (WebCore::RenderLayer::setPos):
              (WebCore::RenderLayer::height):
              (WebCore::RenderLayer::relativePositionOffset):
              * rendering/RenderLineEdit.cpp:
              (WebCore::RenderLineEdit::setStyle):
              (WebCore::RenderLineEdit::updateFromElement):
              (WebCore::RenderLineEdit::selectionStart):
              (WebCore::RenderLineEdit::selectionEnd):
              (WebCore::RenderLineEdit::setSelectionStart):
              (WebCore::RenderLineEdit::setSelectionEnd):
              (WebCore::RenderLineEdit::setSelectionRange):
              * rendering/RenderLineEdit.h:
              * rendering/RenderListBox.cpp:
              * rendering/RenderListBox.h:
              (WebCore::RenderListBox::renderName):
              * rendering/RenderListItem.cpp:
              (WebCore::RenderListItem::setStyle):
              (WebCore::getParentOfFirstLineBox):
              (WebCore::RenderListItem::updateMarkerLocation):
              (WebCore::RenderListItem::positionListMarker):
              (WebCore::RenderListItem::paint):
              * rendering/RenderListItem.h:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderListMarker.h:
              (WebCore::RenderListMarker::renderName):
              (WebCore::RenderListMarker::isListMarker):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c24ab182
  9. 29 Oct, 2006 1 commit
  10. 28 Oct, 2006 1 commit
    • bdakin's avatar
      WebCore: · c1a5a83b
      bdakin authored
              Reviewed by Darin.
      
              This is the WebCore half of pushing elementAtPoint and the backend 
              of WebElementDictionary into WebCore. Most of the changes below are 
              to accommodate one of the following:
                      
              -NodeInfo is now a stand-alone class called HitTestResult. 
                      Previously it was defined in RenderObject.h, but not for 
                      any particular reason. The WebElementDictionary 
                      functionality that was pushed into WebCore has been pushed 
                      specifically into the this class. In fact, 
                      WebElementDictionary now keeps a HitTestResult as a member 
                      varibale.
                      
              -The enumeration AccessPolicy is now called 
                      ClipboardAccessPolicy and is defined in its own header. It 
                      was previously defined in ClipboardMac.h, but is now 
                      defined independently to avoid including ClipboardMac.h 
                      from within FrameMac.h since FrameMac.h is now included in 
                      WebElementDictionary.m in WebKit.
                      
              -Element now has a virtual target() for the sake of 
                      NodeInfo::targetFrame() 
      
              * WebCore.exp: Several WebCore functions are newly called from 
              WebKit, so they have been added here. 
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/objc/DOM.mm: Must include Image.h because of adjustments 
              to ClipboardMac.
              * bridge/mac/FrameMac.h: Adjust to HitTestResult changes.
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::freeClipboard): Adjust to ClipboardAccessPolicy 
              and HitTestResult changes.
              (WebCore::FrameMac::eventMayStartDrag): Same.
              (WebCore::FrameMac::handleMouseMoveEvent): Same.
              (WebCore::FrameMac::dispatchCPPEvent): Same.
              (WebCore::FrameMac::mayDHTMLCut): Same.
              (WebCore::FrameMac::mayDHTMLCopy): Same.
              (WebCore::FrameMac::mayDHTMLPaste): Same.
              (WebCore::FrameMac::tryDHTMLCut): Same
              (WebCore::FrameMac::tryDHTMLCopy): Same.
              (WebCore::FrameMac::tryDHTMLPaste): Same.
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject doAXTextMarkerForPosition:]): Adjust to 
              HitTestResult changes.
              (-[WebCoreAXObject accessibilityHitTest:]): Same.
              * bridge/mac/WebCoreFrameBridge.h: Same.
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]): Adjust for 
              ClipboardAccessPolicy changes.
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]): Same.
              (-[WebCoreFrameBridge concludeDragForDraggingInfo:]): Same.
              * dom/Document.cpp:
              (WebCore::Document::elementFromPoint): Adjust for HitTestResult 
              changes.
              (WebCore::Document::prepareMouseEvent): Same.
              * dom/Element.h:
              (WebCore::Element::target): Now has a virtual target()
              * html/HTMLAnchorElement.h: Same.
              * html/HTMLAreaElement.cpp:
              (WebCore::HTMLAreaElement::mapMouseEvent): Adjust for HitTestResult 
              changes.
              * html/HTMLAreaElement.h: Virtual target()
              * html/HTMLBaseElement.h:
              (WebCore::HTMLBaseElement::target): Same.
              * html/HTMLFormElement.h: Same.
              * html/HTMLLinkElement.h: Same.
              * html/HTMLMapElement.cpp:
              (WebCore::HTMLMapElement::mapMouseEvent): Adjust for HitTestResult 
              changes.
              * html/HTMLMapElement.h: Same.
              * page/Frame.cpp:
              (WebCore::Frame::isPointInsideSelection): Same.
              (WebCore::Frame::hitTestResultAtPoint): Same. 
              * page/Frame.h: Same.
              * page/FrameView.cpp:
              (WebCore::FrameView::handleWheelEvent): Same.
              * platform/mac/ClipboardAccessPolicy.h: Added.
              (WebCore::):
              * platform/mac/ClipboardMac.h: Remove definition of AccessPolicy, 
              include ClipboardAccessPolicy.h, and rename AccessPolicy to 
              ClipboardAccessPolicy.
              * platform/mac/ClipboardMac.mm: Rename ClipboardAccessPolicy.
              (WebCore::ClipboardMac::ClipboardMac):
              (WebCore::ClipboardMac::setAccessPolicy):
              (WebCore::ClipboardMac::clearData):
              (WebCore::ClipboardMac::clearAllData):
              (WebCore::ClipboardMac::getData):
              (WebCore::ClipboardMac::setData):
              (WebCore::ClipboardMac::types):
              (WebCore::ClipboardMac::setDragImage):
              (WebCore::ClipboardMac::setDropEffect):
              (WebCore::ClipboardMac::setEffectAllowed):
              * rendering/EllipsisBox.cpp:
              (WebCore::EllipsisBox::nodeAtPoint): Adjust for HitTestResult 
              changes.
              * rendering/EllipsisBox.h:
              * rendering/HitTestResult.cpp: Added.
              (WebCore::HitTestResult::HitTestResult):
              (WebCore::HitTestResult::~HitTestResult):
              (WebCore::HitTestResult::operator=):
              (WebCore::HitTestResult::setInnerNode):
              (WebCore::HitTestResult::setInnerNonSharedNode):
              (WebCore::HitTestResult::setURLElement):
              (WebCore::HitTestResult::setScrollbar):
              (WebCore::HitTestResult::targetFrame):
              (WebCore::HitTestResult::boundingBox):
              (WebCore::HitTestResult::isSelected):
              (WebCore::HitTestResult::title):
              * rendering/HitTestResult.h: Added.
              (WebCore::HitTestResult::readonly):
              (WebCore::HitTestResult::active):
              (WebCore::HitTestResult::mouseMove):
              (WebCore::HitTestResult::innerNode):
              (WebCore::HitTestResult::innerNonSharedNode):
              (WebCore::HitTestResult::point):
              (WebCore::HitTestResult::URLElement):
              (WebCore::HitTestResult::scrollbar):
              (WebCore::HitTestResult::setPoint):
              (WebCore::HitTestResult::setReadonly):
              (WebCore::HitTestResult::setActive):
              (WebCore::HitTestResult::setMouseMove):
              * rendering/InlineBox.cpp:
              (WebCore::InlineBox::nodeAtPoint): Adjust to HitTestResult changes.
              * rendering/InlineBox.h: Same.
              * rendering/InlineFlowBox.cpp:
              (WebCore::InlineFlowBox::nodeAtPoint): Same.
              * rendering/InlineFlowBox.h: Same.
              * rendering/InlineTextBox.cpp: 
              (WebCore::InlineTextBox::nodeAtPoint): Same.
              * rendering/InlineTextBox.h: Same.
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::isPointInScrollbar): Same.
              (WebCore::RenderBlock::nodeAtPoint): Same.
              * rendering/RenderBlock.h: Same.
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::nodeAtPoint): Same.
              * rendering/RenderBox.h: Same.
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::hitTestLines): Same.
              * rendering/RenderFlow.h: Same.
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::nodeAtPoint): Same.
              * rendering/RenderForeignObject.h: Same.
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::nodeAtPoint): Same.
              * rendering/RenderFrameSet.h: Same.
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::nodeAtPoint): Same.
              * rendering/RenderImage.h: Same.
              * rendering/RenderInline.cpp:
              (WebCore::RenderInline::nodeAtPoint): Same.
              * rendering/RenderInline.h: Same.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::autoscroll): Same.
              (WebCore::RenderLayer::hitTest): Same.
              (WebCore::RenderLayer::hitTestLayer): Same.
              (WebCore::RenderLayer::updateHoverActiveState): Same.
              * rendering/RenderLayer.h: Same.
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::isPointInScrollbar): Same.
              * rendering/RenderListBox.h: Same.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::hitTest): Same.
              (WebCore::RenderObject::setInnerNode): Same.
              (WebCore::RenderObject::nodeAtPoint): Same.
              * rendering/RenderObject.h: Remove NodeInfo class and forward 
              declare HitTestResult.
              * rendering/RenderPath.cpp:
              (WebCore::RenderPath::nodeAtPoint): Adjust to HitTestResult 
              changes.
              * rendering/RenderPath.h: Same.
              * rendering/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::nodeAtPoint): Same.
              * rendering/RenderSVGImage.h: Same
              * rendering/RenderSVGText.cpp:
              (WebCore::RenderSVGText::nodeAtPoint): Same.
              * rendering/RenderSVGText.h: Same.
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::nodeAtPoint): Same.
              * rendering/RenderTableRow.h: Same.
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::nodeAtPoint): Same.
              * rendering/RenderTableSection.h: Same.
              * rendering/RenderText.h: Same.
              (WebCore::RenderText::nodeAtPoint): Same.
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::nodeAtPoint): Same.
              * rendering/RenderTextControl.h: Same.
              * rendering/RootInlineBox.cpp:
              (WebCore::RootInlineBox::nodeAtPoint): Same.
              * rendering/RootInlineBox.h: Same.
      
      WebKit:
              Reviewed by Darin.
      
              This is the WebKit half of pushing the guts of elementAtPoint and 
              WebElementDictionary into WebCore. Among other things, this patch 
              makes WebElementDictionary.m and WebHTMLView.m Objective-C++
      
              * MigrateHeaders.make: Add DOMElementInternal.h to the list of 
              headers to migrate.
              * Misc/WebElementDictionary.h: Replaced DOMNode, DOMElement, and 
              NSPoint member variables with a HitTestResult member variable.
              * Misc/WebElementDictionary.m:
              (addLookupKey): Formatting.
              (-[WebElementDictionary initWithHitTestResult:]): Constructor just 
              takes a HitTestResult now and sets the member variable.
              (-[WebElementDictionary dealloc]): delete HitTestResult.
              (-[WebElementDictionary finalize]): Address HitTestResult.
              (-[WebElementDictionary _domNode]): Use HitTestResult and call into 
              WebCore.
              (-[WebElementDictionary objectForKey:]): Same.
              (-[WebElementDictionary _webFrame]): Same.
              (-[WebElementDictionary _targetWebFrame]): Same.
              (-[WebElementDictionary _title]): Same.
              (-[WebElementDictionary _imageRect]): Same.
              (-[WebElementDictionary _isSelected]): Same.
              * WebKit.xcodeproj/project.pbxproj:
              * WebView/WebFrame.mm:
              (core): Convert from DOMNode* to Node*
              (kit): Convert from Node* to DOMNode*
              * WebView/WebFrameInternal.h: Support for the above.
              * WebView/WebHTMLView.m:
              (-[WebHTMLView elementAtPoint:allowShadowContent:]): Call directly 
              into Frame.cpp to get HitTestResult.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1a5a83b
  11. 09 Jul, 2006 1 commit
    • darin's avatar
      Rubber stamped by Maciej (kinda). · b53ebdcb
      darin authored
              - did the next pass of renaming (used do-webcore-rename script)
                this takes care of most of the remaining KWQ names (almost all)
      
              * WebCore+SVG/DOMList.h:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_window.cpp:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * bridge/mac/WebCoreSettings.h:
              * bridge/mac/WebCoreSettings.mm:
              * bridge/win/FrameWin.cpp:
              * css/CSSPrimitiveValue.cpp:
              * css/CSSValueKeywords.in:
              * css/MediaQueryEvaluator.cpp:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * css/cssstyleselector.h:
              * dom/CharacterData.cpp:
              * dom/CharacterData.h:
              * dom/Document.cpp:
              * dom/Element.cpp:
              * dom/Element.h:
              * dom/EventTargetNode.cpp:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.cpp:
              * dom/ProcessingInstruction.cpp:
              * dom/QualifiedName.cpp:
              * dom/QualifiedName.h:
              * dom/XMLTokenizer.cpp: Added.
              * dom/xml_tokenizer.cpp: Removed.
              * dom/xml_tokenizer.h: Removed.
              * editing/EditAction.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/Selection.h:
              * editing/SelectionController.h:
              * editing/TextAffinity.h:
              * editing/TextIterator.cpp:
              * editing/TextIterator.h:
              * editing/VisiblePosition.h:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/markup.h:
              * editing/visible_units.cpp:
              * editing/visible_units.h:
              * html/HTMLDocument.cpp:
              * html/HTMLFontElement.cpp:
              * html/HTMLInputElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLSelectElement.h:
              * html/HTMLTextAreaElement.cpp:
              * html/HTMLTextFieldInnerElement.cpp:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * kcanvas/KCanvasContainer.cpp: Removed.
              * kcanvas/KCanvasContainer.h: Removed.
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasFilters.h:
              * kcanvas/KCanvasMatrix.cpp:
              * kcanvas/KCanvasMatrix.h:
              * kcanvas/KCanvasPath.cpp:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderForeignObject.cpp:
              * kcanvas/RenderForeignObject.h:
              * kcanvas/RenderPath.cpp:
              * kcanvas/RenderPath.h:
              * kcanvas/RenderSVGContainer.cpp: Added.
              * kcanvas/RenderSVGContainer.h: Added.
              * kcanvas/RenderSVGImage.cpp:
              * kcanvas/RenderSVGImage.h:
              * kcanvas/RenderSVGText.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerPattern.cpp:
              * kcanvas/device/KRenderingPaintServerPattern.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * kcanvas/device/KRenderingPaintServerSolid.h:
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              * kcanvas/device/quartz/KCanvasItemQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              * kcanvas/device/quartz/KRenderingPaintServerQuartz.mm:
              * ksvg2/css/CSSValueKeywords.in:
              * ksvg2/css/SVGRenderStyleDefs.cpp:
              * ksvg2/misc/KCanvasRenderingStyle.cpp:
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              * ksvg2/svg/SVGAElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.cpp:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGGElement.cpp:
              * ksvg2/svg/SVGHelper.cpp:
              * ksvg2/svg/SVGHelper.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGLinearGradientElement.cpp:
              * ksvg2/svg/SVGMarkerElement.cpp:
              * ksvg2/svg/SVGMaskElement.cpp:
              * ksvg2/svg/SVGMatrix.cpp:
              * ksvg2/svg/SVGMatrix.h:
              * ksvg2/svg/SVGPatternElement.cpp:
              * ksvg2/svg/SVGRadialGradientElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.cpp:
              * ksvg2/svg/SVGTextElement.cpp:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGUseElement.cpp:
              * kwq/AffineTransform.cpp: Added.
              * kwq/AffineTransform.h: Added.
              * kwq/DeprecatedCString.cpp: Added.
              * kwq/DeprecatedCString.h: Added.
              * kwq/DeprecatedPtrQueue.h: Added.
              * kwq/FileButton.h: Added.
              * kwq/FileButton.mm: Added.
              * kwq/FormDataMac.mm: Added.
              * kwq/KWQCString.cpp: Removed.
              * kwq/KWQCString.h: Removed.
              * kwq/KWQComboBox.h: Removed.
              * kwq/KWQComboBox.mm: Removed.
              * kwq/KWQEditCommand.h: Removed.
              * kwq/KWQEditCommand.mm: Removed.
              * kwq/KWQFileButton.h: Removed.
              * kwq/KWQFileButton.mm: Removed.
              * kwq/KWQFormData.h: Removed.
              * kwq/KWQFormData.mm: Removed.
              * kwq/KWQKHTMLSettings.h: Removed.
              * kwq/KWQKIOGlobal.h: Removed.
              * kwq/KWQKSSLKeyGen.h: Removed.
              * kwq/KWQKSSLKeyGen.mm: Removed.
              * kwq/KWQLineEdit.h: Removed.
              * kwq/KWQLineEdit.mm: Removed.
              * kwq/KWQListBox.h: Removed.
              * kwq/KWQListBox.mm: Removed.
              * kwq/KWQLoader.h: Removed.
              * kwq/KWQLoader.mm: Removed.
              * kwq/KWQPageState.h: Removed.
              * kwq/KWQPageState.mm: Removed.
              * kwq/KWQPtrQueue.h: Removed.
              * kwq/KWQResourceLoader.h: Removed.
              * kwq/KWQResourceLoader.mm: Removed.
              * kwq/KWQScrollBar.h: Removed.
              * kwq/KWQScrollBar.mm: Removed.
              * kwq/KWQSlider.h: Removed.
              * kwq/KWQSlider.mm: Removed.
              * kwq/KWQTextEdit.h: Removed.
              * kwq/KWQTextEdit.mm: Removed.
              * kwq/KWQTextStream.cpp: Removed.
              * kwq/KWQTextStream.h: Removed.
              * kwq/KWQWMatrix.cpp: Removed.
              * kwq/KWQWMatrix.h: Removed.
              * kwq/ListBox.h: Added.
              * kwq/ListBox.mm: Added.
              * kwq/LoaderFunctions.h: Added.
              * kwq/LoaderFunctions.mm: Added.
              * kwq/PopUpButton.h: Added.
              * kwq/PopUpButton.mm: Added.
              * kwq/SSLKeyGenerator.h: Added.
              * kwq/SSLKeyGenerator.mm: Added.
              * kwq/Settings.h: Added.
              * kwq/TextBox.h: Added.
              * kwq/TextBox.mm: Added.
              * kwq/TextField.h: Added.
              * kwq/TextField.mm: Added.
              * kwq/TextStream.cpp: Added.
              * kwq/TextStream.h: Added.
              * kwq/WebCoreEditCommand.h: Added.
              * kwq/WebCoreEditCommand.mm: Added.
              * kwq/WebCorePageState.h: Added.
              * kwq/WebCorePageState.mm: Added.
              * kwq/WebCoreResourceLoaderImp.h: Added.
              * kwq/WebCoreResourceLoaderImp.mm: Added.
              * kwq/WebCoreScrollBar.h: Added.
              * kwq/WebCoreScrollBar.mm: Added.
              * kwq/WebCoreSlider.h: Added.
              * kwq/WebCoreSlider.mm: Added.
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedImage.cpp:
              * loader/CachedObject.h:
              * loader/CachedObjectClientWalker.h:
              * loader/CachedResource.h:
              * loader/CachedResourceClientWalker.h:
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.h:
              * loader/Decoder.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * loader/FormData.h:
              * loader/ImageDocument.cpp:
              * loader/PluginDocument.cpp:
              * loader/TextDocument.cpp:
              * loader/loader.cpp:
              * loader/loader.h:
              * page/Frame.cpp:
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/Page.cpp:
              * page/Page.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FloatSize.h:
              * platform/Font.cpp:
              * platform/KURL.cpp:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SegmentedString.h:
              * platform/StreamingTextDecoder.cpp:
              * platform/String.cpp:
              * platform/StringImpl.cpp:
              * platform/TextEncoding.cpp:
              * platform/TransferJob.cpp:
              * platform/TransferJob.h:
              * platform/TransferJobInternal.h:
              * platform/gdk/FrameGdk.cpp:
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/CursorMac.mm:
              * platform/mac/DeprecatedStringMac.mm: Added.
              * platform/mac/FontCacheMac.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/FoundationExtras.h:
              * platform/mac/ImageMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/MouseEventMac.mm: Removed.
              * platform/mac/QStringListMac.mm: Removed.
              * platform/mac/QStringMac.mm: Removed.
              * platform/mac/TransferJobMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * platform/mac/WidgetMac.mm:
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/DataRef.h:
              * rendering/DeprecatedRenderSelect.cpp:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/DeprecatedSlider.cpp:
              * rendering/InlineFlowBox.cpp:
              * rendering/RenderApplet.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBlock.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFileButton.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderFormElement.cpp:
              * rendering/RenderFrameSet.cpp:
              * rendering/RenderFrameSet.h:
              * rendering/RenderImage.cpp:
              * rendering/RenderInline.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLayer.h:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderListItem.cpp:
              * rendering/RenderListMarker.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderReplaced.cpp:
              * rendering/RenderStyle.cpp: Added.
              * rendering/RenderStyle.h: Added.
              * rendering/RenderTable.cpp:
              * rendering/RenderTable.h:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCell.h:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableCol.h:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              * rendering/RenderText.h:
              * rendering/RenderTextArea.cpp:
              * rendering/RenderTextControl.cpp: Added.
              * rendering/RenderTextControl.h: Added.
              * rendering/RenderTextField.cpp: Removed.
              * rendering/RenderTextField.h: Removed.
              * rendering/RenderTheme.cpp:
              * rendering/RenderThemeMac.mm:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.cpp:
              * rendering/RenderWidget.cpp:
              * rendering/bidi.cpp:
              * rendering/render_style.cpp: Removed.
              * rendering/render_style.h: Removed.
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
              * xml/xmlhttprequest.cpp:
              * xpath/impl/XPathParser.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15253 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b53ebdcb
  12. 27 Jun, 2006 1 commit
  13. 19 Jun, 2006 1 commit
  14. 30 May, 2006 1 commit
    • hyatt's avatar
      Rename RenderCanvas to RenderView. Rename canvas(), isCanvas() · d804834e
      hyatt authored
              to view(), isView().  Rename the frame view accessor on the old canvas
              from view() to frameView() (to avoid view()->view(), since that just looks
              stupid). :)
      
              Reviewed by andersca
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_window.cpp:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge _setupRootForPrinting:]):
              (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              (-[WebCoreFrameBridge selectionColor]):
              (-[WebCoreFrameBridge accessibilityTree]):
              * dom/Document.cpp:
              (WebCore::Document::attach):
              (WebCore::Document::updateSelection):
              (WebCore::Document::prepareMouseEvent):
              * editing/SelectionController.cpp:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              * ksvg2/svg/SVGClipPathElement.cpp:
              (SVGClipPathElement::canvasResource):
              * ksvg2/svg/SVGFEFloodElement.cpp:
              (SVGFEFloodElement::filterEffect):
              * ksvg2/svg/SVGGradientElement.cpp:
              (SVGGradientElement::rebuildStops):
              * ksvg2/svg/SVGHelper.cpp:
              (SVGHelper::PercentageOfViewport):
              * ksvg2/svg/SVGPathElement.cpp:
              (WebCore::SVGPathElement::getPointAtLength):
              * ksvg2/svg/SVGSVGElement.cpp:
              (WebCore::SVGSVGElement::currentTranslate):
              * ksvg2/svg/SVGStyledElement.cpp:
              (WebCore::SVGStyledElement::view):
              (WebCore::SVGStyledElement::pushAttributeContext):
              * ksvg2/svg/SVGStyledElement.h:
              * kwq/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
              (-[WebCoreAXObject role]):
              (-[WebCoreAXObject value]):
              (-[WebCoreAXObject position]):
              (-[WebCoreAXObject accessibilityIsIgnored]):
              (-[WebCoreAXObject accessibilityAttributeNames]):
              (-[WebCoreAXObject topView]):
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              * page/Frame.cpp:
              (WebCore::Frame::selectionRect):
              (WebCore::Frame::paint):
              (WebCore::Frame::adjustPageHeight):
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              * page/FrameView.cpp:
              (WebCore::FrameView::adjustViewSize):
              (WebCore::FrameView::layout):
              * page/FrameView.h:
              * rendering/AutoTableLayout.cpp:
              (WebCore::shouldScaleColumns):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::MarginInfo::MarginInfo):
              (WebCore::RenderBlock::isSelfCollapsingBlock):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::paintChildren):
              (WebCore::RenderBlock::setSelectionState):
              (WebCore::RenderBlock::isSelectionRoot):
              (WebCore::RenderBlock::fillInlineSelectionGaps):
              (WebCore::RenderBlock::lowestPosition):
              (WebCore::RenderBlock::rightmostPosition):
              (WebCore::RenderBlock::leftmostPosition):
              (WebCore::RenderBlock::clearFloats):
              (WebCore::RenderBlock::nodeAtPoint):
              (WebCore::RenderBlock::calcBlocminMaxWidth):
              (WebCore::RenderBlock::inRootBlockContext):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::paintRootBoxDecorations):
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::availableHeightUsing):
              * rendering/RenderCanvas.cpp: Removed.
              * rendering/RenderCanvas.h: Removed.
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::removeChildNode):
              * rendering/RenderFileButton.cpp:
              (WebCore::RenderFileButton::RenderFileButton):
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::destroy):
              (WebCore::RenderFlow::paintLines):
              * rendering/RenderFrameSet.cpp:
              (WebCore::RenderFrameSet::layout):
              (WebCore::RenderFrameSet::userResize):
              (WebCore::RenderFrameSet::setResizing):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::updateLayerPositions):
              (WebCore::RenderLayer::updateLayerPosition):
              (WebCore::RenderLayer::stackingContext):
              (WebCore::RenderLayer::enclosingPositionedAncestor):
              (WebCore::RenderLayer::convertToLayerCoords):
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::isSubframeCanvas):
              (WebCore::RenderLayer::intersectsDamageRect):
              * rendering/RenderLayer.h:
              (WebCore::RenderLayer::isStackingContext):
              * rendering/RenderListMarker.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::scroll):
              (WebCore::RenderObject::containingBlock):
              (WebCore::RenderObject::repaint):
              (WebCore::RenderObject::repaintRectangle):
              (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
              (WebCore::RenderObject::draggableNode):
              (WebCore::RenderObject::selectionStartEnd):
              (WebCore::RenderObject::setStyle):
              (WebCore::RenderObject::viewRect):
              (WebCore::RenderObject::view):
              (WebCore::RenderObject::container):
              (WebCore::RenderObject::removeFromObjectLists):
              (WebCore::RenderObject::scheduleRelayout):
              (WebCore::RenderObject::imageChanged):
              (WebCore::RenderObject::maximalOutlineSize):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::isRenderView):
              * rendering/RenderTextArea.cpp:
              (WebCore::RenderTextArea::RenderTextArea):
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::paintCheckbox):
              (WebCore::RenderThemeMac::paintRadio):
              (WebCore::RenderThemeMac::paintButton):
              * rendering/RenderTreeAsText.cpp:
              (externalRepresentation):
              * rendering/RenderView.cpp: Added.
              (WebCore::RenderView::RenderView):
              (WebCore::RenderView::~RenderView):
              (WebCore::RenderView::calcHeight):
              (WebCore::RenderView::calcWidth):
              (WebCore::RenderView::calcMinMaxWidth):
              (WebCore::RenderView::layout):
              (WebCore::RenderView::absolutePosition):
              (WebCore::RenderView::paint):
              (WebCore::RenderView::paintBoxDecorations):
              (WebCore::RenderView::repaintViewRectangle):
              (WebCore::RenderView::getAbsoluteRepaintRect):
              (WebCore::RenderView::computeAbsoluteRepaintRect):
              (WebCore::RenderView::absoluteRects):
              (WebCore::RenderView::selectionRect):
              (WebCore::RenderView::setSelection):
              (WebCore::RenderView::clearSelection):
              (WebCore::RenderView::selectionStartEnd):
              (WebCore::RenderView::updateWidgetPositions):
              (WebCore::RenderView::addWidget):
              (WebCore::RenderView::removeWidget):
              (WebCore::RenderView::viewRect):
              (WebCore::RenderView::docHeight):
              (WebCore::RenderView::docWidth):
              (WebCore::RenderView::setBestTruncatedAt):
              * rendering/RenderView.h: Added.
              (WebCore::RenderView::renderName):
              (WebCore::RenderView::isRenderView):
              (WebCore::RenderView::frameView):
              * rendering/RenderWidget.cpp:
              (WebCore::RenderWidget::RenderWidget):
              (WebCore::RenderWidget::destroy):
              (WebCore::RenderWidget::updateWidgetPosition):
              * rendering/RenderWidget.h:
              (WebCore::RenderWidget::widget):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::layoutInlineChildren):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d804834e
  15. 12 May, 2006 2 commits
    • eseidel's avatar
      2006-05-12 Eric Seidel <eseidel@apple.com> · 409f4301
      eseidel authored
              Reviewed by mjs.
      
              Split render_frames.* render_replaced.* and html_baseimpl.* into separate files (one class per file).
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8878
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLDocumentProtoFunc::callAsFunction):
              (KJS::JSHTMLDocument::namedItemGetter):
              (KJS::JSHTMLDocument::getValueProperty):
              (KJS::JSHTMLDocument::getOwnPropertySlot):
              (KJS::JSHTMLDocument::putValueProperty):
              (KJS::JSHTMLElement::formIndexGetter):
              (KJS::JSHTMLElement::formNameGetter):
              (KJS::JSHTMLElement::selectIndexGetter):
              (KJS::JSHTMLElement::framesetNameGetter):
              (KJS::JSHTMLElement::runtimeObjectGetter):
              (KJS::JSHTMLElement::runtimeObjectPropertyGetter):
              (KJS::JSHTMLElement::getOwnPropertySlot):
              (KJS::JSHTMLElement::implementsCall):
              (KJS::JSHTMLElement::callAsFunction):
              (KJS::JSHTMLElement::getValueProperty):
              (KJS::JSHTMLElement::toString):
              (KJS::getForm):
              (KJS::JSHTMLElement::pushEventHandlerScope):
              (KJS::HTMLElementFunction::callAsFunction):
              (KJS::JSHTMLElement::put):
              (KJS::JSHTMLElement::selectSetter):
              (KJS::JSHTMLElement::putValueProperty):
              (KJS::toHTMLElement):
              (KJS::toHTMLTableCaptionElement):
              (KJS::toHTMLTableSectionElement):
              (KJS::JSHTMLCollection::lengthGetter):
              (KJS::JSHTMLCollection::indexGetter):
              (KJS::JSHTMLCollection::nameGetter):
              (KJS::JSHTMLCollection::getOwnPropertySlot):
              (KJS::HTMLCollectionProtoFunc::callAsFunction):
              (KJS::JSHTMLSelectCollection::selectedIndexGetter):
              (KJS::JSHTMLSelectCollection::put):
              (KJS::OptionConstructorImp::construct):
              (KJS::getSelectHTMLCollection):
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::createFrame):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge copyRenderNode:copier:]):
              * dom/Document.cpp:
              (WebCore::widgetForNode):
              * html/HTMLBodyElement.cpp: Added.
              (WebCore::HTMLBodyElement::HTMLBodyElement):
              (WebCore::HTMLBodyElement::parseMappedAttribute):
              * html/HTMLBodyElement.h: Added.
              * html/HTMLDocument.cpp:
              * html/HTMLElementFactory.cpp:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFrameElement.cpp: Added.
              (WebCore::HTMLFrameElement::isURLAllowed):
              (WebCore::HTMLFrameElement::parseMappedAttribute):
              (WebCore::HTMLFrameElement::setLocation):
              * html/HTMLFrameElement.h: Added.
              * html/HTMLFrameSetElement.cpp: Added.
              (WebCore::HTMLFrameSetElement::HTMLFrameSetElement):
              (WebCore::HTMLFrameSetElement::parseMappedAttribute):
              (WebCore::HTMLFrameSetElement::attach):
              (WebCore::HTMLFrameSetElement::defaultEventHandler):
              (WebCore::HTMLFrameSetElement::recalcStyle):
              * html/HTMLFrameSetElement.h: Added.
              * html/HTMLHeadElement.cpp: Added.
              (WebCore::HTMLHeadElement::HTMLHeadElement):
              * html/HTMLHeadElement.h: Added.
              * html/HTMLHtmlElement.cpp: Added.
              (WebCore::HTMLHtmlElement::HTMLHtmlElement):
              * html/HTMLHtmlElement.h: Added.
              * html/HTMLIFrameElement.cpp: Added.
              (WebCore::HTMLIFrameElement::HTMLIFrameElement):
              * html/HTMLIFrameElement.h: Added.
              * html/HTMLObjectElement.cpp:
              * html/HTMLParser.cpp:
              * html/html_baseimpl.cpp: Removed.
              * html/html_baseimpl.h: Removed.
              * kwq/WebCoreAXObject.mm:
              * page/Frame.cpp:
              (WebCore::isFrameElement):
              (WebCore::Frame::applyEditingStyleToBodyElement):
              (WebCore::Frame::removeEditingStyleFromBodyElement):
              (WebCore::Frame::applyEditingStyleToElement):
              (WebCore::Frame::removeEditingStyleFromElement):
              (WebCore::Frame::selectionRect):
              (WebCore::Frame::isFrameSet):
              (WebCore::scanForForm):
              (WebCore::Frame::currentForm):
              (WebCore::Frame::nodeInfoAtPoint):
              (WebCore::Frame::adjustPageHeight):
              (WebCore::Frame::frameForWidget):
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              (WebCore::Frame::passWidgetMouseDownEventToWidget):
              * page/FrameView.cpp:
              * rendering/RenderFrame.cpp: Added.
              (WebCore::RenderFrame::viewCleared):
              * rendering/RenderFrame.h: Added.
              * rendering/RenderFrameSet.cpp: Added.
              (WebCore::RenderFrameSet::RenderFrameSet):
              (WebCore::RenderFrameSet::~RenderFrameSet):
              (WebCore::RenderFrameSet::layout):
              (WebCore::RenderFrameSet::positionFrames):
              (WebCore::RenderFrameSet::userResize):
              (WebCore::RenderFrameSet::canResize):
              (WebCore::RenderFrameSet::dump):
              * rendering/RenderFrameSet.h: Added.
              * rendering/RenderImage.h:
              * rendering/RenderPart.cpp: Added.
              (WebCore::RenderPart::RenderPart):
              * rendering/RenderPart.h: Added.
              * rendering/RenderPartObject.cpp: Added.
              (WebCore::isURLAllowed):
              (WebCore::RenderPartObject::updateWidget):
              (WebCore::RenderPartObject::viewCleared):
              * rendering/RenderPartObject.h: Added.
              * rendering/RenderReplaced.cpp: Added.
              (WebCore::RenderReplaced::selectionColor):
              * rendering/RenderReplaced.h: Added.
              * rendering/RenderWidget.cpp: Added.
              (WebCore::RenderWidget::deleteWidget):
              * rendering/RenderWidget.h: Added.
              * rendering/render_form.h:
              * rendering/render_frames.cpp: Removed.
              * rendering/render_frames.h: Removed.
              * rendering/render_replaced.cpp: Removed.
              * rendering/render_replaced.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14334 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      409f4301
    • eseidel's avatar
      2006-05-10 Eric Seidel <eseidel@apple.com> · d2f36a16
      eseidel authored
              Reviewed by mjs & adele.
      
              Split html_objectimpl.* into multiple files (one per class)
              http://bugzilla.opendarwin.org/show_bug.cgi?id=8836
      
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_dom.cpp:
              (KJS::DOMNamedNodeMap::lengthGetter):
              (KJS::DOMNamedNodeMap::indexGetter):
              (KJS::DOMNamedNodeMap::nameGetter):
              (KJS::DOMNamedNodeMapProtoFunc::callAsFunction):
              (KJS::getRuntimeObject):
              * bindings/js/kjs_html.cpp:
              * html/HTMLAppletElement.cpp: Added.
              * html/HTMLAppletElement.h: Added.
              * html/HTMLElementFactory.cpp:
              * html/HTMLEmbedElement.cpp: Added.
              (WebCore::HTMLEmbedElement::HTMLEmbedElement):
              (WebCore::HTMLEmbedElement::getInstance):
              (WebCore::HTMLEmbedElement::parseMappedAttribute):
              * html/HTMLEmbedElement.h: Added.
              * html/HTMLNameCollection.cpp:
              (WebCore::HTMLNameCollection::traverseNextItem):
              * html/HTMLObjectElement.cpp: Added.
              (WebCore::HTMLObjectElement::getInstance):
              (WebCore::HTMLObjectElement::form):
              (WebCore::HTMLObjectElement::parseMappedAttribute):
              (WebCore::HTMLObjectElement::updateDocNamedItem):
              * html/HTMLObjectElement.h: Added.
              * html/HTMLParamElement.cpp: Added.
              * html/HTMLParamElement.h: Added.
              * html/HTMLParser.cpp:
              * html/HTMLPlugInElement.cpp: Added.
              * html/HTMLPlugInElement.h: Added.
              * html/html_objectimpl.cpp: Removed.
              * html/html_objectimpl.h: Removed.
              * page/Frame.cpp:
              (WebCore::Frame::handleFallbackContent):
              * rendering/RenderApplet.cpp:
              * rendering/render_frames.cpp:
              (WebCore::RenderPartObject::updateWidget):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14327 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d2f36a16
  16. 25 Apr, 2006 1 commit
  17. 21 Apr, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 33137f7d
      darin authored
              - make <canvas> element and related API behave more like the draft of
                the WhatWG Web Application specification, checking parameter validity
                and raising exceptions
              - changed HTMLCanvasElement bindings to be auto-generated, fixing all
                issues so we can generate bindings for classes drived from HTMLElement
              - change GraphicsContext API to use IntRect/Point/Size in more cases
              - change GraphicsContext so it is closer to truly wrapping a graphics
                context rather than representing the current NSGraphicsContext; there
                are still some things like text and rectangle fills that are tied to
                NSGraphicsContext, but we're most of the way there
              - removed Brush class since it just amounted to a color, using an RGBA32
                instead where we used to use a Brush
      
              * DerivedSources.make: Added JSHTMLCanvasElement.h.
              * WebCore.xcodeproj/project.pbxproj: Added new files.
      
              * bindings/js/JSCanvasRenderingContext2DBase.h: Added toJS.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
              Added exception code handling for strokeRect, drawImage, and createPattern.
              Added version of createPattern that takes a canvas. Use TYPE_MISMATCH_ERR
              instead of JavaScript TypeError when parameter is neither an image or canvas
              element. Adapt for new HTMLCanvasElement binding.
              (WebCore::toJS): Added. Converts context object to JS wrapper.
      
              * bindings/js/JSHTMLElementWrapperFactory.h: Added.
              * bindings/js/JSHTMLElementWrapperFactory.cpp: Added. Creates a JavaScript
              wrapper for an arbitrary HTML element. Better than putting this all in the
              DOM node class toJS function.
      
              * bindings/js/JSXMLSerializer.cpp: Tweaked to make it build.
              * bindings/js/kjs_dom.cpp: (KJS::toJS): Changed to call the
              JSHTMLElementWrapperFactory function createJSWrapper, instead
              of always creating a JSHTMLElement.
      
              * bindings/js/kjs_html.h: Removed canvas-related stuff. Added HTMLElement
              prototype.
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLElement::classInfo): Removed canvas element.
              (KJS::JSHTMLElement::accessors): Ditto.
              (KJS::JSHTMLElementProtoFunc::callAsFunction): Added, to help the auto-binding
              machiner cope with HTMLElement.
              (KJS::HTMLElementFunction::callAsFunction): Removed canvas element.
      
              * bindings/scripts/CodeGeneratorJS.pm: Added types needed for HTMLCanvasElement.
      
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::setDisplaysWithFocusAttributes):
              Changed to create a GraphicsContext with the new constructor that takes
              a CGContextRef.
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              Changed to create a GraphicsContext with the new constructor that takes
              a NSGraphicsContext.
              * page/Frame.cpp: (WebCore::Frame::adjustPageHeight): Changed to create a
              GraphicsContext with the new constructor that takes a CGContextRef.
      
              * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
              Eliminated a use of obsolete class Brush.
      
              * html/CanvasPattern.h:
              * html/CanvasPattern.cpp:
              (WebCore::CanvasPattern::parseRepetitionType): Added. Parses a repetition
              type. Different from the old logic in that it is case-sensitive and rejects
              anything other than null, empty string, or the four repeat types.
              (WebCore::CanvasPattern::CanvasPattern): Added constructor that takes
              a CGImageRef. Changed constructor to take two booleans instead of the repetition
              type string. It's the caller's responsibility to parse the string.
              (WebCore::CanvasPattern::~CanvasPattern): Release the CGImage.
              (WebCore::patternCallback): Handle the CGImage case. Also changed the code
              to create a GraphicsContext as needed and call the image drawing code with that.
              (WebCore::CanvasPattern::createPattern): Handle both the image element case and
              the canvas element case.
              
              * html/CanvasRenderingContext2D.h:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::State::State): Change line cap, line join,
              and global composite to store enum values instead of strings.
              (WebCore::CanvasRenderingContext2D::setLineWidth): Do nothing if width is NaN
              or <= 0.
              (WebCore::CanvasRenderingContext2D::lineCap): Return a string based on a
              stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setLineCap): Do nothing if the string is
              not one of the standard line cap types. Also case sensitive and stores enum
              rather than the string.
              (WebCore::CanvasRenderingContext2D::lineJoin): Return a string based on a
              stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setLineJoin): Do nothing if the string is
              not one of the standard line join types. Also case sensitive and stores enum
              rather than the string.
              (WebCore::CanvasRenderingContext2D::setMiterLimit): Do nothing if limit is NaN
              or <= 0.
              (WebCore::CanvasRenderingContext2D::setGlobalAlpha): Do nothing if alpha is NaN
              or < 0 or > 1.
              (WebCore::CanvasRenderingContext2D::globalCompositeOperation): Return a string
              based on a stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation): Do nothing if
              the string is not one of the standard compositing modes. Also case sensitive and
              stores enum rather than the string.
              (WebCore::CanvasRenderingContext2D::arcTo): Generate INDEX_SIZE_ERR exception
              if radius is NaN or <= 0.
              (WebCore::CanvasRenderingContext2D::arc): Ditto.
              (WebCore::CanvasRenderingContext2D::rect): Generate INDEX_SIZE_ERR exception
              if width or height is NaN or <= 0.
              (WebCore::CanvasRenderingContext2D::clearRect): Ditto.
              (WebCore::CanvasRenderingContext2D::fillRect): Ditto.
              (WebCore::CanvasRenderingContext2D::strokeRect): Ditto, same for line width.
              Changed the case where the line width is not specified to share code with the
              case where it is.
              (WebCore::size): Renamed from imageSize, since C++ overloads based on parameter
              types anyway.
              (WebCore::CanvasRenderingContext2D::drawImage): Generate INDEX_SIZE_ERR exception
              if the source rect is not entirely inside the image rect, or if the width or height
              of either the source or destination rect is NaN or <= 0. Changed image drawing
              code to be platform-independent for the image element case, but not yet for the
              canvas case.
              (WebCore::CanvasRenderingContext2D::drawImageFromRect): Change code to parse the
              composite operation to use the new code shared with Image.
              (WebCore::CanvasRenderingContext2D::createPattern): Added code to parse the
              repetition type separately before creating the pattern. Added an overload for
              canvas elements.
              (WebCore::CanvasRenderingContext2D::drawingContext): Changed to return a
              GraphicsContext*.
              (WebCore::CanvasRenderingContext2D::platformContext): Added. Now does what
              drawingContext used to do.
      
              * html/CanvasRenderingContext2D.idl: Added exception declarations as needed
              for changes above.
      
              * html/HTMLCanvasElement.h:
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::HTMLCanvasElement): Changed m_drawingContext
              to be a GraphicsContext instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::~HTMLCanvasElement): Ditto.
              (WebCore::HTMLCanvasElement::getContext): Removed special cases for null
              and empty string. Only give a 2D graphics context if the string is "2d".
              (WebCore::HTMLCanvasElement::reset): Updated for change to GraphicsContext
              from CGContextRef.
              (WebCore::HTMLCanvasElement::paint): Ditto.
              (WebCore::HTMLCanvasElement::createDrawingContext): Changed to create a
              GraphicsContext* instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::drawingContext): Changed to return a
              GraphicsContext* instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::createPlatformImage): Updated for changes above.
      
              * html/HTMLCanvasElement.idl: Added.
      
              * html/HTMLParser.h:
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::canvasCreateErrorCheck): Added. An attempt to implement the
              fallback behavior for canvas elements when JavaScript is off.
              (WebCore::HTMLParser::getNode): Sorted list of functions. Added case for canvas.
      
              * html/html_imageimpl.h:
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageElement::HTMLImageElement): Changed m_compositeOperator to be
              an enum instead of a string.
              (WebCore::HTMLImageElement::parseMappedAttribute): Parse the enum here.
      
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw): Changed to take a
              GraphicsContext parameter.
      
              * kcanvas/RenderPath.h: Added GraphicsContext parameter to drawMarkersIfNeeded.
      
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
              * kcanvas/RenderSVGImage.cpp: (WebCore::RenderSVGImage::paint):
              * kcanvas/RenderSVGText.cpp: (WebCore::RenderSVGText::paint):
              Changed to generate and use an appropriate GraphicsContext.
      
              * kcanvas/device/quartz/KCanvasItemQuartz.h: Added GraphicsContext parameter to
              drawMarkersIfNeeded.
              * kcanvas/device/quartz/KCanvasItemQuartz.mm:
              (WebCore::DrawMarkersData::DrawMarkersData): Added GraphicsContext*.
              (WebCore::drawMarkerWithData): Pass along a GraphicsContext*.
              (WebCore::drawStartAndMidMarkers): Ditto.
              (WebCore::KCanvasItemQuartz::drawMarkersIfNeeded): Pass a long a GraphicsContext*.
      
              * kcanvas/device/KRenderingDevice.h: Added a pure virtual createGraphicsContext
              to bridge back to a GraphicsContext. Long term that class will replace this one.
              * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceContextQuartz::createGraphicsContext): Added.
      
              * ksvg2/svg/SVGMaskElement.cpp: (WebCore::SVGMaskElement::drawMaskerContent):
              Create and pass a GraphicsContext -- old code used the default constructor for
              GraphicsContext which meant "current context", and that no longer exists.
              * ksvg2/svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::drawPatternContentIntoTile): Ditto.
      
              * platform/Brush.h: Removed.
              * platform/CompositeOperator.h: Added.
              * platform/CompositeOperator.cpp: Added.
      
              * platform/Font.h: Changed calls to use IntPoint instead of pairs of ints.
              Also removed the const from all the uses of GraphicsContext*.
      
              * platform/GraphicsContext.h: Eliminated default constructor and constructor
              that takes only a boolean. Replaced with constructors that take platform
              graphics contexts only. Replaced brush-related calls with fill color calls.
              Replaced use of Brush with use of Color. Changed Image::CompositeOperator to
              just plain CompositeOperator. Changed tuples of ints into IntRect and IntPoint.
              Moved setFocusRingClip and clearFocusRingClip out of ifdefs. Removed unused
              getCompositeOperation and string-based setCompositeOperation. Moved
              currentCGContext and the other setCompositeOperation out of the GraphicsContext
              class and made them global functions. Fixed platformContext so it won't always
              return the CGContextRef of the current NSGraphicsContext. Instead, it will
              return the appropriate CGContextRef for the GraphicsContext. This eliminates
              the need to use void* for the image-drawing functions.
      
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState): Replaced Brush with
              an RGBA fill color.
              (WebCore::GraphicsContext::setFillColor): Renamed from setBrush.
              (WebCore::GraphicsContext::fillColor): Renamed from brush.
              (WebCore::GraphicsContext::drawImage): Changed to use IntRect.
              (WebCore::GraphicsContext::drawTiledImage): Moved here from GraphicsContextMac.mm.
              (WebCore::GraphicsContext::drawText): Changed to use IntPoint.
              (WebCore::GraphicsContext::drawHighlightForText): Ditto.
              (WebCore::GraphicsContext::drawLineForText): Ditto.
              (WebCore::GraphicsContext::drawLineForMisspelling): Ditto.
      
              * platform/Image.h: Removed CompositeOperator and related functions.
              Removed void* context parameters from draw functions.
      
              * platform/Image.cpp: Removed compositeOperatorFromString.
      
              * platform/Widget.h: Added a GraphicsContext* return value from lockDrawingFocus
              that you pass back to unlockDrawingFocus (for deletion).
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForText): Changed parameter to point and removed
              const on GraphicsContext* parameter.
              (WebCore::Font::drawText): Ditto.
              (WebCore::Font::drawHighlightForText): Ditto.
              (WebCore::Font::drawLineForText): Ditto.
              (WebCore::Font::drawLineForMisspelling): Ditto.
              (WebCore::Font::misspellingLineThickness): Removed const.
      
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              Added fields to store a CGContextRef and an NSGraphicsContext.
              (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
              Release both the CGContextRef and the NSGraphicsContext.
              (WebCore::GraphicsContext::GraphicsContext): Implement to set up both the
              CGContextRef and the NSGraphicsContext in one case, and only the CGContextRef
              in the other.
              (WebCore::GraphicsContext::savePlatformState): Implement for the CGContext-only
              case.
              (WebCore::GraphicsContext::restorePlatformState): Ditto.
              (WebCore::GraphicsContext::drawRect): Assert that the NS context is present
              and 
              (WebCore::GraphicsContext::setColorFromFillColor): Renamed from
              setColorFromBrush.
              (WebCore::GraphicsContext::setColorFromPen): Added assertion.
              (WebCore::GraphicsContext::drawLine): Added assertion.
              (WebCore::GraphicsContext::drawEllipse): Get CGContext from the platformContext
              function instead of currentCGContext, and changed to use fillColor.
              (WebCore::GraphicsContext::drawArc): Ditto.
              (WebCore::GraphicsContext::drawConvexPolygon): Ditto.
              (WebCore::setCompositeOperation): Changed to global function and also changed
              to do the work here -- no need to use WebCoreImageRendererFactory.
              (WebCore::GraphicsContext::drawImage): Move most of this into GraphicsContext.cpp.
              Remove the void* context parameter. Changed to take rects instead of separate coordinates.
              (WebCore::GraphicsContext::fillRect): Changed to take color instead of Brush.
              (WebCore::GraphicsContext::addClip): Added assertion.
              (WebCore::GraphicsContext::addRoundedRectClip): Get CGContextRef from the platformContext
              function instead of currentCGContext.
              (WebCore::GraphicsContext::createRenderingDeviceContext): Ditto.
              (WebCore::GraphicsContext::beginTransparencyLayer): Ditto.
              (WebCore::GraphicsContext::endTransparencyLayer): Ditto.
              (WebCore::GraphicsContext::setShadow): Change to take size instead of x,y. Also get
              CGCOntextRef from the platformContext function instead of currentCGContext.
              (WebCore::GraphicsContext::clearShadow): Get CGContextRef from the platformContext
              function instead of currentCGContext.
              (WebCore::GraphicsContext::platformContext): Added. Returns m_data->m_cgContext.
      
              * platform/mac/ImageMac.mm:
              (WebCore::fillSolidColorInRect): Updated for change in CompositeOperator type.
              (WebCore::Image::checkForSolidColor): Ditto.
              (WebCore::Image::draw): Removed void* context parameter and replaced it with
              a GraphicsContext* parameter. Renamed from drawInRect.
              (WebCore::Image::drawTiled): Ditto. Renamed from tileInRect and scaleAndTileInRect.
      
              * platform/mac/PDFDocumentImage.h: Updated for change in CompositeOperator type.
              * platform/mac/PDFDocumentImage.mm: (WebCore::PDFDocumentImage::draw): Ditto.
      
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::lockDrawingFocus): Changed to return a GraphicsContext*.
              (WebCore::Widget::unlockDrawingFocus): Changed to take a GraphicsContext*.
      
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect): Changed to pass IntPoint.
              (WebCore::InlineTextBox::paint): Changed to pass IntSize.
              (WebCore::InlineTextBox::paintSelection): More of the same.
              (WebCore::InlineTextBox::paintMarkedTextBackground): Ditto.
              (WebCore::InlineTextBox::paintDecoration): Ditto.
              (WebCore::InlineTextBox::paintSpellingMarker): Ditto.
              (WebCore::InlineTextBox::paintTextMatchMarker): Ditto.
              (WebCore::InlineTextBox::paintMarkedTextUnderline): Ditto.
              (WebCore::InlineTextBox::positionForOffset): Ditto.
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::fillHorizontalSelectionGap): Ditto.
              (WebCore::RenderBlock::fillVerticalSelectionGap): Ditto.
              (WebCore::RenderBlock::fillLeftSelectionGap): Ditto.
              (WebCore::RenderBlock::fillRightSelectionGap): Ditto.
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackgroundExtended): Ditto.
              (WebCore::RenderBox::outlineBox): Ditto.
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint): Ditto.
              * rendering/RenderLayer.cpp:
              (WebCore::setClip): Take out ifdefs. We'll do that inside GraphicsContext instead.
              (WebCore::restoreClip): Ditto.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::drawBorder): More of the same.
              (WebCore::RenderObject::paintBorderImage): Ditto.
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintDecorations): Ditto.
              (WebCore::EllipsisBox::paint): Ditto.
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint): Ditto.
      
              * rendering/render_frames.cpp: (WebCore::RenderFrameSet::userResize): Set up a graphics
              context by calling lockDrawingFocus. Also changed a color here to be a constant.
      
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawImage): Update for parameter type changes.
              (WebCore::GraphicsContext::drawScaledAndTiledImage):
              (WebCore::GraphicsContext::setFocusRingClip):
              (WebCore::GraphicsContext::clearFocusRingClip):
              * platform/cairo/ImageCairo.cpp:
              (WebCore::setCompositingOperation):
              (WebCore::Image::tileInRect):
              (WebCore::Image::scaleAndTileInRect):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33137f7d
  18. 13 Apr, 2006 2 commits
    • darin's avatar
      Rubber-stamped by Anders. · 7bd70956
      darin authored
              - fix Windows build
      
              * WebCore.vcproj/Image\ Viewer/Image\ Viewer.vcproj: Add loader directory.
      
              - use std::min/max exclusively intead of kMin/Max
              - eliminate KWQDef.h since all it had left in it was kMin/Max
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Remove KWQDef.h.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * kwq/KWQDef.h: Removed.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::attributedString):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge computePageRectsWithPrintWidthScaleFactor:printHeight:]):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              (WebCore::CSSStyleSelector::fontSizeForKeyword):
              * dom/Document.cpp:
              (WebCore::Document::minimumLayoutDelay):
              (WebCore::Document::addMarker):
              * dom/StyledElement.cpp:
              (WebCore::StyledElement::addCSSColor):
              * dom/xml_tokenizer.cpp:
              (WebCore::OffsetBuffer::readOutBytes):
              * editing/ApplyStyleCommand.cpp:
              (WebCore::ApplyStyleCommand::applyRelativeFontStyleChange):
              * editing/CompositeEditCommand.cpp:
              (WebCore::CompositeEditCommand::deleteInsignificantText):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::handleTextNode):
              (WebCore::TextIterator::handleTextBox):
              (WebCore::CharacterIterator::string):
              (WebCore::findPlainText):
              * editing/htmlediting.cpp:
              (WebCore::rangeCompliantEquivalent):
              * editing/markup.cpp:
              (WebCore::renderedText):
              * editing/visible_units.cpp:
              (WebCore::startOfParagraph):
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::parseMappedAttribute):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::parseComment):
              (WebCore::HTMLTokenizer::parseEntity):
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::enlargeBuffer):
              (WebCore::HTMLTokenizer::enlargeScriptBuffer):
              * html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElement::getRegion):
              * html/html_tableimpl.cpp:
              (WebCore::HTMLTableElement::parseMappedAttribute):
              * ksvg2/css/SVGCSSParser.cpp:
              (WebCore::CSSParser::parseSVGPaint):
              (WebCore::CSSParser::parseSVGColor):
              * kwq/KWQComboBox.mm:
              (QComboBox::sizeHint):
              * kwq/KWQListBox.mm:
              (QListBox::sizeForNumberOfLines):
              * kwq/KWQSlider.mm:
              (QSlider::setValue):
              * loader/Cache.cpp:
              (WebCore::Cache::setSize):
              * page/Frame.cpp:
              (WebCore::Frame::forceLayoutWithPageWidthRange):
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedString.cpp:
              (ucstrcmp):
              * platform/DeprecatedString.h:
              * platform/DeprecatedValueListImpl.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::addRoundedRectClip):
              * platform/mac/WebCoreTextArea.mm:
              (-[WebCoreTextView _trackResizeFromMouseDown:]):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::isSelected):
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::placeEllipsisBox):
              (WebCore::InlineTextBox::selectionStartEnd):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintSpellingMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::overflowRect):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::collapseMargins):
              (WebCore::RenderBlock::clearFloatsIfNeeded):
              (WebCore::RenderBlock::estimateVerticalPosition):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::setCollapsedBottomMargin):
              (WebCore::RenderBlock::handleBottomOfBlock):
              (WebCore::RenderBlock::layoutBlockChildren):
              (WebCore::RenderBlock::fillVerticalSelectionGap):
              (WebCore::RenderBlock::fillLeftSelectionGap):
              (WebCore::RenderBlock::fillRightSelectionGap):
              (WebCore::RenderBlock::positionNewFloats):
              (WebCore::RenderBlock::nearestFloatBottom):
              (WebCore::RenderBlock::lowestPosition):
              (WebCore::RenderBlock::rightmostPosition):
              (WebCore::RenderBlock::leftmostPosition):
              (WebCore::RenderBlock::getClearDelta):
              (WebCore::RenderBlock::calcMinMaxWidth):
              (WebCore::RenderBlock::calcInlineMinMaxWidth):
              (WebCore::RenderBlock::calcBlocminMaxWidth):
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calcBorderBoxWidth):
              (WebCore::RenderBox::calcBorderBoxHeight):
              (WebCore::RenderBox::calcContentBoxWidth):
              (WebCore::RenderBox::calcContentBoxHeight):
              (WebCore::RenderBox::paintRootBoxDecorations):
              (WebCore::RenderBox::paintBoxDecorations):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVerticalValues):
              * rendering/RenderCanvas.cpp:
              (WebCore::RenderCanvas::layout):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::calcMinMaxWidth):
              (WebCore::RenderFlexibleBox::layoutHorizontalBox):
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              (WebCore::RenderFlexibleBox::allowedChildFlex):
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::paintLines):
              (WebCore::RenderFlow::lowestPosition):
              (WebCore::RenderFlow::rightmostPosition):
              (WebCore::RenderFlow::leftmostPosition):
              (WebCore::RenderFlow::paintOutlineForLine):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::calcReplacedWidth):
              (WebCore::RenderImage::calcReplacedHeight):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollRectToVisible):
              (WebCore::RenderLayer::computeScrollDimensions):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              (WebCore::RenderLayer::absoluteBoundingBox):
              (WebCore::Marquee::marqueeSpeed):
              (WebCore::Marquee::computePosition):
              (WebCore::Marquee::timerFired):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::repaintAfterLayoutIfNeeded):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              (WebCore::RenderTable::paintBoxDecorations):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::paintBackgroundsBehindCell):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::layoutRows):
              (WebCore::RenderTableSection::lowestPosition):
              (WebCore::RenderTableSection::rightmostPosition):
              (WebCore::RenderTableSection::leftmostPosition):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::caretRect):
              (WebCore::RenderText::calcMinMaxWidth):
              (WebCore::RenderText::minXPos):
              (WebCore::RenderText::width):
              (WebCore::RenderText::caretMinOffset):
              (WebCore::RenderText::caretMaxOffset):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::computeHorizontalPositionsForLine):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::RenderBlock::checkLinesForOverflow):
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::setSelectionStart):
              (WebCore::RenderLineEdit::setSelectionEnd):
              (WebCore::RenderLineEdit::setSelectionRange):
              (WebCore::RenderFieldset::layoutLegend):
              (WebCore::RenderFieldset::paintBoxDecorations):
              (WebCore::RenderSelect::layout):
              (WebCore::RenderTextArea::calcMinMaxWidth):
              (WebCore::RenderSlider::updateFromElement):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::placeBoxesHorizontally):
              (WebCore::InlineFlowBox::verticallyAlignBoxes):
              (WebCore::InlineFlowBox::adjustMaxAscentAndDescent):
              (WebCore::InlineFlowBox::placeBoxesVertically):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              * rendering/render_line.h:
              (WebCore::RootInlineBox::selectionHeight):
              * rendering/render_list.cpp:
              (WebCore::RenderListItem::positionListMarker):
              * rendering/render_replaced.cpp:
              (WebCore::RenderReplaced::shouldPaint):
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::layout):
              Use min/max instead of kMin/kMax.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13859 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7bd70956
    • darin's avatar
      Rubber-stamped by Anders. · 6142065b
      darin authored
              - get ready for some more de-KWQ-ing done by the renaming script in two ways
                  1) stop using forwarding headers for things within WebCore
                  2) remove a bit of unused stuff
      
              * loader/CachedImage.h:
              * loader/CachedImage.cpp:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * page/Frame.cpp:
              * xml/XSLTProcessor.cpp:
              Removed unused showAnimations functions and data. We can add back later if we need it.
              And if we do, we won't use a typedef from KHTMLSettings.
      
              * ForwardingHeaders/java: Removed.
              * ForwardingHeaders/java/kjavaappletwidget.h: Removed.
              * ForwardingHeaders/khtml_settings.h: Removed.
              * ForwardingHeaders/kio: Removed.
              * ForwardingHeaders/kio/global.h: Removed.
              * ForwardingHeaders/ksslkeygen.h: Removed.
              * ForwardingHeaders/q3ptrlist.h: Removed.
              * ForwardingHeaders/q3valuelist.h: Removed.
              * ForwardingHeaders/qcombobox.h: Removed.
              * ForwardingHeaders/qfontmetrics.h: Removed.
              * ForwardingHeaders/qlineedit.h: Removed.
              * ForwardingHeaders/qmatrix.h: Removed.
              * ForwardingHeaders/qptrlist.h: Removed.
              * ForwardingHeaders/qptrqueue.h: Removed.
              * ForwardingHeaders/qregexp.h: Removed.
              * ForwardingHeaders/qscrollbar.h: Removed.
              * ForwardingHeaders/qtextedit.h: Removed.
              * ForwardingHeaders/qtextstream.h: Removed.
              * ForwardingHeaders/qvaluelist.h: Removed.
              * ForwardingHeaders/qwmatrix.h: Removed.
      
              * WebCore+SVG/DOMList.h:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_window.cpp:
              * css/css_stylesheetimpl.h:
              * css/css_valueimpl.cpp:
              * css/css_valueimpl.h:
              * css/cssstyleselector.cpp:
              * dom/CharacterData.cpp:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.cpp:
              * dom/Node.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/htmlediting.cpp:
              * html/FormDataList.h:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLTokenizer.h:
              * html/html_objectimpl.cpp:
              * kcanvas/KCanvasFilters.cpp:
              * kcanvas/KCanvasMatrix.cpp:
              * kcanvas/KCanvasMatrix.h:
              * kcanvas/KCanvasPath.cpp:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderForeignObject.h:
              * kcanvas/RenderPath.h:
              * kcanvas/RenderSVGImage.h:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServerGradient.cpp:
              * kcanvas/device/KRenderingPaintServerPattern.cpp:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * kcanvas/device/quartz/KCanvasItemQuartz.h:
              * kcanvas/device/quartz/KCanvasResourcesQuartz.h:
              * ksvg2/svg/SVGColor.cpp:
              * ksvg2/svg/SVGComponentTransferFunctionElement.cpp:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGFEBlendElement.cpp:
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEComponentTransferElement.cpp:
              * ksvg2/svg/SVGFECompositeElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEGaussianBlurElement.cpp:
              * ksvg2/svg/SVGFELightElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              * ksvg2/svg/SVGFESpecularLightingElement.cpp:
              * ksvg2/svg/SVGFETileElement.cpp:
              * ksvg2/svg/SVGFETurbulenceElement.cpp:
              * ksvg2/svg/SVGFitToViewBox.cpp:
              * ksvg2/svg/SVGLengthList.cpp:
              * ksvg2/svg/SVGMatrix.h:
              * ksvg2/svg/SVGNumberList.cpp:
              * ksvg2/svg/SVGPreserveAspectRatio.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * ksvg2/svg/SVGStringList.cpp:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.cpp:
              * ksvg2/svg/SVGTransformable.cpp:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/svgpathparser.cpp:
              * kwq/KWQKHTMLSettings.h:
              * loader/Cache.h:
              * loader/CachedObject.h:
              * loader/Decoder.cpp:
              * loader/FormData.h:
              * loader/loader.h:
              * page/Frame.h:
              * page/FramePrivate.h:
              * platform/Font.cpp:
              * platform/SegmentedString.h:
              * platform/mac/FontMac.mm:
              * platform/mac/WebCoreTextField.mm:
              * rendering/RenderBlock.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderTable.cpp:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/bidi.h:
              * rendering/break_lines.cpp:
              * rendering/render_applet.cpp:
              * rendering/render_form.cpp:
              * rendering/render_form.h:
              * rendering/render_frames.cpp:
              * rendering/render_style.h:
              * xml/xmlhttprequest.cpp:
              Updated includes.
      
              * WebCore.xcodeproj/project.pbxproj: Resorted a couple things.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13858 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6142065b
  19. 31 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-31 Eric Seidel <eseidel@apple.com> · f76b4642
      eseidel authored
              Reviewed by mjs.
      
              A bit more code cleanup.
      
              * bridge/mac/WebCoreScriptDebugger.mm:
              (-[WebCoreScriptCallFrame evaluateWebScript:]):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::submit):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::setValue):
              * kwq/WebCoreTextField.mm:
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              (-[KWQSecureTextField selectText:]):
              * page/Frame.cpp:
              (WebCore::Frame::submitForm):
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm:
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13602 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f76b4642
  20. 22 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-22 Eric Seidel <eseidel@apple.com> · cff0a728
      eseidel authored
              Reviewed by darin.
      
              Replace more DeprecatedString with String.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7907
      
              * WebCore+SVG/kdom.h:
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLDocument _createDocumentFragmentWithMarkupString:baseURLString:]):
              * bridge/BrowserExtension.h:
              * bridge/mac/BrowserExtensionMac.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::setTypedIconURL):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::searchForLabelsBeforeElement):
              (WebCore::nsArray):
              (WebCore::FrameMac::createPlugin):
              (WebCore::FrameMac::bindingRootObject):
              (WebCore::FrameMac::windowScriptObject):
              (WebCore::FrameMac::windowScriptNPObject):
              (WebCore::FrameMac::partClearedInBegin):
              (WebCore::FrameMac::openURLFromPageCache):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge openURL:reload:contentType:refresh:lastModified:pageCache:]):
              (-[WebCoreFrameBridge scrollToAnchor:]):
              (-[WebCoreFrameBridge URLWithAttributeString:]):
              (-[WebCoreFrameBridge highlightAllMatchesForString:caseSensitive:]):
              * bridge/mac/WebCoreScriptDebugger.mm:
              (-[WebCoreScriptCallFrame evaluateWebScript:]):
              * bridge/mac/WebCoreSettings.mm:
              (-[WebCoreSettings _updateAllViews]):
              (-[WebCoreSettings setStandardFontFamily:]):
              (-[WebCoreSettings setMinimumFontSize:]):
              (-[WebCoreSettings setMinimumLogicalFontSize:]):
              (-[WebCoreSettings setDefaultFontSize:]):
              (-[WebCoreSettings setDefaultFixedFontSize:]):
              (-[WebCoreSettings setUserStyleSheetLocation:]):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSGrammar.y:
              * css/css_stylesheetimpl.cpp:
              (WebCore::MediaList::setMediaText):
              * css/css_valueimpl.cpp:
              (WebCore::quoteStringIfNeeded):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseColor):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              * css/cssstyleselector.h:
              * dom/Document.cpp:
              (WebCore::Document::resetActiveLinkColor):
              (WebCore::Document::nextState):
              (WebCore::Document::setUserStyleSheet):
              (WebCore::Document::processHttpEquiv):
              (WebCore::Document::recalcStyleSelector):
              * dom/Document.h:
              (WebCore::Document::userStyleSheet):
              (WebCore::Document::setPrintStyleSheet):
              (WebCore::Document::printStyleSheet):
              * editing/markup.cpp:
              (WebCore::createMarkup):
              (WebCore::createFragmentFromMarkup):
              (WebCore::createFragmentFromText):
              * editing/markup.h:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler):
              * html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElement::openURL):
              (WebCore::HTMLFrameElement::attach):
              * html/html_headimpl.cpp:
              (WebCore::HTMLLinkElement::process):
              (WebCore::HTMLLinkElement::setStyleSheet):
              * html/html_headimpl.h:
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageElement::parseMappedAttribute):
              * html/html_imageimpl.h:
              (WebCore::HTMLImageElement::compositeOperator):
              * html/html_objectimpl.cpp:
              (WebCore::HTMLAppletElement::createRenderer):
              * ksvg2/svg/SVGStringList.cpp:
              (SVGStringList::reset):
              * kwq/AccessibilityObjectCache.h:
              * kwq/AccessibilityObjectCache.mm:
              (AccessibilityObjectCache::textMarkerForVisiblePosition):
              (AccessibilityObjectCache::postNotificationToTopWebArea):
              (AccessibilityObjectCache::postNotification):
              * kwq/ClipboardMac.mm:
              (WebCore::cocoaTypeFromMIMEType):
              * kwq/KWQKHTMLSettings.h:
              (KHTMLSettings::userStyleSheetLocation):
              (KHTMLSettings::setUserStyleSheetLocation):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::selectedText):
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::ref):
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::setStyleSheet):
              (WebCore::Frame::jScriptEnabled):
              (WebCore::Frame::javaEnabled):
              (WebCore::Frame::pluginsEnabled):
              (WebCore::Frame::receivedFirstData):
              (WebCore::Frame::begin):
              (WebCore::Frame::setUserStyleSheet):
              (WebCore::Frame::requestObject):
              (WebCore::Frame::loadPlugin):
              (WebCore::Frame::referrer):
              (WebCore::Frame::lastModified):
              (WebCore::Frame::reparseConfiguration):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * platform/AtomicString.h:
              (WebCore::AtomicString::AtomicString):
              * platform/DeprecatedString.cpp:
              (DeprecatedString::replace):
              * platform/GraphicsContext.h:
              * platform/Image.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/PlatformString.h:
              (WebCore::String::String):
              (WebCore::String::replace):
              * platform/String.cpp:
              (WebCore::operator+):
              * platform/StringImpl.cpp:
              (WebCore::StringImpl::remove):
              (WebCore::parseLength):
              (WebCore::StringImpl::replace):
              * platform/StringImpl.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::setCompositeOperation):
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::paint):
              * rendering/render_form.cpp:
              (WebCore::RenderSelect::updateFromElement):
              * rendering/render_frames.cpp:
              (WebCore::isURLAllowed):
              (WebCore::mapClassIdToServiceType):
              (WebCore::RenderPartObject::updateWidget):
              * rendering/render_style.h:
              (WebCore::RenderStyle::setDashboardRegion):
              * xml/xmlhttprequest.cpp:
              (WebCore::getCharset):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::overrideMIMEType):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13440 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cff0a728
  21. 20 Mar, 2006 2 commits
    • darin's avatar
      Rubber stamped by Eric. · 98fa8b83
      darin authored
              - moved khtml/html files all into html directory
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for new paths.
              * WebCore.vcproj/WebCore/build-generated-files.sh: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * khtml/html: Removed.
      
              * html/DocTypeStrings.gperf: Moved.
              * html/FormDataList.cpp: Ditto.
              * html/FormDataList.h: Ditto.
              * html/HTMLBaseFontElement.cpp: Ditto.
              * html/HTMLBaseFontElement.h: Ditto.
              * html/HTMLButtonElement.cpp: Ditto.
              * html/HTMLButtonElement.h: Ditto.
              * html/HTMLCanvasElement.cpp: Ditto.
              * html/HTMLCanvasElement.h: Ditto.
              * html/HTMLCollection.cpp: Ditto.
              * html/HTMLCollection.h: Ditto.
              * html/HTMLDocument.cpp: Ditto.
              * html/HTMLDocument.h: Ditto.
              * html/HTMLElement.cpp: Ditto.
              * html/HTMLElement.h: Ditto.
              * html/HTMLElementFactory.cpp: Ditto.
              * html/HTMLElementFactory.h: Ditto.
              * html/HTMLEntityNames.gperf: Ditto.
              * html/HTMLFieldSetElement.cpp: Ditto.
              * html/HTMLFieldSetElement.h: Ditto.
              * html/HTMLFormCollection.cpp: Ditto.
              * html/HTMLFormCollection.h: Ditto.
              * html/HTMLFormElement.cpp: Ditto.
              * html/HTMLFormElement.h: Ditto.
              * html/HTMLGenericFormElement.cpp: Ditto.
              * html/HTMLGenericFormElement.h: Ditto.
              * html/HTMLInputElement.cpp: Ditto.
              * html/HTMLInputElement.h: Ditto.
              * html/HTMLIsIndexElement.cpp: Ditto.
              * html/HTMLIsIndexElement.h: Ditto.
              * html/HTMLKeygenElement.cpp: Ditto.
              * html/HTMLKeygenElement.h: Ditto.
              * html/HTMLLabelElement.cpp: Ditto.
              * html/HTMLLabelElement.h: Ditto.
              * html/HTMLLegendElement.cpp: Ditto.
              * html/HTMLLegendElement.h: Ditto.
              * html/HTMLNameCollection.cpp: Ditto.
              * html/HTMLNameCollection.h: Ditto.
              * html/HTMLNames.cpp: Ditto.
              * html/HTMLNames.h: Ditto.
              * html/HTMLOptGroupElement.cpp: Ditto.
              * html/HTMLOptGroupElement.h: Ditto.
              * html/HTMLOptionElement.cpp: Ditto.
              * html/HTMLOptionElement.h: Ditto.
              * html/HTMLOptionsCollection.cpp: Ditto.
              * html/HTMLOptionsCollection.h: Ditto.
              * html/HTMLParser.cpp: Ditto.
              * html/HTMLParser.h: Ditto.
              * html/HTMLSelectElement.cpp: Ditto.
              * html/HTMLSelectElement.h: Ditto.
              * html/HTMLTextAreaElement.cpp: Ditto.
              * html/HTMLTextAreaElement.h: Ditto.
              * html/HTMLTextFieldInnerElement.cpp: Ditto.
              * html/HTMLTextFieldInnerElement.h: Ditto.
              * html/HTMLTokenizer.cpp: Ditto.
              * html/HTMLTokenizer.h: Ditto.
              * html/html_baseimpl.cpp: Ditto.
              * html/html_baseimpl.h: Ditto.
              * html/html_blockimpl.cpp: Ditto.
              * html/html_blockimpl.h: Ditto.
              * html/html_headimpl.cpp: Ditto.
              * html/html_headimpl.h: Ditto.
              * html/html_imageimpl.cpp: Ditto.
              * html/html_imageimpl.h: Ditto.
              * html/html_inlineimpl.cpp: Ditto.
              * html/html_inlineimpl.h: Ditto.
              * html/html_listimpl.cpp: Ditto.
              * html/html_listimpl.h: Ditto.
              * html/html_objectimpl.cpp: Ditto.
              * html/html_objectimpl.h: Ditto.
              * html/html_tableimpl.cpp: Ditto.
              * html/html_tableimpl.h: Ditto.
      
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/CSSGrammar.y:
              * css/cssstyleselector.cpp:
              * dom/Document.cpp:
              * dom/EventTargetNode.cpp:
              * dom/NameNodeList.cpp:
              * dom/Node.cpp:
              * dom/Position.cpp:
              * dom/dom_elementimpl.cpp:
              * dom/xml_tokenizer.cpp:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/CompositeEditCommand.cpp:
              * editing/DeleteSelectionCommand.cpp:
              * editing/InsertLineBreakCommand.cpp:
              * editing/InsertParagraphSeparatorCommand.cpp:
              * editing/JSEditor.cpp:
              * editing/ReplaceSelectionCommand.cpp:
              * editing/TextIterator.cpp:
              * editing/VisiblePosition.cpp:
              * editing/htmlediting.cpp:
              * editing/markup.cpp:
              * editing/visible_units.cpp:
              * html/CanvasRenderingContext2D.cpp:
              * kcanvas/KCanvasTreeDebug.cpp:
              * khtml/ecma/JSDOMParser.cpp:
              * khtml/ecma/kjs_css.cpp:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_events.cpp:
              * khtml/misc/decoder.cpp:
              * khtml/xsl/XSLStyleSheet.cpp:
              * khtml/xsl/XSLTProcessor.cpp:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGSVGElement.cpp:
              * kwq/WebCoreAXObject.mm:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderHTMLCanvas.cpp:
              * rendering/RenderImage.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderTable.cpp:
              * rendering/RenderTableCell.cpp:
              * rendering/RenderTableCol.cpp:
              * rendering/RenderTableRow.cpp:
              * rendering/RenderTableSection.cpp:
              * rendering/RenderTextField.cpp:
              * rendering/RenderTheme.cpp:
              * rendering/render_applet.cpp:
              * rendering/render_button.cpp:
              * rendering/render_frames.cpp:
              * rendering/render_list.cpp:
              Updated includes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13397 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      98fa8b83
    • eseidel's avatar
      2006-03-17 Eric Seidel <eseidel@apple.com> · 8b17b671
      eseidel authored
              Reviewed by darin.
      
              Move Form code from MacFrame to Frame.
              Move GraphicsContext code from GraphicsContextMac to GraphicsContext.
              Use IntRect, FloatRect in more places throughout the code.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7824
      
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame):
              (WebCore::MacFrame::searchForLabelsAboveCell):
              (WebCore::MacFrame::searchForLabelsBeforeElement):
              (WebCore::dictionaryFromHashMap):
              (WebCore::MacFrame::submitForm):
              (WebCore::MacFrame::setView):
              (WebCore::MacFrame::currentEventIsMouseDownInWidget):
              (WebCore::MacFrame::currentEventIsKeyboardOptionTab):
              (WebCore::MacFrame::handleKeyboardOptionTabInView):
              (WebCore::MacFrame::tabsToAllControls):
              (WebCore::MacFrame::shouldDragAutoNode):
              (WebCore::MacFrame::selectionImage):
              (WebCore::MacFrame::snapshotDragImage):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge nextKeyView]):
              (-[WebCoreFrameBridge previousKeyView]):
              (-[WebCoreFrameBridge nextKeyViewInsideWebFrameViews]):
              (-[WebCoreFrameBridge previousKeyViewInsideWebFrameViews]):
              * kcanvas/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::paint):
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::clearRecordedFormValues):
              (WebCore::Frame::recordFormValue):
              (WebCore::Frame::didNotOpenURL):
              (WebCore::scanForForm):
              (WebCore::Frame::paint):
              (WebCore::Frame::prepareForUserAction):
              * page/Frame.h:
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState):
              (WebCore::GraphicsContextPrivate::GraphicsContextPrivate):
              (WebCore::GraphicsContextPrivate::~GraphicsContextPrivate):
              (WebCore::GraphicsContext::save):
              (WebCore::GraphicsContext::restore):
              (WebCore::GraphicsContext::font):
              (WebCore::GraphicsContext::setFont):
              (WebCore::GraphicsContext::pen):
              (WebCore::GraphicsContext::setPen):
              (WebCore::GraphicsContext::setBrush):
              (WebCore::GraphicsContext::brush):
              (WebCore::GraphicsContext::setUsesInactiveTextBackgroundColor):
              (WebCore::GraphicsContext::usesInactiveTextBackgroundColor):
              (WebCore::GraphicsContext::updatingControlTints):
              (WebCore::GraphicsContext::setUpdatingControlTints):
              (WebCore::GraphicsContext::setPaintingDisabled):
              (WebCore::GraphicsContext::paintingDisabled):
              (WebCore::GraphicsContext::printing):
              (WebCore::GraphicsContext::drawImageAtPoint):
              (WebCore::GraphicsContext::drawImageInRect):
              (WebCore::GraphicsContext::drawImage):
              (WebCore::GraphicsContext::initFocusRing):
              (WebCore::GraphicsContext::clearFocusRing):
              (WebCore::GraphicsContext::addFocusRingRect):
              (WebCore::GraphicsContext::focusRingWidth):
              (WebCore::GraphicsContext::focusRingOffset):
              (WebCore::GraphicsContext::focusRingRects):
              * platform/GraphicsContext.h:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::fillRectSourceOver):
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContext::GraphicsContext):
              (WebCore::GraphicsContext::~GraphicsContext):
              (WebCore::GraphicsContext::savePlatformState):
              (WebCore::GraphicsContext::restorePlatformState):
              (WebCore::GraphicsContext::drawRect):
              (WebCore::GraphicsContext::setColorFromBrush):
              (WebCore::GraphicsContext::setColorFromPen):
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::drawEllipse):
              (WebCore::GraphicsContext::drawArc):
              (WebCore::GraphicsContext::drawConvexPolygon):
              (WebCore::GraphicsContext::drawFloatImage):
              (WebCore::GraphicsContext::drawTiledImage):
              (WebCore::GraphicsContext::drawScaledAndTiledImage):
              (WebCore::GraphicsContext::selectedTextBackgroundColor):
              (WebCore::GraphicsContext::fillRect):
              (WebCore::GraphicsContext::addClip):
              (WebCore::GraphicsContext::addRoundedRectClip):
              (WebCore::GraphicsContext::beginTransparencyLayer):
              (WebCore::GraphicsContext::endTransparencyLayer):
              (WebCore::GraphicsContext::setShadow):
              (WebCore::GraphicsContext::clearShadow):
              (WebCore::GraphicsContext::drawFocusRing):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::outlineBox):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8b17b671
  22. 19 Mar, 2006 1 commit
  23. 17 Mar, 2006 1 commit
    • hyatt's avatar
      Give table rows and sections accurate dimensions. Fix absolutePosition · d866e595
      hyatt authored
              to work for table cells properly.  Add an absolutePositionForContent method
              to make sure callers that want to deal with the content of a cell handle
              the cell's extra space correctly.
      
              Reviewed by darin
      
              Existing layout tests cover this change.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge copyRenderNode:copier:]):
              * dom/ContainerNodeImpl.cpp:
              (WebCore::ContainerNodeImpl::getUpperLeftCorner):
              (WebCore::ContainerNodeImpl::getLowerRightCorner):
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::getRect):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::layout):
              (WebCore::SelectionController::caretRect):
              * editing/visible_units.cpp:
              (WebCore::previousLinePosition):
              (WebCore::nextLinePosition):
              * khtml/html/HTMLInputElementImpl.cpp:
              (WebCore::HTMLInputElementImpl::defaultEventHandler):
              * kwq/KWQRenderTreeDebug.cpp:
              (operator<<):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::selectionGapRects):
              (WebCore::RenderBlock::positionForCoordinates):
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::positionForCoordinates):
              (WebCore::RenderContainer::lineBoxRects):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::computeAbsoluteRepaintRect):
              (WebCore::RenderTableCell::absolutePosition):
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::addChild):
              (WebCore::RenderTableRow::getAbsoluteRepaintRect):
              (WebCore::RenderTableRow::nodeAtPoint):
              * rendering/RenderTableRow.h:
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::ensureRows):
              (WebCore::RenderTableSection::addCell):
              (WebCore::RenderTableSection::layoutRows):
              (WebCore::RenderTableSection::recalcCells):
              (WebCore::RenderTableSection::nodeAtPoint):
              * rendering/RenderTableSection.h:
              * rendering/RenderText.cpp:
              (WebCore::RenderText::lineBoxRects):
              (WebCore::RenderText::positionForCoordinates):
              (WebCore::RenderText::caretRect):
              (WebCore::RenderText::posOfChar):
              (WebCore::RenderText::selectionRect):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::absolutePosition):
              (WebCore::RenderBox::caretRect):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::caretRect):
              * rendering/render_canvas.h:
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::caretRect):
              * rendering/render_frames.cpp:
              (WebCore::RenderPart::updateWidgetPosition):
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::updateLayerPosition):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::absoluteRects):
              (WebCore::RenderObject::absoluteBoundingBoxRect):
              (WebCore::RenderObject::absolutePosition):
              * rendering/render_object.h:
              (WebCore::RenderObject::absolutePositionForContent):
              (WebCore::RenderObject::offsetHeight):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::updateWidgetPosition):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d866e595
  24. 10 Mar, 2006 1 commit
    • darin's avatar
      LayoutTests: · 135369e3
      darin authored
              Reviewed by Geoff, except for frame-name-reset, which was done by Alexey.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=3308
                Pop-up blocking blocks window.open for already open windows
      
              * fast/dom/Window/open-existing-pop-up-blocking-expected.checksum: Added.
              * fast/dom/Window/open-existing-pop-up-blocking-expected.png: Added.
              * fast/dom/Window/open-existing-pop-up-blocking-expected.txt: Added.
              * fast/dom/Window/open-existing-pop-up-blocking.html: Added.
              * fast/dom/Window/resources/open-sibling-subframe.html: Added.
              * fast/dom/Window/resources/sibling-subframe-content.html: Added.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=7422
                Setting a frame name to the same value resets it to a generated one
      
              * fast/frames/frame-name-reset.html: Added.
              * fast/frames/frame-name-reset-expected.txt: Added.
      
      WebCore:
      
              Reviewed by Geoff.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=3308
                Pop-up blocking blocks window.open for already open windows
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=7422
                Setting a frame name to the same value resets it to a generated one
      
              - refactor frame-name-related functions into the FrameTree object
      
              * WebCore.xcodeproj/project.pbxproj: Update for rename.
              * bridge/mac/MacFrame.h: Remove generateFrameName.
              * bridge/mac/MacFrame.mm: Ditto.
              * bridge/mac/PageMac.h: Added a declaration for WebCorePageBridge.
      
              * bridge/mac/WebCoreFrameBridge.h: Remove _frameNamespace, generateFrameName,
              setFrameNamespace, frameNamespace.
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge childFrameNamed:]): Change to call the new child
              function on the FrameTree.
              (-[WebCoreFrameBridge findFrameNamed:]): Change to call the new find
              function on the FrameTree.
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]): Change since the
              contentPart function has been renamed to contentFrame.
      
              * bridge/mac/WebCoreFrameNamespaces.h: Removed everything except for the
              one method still used on the WebKit side, framesInNamespace:.
              * bridge/mac/WebCoreFrameNamespaces.m: Renamed.
              * bridge/mac/WebCoreFrameNamespaces.mm: Added. Reimplemented the
              framesInNamespace method to use the namespace in WebCore::Page.
      
              * bridge/mac/WebCorePageBridge.h: Added setGroupName and groupName.
              * bridge/mac/WebCorePageBridge.mm:
              (-[WebCorePageBridge setGroupName:]): Added. Calls through to Page.
              (-[WebCorePageBridge groupName]): Ditto.
      
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::namedItemGetter): Changed to call contentFrame by its new name.
              (KJS::HTMLElement::frameGetter): Ditto.
              (KJS::HTMLElement::iFrameGetter): Ditto.
      
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty): Changed to call FrameTree::childCount
              instead of Frame::frames.
              (KJS::Window::childFrameGetter): Changed to call FrameTree::child
              instead of Frame::childFrameNamed.
              (KJS::Window::namedFrameGetter): Changed to call FrameTree::find
              instead of Frame::findFrame.
              (KJS::Window::indexGetter): Changed to call FrameTree::child
              instead of Frame::frames.
              (KJS::Window::getOwnPropertySlot): Changed to call FrameTree::child,
              FrameTree::find, and FrameTree::childCount instead of Frame::childFrameNamed,
              and Frame::findFrame, and Frame::frames.
              (KJS::WindowFunc::callAsFunction): Call FrameTree::find to check if the window
              is already open when considering whether to block a pop-up.
              (KJS::FrameArray::getValueProperty): Changed to call FrameTree::childCount
              instead of Frame::frames.
              (KJS::FrameArray::indexGetter): Changed to call FrameTree::child
              instead of Frame::frames.
              (KJS::FrameArray::nameGetter): Changed to call FrameTree::child
              instead of Frame::findFrame.
              (KJS::FrameArray::getOwnPropertySlot): Changed to call FrameTree::child,
              and FrameTree::childCount instead of Frame::findFrame and Frame::frames.
      
              * khtml/html/html_baseimpl.h:
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElementImpl::isURLAllowed): Changed to call Page::frameCount
              instead of Frame::topLevelFrameCount.
              (WebCore::HTMLFrameElementImpl::openURL): Changed to call FrameTree::child
              instead of Frame::findFrame.
              (WebCore::HTMLFrameElementImpl::attach): Changed to call Page::incrementFrameCount
              instead of Frame::incrementFrameCount. Changed to call FrameTree::uniqueChildName
              instead of Frame::requestFrameName.
              (WebCore::HTMLFrameElementImpl::close): Changed to call Page::decrementFrameCount
              instead of Frame::decrementFrameCount. Changed to call FrameTree::child
              instead of Frame::findFrame.
              (WebCore::HTMLFrameElementImpl::contentFrame): Renamed from contentPart. Also
              changed to call FrameTree::child instead of Frame::findFrame.
              (WebCore::HTMLFrameElementImpl::contentDocument): Updated for name change of
              contentFrame from contentPart.
              (WebCore::HTMLIFrameElementImpl::attach): Changed to call Page::incrementFrameCount
              instead of Frame::incrementFrameCount. Changed to call FrameTree::uniqueChildName
              instead of Frame::requestFrameName.
      
              * rendering/render_frames.cpp: (WebCore::isURLAllowed): Changed to call Page::frameCount
              instead of Frame::topLevelFrameCount.
      
              * page/Frame.h: Removed frameNames, frames, childFrameNamed, findFrame, currentFrame,
              frameExists, incrementFrameCount, decrementFrameCount, topLevelFrameCount,
              generateFrameName, and requestFrameName functions.
              * page/Frame.cpp: (WebCore::Frame::requestFrame): Changed to use FrameTree::child
              instead of Frame::childFrameNamed.
      
              * page/FrameTree.h: Changed name to an atomic string. Changed childCount to unsigned.
              Added isDescendantOf, traverseNext, child, find, uniqueChildName.
              * page/FrameTree.cpp:
              (WebCore::FrameTree::setName): Changed to call uniqueChildName to handle name
              duplication logic.
              (WebCore::FrameTree::uniqueChildName): Added. Checks for duplication and generates
              an appropriate frame name if there is a duplicate.
              (WebCore::FrameTree::child): Added.
              (WebCore::FrameTree::find): Added.
              (WebCore::FrameTree::isDescendantOf): Added.
              (WebCore::FrameTree::traverseNext): Added.
      
              * page/Page.h: Added setGroupName, groupName, frameNamespace, incrementFrameCount,
              decrementFrameCount, and frameCount.
              * page/Page.cpp:
              (WebCore::Page::Page): Initialize m_frameCount to 0.
              (WebCore::Page::~Page): Call setGroupName to remove the page from any group it's in.
              (WebCore::Page::setGroupName): Added.
              (WebCore::Page::frameNamespace): Added.
      
              * platform/win/TemporaryLinkStubs.cpp: Removed FrameWin::generateFrameName.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13257 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      135369e3
  25. 07 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Adele, except for the first change listed. · 89ec05ae
      darin authored
              - fix recently-introduced bug that GuardMalloc found while I was debugging my other change
      
              * rendering/render_frames.cpp: (WebCore::RenderPart::~RenderPart):
              Set m_widget to 0 before calling deref so we don't end up trying to do unwanted work.
      
              - removed 10 more files from KWQ
      
              * ForwardingHeaders/klocale.h: Removed.
      
              * khtml/misc/helper.cpp: Removed.
              * khtml/misc/helper.h: Removed.
      
              * kwq/KWQCollection.h: Removed.
              * kwq/KWQKCookieJar.h: Removed.
              * kwq/KWQKCookieJar.mm: Removed.
              * kwq/KWQKLocale.h: Removed.
              * kwq/KWQKLocale.mm: Removed.
              * kwq/KWQKURL.h: Removed.
              * kwq/KWQKURL.mm: Removed.
              * kwq/KWQTextUtilities.h: Removed.
              * kwq/KWQTextUtilities.mm: Removed.
              * kwq/KWQView.h: Removed.
      
              * platform/CookieJar.h: Added.
              * platform/Language.h: Added.
              * platform/LocalizedStrings.h: Added.
              * platform/TextBoundaries.h: Added.
              * platform/mac/CookieJar.mm: Added.
              * platform/mac/Language.mm: Added.
              * platform/mac/LocalizedStringsMac.mm: Added.
              * platform/mac/TextBoundaries.mm: Added.
              * platform/mac/WebCoreWidgetHolder.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removed and added files.
      
              * bridge/mac/WebCoreFrameBridge.mm: Updated includes.
              (-[WebCoreFrameBridge elementForView:]): Changed KWQWidgetHolder to WebCoreWidgetHolder.
      
              * editing/visible_units.cpp:
              (WebCore::previousWordPositionBoundary):
              (WebCore::nextWordPositionBoundary):
              (WebCore::previousSentencePositionBoundary):
              (WebCore::nextSentencePositionBoundary):
              Call TextBoundaries.h functions instead of helper.h ones.
      
              * khtml/ecma/kjs_navigator.cpp: (KJS::Navigator::getValueProperty):
              * ksvg2/svg/SVGTestsImpl.cpp: (WebCore::SVGTestsImpl::isValid):
              Changed to call defaultLanguage; cleaned up formatting.
      
              * khtml/html/HTMLFormElementImpl.cpp: Removed stray comment.
      
              * khtml/html/html_documentimpl.cpp:
              (WebCore::HTMLDocumentImpl::cookie):
              (WebCore::HTMLDocumentImpl::setCookie):
              Call CookieJar.h functions.
      
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * css/cssstyleselector.cpp:
              * dom/DocumentImpl.cpp:
              * dom/dom_position.cpp:
              * khtml/ecma/kjs_window.cpp:
              * khtml/html/HTMLInputElementImpl.cpp:
              * khtml/html/html_headimpl.cpp:
              * khtml/html/htmlparser.cpp:
              * khtml/misc/decoder.cpp:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              * kwq/KWQComboBox.mm:
              * kwq/KWQKSSLKeyGen.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.cpp:
              * kwq/KWQListImpl.h:
              * kwq/KWQScrollBar.mm:
              * kwq/KWQSlider.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQValueList.h:
              * loader/DocLoader.cpp:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::beforeMouseDown):
              (WebCore::Widget::afterMouseDown):
              * rendering/render_applet.cpp:
              * rendering/render_form.cpp:
              * rendering/render_image.cpp:
              * rendering/render_list.cpp:
              Updated includes and protocol names.
      
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::write): Remove
              QT_VERSION code.
              * platform/QString.h: Remove QT_VERSION.
      
              * kwq/KWQPtrList.h: Change to no longer use QPtrCollection.
      
              * kwq/KWQRenderTreeDebug.h:
              * kwq/KWQRenderTreeDebug.cpp: (externalRepresentation):
              Remove unused debuggingRenderTree boolean.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13187 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89ec05ae
  26. 06 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Adele. · e9700da7
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7564
                remove QObject, QGuardedPtr, slots, and signals
      
              I had written a detailed change log entry, but I lost it!
              I'm too annoyed to write one all over again.
      
              * ForwardingHeaders/qguardedptr.h: Removed.
              * ForwardingHeaders/qobject.h: Removed.
      
              * kwq/KWQGuardedPtr.cpp: Removed.
              * kwq/KWQGuardedPtr.h: Removed.
              * kwq/KWQNamespace.h: Removed.
              * kwq/KWQObject.cpp: Removed.
              * kwq/KWQObject.h: Removed.
              * kwq/KWQSignal.cpp: Removed.
              * kwq/KWQSignal.h: Removed.
              * kwq/KWQSlot.cpp: Removed.
              * kwq/KWQSlot.h: Removed.
      
              * platform/WidgetClient.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for removed and added files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
      
              * bindings/js/JSDOMCore.cpp: Touched.
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
              * bridge/BrowserExtension.h:
              (WebCore::BrowserExtension::~BrowserExtension):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge elementForView:]):
              * dom/CDATASectionImpl.cpp:
              (WebCore::CDATASectionImpl::cloneNode):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::~DocumentImpl):
              * dom/DocumentImpl.h:
              * kcanvas/device/KRenderingDevice.h:
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSStyleDeclaration::put):
              * khtml/ecma/kjs_window.cpp:
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              * khtml/html/html_documentimpl.cpp:
              (WebCore::HTMLDocumentImpl::createTokenizer):
              * khtml/html/htmlparser.cpp:
              (WebCore::HTMLParser::HTMLParser):
              (WebCore::HTMLParser::insertNode):
              (WebCore::HTMLParser::handleError):
              (WebCore::HTMLParser::commentCreateErrorCheck):
              (WebCore::HTMLParser::noscriptCreateErrorCheck):
              (WebCore::HTMLParser::isInline):
              (WebCore::HTMLParser::finished):
              * khtml/html/htmlparser.h:
              * khtml/html/htmltokenizer.cpp:
              (WebCore::HTMLTokenizer::HTMLTokenizer):
              (WebCore::HTMLTokenizer::scriptHandler):
              (WebCore::HTMLTokenizer::scriptExecution):
              (WebCore::HTMLTokenizer::parseComment):
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::stopParsing):
              (WebCore::HTMLTokenizer::timerFired):
              (WebCore::HTMLTokenizer::processToken):
              (WebCore::parseHTMLDocumentFragment):
              * khtml/html/htmltokenizer.h:
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton setPopulatingMenu:QComboBox:::]):
              (QComboBox::itemSelected):
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              * kwq/KWQFileButton.h:
              (KWQFileButton::filename):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::KWQFileButton):
              (KWQFileButton::filenameChanged):
              (-[KWQFileButtonAdapter filenameChanged:]):
              (-[KWQFileButtonAdapter focusChanged:]):
              (-[KWQFileButtonAdapter clicked]):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::QLineEdit):
              (QLineEdit::setAlignment):
              (KWQNSTextAlignment):
              * kwq/KWQListBox.h:
              (QListBox::changingSelection):
              * kwq/KWQListBox.mm:
              (QListBox::QListBox):
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              (-[KWQTableView tableViewSelectionDidChange:]):
              * kwq/KWQScrollBar.h:
              (WebCore::):
              (QScrollBar::orientation):
              * kwq/KWQScrollBar.mm:
              (-[KWQScrollBar initWithQScrollBar:]):
              (QScrollBar::QScrollBar):
              (QScrollBar::valueChanged):
              (QScrollBar::scroll):
              * kwq/KWQSlider.h:
              * kwq/KWQSlider.mm:
              (-[KWQSlider mouseDown:]):
              (-[KWQSlider slide:]):
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              (QSlider::QSlider):
              (QSlider::sliderValueChanged):
              (QSlider::dimensions):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView textViewDidChangeSelection:]):
              (-[KWQTextAreaTextView textDidChange:]):
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              (-[KWQTextAreaTextView mouseDown:]):
              (-[KWQTextAreaTextView dispatchHTMLEvent:]):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm:
              (QTextEdit::QTextEdit):
              (QTextEdit::setAlignment):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController action:]):
              (-[KWQTextFieldController controlTextDidEndEditing:]):
              (-[KWQTextFieldController controlTextDidChange:]):
              (-[KWQTextFieldController textChanged]):
              (-[KWQTextFieldController textView:didHandleEvent:]):
              (-[KWQTextFieldController setHasFocus:]):
              (-[KWQTextFieldController textViewDidChangeSelection:]):
              * loader/CachedObject.h:
              * page/Frame.cpp:
              (WebCore::Frame::Frame):
              (WebCore::Frame::~Frame):
              (WebCore::Frame::setOpener):
              (WebCore::Frame::nodeForWidget):
              (WebCore::Frame::disconnectOwnerRenderer):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * page/FrameView.cpp:
              (WebCore::FrameView::~FrameView):
              * platform/Brush.h:
              * platform/Pen.h:
              * platform/Widget.cpp:
              (WebCore::Widget::isFrameView):
              * platform/Widget.h:
              (WebCore::):
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::drawText):
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::Widget):
              (WebCore::Widget::focusPolicy):
              (WebCore::Widget::sendConsumedMouseUp):
              (WebCore::Widget::setClient):
              (WebCore::Widget::client):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::operator delete):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::clicked):
              (WebCore::RenderFormElement::textAlignment):
              (WebCore::RenderLineEdit::RenderLineEdit):
              (WebCore::RenderLineEdit::selectionChanged):
              (WebCore::RenderLineEdit::returnPressed):
              (WebCore::RenderLineEdit::performSearch):
              (WebCore::RenderLineEdit::valueChanged):
              (WebCore::RenderFileButton::RenderFileButton):
              (WebCore::RenderFileButton::returnPressed):
              (WebCore::RenderFileButton::valueChanged):
              (WebCore::RenderLegend::RenderLegend):
              (WebCore::RenderSelect::RenderSelect):
              (WebCore::RenderSelect::updateFromElement):
              (WebCore::RenderSelect::valueChanged):
              (WebCore::RenderSelect::selectionChanged):
              (WebCore::RenderSelect::createListBox):
              (WebCore::RenderTextArea::RenderTextArea):
              (WebCore::RenderTextArea::valueChanged):
              (WebCore::RenderTextArea::selectionChanged):
              (WebCore::RenderSlider::RenderSlider):
              (WebCore::RenderSlider::valueChanged):
              * rendering/render_form.h:
              (WebCore::RenderFormElement::element):
              (WebCore::RenderLineEdit::element):
              (WebCore::RenderFileButton::element):
              (WebCore::RenderFileButton::isEditable):
              (WebCore::RenderSelect::element):
              (WebCore::RenderTextArea::element):
              (WebCore::RenderSlider::element):
              * rendering/render_frames.cpp:
              (WebCore::RenderPart::RenderPart):
              (WebCore::RenderPart::~RenderPart):
              (WebCore::RenderPart::setFrame):
              (WebCore::RenderPart::setWidget):
              (WebCore::RenderPart::deleteWidget):
              (WebCore::RenderFrame::RenderFrame):
              (WebCore::RenderPartObject::RenderPartObject):
              (WebCore::RenderPartObject::layout):
              * rendering/render_frames.h:
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::RenderLayer):
              (WebCore::RenderLayer::~RenderLayer):
              (WebCore::RenderLayer::valueChanged):
              (WebCore::RenderLayer::setHasHorizontalScrollbar):
              (WebCore::RenderLayer::setHasVerticalScrollbar):
              (WebCore::RenderLayer::hitTest):
              * rendering/render_layer.h:
              (WebCore::RenderLayer::parent):
              (WebCore::RenderLayer::previousSibling):
              (WebCore::RenderLayer::nextSibling):
              (WebCore::RenderLayer::firstChild):
              (WebCore::RenderLayer::lastChild):
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::RenderWidget):
              (WebCore::RenderWidget::destroy):
              (WebCore::RenderWidget::~RenderWidget):
              (WebCore::RenderWidget::setWidget):
              (WebCore::RenderWidget::layout):
              (WebCore::RenderWidget::sendConsumedMouseUp):
              (WebCore::RenderWidget::focusIn):
              (WebCore::RenderWidget::focusOut):
              (WebCore::RenderWidget::scrollToVisible):
              (WebCore::RenderWidget::isVisible):
              (WebCore::RenderWidget::element):
              (WebCore::RenderWidget::deleteWidget):
              * rendering/render_replaced.h:
              * xml/xmlhttprequest.cpp:
              (WebCore::requestsByDocument):
              (WebCore::addToRequestsByDocument):
              (WebCore::removeFromRequestsByDocument):
              (WebCore::XMLHttpRequest::getResponseText):
              (WebCore::XMLHttpRequest::getResponseXML):
              (WebCore::XMLHttpRequest::XMLHttpRequest):
              (WebCore::XMLHttpRequest::~XMLHttpRequest):
              (WebCore::XMLHttpRequest::callReadyStateChangeListener):
              (WebCore::XMLHttpRequest::urlMatchesDocumentDomain):
              (WebCore::XMLHttpRequest::open):
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::abort):
              (WebCore::XMLHttpRequest::overrideMIMEType):
              (WebCore::XMLHttpRequest::setRequestHeader):
              (WebCore::XMLHttpRequest::getRequestHeader):
              (WebCore::XMLHttpRequest::getAllResponseHeaders):
              (WebCore::XMLHttpRequest::getResponseHeader):
              (WebCore::XMLHttpRequest::getSpecificHeader):
              (WebCore::XMLHttpRequest::responseIsXML):
              (WebCore::XMLHttpRequest::getStatus):
              (WebCore::XMLHttpRequest::getStatusText):
              (WebCore::XMLHttpRequest::receivedAllData):
              (WebCore::XMLHttpRequest::receivedRedirect):
              (WebCore::XMLHttpRequest::receivedData):
              (WebCore::XMLHttpRequest::cancelRequests):
              (WebCore::XMLHttpRequest::detachRequests):
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13176 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9700da7
  27. 05 Mar, 2006 1 commit
    • ap's avatar
      Fix by Mitz Pettel, reviewed by Darin. · 39bfd518
      ap authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=4840
              Frames only resize wider, can't make them narrower
      
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameSetElementImpl::HTMLFrameSetElementImpl): Removed unused m_resizing flag.
              * khtml/html/html_baseimpl.h:
              * manual-tests/bugzilla-4840.html: Added.
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::viewportMouseMoveEvent):
              (WebCore::FrameView::viewportMouseReleaseEvent):
              (WebCore::FrameView::setResizingFrameSet): New method. When a resizing frameset is set,
              mouse move and mouse release events target it instead of hit-testing.
              * page/FrameView.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::setResizing): Inform the FrameView that we are resizing (or not).
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13135 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      39bfd518
  28. 01 Mar, 2006 1 commit
    • darin's avatar
      Reviewed by Eric. · 9d0a628e
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=7444
                move QPainter to platform directory and name it GraphicsContext
      
              * platform/GraphicsContext.h: Added.
              * platform/TextDirection.h: Added.
              * platform/cg/GraphicsContextCG.cpp: Added.
              * platform/mac/GraphicsContextMac.mm: Added.
      
              * kwq/KWQPainter.h: Removed.
              * kwq/KWQPainter.mm: Removed.
              * ForwardingHeaders/qpainter.h: Removed.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for moved files.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for moved files.
              * platform/win/TemporaryLinkStubs.cpp: Updated.
      
              * bridge/mac/MacFrame.mm: (WebCore::MacFrame::setDisplaysWithFocusAttributes):
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              * editing/SelectionController.h:
              * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
              * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw):
              * khtml/ecma/kjs_html.cpp:
              (KJS::KJS::Context2DFunction::callAsFunction):
              (KJS::Context2D::putValueProperty):
              (KJS::drawPattern):
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::paintDragCaret):
              (WebCore::Frame::paint):
              (WebCore::Frame::adjustPageHeight):
              * page/FrameView.h:
              * platform/Font.h:
              * platform/Font.cpp:
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::drawText):
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm: (WebCore::Widget::paint):
              * rendering/InlineTextBox.h:
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintSpellingMarker):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::paintAllMarkersOfType):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              (WebCore::InlineTextBox::offsetForPosition):
              * rendering/RenderTableCell.cpp:
              (WebCore::outlineBox):
              (WebCore::RenderTableCell::paintCollapsedBorder):
              (WebCore::RenderTableCell::paintBoxDecorations):
              * rendering/RenderTableCell.h:
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgrounds):
              (WebCore::RenderBox::paintBackground):
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::outlineBox):
              * rendering/render_box.h:
              * rendering/render_button.cpp:
              (WebCore::RenderButton::RenderButton):
              (WebCore::RenderButton::paintObject):
              * rendering/render_button.h:
              (WebCore::RenderButton::removeLeftoverAnonymousBoxes):
              * rendering/render_canvas.cpp:
              * rendering/render_canvasimage.cpp:
              (WebCore::RenderCanvasImage::paint):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::addFocusRingRects):
              (WebCore::RenderFlow::paintFocusRing):
              (WebCore::RenderFlow::paintOutlines):
              (WebCore::RenderFlow::paintOutlineForLine):
              * rendering/render_flow.h:
              * rendering/render_form.cpp:
              (WebCore::RenderLineEdit::setStyle):
              (WebCore::RenderFieldset::paintBorderMinusLegend):
              (WebCore::RenderSelect::setWidgetWritingDirection):
              (WebCore::RenderTextArea::setStyle):
              * rendering/render_form.h:
              (WebCore::RenderFieldset::renderName):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::paint):
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::beginTransparencyLayers):
              (WebCore::RenderLayer::paintScrollbars):
              (WebCore::RenderLayer::paint):
              (WebCore::setClip):
              (WebCore::restoreClip):
              (WebCore::RenderLayer::paintLayer):
              (WebCore::Marquee::direction):
              * rendering/render_layer.h:
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintBackgrounds):
              (WebCore::InlineFlowBox::paintBackground):
              (WebCore::InlineFlowBox::paintBackgroundAndBorder):
              (WebCore::InlineFlowBox::paintDecorations):
              (WebCore::EllipsisBox::paint):
              * rendering/render_line.h:
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paintBorder):
              (WebCore::RenderObject::addFocusRingRects):
              (WebCore::RenderObject::paintOutline):
              (WebCore::RenderObject::selectionColor):
              * rendering/render_object.h:
              (WebCore::RenderObject::element):
              (WebCore::RenderObject::document):
              (WebCore::RenderObject::setNode):
              (WebCore::RenderObject::node):
              (WebCore::RenderObject::PaintInfo::PaintInfo):
              (WebCore::RenderObject::paintBoxDecorations):
              (WebCore::RenderObject::paintBackgroundExtended):
              (WebCore::RenderObject::printBoxDecorations):
              * rendering/render_replaced.cpp: (WebCore::RenderReplaced::selectionColor):
              * rendering/render_replaced.h:
              Updated to use GraphicsContext instead of QPainter.
      
              * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm: (QComboBox::setWritingDirection):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm: (QLineEdit::setWritingDirection):
              * kwq/KWQListBox.h:
              * kwq/KWQListBox.mm: (QListBox::setWritingDirection):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm: (QTextEdit::setWritingDirection):
              * rendering/bidi.cpp:
              (khtml::bidiNext):
              (khtml::bidiFirst):
              Updated to use TextDirection instead of QPainter::TextDirection and EDirection.
      
              * kcanvas/device/KRenderingDevice.h: Added renderingDevice here to
              replace QPainter::renderingDevice for now.
      
              * khtml/ecma/kjs_html.h: Fixed comments to mention GraphicsContext.
      
              * khtml/html/html_imageimpl.h:
              * page/FrameView.cpp:
              * rendering/RenderBlock.cpp:
              Added include needed since I reduced includes elsewhere.
      
              * kwq/KWQFontMetrics.h:
              * kwq/KWQFontMetrics.mm: (QFontMetrics::checkSelectionPoint):
              Changed QChar* to be const QChar*.
      
              * platform/FontDescription.h: Added include that was missing.
              * rendering/render_theme.cpp: Ditto.
      
              * platform/Image.h: Removed unnecessary forward declaration of QPainter.
      
              * rendering/RenderText.h: Clean up types, use const.
      
              * rendering/render_style.h: Removed EDirection and replaced it with TextDirection.
      
              * kcanvas/KCanvasCreator.cpp:
              (WebCore::KCanvasCreator::createRoundedRectangle):
              (WebCore::KCanvasCreator::createRectangle):
              (WebCore::KCanvasCreator::createEllipse):
              (WebCore::KCanvasCreator::createLine):
              * kcanvas/KCanvasPath.cpp: (WebCore::operator<<):
              * kcanvas/KCanvasTreeDebug.cpp: (WebCore::operator<<):
              * kcanvas/RenderForeignObject.cpp: (WebCore::RenderForeignObject::paint):
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
              * kcanvas/RenderSVGImage.cpp:
              (WebCore::RenderSVGImage::paint):
              (WebCore::RenderSVGImage::translateForAttributes):
              * kcanvas/RenderSVGText.cpp:
              (WebCore::RenderSVGText::paint):
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (WebCore::KCanvasFilterQuartz::prepareFilter):
              (WebCore::KCanvasFilterQuartz::applyFilter):
              * kcanvas/device/quartz/KCanvasMaskerQuartz.mm:
              (WebCore::KCanvasMaskerQuartz::applyMask):
              * kcanvas/device/quartz/KCanvasResourcesQuartz.mm:
              (WebCore::KCanvasContainerQuartz::paint):
              (WebCore::KCanvasClipperQuartz::applyClip):
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceQuartz::pushContext):
              (WebCore::KRenderingDeviceQuartz::popContext):
              (WebCore::renderingDevice):
              * kcanvas/device/quartz/KRenderingPaintServerGradientQuartz.mm:
              (WebCore::KRenderingPaintServerGradientQuartz::setup):
              (WebCore::KRenderingPaintServerGradientQuartz::renderPath):
              (WebCore::KRenderingPaintServerGradientQuartz::teardown):
              * ksvg2/misc/KCanvasRenderingStyle.cpp: (WebCore::sharedSolidPaintServer):
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::createRenderer):
              * ksvg2/svg/SVGClipPathElementImpl.cpp: (SVGClipPathElementImpl::canvasResource):
              * ksvg2/svg/SVGFEBlendElementImpl.cpp: (SVGFEBlendElementImpl::filterEffect):
              * ksvg2/svg/SVGFEColorMatrixElementImpl.cpp: (SVGFEColorMatrixElementImpl::filterEffect):
              * ksvg2/svg/SVGFEComponentTransferElementImpl.cpp: (SVGFEComponentTransferElementImpl::filterEffect):
              * ksvg2/svg/SVGFECompositeElementImpl.cpp: (SVGFECompositeElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDiffuseLightingElementImpl.cpp: (WebCore::SVGFEDiffuseLightingElementImpl::filterEffect):
              * ksvg2/svg/SVGFEDisplacementMapElementImpl.cpp: (SVGFEDisplacementMapElementImpl::filterEffect):
              * ksvg2/svg/SVGFEFloodElementImpl.cpp: (SVGFEFloodElementImpl::filterEffect):
              * ksvg2/svg/SVGFEGaussianBlurElementImpl.cpp: (SVGFEGaussianBlurElementImpl::filterEffect):
              * ksvg2/svg/SVGFEImageElementImpl.cpp: (SVGFEImageElementImpl::filterEffect):
              * ksvg2/svg/SVGFEMergeElementImpl.cpp: (SVGFEMergeElementImpl::filterEffect):
              * ksvg2/svg/SVGFEOffsetElementImpl.cpp: (SVGFEOffsetElementImpl::filterEffect):
              * ksvg2/svg/SVGFESpecularLightingElementImpl.cpp: (SVGFESpecularLightingElementImpl::filterEffect):
              * ksvg2/svg/SVGFETileElementImpl.cpp: (SVGFETileElementImpl::filterEffect):
              * ksvg2/svg/SVGFETurbulenceElementImpl.cpp: (SVGFETurbulenceElementImpl::filterEffect):
              * ksvg2/svg/SVGFilterElementImpl.cpp: (SVGFilterElementImpl::canvasResource):
              * ksvg2/svg/SVGGElementImpl.cpp: (SVGGElementImpl::createRenderer):
              * ksvg2/svg/SVGGradientElementImpl.cpp: (SVGGradientElementImpl::canvasResource):
              * ksvg2/svg/SVGMarkerElementImpl.cpp:
              (WebCore::SVGMarkerElementImpl::canvasResource):
              (WebCore::SVGMarkerElementImpl::createRenderer):
              * ksvg2/svg/SVGMaskElementImpl.cpp:
              (WebCore::SVGMaskElementImpl::drawMaskerContent):
              (WebCore::SVGMaskElementImpl::createRenderer):
              (WebCore::SVGMaskElementImpl::canvasResource):
              * ksvg2/svg/SVGPathElementImpl.cpp: (WebCore::SVGPathElementImpl::toPathData):
              * ksvg2/svg/SVGPatternElementImpl.cpp:
              (WebCore::SVGPatternElementImpl::drawPatternContentIntoTile):
              (WebCore::SVGPatternElementImpl::createRenderer):
              (WebCore::SVGPatternElementImpl::canvasResource):
              * ksvg2/svg/SVGPolygonElementImpl.cpp: (SVGPolygonElementImpl::toPathData):
              * ksvg2/svg/SVGPolylineElementImpl.cpp: (SVGPolylineElementImpl::toPathData):
              * ksvg2/svg/SVGSVGElementImpl.cpp: (WebCore::SVGSVGElementImpl::createRenderer):
              * ksvg2/svg/SVGStyledElementImpl.cpp: (WebCore::SVGStyledElementImpl::createRenderer):
              * ksvg2/svg/SVGSwitchElementImpl.cpp: (SVGSwitchElementImpl::createRenderer):
              * ksvg2/svg/SVGUseElementImpl.cpp: (SVGUseElementImpl::createRenderer):
              Updated to use renderingDevice instead of QPainter::renderingDevice.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13067 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9d0a628e
  29. 24 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 6fb0fdcd
      darin authored
              - moved QScrollView from kwq to platform directory
      
              * kwq/KWQScrollView.h: Removed.
              * kwq/KWQScrollView.mm: Removed.
      
              * platform/ScrollBarMode.h: Added. Just the enum for scroll bar mode.
              * platform/ScrollView.h: Added. The rest of the former QScrollView.
              * platform/mac/ScrollViewMac.mm: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
              * platform/win/TemporaryLinkStubs.cpp: Updated.
      
              * bridge/mac/MacFrame.mm: (WebCore::MacFrame::createFrame):
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElementImpl::init):
              (WebCore::HTMLFrameElementImpl::parseMappedAttribute):
              * page/Frame.cpp: (WebCore::Frame::scrollbarsVisible):
              Changed scrolling constants to use new names.
      
              * khtml/ecma/kjs_html.cpp: (KJS::HTMLElement::bodySetter):
              Use FrameView instead of QScrollView for a local variable.
      
              * khtml/html/html_baseimpl.h: Use ScrollBarMode instead of
              QScrollView::ScrollBarMode.
      
              * kwq/KWQListBox.h: Use WebCore::ScrollView instead of
              QScrollView and WebCore::ScrollBarMode instead of QScrollView::ScrollBarMode.
              * kwq/KWQTextEdit.h: Ditto.
              * kwq/KWQTextEdit.mm:
              (QTextEdit::setScrollBarModes): Ditto.
              (QTextEdit::focusPolicy): Ditto.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate): Use ScrollBarMode
              instead of QScrollView::ScrollBarMode.
              (WebCore::FrameView::FrameView): Remove mention of QScrollView.
              (WebCore::FrameView::resetScrollBars): Rename QScrollView to ScrollView.
              (WebCore::FrameView::applyOverflowToViewport): Use newly-named constants.
              (WebCore::FrameView::layout): Ditto.
              (WebCore::FrameView::setScrollBarsMode): Rename QScrollView to ScrollView.
              (WebCore::FrameView::setVScrollBarMode): Ditto.
              (WebCore::FrameView::setHScrollBarMode): Ditto.
              (WebCore::FrameView::restoreScrollBar): Ditto.
      
              * platform/mac/MouseEventMac.mm: (WebCore::positionForEvent): Fixed comment.
              * platform/mac/WheelEventMac.mm: (WebCore::positionForEvent): Ditto.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::getOuterView): Ditto.
      
              * rendering/render_form.cpp: (WebCore::RenderTextArea::setStyle):
              Use ScrollBarMode instead of QScrollView::ScrollBarMode, and new constants.
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize): Changed to use an IntRect to pass to
              updateContents so we can remove the overload.
              (WebCore::RenderPart::updateWidgetPosition): Remove unnecessary of QScrollView.
      
              * rendering/render_layer.cpp:
              (WebCore::RenderLayer::scrollRectToVisible): Use FrameView instead of QScrollView.
              (WebCore::RenderLayer::setHasHorizontalScrollbar): Ditto.
              (WebCore::RenderLayer::setHasVerticalScrollbar): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12967 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6fb0fdcd
  30. 23 Feb, 2006 2 commits
    • darin's avatar
      Reviewed by Maciej. · 5ed43097
      darin authored
              - removed QPalette, QRegion, QPrinter
              - added Path to replace QRegion
              - removed unused QScrollView functions
      
              * ForwardingHeaders/qpalette.h: Removed.
              * kwq/KWQPalette.h: Removed.
              * kwq/KWQPalette.mm: Removed.
              * kwq/KWQPrinter.h: Removed.
              * kwq/KWQRegion.cpp: Removed.
              * kwq/KWQRegion.h: Removed.
      
              * platform/Path.h: Added. Replaces QRegion.
              * platform/cg: Added.
              * platform/cg/PathCG.cpp: Added.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for file changes.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * bridge/mac/MacFrame.mm: Removed use of KWQPrinter.h.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Removed use of viewport().
              * bridge/mac/WebCoreFrameBridge.mm: Removed use of KWQPrinter.h.
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElementImpl::getRect): Replaced QRegion with Path.
              (WebCore::HTMLAreaElementImpl::getRegion): Ditto.
              * khtml/html/html_imageimpl.h: Ditto.
              * kwq/KWQPainter.mm: Removed use of QRegion.
              * page/Frame.cpp: (WebCore::Frame::~Frame): Removed use of viewport().
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView): Ditto.
              (WebCore::FrameView::viewportMouseMoveEvent): Ditto.
              * rendering/render_frames.cpp: (WebCore::RenderFrameSet::userResize): Ditto.
              * rendering/render_layer.cpp: (WebCore::RenderLayer::scrollRectToVisible): Ditto.
      
              * kwq/KWQScrollView.h: Removed viewport(), hasVerticalScrollBar(),
              hasHorizontalScrollBar(), childX(), childY().
              * kwq/KWQScrollView.mm: Ditto.
      
              * rendering/render_box.cpp: (WebCore::RenderBox::paintBackgroundExtended):
              Removed use of QPalette that always yields white.
              * rendering/render_canvas.cpp: (WebCore::RenderCanvas::paintBoxDecorations):
              Ditto.
      
              * platform/Widget.h:
              * platform/mac/WidgetMac.mm: Removed palette() and setPalette().
      
              * kwq/KWQLineEdit.h: Replaced setPalette with setColors.
              * kwq/KWQLineEdit.mm: (QLineEdit::setColors): Replaced setPalette.
              * kwq/KWQTextEdit.h: Ditto.
              * kwq/KWQTextEdit.mm: (QTextEdit::setColors): Ditto.
      
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::updateFromElement): Removed call to setPalette.
              (WebCore::RenderLineEdit::updateFromElement): Added call to setColors.
              (WebCore::RenderTextArea::updateFromElement): Ditto.
      
              * rendering/render_replaced.cpp: (WebCore::RenderWidget::paint):
              Removed use of childX and childY functions.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12958 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5ed43097
    • darin's avatar
      Reviewed by John Sullivan. · 947a31b6
      darin authored
              - moved QMouseEvent, QKeyEvent, QWheelEvent, and "Foundation extras"
                from kwq to platform directory
              - moved history function from kwq to bridge directory
              - eliminated QEvent, MousePressEvent, MouseDoubleClickEvent, MouseMoveEvent,
                MoveReleaseEvent, and DrawContents classes
              - merged NodeImpl::MouseEvent and the MouseEvent from khtml_events.h into
                a single class in the page directory
              - broke khtmllayout.h out into a file for the Length structure in the css
                directory and a file for the GapRects structure in the rendering directory
              - redid the Length structure to work more portably by not relying on bitfield
                layout and improve the names to no longer explicitly mention "width"
              - reduced use of QGuardedPtr and other uses of the QObject "destroyed" signal
      
              * ForwardingHeaders/kparts: Removed.
              * ForwardingHeaders/qevent.h: Removed.
              * khtml/khtml_events.cpp: Removed.
              * khtml/khtml_events.h: Removed.
              * khtml/misc/khtmllayout.h: Removed.
              * kwq/KWQEvent.h: Removed.
              * kwq/KWQEvent.mm: Removed.
              * kwq/KWQFoundationExtras.h: Removed.
              * kwq/KWQKHistoryProvider.mm: Removed.
              * kwq/KWQKPartsHistoryProvider.h: Removed.
      
              * bridge/History.h: Added.
              * bridge/mac/HistoryMac.mm: Added.
              * css/Length.h: Added.
              * page/MouseEventWithHitTestResults.h: Added.
              * platform/KeyEvent.h: Added.
              * platform/MouseEvent.h: Added.
              * platform/WheelEvent.h: Added.
              * platform/mac/FoundationExtras.h: Added.
              * platform/mac/KeyEventMac.mm: Added.
              * platform/mac/MouseEventMac.mm: Added.
              * platform/mac/WheelEventMac.mm: Added.
              * rendering/GapRects.h: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for above changes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for above changes.
      
              * bridge/mac/MacFrame.h: Removed unused parameters from urlSelected functions.
              Replaced MouseEvent, MousePressEvent, MouseMoveEvent, and MouseReleaseEvent
              with MouseEventWithHitTestResults.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::urlSelected): Removed unused parameters.
              (WebCore::MacFrame::wheelEvent): Changed to use WheelEvent.
              (WebCore::MacFrame::keyEvent): Changed to use KeyEvent.
              (WebCore::MacFrame::khtmlMousePressEvent): Changed parameter type.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Ditto.
              (WebCore::MacFrame::khtmlMouseReleaseEvent): Ditto.
              (WebCore::MacFrame::passSubframeEventToSubframe): Ditto.
              (WebCore::MacFrame::mouseDown): Changed to use MouseEvent.
              (WebCore::MacFrame::mouseDragged): Ditto.
              (WebCore::MacFrame::mouseUp): Ditto.
              (WebCore::MacFrame::mouseMoved): Ditto.
              (WebCore::MacFrame::sendContextMenuEvent): Ditto.
      
              * css/csshelper.h: Removed a bunch of unused declarations.
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::prepareMouseEvent): Changed to take a MouseEvent
              and return a MouseEventWithHitTestResults.
              (WebCore::DocumentImpl::defaultEventHandler): Changed to use KeyEvent.
      
              * dom/NodeImpl.h: Removed NodeImpl::MouseEvent and NodeImpl::MouseEventType.
              * dom/NodeImpl.cpp:
              (WebCore::NodeImpl::dispatchMouseEvent): Changed to always get the type and
              detail values from the caller, never from the event. Changed to use MouseEvent.
              (WebCore::NodeImpl::dispatchKeyEvent): Changed to use KeyEvent.
              (WebCore::NodeImpl::dispatchWheelEvent): Changed to use WheelEvent.
      
              * dom/dom2_eventsimpl.h:
              * dom/dom2_eventsimpl.cpp:
              (WebCore::KeyboardEventImpl::KeyboardEventImpl): Changed to use KeyEvent.
              (WebCore::KeyboardEventImpl::charCode): Ditto.
      
              * dom/dom_elementimpl.h: Removed unused mouseEventHandler function.
      
              * khtml/ecma/domparser.h: Use RefPtr instead of QGuardedPtr to hold the reference
              to the document.
      
              * khtml/ecma/kjs_proxy.h: (WebCore::KJSProxyImpl::haveInterpreter): Added. For
              use in the Frame destructor so we can get an existing KJS::Window object without
              creating a new interpreter and window object.
      
              * khtml/ecma/kjs_window.h: Merged WindowQObject into Window. Changed all the
              guarded pointers to Frame to use plain old pointers that are cleared by the
              Frame explicitly (by the function disconnectFrame). Made the pointers to all
              the sub-objects of KJS::Window be mutable so we don't have to const_cast in
              the functions to get (and lazily create) them.
              * khtml/ecma/kjs_window.cpp:
              (KJS::DOMWindowTimer::DOMWindowTimer): Use Window* instead of WindowQObject*.
              (KJS::History::disconnectFrame): Added. Clears m_frame.
              (KJS::FrameArray::disconnectFrame): Added. Clears m_frame.
              (KJS::Window::Window): Removed code to create a WindowQObject.
              (KJS::Window::~Window): Removed code to delete a WindowQObject.
              (KJS::Window::location): Remove now-unneeded const_cast.
              (KJS::Window::selection): Ditto.
              (KJS::Window::locationbar): Ditto.
              (KJS::Window::menubar): Ditto.
              (KJS::Window::personalbar): Ditto.
              (KJS::Window::statusbar): Ditto.
              (KJS::Window::toolbar): Ditto.
              (KJS::Window::scrollbars): Ditto.
              (KJS::Window::getValueProperty): Update since m_frame is now a raw pointer.
              (KJS::Window::getOwnPropertySlot): Ditto.
              (KJS::Window::toBoolean): Ditto.
              (KJS::Window::scheduleClose): Remove assert that WindowQObject* is not null.
              (KJS::Window::isSafeScript): Update since m_frame is now a raw pointer.
              (KJS::Window::clear): Remove code to delete a WindowQObject. Added a call
              to clearAllTimeouts instead.
              (KJS::Window::clearAllTimeouts): Added. Does equivalent of the WindowQObject
              destructor.
              (KJS::Window::installTimeout): Moved to Window from WindowQObject.
              (KJS::Window::pauseTimeouts): Ditto.
              (KJS::Window::resumeTimeouts): Ditto.
              (KJS::Window::clearTimeout): Ditto.
              (KJS::Window::timerFired): Ditto.
              (KJS::Window::disconnectFrame): Added. Sets all the frame pointers to 0.
              (KJS::FrameArray::getOwnPropertySlot): Update since m_frame is now a raw pointer.
              (KJS::Location::getOwnPropertySlot): Ditto.
              (KJS::Location::put): Ditto.
              (KJS::Selection::getOwnPropertySlot): Ditto.
              (KJS::BarInfo::getOwnPropertySlot): Ditto.
      
              * khtml/html/html_baseimpl.h: Forward-declare Length instead of including khtmllayout.h.
              * khtml/html/html_imageimpl.h: Ditto.
      
              * khtml/html/html_inlineimpl.cpp: (WebCore::HTMLAnchorElementImpl::defaultEventHandler):
              Changed to use KeyEvent and removed the code to extract the button and state from the
              DOM even to pass to urlSelected.
              * ksvg2/svg/SVGAElementImpl.cpp: (SVGAElementImpl::defaultEventHandler): Ditto.
      
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::timerFired): Change to use
              a RefPtr instead of a QGuardedPtr.
      
              * khtml/misc/helper.h:
              * khtml/misc/helper.cpp: Removed printpainter and setPrintPainter.
      
              * ksvg2/svg/SVGDocumentImpl.h:
              * ksvg2/svg/SVGDocumentImpl.cpp: (WebCore::SVGDocumentImpl::dispatchKeyEvent):
              Change to use KeyEvent.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusChanged):
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]):
              (-[KWQTableView resignFirstResponder]):
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]):
              (-[KWQSlider resignFirstResponder]):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]):
              (-[KWQTextAreaTextView resignFirstResponder]):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]):
              Updated to use new eventFilterFocusIn/Out instead of the general purpose
              eventFilter function. This allows us to remove QEvent and the focus events.
      
              * kwq/KWQNamespace.h: Removed ButtonState.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Replaced eventFilter function with eventFilterFocusIn and
              eventFilterFocusOut, allowing us to remove QEvent. Removed event function.
      
              * kwq/KWQSlot.cpp:
              (KWQSlot::KWQSlot): Removed the parentDestroyed slot.
              (KWQSlot::call): Ditto.
      
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::UserStyleSheetLoader): Renamed from
              PartStyleSheetLoader. Removed a lot of unneeded null checks. Use a
              raw Frame pointer instead of a QGuardedPtr, and count on the Frame
              to delete us when it's being deleted.
              (WebCore::UserStyleSheetLoader::~UserStyleSheetLoader): No longer
              a virtual function. This is not a polymorphic class.
              (WebCore::UserStyleSheetLoader::setStyleSheet): Remove code to delete
              ourselves -- that's now the frame's responsibility.
              (WebCore::Frame::~Frame): Call disconnectFrame on the KJS::Window and
              delete m_userStyleSheetLoader.
              (WebCore::Frame::changeLocation): Update since urlSelected no longer takes
              button and state parameters.
              (WebCore::Frame::setUserStyleSheet): Delete existing loader to stop a load
              in progress before starting a new load. Store reference to loader.
              (WebCore::Frame::urlSelected): Remove button and state parameters and unused
              local variable hasTarget.
              (WebCore::Frame::selectClosestWordFromMouseEvent): Change from QMouseEvent
              to MouseEvent.
              (WebCore::Frame::handleMousePressEventDoubleClick): Change from MousePressEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::handleMousePressEventTripleClick): Ditto.
              (WebCore::Frame::handleMousePressEventSingleClick): Ditto.
              (WebCore::Frame::khtmlMousePressEvent): Ditto.
              (WebCore::Frame::handleMouseMoveEventSelection): Change from MouseMoveEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseMoveEvent): Ditto.
              (WebCore::Frame::khtmlMouseReleaseEvent): Change from MouseReleaseEvent
              to MouseEventWithHitTestResults.
              (WebCore::Frame::khtmlMouseDoubleClickEvent): Change from
              MouseReleaseDoubleClickEvent to MouseEventWithHitTestResults.
              (WebCore::Frame::passWidgetMouseDownEventToWidget): Change from
              NodeImpl::MouseEvent to MouseEventWithHitTestResults.
      
              * page/FramePrivate.h: Added m_userStyleSheetLoader.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::viewportMousePressEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportMouseDoubleClickEvent): Ditto.
              (WebCore::selectCursor): Ditto.
              (WebCore::FrameView::viewportMouseMoveEvent): Ditto.
              (WebCore::FrameView::viewportMouseReleaseEvent): Ditto.
              (WebCore::FrameView::keyPressEvent): Change from QKeyEvent to KeyEvent.
              (WebCore::FrameView::dispatchMouseEvent): Change from QMouseEvent to
              MouseEvent and from NodeImpl::MouseEvent to MouseEventWithHitTestResults.
              (WebCore::FrameView::viewportWheelEvent): Change from QWheelEvent to
              WheelEvent.
              (WebCore::FrameView::hoverTimerFired): Update for change to prepareMouseEvent
              parameters.
      
              * platform/Widget.h:
              * platform/Widget.cpp: Removed event function.
      
              * rendering/render_form.h: Removed LineEditWidget, ComboBoxWidget, TextAreaWidget.
              * rendering/render_form.cpp:
              (WebCore::RenderFormElement::slotClicked): Changed from QMouseEvent to MouseEvent.
              (WebCore::RenderFormElement::addIntrinsicMarginsIfAllowed): Updated for changes
              to the Length class.
              (WebCore::RenderSelect::setWidgetWritingDirection): Updated for removal of
              ComboBoxWidget.
              (WebCore::RenderSelect::slotSelected): Ditto.
              (WebCore::RenderSelect::createComboBox): Ditto.
      
              * rendering/render_replaced.h:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::destroy): Updated since removeEventFilter no longer takes
              a parameter.
              (WebCore::RenderWidget::setQWidget): Ditto.
              (WebCore::RenderWidget::eventFilterFocusIn): Added. Replaces eventFilter.
              (WebCore::RenderWidget::eventFilterFocusOut): Ditto.
      
              * css/css_computedstyle.cpp:
              (WebCore::valueForLength):
              (WebCore::CSSComputedStyleDeclarationImpl::getPropertyCSSValue):
              * css/cssstyleselector.cpp:
              (WebCore::checkPseudoState):
              (WebCore::CSSStyleSelector::applyProperty):
              (WebCore::CSSStyleSelector::getComputedSizeFromSpecifiedSize):
              * khtml/html/html_imageimpl.cpp:
              (WebCore::HTMLAreaElementImpl::getRegion):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::MarginInfo::MarginInfo):
              (WebCore::RenderBlock::isSelfCollapsingBlock):
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::leftRelOffset):
              (WebCore::RenderBlock::rightRelOffset):
              (WebCore::RenderBlock::calcMinMaxWidth):
              (WebCore::getBPMWidth):
              (WebCore::RenderBlock::calcInlineMinMaxWidth):
              (WebCore::RenderBlock::calcBlockMinMaxWidth):
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::calcWidth):
              (WebCore::RenderTable::layout):
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::calcMinMaxWidth):
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::addChild):
              (WebCore::RenderTableSection::addCell):
              (WebCore::RenderTableSection::calcRowHeight):
              (WebCore::RenderTableSection::layoutRows):
              * rendering/RenderText.h:
              (khtml::RenderText::marginLeft):
              (khtml::RenderText::marginRight):
              * rendering/bidi.cpp:
              (khtml::getBPMWidth):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/render_box.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              (WebCore::RenderBox::getClipRect):
              (WebCore::RenderBox::relativePositionOffset):
              (WebCore::RenderBox::calcWidth):
              (WebCore::RenderBox::calcWidthUsing):
              (WebCore::RenderBox::sizesToIntrinsicWidth):
              (WebCore::RenderBox::calcHorizontalMargins):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcHeightUsing):
              (WebCore::RenderBox::calcPercentageHeight):
              (WebCore::RenderBox::calcReplacedWidth):
              (WebCore::RenderBox::calcReplacedWidthUsing):
              (WebCore::RenderBox::calcReplacedHeight):
              (WebCore::RenderBox::calcReplacedHeightUsing):
              (WebCore::RenderBox::availableHeightUsing):
              (WebCore::RenderBox::calcVerticalMargins):
              (WebCore::RenderBox::calcAbsoluteHorizontal):
              (WebCore::RenderBox::calcAbsoluteHorizontalValues):
              (WebCore::RenderBox::calcAbsoluteVertical):
              (WebCore::RenderBox::calcAbsoluteVerticalValues):
              * rendering/render_br.cpp:
              (WebCore::RenderBR::lineHeight):
              * rendering/render_flexbox.cpp:
              (khtml::RenderFlexibleBox::calcHorizontalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcVerticalMinMaxWidth):
              (khtml::RenderFlexibleBox::calcMinMaxWidth):
              (khtml::RenderFlexibleBox::allowedChildFlex):
              * rendering/render_flow.cpp:
              (WebCore::RenderFlow::lineHeight):
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::layout):
              * rendering/render_image.cpp:
              (WebCore::RenderImage::isWidthSpecified):
              (WebCore::RenderImage::isHeightSpecified):
              * rendering/render_layer.cpp:
              (WebCore::Marquee::direction):
              (WebCore::Marquee::start):
              (WebCore::Marquee::updateMarqueeStyle):
              (WebCore::Marquee::timerFired):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::marginLeft):
              (WebCore::InlineFlowBox::marginRight):
              * rendering/render_object.cpp:
              (WebCore::RenderObject::mustRepaintBackgroundOrBorder):
              (WebCore::RenderObject::paintBorderImage):
              (WebCore::RenderObject::paddingTop):
              (WebCore::RenderObject::paddingBottom):
              (WebCore::RenderObject::paddingLeft):
              (WebCore::RenderObject::paddingRight):
              (WebCore::RenderObject::getVerticalPosition):
              (WebCore::RenderObject::lineHeight):
              (WebCore::RenderObject::addDashboardRegions):
              * rendering/render_style.h:
              * rendering/render_theme_mac.mm:
              (WebCore::RenderThemeMac::addIntrinsicMargins):
              * rendering/table_layout.cpp:
              (WebCore::FixedTableLayout::calcWidthArray):
              (WebCore::FixedTableLayout::calcMinMaxWidth):
              (WebCore::FixedTableLayout::layout):
              (WebCore::AutoTableLayout::recalcColumn):
              (WebCore::AutoTableLayout::fullRecalc):
              (WebCore::AutoTableLayout::calcMinMaxWidth):
              (WebCore::AutoTableLayout::calcEffectiveWidth):
              (WebCore::AutoTableLayout::layout):
              (WebCore::AutoTableLayout::calcPercentages):
              Updated for changes to the Length class.
              Also removed a check of the printpainter global, never used in WebCore.
      
              * bindings/objc/DOM.mm:
              * bindings/objc/DOMCSS.mm:
              * bindings/objc/DOMHTML.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/csshelper.cpp:
              * editing/SelectionController.cpp:
              * khtml/ecma/kjs_html.h:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQClipboard.mm:
              * kwq/KWQFont.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQKJobClasses.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQLoader.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPainter.mm:
              * kwq/WebCoreSettings.mm:
              * platform/StringImpl.cpp:
              * platform/mac/CursorMac.mm:
              * platform/mac/WidgetMac.mm:
              * rendering/RenderBlock.h:
              * rendering/render_canvas.cpp:
              * rendering/render_line.h:
              * rendering/render_style.cpp:
              * rendering/table_layout.h:
              Updated includes.
      
              * bindings/js/JSDOMCore.cpp: Touched, because I got strange failures if this
              didn't rebuild.
              * bindings/js/JSDOMEvents.cpp: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      947a31b6
  31. 20 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 644b75ef
      darin authored
              - moved Cursor into the platform directory from KWQ
              - removed a lot of other unneeded stuff from KWQ
      
              * platform/Cursor.h: Added.
              * platform/mac/CursorMac.mm: Added.
              * platform/mac/CursorWin.cpp: Added.
      
              * kwq/KWQBuffer.cpp: Removed.
              * kwq/KWQBuffer.h: Removed.
              * kwq/KWQCursor.h: Removed.
              * kwq/KWQCursor.mm: Removed.
              * kwq/KWQIODevice.h: Removed.
              * kwq/KWQKCursor.h: Removed.
              * kwq/KWQKCursor.mm: Removed.
              * kwq/KWQKDebug.h: Removed.
              * kwq/KWQSignalStubs.cpp: Removed.
      
              * ForwardingHeaders/kcursor.h: Removed.
              * ForwardingHeaders/kdebug.h: Removed.
              * ForwardingHeaders/qbuffer.h: Removed.
      
              * kwq/KWQEvent.h: Removed unused constants and types QCustomEvent,
              QFocusEvent, QHideEvent, QShowEvent, QContextMenuEvent, and QResizeEvent.
      
              * kwq/KWQLoader.h: Removed KWQLoader class since signals are no longer needed.
              * kwq/KWQLoader.mm: Ditto.
      
              * kwq/KWQNamespace.h: Removed DontClip, ShowPrefix, WordBreak, LayoutDirection,
              LeftToRight, RightToLeft, RasterOp, CopyROP, OrROP, and XorROP.
      
              * kwq/KWQObject.h: Removed blockSignals, sender, _signalsBlocked, _sender,
              and KWQObjectSenderScope.
              * kwq/KWQObject.cpp:
              (QObject::QObject): Removed _signalsBlocked.
              (QObject::connect): Removed special-case signals to not complain about.
              All of them were either unused, converted to non-signal functions, or in one
              case (slotScrollBarMoved) turned into a FIXME.
      
              * kwq/KWQPainter.h: Removed rasterOp and setRasterOp.
              * kwq/KWQPainter.mm: Ditto.
      
              * kwq/KWQSignal.h:
              * kwq/KWQSignal.cpp: (KWQSignal::disconnect): Removed special cases for
              various signals; all are now using plain function calls instead.
      
              * kwq/KWQSlot.h:
              * kwq/KWQSlot.cpp: Removed slots that are no longer needed because they
              are using plain function calls instead of signals.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              Updated for changed files.
      
              * bridge/mac/FrameViewMac.mm: Moved the contents of KWQKHTMLView.cpp in here.
              * bridge/mac/KWQKHTMLView.cpp: Removed.
      
              * bridge/mac/MacFrame.h: Removed signals, changed setStatusBarText to take
              String instead of QString.
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::MacFrame): Removed signals.
              (WebCore::MacFrame::setStatusBarText): Changed parameter type.
              (WebCore::MacFrame::openURLFromPageCache): Removed parameter from started function.
              (WebCore::MacFrame::khtmlMouseMoveEvent): Changed from QCursor() to pointerCursor().
      
              * dom/DocumentImpl.h:
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl): Removed signals.
              (WebCore::DocumentImpl::implicitOpen): Ditto.
              (WebCore::DocumentImpl::determineParseMode): Removed a use of kdDebug.
              (WebCore::DocumentImpl::finishedParsing): Added. Does a setParsing(false) and then
              calls finishedParsing on the frame. Replaces the old finishedParsing signal.
      
              * dom/xml_tokenizer.h:
              * dom/xml_tokenizer.cpp: Removed the finishedParsing signal since it's not just
              a function on the document.
              (WebCore::XMLTokenizer::finish): Call the function instead of emitting the signal.
      
              * khtml/html/htmlparser.h:
              * khtml/html/htmlparser.cpp: Moved the parser inside the WebCore namespace.
      
              * khtml/html/htmltokenizer.h:
              * khtml/html/htmltokenizer.cpp: (WebCore::HTMLTokenizer::end): Updated
              to call finishedParsing function on document rather than emitting a signal.
      
              * kwq/KWQComboBox.mm:
              (-[KWQPopUpButton becomeFirstResponder]): Use QEvent instead of QFocusEvent.
              (-[KWQPopUpButton resignFirstResponder]): Ditto.
              * kwq/KWQFileButton.mm: (KWQFileButton::focusChanged): Ditto.
              * kwq/KWQListBox.mm:
              (-[KWQTableView becomeFirstResponder]): Ditto.
              (-[KWQTableView resignFirstResponder]): Ditto.
              * kwq/KWQSlider.mm:
              (-[KWQSlider becomeFirstResponder]): Ditto.
              (-[KWQSlider resignFirstResponder]): Ditto.
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView becomeFirstResponder]): Ditto.
              (-[KWQTextAreaTextView resignFirstResponder]): Ditto.
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController setHasFocus:]): Ditto.
      
              * kwq/KWQTextStream.h: Removed the mode parameter from the QTextStream constructor.
              Removed the QTextIStream and QTextOStream classes.
              * kwq/KWQTextStream.cpp: (QTextStream::QTextStream): Removed the mode parameter.
      
              * loader/CachedCSSStyleSheet.h: Changed to take a ByteArray instead of a QBuffer.
              * loader/CachedCSSStyleSheet.cpp: (WebCore::CachedCSSStyleSheet::data): Ditto.
              * loader/CachedImage.h: Ditto.
              * loader/CachedImage.cpp: (WebCore::CachedImage::data): Ditto.
              * loader/CachedObject.h: Ditto.
              * loader/CachedScript.h: Ditto.
              * loader/CachedScript.cpp: (WebCore::CachedScript::data): Ditto.
              * loader/CachedXBLDocument.h: Ditto.
              * loader/CachedXBLDocument.cpp: (WebCore::CachedXBLDocument::data): Ditto.
              * loader/CachedXSLStyleSheet.h:
              * loader/CachedXSLStyleSheet.cpp: (WebCore::CachedXSLStyleSheet::data): Ditto.
      
              * loader/DocLoader.cpp: (WebCore::DocLoader::setLoadInProgress): Added a call
              to loadDone on the frame. Replaces the requestFailed and requestDone signals.
      
              * loader/DocLoader.h: Removed include of <qbuffer.h>.
      
              * loader/Request.h:
              * loader/Request.cpp: Updated to use ByteArray instead of QBuffer.
      
              * loader/loader.h: Removed unused signals.
              * loader/loader.cpp:
              (WebCore::Loader::Loader): Removed use of KWQLoader.
              (WebCore::Loader::~Loader): Ditto.
              (WebCore::Loader::load): Removed code to emit unused requestStarted signal.
              (WebCore::Loader::slotFinished): Removed code to emit requestFailed and
              requestDone signals, now handled by DocLoader::setLoadInProgress(false).
              (WebCore::Loader::slotReceivedResponse): Use ByteArray instead of QBuffer.
              (WebCore::Loader::slotData): Ditto.
      
              * page/Frame.h: Removed setURLCursor, urlCursor, slotRestoreData, slotIncZoom,
              slotDecZoom, slotLoadImages, slotPartRemoved, slotActiveFrameChanged,
              slotChildURLRequest, slotShowDocument, slotAutoScroll, slotPrintFrame, slotSelectAll,
              slotProgressUpdate, slotJobPercent, slotJobSpeed.connectChild, disconnectChild,
              and changed a number of others from slots to plain old functions.
              * page/Frame.cpp:
              (WebCore::Frame::Frame): Don't connect to loader signals.
              (WebCore::Frame::~Frame): Don't disconnect from loader signals.
              (WebCore::Frame::didOpenURL): Call started function instead of emitting
              started signal. Don't connect to speed and percent signals (which never
              existed in WebCore anyway).
              (WebCore::Frame::stopLoading): Call finishedParsing function instead of
              calling slotFinishedParsing.
              (WebCore::Frame::executeScript): Removed redundant checks and let
              submitFormAgain do the checking.
              (WebCore::Frame::clear): Removed code to disconnect from finishedParsing
              signal; we now use a function. Also removed loop that calls disconnectChild,
              becase again we use functions now instead of signals.
              (WebCore::Frame::setDocument): Remove code to disconnect and connect to the
              finishedParsing signal.
              (WebCore::Frame::begin): Remove code to connect to the finishedParsing signal.
              (WebCore::Frame::finishedParsing): Moved code that does setParsing(false) into
              the document class. Also renamed from slotFinishedParsing.
              (WebCore::Frame::loadDone): Renamed from slotLoaderRequestDone.
              (WebCore::Frame::checkCompleted): Changed to call the completed function instead
              of emitting one of the two completed signals.
              (WebCore::Frame::loadSubframe): Removed call to connectChild because we now use
              functions instead of signals. Also change the call to completed to pass false
              instead of true.
              (WebCore::Frame::submitFormAgain): Change function around so we are less likely
              to leak if something strange happens inside submitForm.
              (WebCore::Frame::submitForm): Remove code to connect signal. We now call
              submitFormAgain from inside the completed function.
              (WebCore::Frame::parentCompleted): Renamed from slotParentCompleted. No longer
              a slot, now called from completed.
              (WebCore::Frame::childCompleted): Renamed from slotChildCompleted.
              (WebCore::Frame::setJSStatusBarText): Removed "emit" from function call. Changed
              to use String instead of QString.
              (WebCore::Frame::setJSDefaultStatusBarText): Ditto.
              (WebCore::Frame::sendResizeEvent): Changed to send DOM event directly instead of
              creating a QResizeEvent to send along to the FrameView.
              (WebCore::Frame::scrollToAnchor): Changed to not pass a parameter to the started
              function, which no longer takes one.
              (WebCore::Frame::frameDetached): Removed code that calls disconnectChild, since
              we no longer use signals.
              (WebCore::Frame::completed): Added. Calls childCompleted, parentCompleted, and
              submitFormAgain.
              (WebCore::Frame::setStatusBarText): Added.
              (WebCore::Frame::started): Added. Sets the complete flag to false for the frame
              and all its ancestors, which is what slotChildStarted did recursively.
      
              * page/FramePrivate.h: Removed m_activeFrame and changed m_kjsStatusBarText and
              m_kjsDefaultStatusBarText to String from QString.
      
              * page/FrameView.h: Removed resizeEvent, focusInEvent, focusOutEvent, and
              slotPaletteChanged. Changed cleared from a signal to a private function and
              slotScrollBarMoved to a private function named scrollBarMoved.
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView): Removed connect call here that was connecting
              a signal that's nonexistent in WebCore; we'll want to rig it up later.
              (WebCore::FrameView::~FrameView): Added a call to setQWidget(0) here to replace
              something that was done with a signal before.
              (WebCore::FrameView::clear): Call cleared as a function rather than a signal.
              (WebCore::selectCursor): Changed to use Cursor instead of QCursor.
              (WebCore::FrameView::scrollBarMoved): Renamed this function, which is never called.
              Added a FIXME about calling it.
              (WebCore::FrameView::cleared): Added. Calls viewCleared on the owner part, which
              used to be done with a signal.
      
              * platform/Widget.h: Changed to Cursor from QCursor.
              * platform/mac/WidgetMac.mm: (WebCore::Widget::setCursor): Ditto.
      
              * rendering/render_frames.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderFrameSet::userResize): Removed cursor-setting code here. We might
              want to use resize cursors for frames again, but it was mostly disabled anyway and
              it's not clear which cursors to use.
              (WebCore::RenderPart::setWidget): Removed code to connect to the cleared signal.
              Instead, FrameView takes care of it directly.
              (WebCore::RenderPart::viewCleared): Renamed from slotViewCleared.
              (WebCore::RenderFrame::viewCleared): Ditto.
              (WebCore::RenderPartObject::viewCleared): Ditto.
      
              * rendering/render_image.cpp:
              (WebCore::RenderImage::imageChanged): Removed use of WordBreak, which doesn't exist
              in WebCore text rendering.
              (WebCore::RenderImage::paint): Ditto.
      
              * rendering/render_list.cpp: (RenderListMarker::paint): Removed use of DontClip, which
              doesn't exist in WebCore text rendering. Also removed incorrect use of references to
              temporaries for the ". " and " ." strings.
      
              * rendering/render_object.cpp:
              (WebCore::RenderObject::drawBorder): Removed call to setRasterOp since it is a no-op
              in WebCore's painter. Added a FIXME.
              (WebCore::RenderObject::information): Remove mode parameter to QTextStream.
      
              * rendering/render_replaced.h: Removed slotWidgetDestructed, made setQWidget public,
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::setQWidget): Removed code to connect slotWidgetDestructed to
              the destroyed signal. Instead FrameView calls setQWidget(0) on us.
              (WebCore::RenderWidget::eventFilter): Removed use of QFocusEvent::reason, which is
              never "popup" in WebCore.
      
              * WebCore+SVG/kdom.h:
              * css/css_stylesheetimpl.cpp:
              * css/css_valueimpl.cpp:
              * css/cssparser.cpp:
              * kcanvas/KCanvasCreator.cpp:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/RenderPath.cpp:
              * khtml/ecma/xmlserializer.cpp:
              * khtml/html/html_baseimpl.cpp:
              * khtml/xsl/xsl_stylesheetimpl.cpp:
              * ksvg2/svg/SVGPathSegLinetoImpl.cpp:
              * ksvg2/svg/SVGStyledTransformableElementImpl.cpp:
              * ksvg2/svg/SVGTransformImpl.cpp:
              * platform/StringImpl.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/render_box.cpp:
              * rendering/render_canvas.cpp:
              * rendering/render_flow.cpp:
              * rendering/render_form.cpp:
              * rendering/render_layer.cpp:
              * rendering/render_style.cpp:
              Removed includes of <kdebug.h>.
      
              * css/css_base.cpp: (CSSSelector::selectorText):
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::wasRunByUserGesture):
              * khtml/ecma/kjs_css.cpp:
              (KJS::DOMCSSRule::putValueProperty):
              * khtml/ecma/kjs_dom.cpp:
              (KJS::DOMNode::getValueProperty):
              (KJS::DOMNode::putValueProperty):
              (KJS::DOMDocument::getValueProperty):
              * khtml/ecma/kjs_events.cpp:
              (KJS::DOMEvent::getValueProperty):
              (KJS::DOMUIEvent::getValueProperty):
              (KJS::DOMMouseEvent::getValueProperty):
              (KJS::DOMKeyboardEvent::getValueProperty):
              (KJS::Clipboard::getValueProperty):
              (KJS::Clipboard::putValueProperty):
              * khtml/ecma/kjs_html.cpp:
              (KJS::HTMLDocument::getValueProperty):
              (KJS::KJS::HTMLDocument::putValueProperty):
              (KJS::HTMLElement::anchorGetter):
              (KJS::HTMLElement::areaGetter):
              (KJS::KJS::HTMLElementFunction::callAsFunction):
              * khtml/ecma/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * khtml/ecma/kjs_traversal.cpp:
              (KJS::DOMNodeIterator::getValueProperty):
              (KJS::DOMTreeWalker::getValueProperty):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::Window::scheduleClose):
              (KJS::Window::isSafeScript):
              (KJS::Window::clear):
              (KJS::LocationFunc::callAsFunction):
              (KJS::History::getValueProperty):
              * ksvg2/svg/SVGAnimateColorElementImpl.cpp:
              (SVGAnimateColorElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateElementImpl.cpp:
              (SVGAnimateElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimateTransformElementImpl.cpp:
              (SVGAnimateTransformElementImpl::handleTimerEvent):
              * ksvg2/svg/SVGAnimationElementImpl.cpp:
              (SVGAnimationElementImpl::parseMappedAttribute):
              * ksvg2/svg/SVGCursorElementImpl.cpp:
              * ksvg2/svg/SVGDocumentImpl.cpp:
              (WebCore::SVGDocumentImpl::finishedParsing):
              * ksvg2/svg/SVGLengthImpl.cpp:
              (SVGLengthImpl::updateValueInSpecifiedUnits):
              Removed use of kdWarning, kdDebug, etc.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12906 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      644b75ef
  32. 16 Feb, 2006 2 commits
    • harrison's avatar
      Reviewed by Darin. · d9721985
      harrison authored
              Test:
              * manual-tests/mail-attachments.html: Added.
              Automated test not currently possible because widgets do not actually draw when not in a window.
              Geoff and Justin are fixing that and will add this test.
      
              * rendering/render_frames.cpp:
              (WebCore::RenderPartObject::updateWidget):
              Fix unique param check when processing object tag attributes.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12862 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d9721985
    • darin's avatar
      Reviewed by Hyatt. · d85b585f
      darin authored
              - eliminate QFrame and QObject::inherits, fix some strange stuff
                in RenderCanvas that showed up when I tested that change
      
              * kwq/KWQFrame.h: Removed.
              * kwq/KWQFrame.mm: Removed.
      
              * bridge/mac/FrameViewMac.mm: Added.
      
              * WebCore.xcodeproj/project.pbxproj: Updated for adds and removes.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Updated for removes.
      
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]):
              * khtml/ecma/kjs_window.cpp:
              (KJS::FrameArray::indexGetter):
              (KJS::FrameArray::nameGetter):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              * page/Frame.cpp:
              (WebCore::isFrameElement):
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              Change QObject::inherits callers to call the "is" functions directly.
      
              * kwq/KWQObject.h:
              * kwq/KWQObject.cpp: Removed QObject::inherits, QObject::isQFrame,
              and QObject::isQScrollView.
      
              * kwq/KWQScrollView.h: Inherit from Widget instead of QFrame.
              Remove isQScrollView.
              * kwq/KWQScrollView.mm: Remove isQScrollView.
      
              * page/FrameView.h:
              * page/FrameView.cpp: Changed underMouse and clickNode to be RefPtr.
              Added m_hasBorder.
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameViewPrivate::~FrameViewPrivate):
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::viewportMousePressEvent):
              (WebCore::FrameView::invalidateClick):
              (WebCore::FrameView::viewportMouseReleaseEvent):
              (WebCore::FrameView::keyPressEvent):
              (WebCore::FrameView::dispatchDragEvent): Use RefPtr for MouseEventImpl.
              (WebCore::FrameView::nodeUnderMouse):
              (WebCore::FrameView::dispatchMouseEvent):
              (WebCore::FrameView::setHasBorder): Added.
              (WebCore::FrameView::hasBorder): Added.
              (WebCore::FrameView::borderWidth): Added.
      
              * rendering/render_canvas.h: Eliminated unneeded setWidth/Height overrides.
              Eliminated viewportWidth(), viewportHeight(), m_rootWidth, m_rootHeight,
              m_viewportWidth, and m_viewportHeight.
              * rendering/render_canvas.cpp:
              (RenderCanvas::calcHeight): Remove unneeded code to set height when there's
              no view.
              (RenderCanvas::calcWidth): Fix code to set width to visibleWidth(). Removed
              incorrect old width setting, and removed unneeded code to set width when
              there's no view. Also removed incorrect margin-setting code.
              (RenderCanvas::layout): Removed incorrect code to set width and height.
              Instead letting calcWidth and calcHeight do the job.
              (RenderCanvas::repaintViewRectangle): Use new FrameView::hasBorder instead
              of QFrame::frameStyle.
              (RenderCanvas::viewRect): Removed unneeded "root width" feature for a canvas
              without a view.
      
              * rendering/render_frames.cpp:
              (WebCore::RenderFrame::slotViewCleared): Use new setHasBorder.
              (WebCore::RenderPartObject::slotViewCleared): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12853 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d85b585f
  33. 13 Feb, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · d47a9034
      darin authored
              - moved QWidget to platform directory, renamed to Widget,
                split into cross-platform and platform-specific parts,
                removed some of the unused bits
      
              * ForwardingHeaders/qwidget.h: Removed.
              * kwq/KWQWidget.h: Removed.
              * kwq/KWQWidget.mm: Removed.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Update for file removals and adds.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * platform/Widget.h: Moved code here, fixed it up.
              * platform/Widget.cpp: Ditto.
              * platform/mac/WidgetMac.mm: Added.
      
              * bindings/objc/DOMHTML.mm:
              (viewForElement):
              * bridge/mac/KWQKHTMLView.cpp:
              (WebCore::FrameView::topLevelWidget):
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::createPlugin):
              (WebCore::MacFrame::nextKeyViewInFrame):
              (WebCore::MacFrame::nextKeyViewForWidget):
              (WebCore::MacFrame::currentEventIsMouseDownInWidget):
              (WebCore::MacFrame::bridgeForWidget):
              (WebCore::MacFrame::passMouseDownEventToWidget):
              (WebCore::MacFrame::passSubframeEventToSubframe):
              (WebCore::MacFrame::passWheelEventToChildWidget):
              (WebCore::MacFrame::getAppletInstanceForWidget):
              (WebCore::MacFrame::getEmbedInstanceForWidget):
              (WebCore::MacFrame::getObjectInstanceForWidget):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
              (-[WebCoreFrameBridge copyRenderNode:copier:]):
              (-[WebCoreFrameBridge elementForView:]):
              (-[WebCoreFrameBridge RenderObject::nodeInfoAtPoint:]):
              * dom/DocumentImpl.cpp:
              (WebCore::widgetForNode):
              (WebCore::DocumentImpl::setFocusNode):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Screen::getValueProperty):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/HTMLGenericFormElementImpl.cpp:
              (WebCore::HTMLGenericFormElementImpl::isKeyboardFocusable):
              (WebCore::HTMLGenericFormElementImpl::isMouseFocusable):
              * khtml/html/html_objectimpl.cpp:
              (WebCore::HTMLEmbedElementImpl::getEmbedInstance):
              (WebCore::HTMLObjectElementImpl::getObjectInstance):
              * kwq/KWQAccObject.mm:
              (-[KWQAccObject addChildrenToArray:]):
              (-[KWQAccObject attachmentView]):
              (-[KWQAccObject doAXTextMarkerForPosition:]):
              * kwq/KWQComboBox.h:
              * kwq/KWQComboBox.mm:
              (QComboBox::frameGeometry):
              (QComboBox::setFrameGeometry):
              (QComboBox::setFont):
              (QComboBox::focusPolicy):
              (-[KWQPopUpButtonCell widget]):
              (-[KWQPopUpButton widget]):
              (-[KWQPopUpButton mouseDown:]):
              (-[KWQPopUpButton becomeFirstResponder]):
              (-[KWQPopUpButton resignFirstResponder]):
              (-[KWQPopUpButton nextKeyView]):
              (-[KWQPopUpButton previousKeyView]):
              * kwq/KWQFileButton.h:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::focusPolicy):
              * kwq/KWQFrame.h:
              * kwq/KWQKCursor.h:
              * kwq/KWQKJavaAppletWidget.h:
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::KJavaAppletWidget):
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::setFont):
              (QLineEdit::setPalette):
              (QLineEdit::focusPolicy):
              * kwq/KWQListBox.h:
              * kwq/KWQListBox.mm:
              (QListBox::QListBox):
              (QListBox::focusPolicy):
              (QListBox::setFont):
              (-[KWQListBoxScrollView widget]):
              (-[KWQListBoxScrollView becomeFirstResponder]):
              (-[KWQTableView mouseDown:]):
              (-[KWQTableView widget]):
              * kwq/KWQPainter.h:
              * kwq/KWQRenderTreeDebug.cpp:
              (write):
              * kwq/KWQScrollBar.h:
              * kwq/KWQScrollBar.mm:
              (-[KWQScrollBar widget]):
              (-[KWQScrollBar mouseDown:]):
              (QScrollBar::QScrollBar):
              (QScrollBar::~QScrollBar):
              * kwq/KWQScrollView.h:
              (QScrollView::QScrollView):
              * kwq/KWQScrollView.mm:
              (QScrollView::viewport):
              (QScrollView::childX):
              (QScrollView::childY):
              (QScrollView::addChild):
              (QScrollView::removeChild):
              * kwq/KWQSlider.h:
              * kwq/KWQSlider.mm:
              (-[KWQSlider mouseDown:]):
              (-[KWQSlider widget]):
              (QSlider::setFont):
              (QSlider::focusPolicy):
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView widget]):
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm:
              (QTextEdit::QTextEdit):
              (QTextEdit::setFont):
              (QTextEdit::focusPolicy):
              (QTextEdit::setPalette):
              * kwq/KWQTextField.mm:
              (-[KWQTextFieldController widget]):
              (-[KWQTextFieldController textView:shouldHandleEvent:]):
              (-[KWQTextFieldController textView:didHandleEvent:]):
              (-[KWQTextField widget]):
              (-[KWQTextField nextKeyView]):
              (-[KWQTextField previousKeyView]):
              (-[KWQSecureTextField widget]):
              (-[KWQSecureTextField nextKeyView]):
              (-[KWQSecureTextField previousKeyView]):
              (-[KWQSearchField widget]):
              (-[KWQSearchField nextKeyView]):
              (-[KWQSearchField previousKeyView]):
              * kwq/KWQView.h:
              * kwq/KWQWindowWidget.h:
              * kwq/KWQWindowWidget.mm:
              (KWQWindowWidget::topLevelWidget):
              * page/Frame.cpp:
              (WebCore::isFrameElement):
              (WebCore::Frame::frameForWidget):
              (WebCore::Frame::nodeForWidget):
              (WebCore::Frame::setDocumentFocus):
              (WebCore::Frame::clearDocumentFocus):
              (WebCore::Frame::passWidgetMouseDownEventToWidget):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::FrameView):
              (WebCore::FrameView::init):
              * page/FrameView.h:
              * page/Plugin.h:
              (WebCore::Plugin::Plugin):
              (WebCore::Plugin::view):
              * platform/Screen.h:
              * platform/mac/ScreenMac.mm:
              (WebCore::screen):
              (WebCore::screenDepth):
              (WebCore::screenRect):
              (WebCore::usableScreenRect):
              * rendering/render_applet.cpp:
              (WebCore::RenderApplet::layout):
              * rendering/render_form.cpp:
              (WebCore::ComboBoxWidget::ComboBoxWidget):
              (WebCore::RenderSelect::createListBox):
              * rendering/render_form.h:
              * rendering/render_frames.cpp:
              (WebCore::RenderPart::setWidget):
              * rendering/render_frames.h:
              * rendering/render_object.cpp:
              * rendering/render_replaced.cpp:
              (WebCore::RenderWidget::resizeWidget):
              (WebCore::RenderWidget::setQWidget):
              * rendering/render_replaced.h:
              (WebCore::RenderWidget::widget):
              Change name from QWidget to Widget, a few other changes to get compiling.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12782 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d47a9034
  34. 12 Feb, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · a691f517
      mjs authored
              - rename FrameTreeNode to FameTree and treeNode() to tree()
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7210
              
              This may be slightly less accurate, but reads better.
      
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/MacFrame.mm:
              (WebCore::MacFrame::submitForm):
              (WebCore::MacFrame::nextKeyViewInFrameHierarchy):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge firstChild]):
              (-[WebCoreFrameBridge lastChild]):
              (-[WebCoreFrameBridge childCount]):
              (-[WebCoreFrameBridge previousSibling]):
              (-[WebCoreFrameBridge nextSibling]):
              (-[WebCoreFrameBridge appendChild:]):
              (-[WebCoreFrameBridge removeChild:]):
              (-[WebCoreFrameBridge setParent:]):
              (-[WebCoreFrameBridge parent]):
              (-[WebCoreFrameBridge setName:]):
              (-[WebCoreFrameBridge name]):
              * dom/DocumentImpl.cpp:
              (WebCore::DocumentImpl::parentDocument):
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::getValueProperty):
              (KJS::Window::put):
              (KJS::Window::isSafeScript):
              (KJS::WindowFunc::callAsFunction):
              * khtml/html/html_baseimpl.cpp:
              (WebCore::HTMLFrameElementImpl::isURLAllowed):
              * khtml/html/html_headimpl.cpp:
              (WebCore::HTMLLinkElementImpl::process):
              * page/Frame.cpp:
              (WebCore::Frame::stopLoading):
              (WebCore::Frame::clear):
              (WebCore::Frame::stopAnimations):
              (WebCore::Frame::checkCompleted):
              (WebCore::Frame::checkEmitLoadEvent):
              (WebCore::Frame::slotChildCompleted):
              (WebCore::Frame::findFrame):
              (WebCore::Frame::setZoomFactor):
              (WebCore::Frame::frameNames):
              (WebCore::Frame::frames):
              (WebCore::Frame::childFrameNamed):
              (WebCore::Frame::incrementFrameCount):
              (WebCore::Frame::decrementFrameCount):
              (WebCore::Frame::topLevelFrameCount):
              (WebCore::Frame::selectFrameElementInParentIfFullySelected):
              (WebCore::Frame::userGestureHint):
              (WebCore::Frame::canCachePage):
              (WebCore::Frame::updatePolicyBaseURL):
              (WebCore::Frame::setPolicyBaseURL):
              (WebCore::Frame::tree):
              (WebCore::Frame::frameDetached):
              (WebCore::Frame::updateBaseURLForEmptyDocument):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameTree.cpp: Added.
              (WebCore::FrameTree::~FrameTree):
              (WebCore::FrameTree::setName):
              (WebCore::FrameTree::appendChild):
              (WebCore::FrameTree::removeChild):
              * page/FrameTree.h: Added.
              (WebCore::FrameTree::FrameTree):
              * page/FrameTreeNode.cpp: Removed.
              * page/FrameTreeNode.h: Removed.
              * rendering/render_frames.cpp:
              (WebCore::isURLAllowed):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12768 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a691f517