1. 28 Sep, 2006 1 commit
    • hyatt's avatar
      Fix for bug 9222, cursor is wrong when mousing over overflow... · d6df5850
      hyatt authored
              Fix for bug 9222, cursor is wrong when mousing over overflow scrollbars in textareas.  Make sure
              selectCursor checks for whether or not a scrollbar was hit.  Also stub out a mouseMoved method for
              scrollbars to provide hover feedback if needed.
      
              Reviewed by Eric
      
              * page/FrameView.cpp:
              (WebCore::selectCursor):
              (WebCore::FrameView::handleMouseMoveEvent):
              * platform/ScrollBar.h:
              (WebCore::ScrollBar::mouseMoved):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16611 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d6df5850
  2. 26 Sep, 2006 1 commit
  3. 24 Sep, 2006 1 commit
  4. 22 Sep, 2006 1 commit
  5. 21 Sep, 2006 1 commit
    • ggaren's avatar
      JavaScriptCore: · 0de1f3e4
      ggaren authored
              Reviewed by Maciej.
      
              * JavaScriptCore.vcproj/JavaScriptCore/JavaScriptCore.vcproj:
              Updated to include the right path.
              * wtf/FastMalloc.h: #include Platform.h, since we use Platform macros.
      
      WebCore:
      
              Reviewed by Maciej.
              
              Some Widget refactoring.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * bridge/mac/FrameMac.mm:
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::runJavaScriptAlert):
              (WebCore::FrameWin::runJavaScriptConfirm):
              * bridge/win/PageWin.cpp:
              (WebCore::Page::Page):
              (WebCore::rootWindowForFrame):
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::translate):
              * page/FrameView.cpp:
              (WebCore::FrameView::isFrameView):
              * page/Page.h:
              (WebCore::Page::setInstanceHandle):
              (WebCore::Page::instanceHandle):
              * platform/GraphicsContext.h:
              * platform/ScrollView.h:
              * platform/Widget.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::translate):
              (WebCore::GraphicsContext::origin):
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::clearFocus):
              * platform/win/ResourceLoaderWin.cpp:
              (WebCore::initializeOffScreenResourceLoaderWindow):
              * platform/win/ScreenWin.cpp:
              (WebCore::monitorInfo):
              * platform/win/ScrollViewWin.cpp:
              (WebCore::ScrollView::updateContents):
              (WebCore::ScrollView::visibleWidth):
              (WebCore::ScrollView::visibleHeight):
              (WebCore::ScrollView::visibleContentRect):
              (WebCore::ScrollView::viewportToContents):
              (WebCore::ScrollView::contentsToViewport):
              (WebCore::ScrollView::scrollBy):
              (WebCore::ScrollView::updateScrollInfo):
              (WebCore::ScrollView::updateScrollBars):
              * platform/win/SharedTimerWin.cpp:
              (WebCore::initializeOffScreenTimerWindow):
              * platform/win/TemporaryLinkStubs.cpp:
              (FrameView::updateBorder):
              (ScrollView::paint):
              (GraphicsContext::clip):
              * platform/win/WidgetWin.cpp:
              (WebCore::Widget::Widget):
              (WebCore::Widget::parentWindow):
              (WebCore::Widget::setParentWindow):
              (WebCore::Widget::frameGeometry):
              (WebCore::Widget::hasFocus):
              (WebCore::Widget::setFocus):
              (WebCore::Widget::show):
              (WebCore::Widget::hide):
              (WebCore::Widget::setFrameGeometry):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0de1f3e4
  6. 20 Sep, 2006 3 commits
    • hyatt's avatar
      Add a new wheelEvent method to ScrollView. Platforms that wish · 7e7a1102
      hyatt authored
              to handle the wheel event for the scroll view themselves can then
              do so there.  (Mac lets the underlying NSScrollView do it for now.)
      
              * page/FrameView.cpp:
              (WebCore::FrameView::handleWheelEvent):
              * platform/ScrollView.h:
              (WebCore::ScrollView::wheelEvent):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e7a1102
    • hyatt's avatar
      Fix for 10945, WheelEvent should support two dimensions at once, since · 4f172f9e
      hyatt authored
              MacBooks allow for diagonal scrolling.  Also enhance the PlatformWheelEvent
              to allow for diagonal scrolling.
      
              Reviewed by Eric
      
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchWheelEvent):
              * dom/WheelEvent.cpp:
              (WebCore::WheelEvent::WheelEvent):
              (WebCore::WheelEvent::initWheelEvent):
              * dom/WheelEvent.h:
              (WebCore::WheelEvent::wheelDelta):
              (WebCore::WheelEvent::wheelDeltaX):
              (WebCore::WheelEvent::wheelDeltaY):
              * dom/WheelEvent.idl:
              * page/FrameView.cpp:
              (WebCore::FrameView::handleWheelEvent):
              * platform/PlatformWheelEvent.h:
              (WebCore::PlatformWheelEvent::deltaX):
              (WebCore::PlatformWheelEvent::deltaY):
              (WebCore::PlatformWheelEvent::normalize):
              * platform/mac/WheelEventMac.mm:
              (WebCore::PlatformWheelEvent::PlatformWheelEvent):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16467 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f172f9e
    • hyatt's avatar
      Massage mouse wheel handling so that it is more cross-platform. Make · 330ca690
      hyatt authored
              all the work happen in handleWheelEvent on the FrameView.
      
              Reviewed by bradee-oh
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::wheelEvent):
              * page/FrameView.cpp:
              (WebCore::FrameView::handleWheelEvent):
              * platform/PlatformWheelEvent.h:
              (WebCore::PlatformWheelEvent::platformDelta):
              (WebCore::PlatformWheelEvent::delta):
              * platform/mac/WheelEventMac.mm:
              (WebCore::platformDeltaForEvent):
              (WebCore::PlatformWheelEvent::PlatformWheelEvent):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scroll):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::scroll):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16463 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      330ca690
  7. 05 Sep, 2006 1 commit
    • justing's avatar
      LayoutTests: · 397edaa4
      justing authored
              Reviewed by thatcher
              
              Setup for <rdar://problem/4344550> Misspellings aren't marked after undo delete
      
              Fixed:
              * editing/pasteboard/4641033-expected.checksum:
              * editing/pasteboard/4641033-expected.png:
              * editing/execCommand/outdent-selection-expected.checksum:
              * editing/execCommand/outdent-selection-expected.png:
      
              Added a didChangeSelection notification that was absent before:
              * editing/deleting/collapse-whitespace-3587601-fix-expected.txt:
              * editing/deleting/delete-3608430-fix-expected.txt:
              * editing/deleting/delete-3608462-fix-expected.txt:
              * editing/deleting/delete-3775172-fix-expected.txt:
              * editing/deleting/delete-3800834-fix-expected.txt:
              * editing/deleting/delete-3857753-fix-expected.txt:
              * editing/deleting/delete-3865854-fix-expected.txt:
              * editing/deleting/delete-3928305-fix-expected.txt:
              * editing/deleting/delete-3959464-fix-expected.txt:
              * editing/deleting/delete-4038408-fix-expected.txt:
              * editing/deleting/delete-all-text-in-text-field-assertion-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-001-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-002-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-003-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-004-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-005-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-006-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-007-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-009-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-010-expected.txt:
              * editing/deleting/delete-at-paragraph-boundaries-011-expected.txt:
              * editing/deleting/delete-block-contents-001-expected.txt:
              * editing/deleting/delete-block-contents-002-expected.txt:
              * editing/deleting/delete-block-contents-003-expected.txt:
              * editing/deleting/delete-block-merge-contents-001-expected.txt:
              * editing/deleting/delete-block-merge-contents-002-expected.txt:
              * editing/deleting/delete-block-merge-contents-003-expected.txt:
              * editing/deleting/delete-block-merge-contents-004-expected.txt:
              * editing/deleting/delete-block-merge-contents-005-expected.txt:
              * editing/deleting/delete-block-merge-contents-006-expected.txt:
              * editing/deleting/delete-block-merge-contents-007-expected.txt:
              * editing/deleting/delete-block-merge-contents-008-expected.txt:
              * editing/deleting/delete-block-merge-contents-009-expected.txt:
              * editing/deleting/delete-block-merge-contents-010-expected.txt:
              * editing/deleting/delete-block-merge-contents-012-expected.txt:
              * editing/deleting/delete-block-merge-contents-013-expected.txt:
              * editing/deleting/delete-block-merge-contents-014-expected.txt:
              * editing/deleting/delete-block-merge-contents-015-expected.txt:
              * editing/deleting/delete-block-merge-contents-016-expected.txt:
              * editing/deleting/delete-block-merge-contents-017-expected.txt:
              * editing/deleting/delete-block-merge-contents-018-expected.txt:
              * editing/deleting/delete-block-merge-contents-019-expected.txt:
              * editing/deleting/delete-block-merge-contents-020-expected.txt:
              * editing/deleting/delete-block-merge-contents-021-expected.txt:
              * editing/deleting/delete-block-merge-contents-022-expected.txt:
              * editing/deleting/delete-block-merge-contents-023-expected.txt:
              * editing/deleting/delete-block-merge-contents-024-expected.txt:
              * editing/deleting/delete-block-table-expected.txt:
              * editing/deleting/delete-br-008-expected.txt:
              * editing/deleting/delete-br-010-expected.txt:
              * editing/deleting/delete-br-011-expected.txt:
              * editing/deleting/delete-first-list-item-expected.txt:
              * editing/deleting/delete-image-001-expected.txt:
              * editing/deleting/delete-image-002-expected.txt:
              * editing/deleting/delete-image-003-expected.txt:
              * editing/deleting/delete-image-004-expected.txt:
              * editing/deleting/delete-line-001-expected.txt:
              * editing/deleting/delete-line-002-expected.txt:
              * editing/deleting/delete-line-003-expected.txt:
              * editing/deleting/delete-line-004-expected.txt:
              * editing/deleting/delete-line-005-expected.txt:
              * editing/deleting/delete-line-006-expected.txt:
              * editing/deleting/delete-line-007-expected.txt:
              * editing/deleting/delete-line-008-expected.txt:
              * editing/deleting/delete-line-009-expected.txt:
              * editing/deleting/delete-line-010-expected.txt:
              * editing/deleting/delete-line-011-expected.txt:
              * editing/deleting/delete-line-012-expected.txt:
              * editing/deleting/delete-line-013-expected.txt:
              * editing/deleting/delete-line-014-expected.txt:
              * editing/deleting/delete-line-015-expected.txt:
              * editing/deleting/delete-line-016-expected.txt:
              * editing/deleting/delete-line-017-expected.txt:
              * editing/deleting/delete-listitem-001-expected.txt:
              * editing/deleting/delete-listitem-002-expected.txt:
              * editing/deleting/delete-mixed-editable-content-001-expected.txt:
              * editing/deleting/delete-select-all-001-expected.txt:
              * editing/deleting/delete-select-all-002-expected.txt:
              * editing/deleting/delete-select-all-003-expected.txt:
              * editing/deleting/merge-different-styles-expected.txt:
              * editing/deleting/merge-endOfParagraph-expected.txt:
              * editing/deleting/merge-no-br-expected.txt:
              * editing/deleting/pruning-after-merge-1-expected.txt:
              * editing/deleting/pruning-after-merge-2-expected.txt:
              * editing/deleting/table-cells-expected.txt:
              * editing/execCommand/boldSelection-expected.txt:
              * editing/execCommand/create-list-from-range-selection-expected.txt:
              * editing/execCommand/createLink-expected.txt:
              * editing/execCommand/format-block-expected.txt:
              * editing/execCommand/format-block-from-range-selection-expected.txt:
              * editing/execCommand/format-block-with-braces-expected.txt:
              * editing/execCommand/format-block-with-trailing-br-expected.txt:
              * editing/execCommand/hilitecolor-expected.txt:
              * editing/execCommand/indent-list-item-expected.txt:
              * editing/execCommand/indent-selection-expected.txt:
              * editing/execCommand/insert-list-and-stitch-expected.txt:
              * editing/execCommand/insert-list-with-id-expected.txt:
              * editing/execCommand/insertHTML-expected.txt:
              * editing/execCommand/insertHorizontalRule-expected.txt:
              * editing/execCommand/remove-formatting-expected.txt:
              * editing/execCommand/remove-list-from-range-selection-expected.txt:
              * editing/execCommand/remove-list-items-expected.txt:
              * editing/execCommand/strikethroughSelection-expected.txt:
              * editing/execCommand/switch-list-type-expected.txt:
              * editing/execCommand/unlink-expected.txt:
              * editing/input/text-input-controller-expected.txt:
              * editing/inserting/insert-3654864-fix-expected.txt:
              * editing/inserting/insert-3659587-fix-expected.txt:
              * editing/inserting/insert-3775316-fix-expected.txt:
              * editing/inserting/insert-3851164-fix-expected.txt:
              * editing/inserting/insert-3907422-fix-expected.txt:
              * editing/inserting/insert-after-delete-001-expected.txt:
              * editing/inserting/insert-div-001-expected.txt:
              * editing/inserting/insert-div-002-expected.txt:
              * editing/inserting/insert-div-003-expected.txt:
              * editing/inserting/insert-div-005-expected.txt:
              * editing/inserting/insert-div-007-expected.txt:
              * editing/inserting/insert-div-009-expected.txt:
              * editing/inserting/insert-div-010-expected.txt:
              * editing/inserting/insert-div-020-expected.txt:
              * editing/inserting/insert-div-023-expected.txt:
              * editing/inserting/insert-div-024-expected.txt:
              * editing/inserting/insert-div-025-expected.txt:
              * editing/inserting/insert-div-026-expected.txt:
              * editing/inserting/multiple-lines-selected-expected.txt:
              * editing/inserting/paragraph-separator-03-expected.txt:
              * editing/inserting/paragraph-separator-in-table-2-expected.txt:
              * editing/inserting/redo-expected.txt:
              * editing/inserting/return-key-with-selection-001-expected.txt:
              * editing/inserting/return-key-with-selection-002-expected.txt:
              * editing/inserting/return-key-with-selection-003-expected.txt:
              * editing/pasteboard/3976872-expected.txt:
              * editing/pasteboard/4076267-3-expected.txt:
              * editing/pasteboard/4076267-expected.txt:
              * editing/pasteboard/4700297-expected.txt:
              * editing/pasteboard/8145-3-expected.txt:
              * editing/pasteboard/block-wrappers-necessary-expected.txt:
              * editing/pasteboard/copy-paste-bidi-expected.txt:
              * editing/pasteboard/displaced-generic-placeholder-expected.txt:
              * editing/pasteboard/displaced-placeholder-expected.txt:
              * editing/pasteboard/display-block-on-spans-expected.txt:
              * editing/pasteboard/drag-drop-modifies-page-expected.txt:
              * editing/pasteboard/interchange-newline-2-expected.txt:
              * editing/pasteboard/merge-after-delete-1-expected.txt:
              * editing/pasteboard/merge-after-delete-2-expected.txt:
              * editing/pasteboard/merge-after-delete-expected.txt:
              * editing/pasteboard/merge-end-3-expected.txt:
              * editing/pasteboard/merge-end-5-expected.txt:
              * editing/pasteboard/merge-end-blockquote-expected.txt:
              * editing/pasteboard/merge-end-list-expected.txt:
              * editing/pasteboard/merge-end-table-expected.txt:
              * editing/pasteboard/paste-4035648-fix-expected.txt:
              * editing/pasteboard/paste-4039777-fix-expected.txt:
              * editing/pasteboard/paste-line-endings-001-expected.txt:
              * editing/pasteboard/paste-line-endings-006-expected.txt:
              * editing/pasteboard/paste-match-style-001-expected.txt:
              * editing/pasteboard/paste-match-style-002-expected.txt:
              * editing/pasteboard/paste-pre-001-expected.txt:
              * editing/pasteboard/paste-pre-002-expected.txt:
              * editing/pasteboard/paste-table-002-expected.txt:
              * editing/pasteboard/paste-table-003-expected.txt:
              * editing/pasteboard/paste-text-006-expected.txt:
              * editing/pasteboard/paste-text-007-expected.txt:
              * editing/pasteboard/paste-text-010-expected.txt:
              * editing/pasteboard/paste-text-011-expected.txt:
              * editing/pasteboard/paste-text-015-expected.txt:
              * editing/pasteboard/paste-text-016-expected.txt:
              * editing/pasteboard/paste-text-017-expected.txt:
              * editing/pasteboard/paste-text-018-expected.txt:
              * editing/pasteboard/prevent-block-nesting-01-expected.txt:
              * editing/pasteboard/smart-paste-003-expected.txt:
              * editing/pasteboard/smart-paste-004-expected.txt:
              * editing/pasteboard/smart-paste-005-expected.txt:
              * editing/pasteboard/smart-paste-006-expected.txt:
              * editing/pasteboard/smart-paste-007-expected.txt:
              * editing/pasteboard/smart-paste-008-expected.txt:
              * editing/pasteboard/testcase-9507-expected.txt:
              * editing/pasteboard/undoable-fragment-removes-expected.txt:
              * editing/selection/expanding-selections-expected.txt:
              * editing/selection/expanding-selections2-expected.txt:
              * editing/selection/node-removal-1-expected.txt:
              * editing/selection/node-removal-2-expected.txt:
              * editing/selection/select-all-iframe-expected.txt:
              * editing/selection/skip-non-editable-1-expected.txt:
              * editing/selection/triple-click-in-pre-expected.txt:
              * editing/style/apple-style-editable-mix-expected.txt:
              * editing/style/block-style-004-expected.txt:
              * editing/style/block-style-005-expected.txt:
              * editing/style/block-style-006-expected.txt:
              * editing/style/create-block-for-style-001-expected.txt:
              * editing/style/create-block-for-style-002-expected.txt:
              * editing/style/create-block-for-style-003-expected.txt:
              * editing/style/create-block-for-style-004-expected.txt:
              * editing/style/create-block-for-style-007-expected.txt:
              * editing/style/create-block-for-style-009-expected.txt:
              * editing/style/create-block-for-style-010-expected.txt:
              * editing/style/create-block-for-style-011-expected.txt:
              * editing/style/create-block-for-style-012-expected.txt:
              * editing/style/create-block-for-style-013-expected.txt:
              * editing/style/designmode-expected.txt:
              * editing/style/relative-font-size-change-001-expected.txt:
              * editing/style/relative-font-size-change-002-expected.txt:
              * editing/style/remove-underline-across-paragraph-expected.txt:
              * editing/style/remove-underline-across-paragraph-in-bold-expected.txt:
              * editing/style/remove-underline-after-paragraph-expected.txt:
              * editing/style/remove-underline-after-paragraph-in-bold-expected.txt:
              * editing/style/remove-underline-from-stylesheet-expected.txt:
              * editing/style/smoosh-styles-001-expected.txt:
              * editing/style/smoosh-styles-002-expected.txt:
              * editing/style/smoosh-styles-003-expected.txt:
              * editing/style/style-3681552-fix-001-expected.txt:
              * editing/style/style-3681552-fix-002-expected.txt:
              * editing/style/style-3690704-fix-expected.txt:
              * editing/style/style-3998892-fix-expected.txt:
              * editing/style/style-boundary-001-expected.txt:
              * editing/style/style-boundary-003-expected.txt:
              * editing/style/style-boundary-004-expected.txt:
              * editing/style/typing-style-001-expected.txt:
              * editing/style/typing-style-003-expected.txt:
              * editing/undo/undo-misspellings-expected.txt:
              * editing/unsupported-content/list-delete-001-expected.txt:
              * editing/unsupported-content/list-delete-002-expected.txt:
              * editing/unsupported-content/list-delete-003-expected.txt:
              * editing/unsupported-content/table-delete-001-expected.txt:
              * editing/unsupported-content/table-delete-002-expected.txt:
              * editing/unsupported-content/table-delete-003-expected.txt:
              * fast/forms/attributed-strings-expected.txt:
              * fast/forms/cursor-position-expected.txt:
              * fast/forms/drag-into-textarea-expected.txt:
              * fast/forms/input-appearance-maxlength-expected.txt:
              * fast/forms/input-paste-undo-expected.txt:
              * fast/forms/input-selection-restore-expected.txt:
              * fast/forms/input-text-paste-maxlength-expected.txt:
              * fast/forms/selection-functions-expected.txt:
              * fast/forms/text-field-setvalue-crash-expected.txt:
              * fast/forms/textarea-paste-newline-expected.txt:
      
      WebCore:
      
              Reviewed by thatcher
              
              Setup for <rdar://problem/4344550> Misspellings aren't marked after undo delete
              
              Fixes:
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=6498>
              SelectionController's setters should notify delegates of selection changes
              
              Moved setSelection from Frame to SelectionController.
              I haven't moved any of the work that's done as a result of a 
              Selection change to SelectionController yet.
              Make fewer uses of SelectionControllers.  They're now only used for 
              the Frame's selection, the Page's drag caret, and functions that
              need to do Selection expansion.
      
              * bindings/js/kjs_window.cpp:
              (KJS::Selection::getValueProperty):
              (KJS::Selection::toString):
              (KJS::SelectionFunc::callAsFunction):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::advanceToNextMisspelling):
              (WebCore::FrameMac::dispatchCPPEvent):
              (WebCore::FrameMac::fontForSelection):
              (WebCore::FrameMac::baseWritingDirectionForSelectionStart):
              (WebCore::FrameMac::markMisspellingsInAdjacentWords):
              (WebCore::FrameMac::markMisspellings):
              (WebCore::FrameMac::respondToChangedSelection):
              (WebCore::FrameMac::shouldChangeSelection):
              (WebCore::FrameMac::shouldDeleteSelection):
              (WebCore::FrameMac::respondToChangedContents):
              * bridge/mac/PageMac.mm:
              (WebCore::Page::Page):
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              (-[WebCoreAXObject doAXTextMarkerRangeForLine:]):
              (-[WebCoreAXObject doAXBoundsForTextMarkerRange:]):
              (-[WebCoreAXObject doAXTextMarkerRangeForUnorderedTextMarkers:]):
              (-[WebCoreAXObject doSetAXSelectedTextMarkerRange:]):
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge isSelectionEditable]):
              (-[WebCoreFrameBridge isSelectionRichlyEditable]):
              (-[WebCoreFrameBridge selectionState]):
              (-[WebCoreFrameBridge deselectText]):
              (-[WebCoreFrameBridge selectedAttributedString]):
              (-[WebCoreFrameBridge rangeByExpandingSelectionWithGranularity:]):
              (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:direction:granularity:]):
              (-[WebCoreFrameBridge alterCurrentSelection:direction:granularity:]):
              (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:verticalDistance:]):
              (-[WebCoreFrameBridge alterCurrentSelection:verticalDistance:]):
              (-[WebCoreFrameBridge setSelectedDOMRange:affinity:closeTyping:]):
              (-[WebCoreFrameBridge selectedDOMRange]):
              (-[WebCoreFrameBridge selectNSRange:]):
              (-[WebCoreFrameBridge selectedNSRange]):
              (-[WebCoreFrameBridge selectionAffinity]):
              (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
              (-[WebCoreFrameBridge setSelectionToDragCaret]):
              (-[WebCoreFrameBridge moveSelectionToDragCaret:smartMove:]):
              (-[WebCoreFrameBridge moveDragCaretToPoint:]):
              (-[WebCoreFrameBridge removeDragCaret]):
              (-[WebCoreFrameBridge dragCaretDOMRange]):
              (-[WebCoreFrameBridge isDragCaretRichlyEditable]):
              (-[WebCoreFrameBridge editableDOMRangeForPoint:]):
              (-[WebCoreFrameBridge ensureSelectionVisible]):
              (-[WebCoreFrameBridge rangeOfCharactersAroundCaret]):
              * bridge/win/PageWin.cpp:
              (WebCore::Page::Page):
              * dom/Document.cpp:
              (WebCore::Document::updateSelection):
              (WebCore::Document::clearSelectionIfNeeded):
              (WebCore::Document::notifyBeforeNodeRemoval):
              * dom/Element.cpp:
              (WebCore::Element::updateFocusAppearance):
              * editing/EditCommand.cpp:
              (WebCore::EditCommand::EditCommand):
              * editing/JSEditor.cpp:
              * editing/ModifySelectionListLevel.cpp:
              (WebCore::IncreaseSelectionListLevelCommand::canIncreaseSelectionListLevel):
              (WebCore::DecreaseSelectionListLevelCommand::canDecreaseSelectionListLevel):
              * editing/Selection.cpp:
              (WebCore::Selection::setBase):
              (WebCore::Selection::setExtent):
              * editing/Selection.h:
              (WebCore::Selection::extent):
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::SelectionController):
              (WebCore::SelectionController::moveTo):
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::nodeWillBeRemoved):
              (WebCore::SelectionController::modify):
              (WebCore::SelectionController::clear):
              (WebCore::SelectionController::setBase):
              (WebCore::SelectionController::setExtent):
              * editing/SelectionController.h:
              * editing/TypingCommand.cpp:
              (WebCore::TypingCommand::insertText):
              (WebCore::TypingCommand::deleteKeyPressed):
              (WebCore::TypingCommand::forwardDeleteKeyPressed):
              * editing/VisiblePosition.cpp:
              (WebCore::VisiblePosition::caretRect):
              * editing/VisiblePosition.h:
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::defaultEventHandler):
              * page/Frame.cpp:
              (WebCore::Frame::selectedText):
              (WebCore::Frame::hasSelection):
              (WebCore::Frame::selectionController):
              (WebCore::Frame::dragCaretController):
              (WebCore::Frame::notifyRendererOfSelectionChange):
              (WebCore::Frame::invalidateSelection):
              (WebCore::Frame::clearCaretRectIfNeeded):
              (WebCore::Frame::setFocusNodeIfNeeded):
              (WebCore::Frame::selectionLayoutChanged):
              (WebCore::Frame::caretBlinkTimerFired):
              (WebCore::Frame::paintCaret):
              (WebCore::Frame::paintDragCaret):
              (WebCore::Frame::isPointInsideSelection):
              (WebCore::Frame::selectClosestWordFromMouseEvent):
              (WebCore::Frame::handleMousePressEventDoubleClick):
              (WebCore::Frame::handleMousePressEventTripleClick):
              (WebCore::Frame::handleMousePressEventSingleClick):
              (WebCore::Frame::handleMouseMoveEvent):
              (WebCore::Frame::handleMouseReleaseEvent):
              (WebCore::Frame::selectAll):
              (WebCore::Frame::selectContentsOfNode):
              (WebCore::Frame::shouldChangeSelection):
              (WebCore::Frame::shouldDeleteSelection):
              (WebCore::Frame::isSelectionInPasswordField):
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              (WebCore::Frame::computeAndSetTypingStyle):
              (WebCore::Frame::applyStyle):
              (WebCore::Frame::applyParagraphStyle):
              (WebCore::Frame::selectionListState):
              (WebCore::Frame::selectionHasStyle):
              (WebCore::Frame::selectionComputedStyle):
              (WebCore::Frame::selectFrameElementInParentIfFullySelected):
              (WebCore::Frame::currentForm):
              (WebCore::Frame::revealSelection):
              (WebCore::Frame::centerSelectionInVisibleArea):
              (WebCore::Frame::styleForSelectionStart):
              (WebCore::Frame::setSelectionFromNone):
              (WebCore::Frame::findString):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * page/FrameView.cpp:
              (WebCore::FrameView::clear):
              * page/Page.cpp:
              (WebCore::Page::dragCaretController):
              * page/Page.h:
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::paintCaret):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::autoscroll):
              * rendering/RenderTextControl.cpp:
              (WebCore::RenderTextControl::selectionStart):
              (WebCore::RenderTextControl::selectionEnd):
              (WebCore::RenderTextControl::setSelectionRange):
              (WebCore::RenderTextControl::selectionChanged):
              * rendering/RenderTreeAsText.cpp:
              (WebCore::writeSelection):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16237 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      397edaa4
  8. 31 Aug, 2006 1 commit
    • harrison's avatar
      Reviewed by Adele. · bb58767d
      harrison authored
              <rdar://problem/4708119> REGRESSION: Cannot observe an AXTextField element directly
      
              ... and most of
              <rdar://problem/4708022> REGRESSION: TextRange-based attributes are missing from text fields
              <rdar://problem/4709515> REGRESSION: Expose text areas
      
              Remaining work for those two bugs in new bugs:
      
              <rdar://problem/4712101> Support NSAccessibilityVisibleCharacterRangeAttribute for AXTextField and AXTextArea elements
              <rdar://problem/4712111> Support NSAccessibilityInsertionPointLineNumberAttribute for AXTextArea elements
              <rdar://problem/4712125> Support setting NSAccessibilitySelectedTextAttribute for AXTextField and AXTextArea elements
      
              * bridge/AXObjectCache.h:
              (WebCore::AXObjectCache::postNotificationToElement):
              * bridge/mac/AXObjectCacheMac.mm:
              (WebCore::AXObjectCache::postNotification):
              (WebCore::AXObjectCache::postNotificationToElement):
              Removed postNotificationToTopWebArea.
              postNotification now posts to input element or top web area, as appropriate.
              postNotificationToElement posts to the specified element itself.
              
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::respondToChangedContents):
              Take a selection.  Pass the starting position's renderer to postNotification so that postNotification can post to the appropriate input element, if any.
              
              * bridge/mac/WebCoreAXObject.h:
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject isWebArea]):
              (-[WebCoreAXObject isAnchor]):
              (-[WebCoreAXObject isTextRange]):
              New convenience methods.
              
              (-[WebCoreAXObject role]):
              (-[WebCoreAXObject roleDescription])        
              (-[WebCoreAXObject value]):
              (-[WebCoreAXObject accessibilityDescription]):
              Support AXTextField and AXTextArea.
      
              (-[WebCoreAXObject accessibilityShouldUseUniqueId]):
              Register AXTextField and AXTextArea elements so notifications to them can be observed.
              
              (-[WebCoreAXObject accessibilityIsIgnored]):
              Use new convenience method isWebArea.
      
              (-[WebCoreAXObject accessibilityAttributeNames]):
              Simplify the array creation.
              Add text range support.
             
              (-[WebCoreAXObject accessibilityAttributeValue:]):
              Add text range support.
             
              (-[WebCoreAXObject canSetFocusAttribute]):
              (-[WebCoreAXObject canSetValueAttribute]):
              (-[WebCoreAXObject canSetTextRangeAttributes]):
              New convenience methods.
              
              (-[WebCoreAXObject accessibilityIsAttributeSettable:]):
              (-[WebCoreAXObject accessibilitySetValue:forAttribute:]):
              Add text range support.
      
              (-[WebCoreAXObject observableObject]):
              New to locate text field or text area to notify.
              
              * dom/Document.cpp:
              (WebCore::Document::updateSelection):
              Post AXSelectedTextChanged notification with new selection's start node.
              postNotification will send it to the input element, if there is one, or the top WebArea.
              
              (WebCore::Document::implicitClose):
              Use postNotificationToElement now that it acts like the old postNotification.
              
              * page/Frame.h:
              * page/Frame.cpp:
              (WebCore::Frame::appliedEditing):
              (WebCore::Frame::unappliedEditing):
              (WebCore::Frame::reappliedEditing):
              Pass the selection of interest to respondToChangedContents.
              
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              Use postNotificationToElement now that it acts like the old postNotification.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16169 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bb58767d
  9. 24 Aug, 2006 1 commit
    • thatcher's avatar
      WebCore: · 7122a90b
      thatcher authored
              Reviewed by Hyatt.
      
              Allow changing the background color WebCore draws under transparent page backgrounds.
              No automated way to test. All tests pass, no performance regression.
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge setBaseBackgroundColor:]):
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameView::baseBackgroundColor):
              (WebCore::FrameView::setBaseBackgroundColor):
              * page/FrameView.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/RenderView.cpp:
              (WebCore::RenderView::paintBoxDecorations):
      
      WebKit:
      
              Reviewed by Hyatt.
      
              WebView API to allow changing the background color that draws under transparent page backgrounds.
      
              * WebView/WebFrame.m:
              (-[WebFrame _makeDocumentView]):
              (-[WebFrame _updateBackground]):
              * WebV...
      7122a90b
  10. 03 Aug, 2006 1 commit
    • weinig's avatar
      JavaScriptCore: · f18aae37
      weinig authored
              Reviewed by Darin.
      
              - patch for http://bugzilla.opendarwin.org/show_bug.cgi?id=10176
                Make WebCore compile with -Wundef
      
                * Adds -Wundef flag to Xcode project
                * Converts #ifs to #ifdef and #ifndefs where needed.
                * Added #define YYMAXDEPTH 10000 in kjs/grammar.y
                  to fix a warning from within Bison.
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * bindings/jni/jni_jsobject.cpp:
              (JavaJSObject::getSlot):
              (JavaJSObject::setSlot):
              * bindings/npapi.h:
              * bindings/objc/objc_class.mm:
              (KJS::Bindings::ObjcClass::methodsNamed):
              (KJS::Bindings::ObjcClass::fieldNamed):
              * bindings/objc/objc_instance.mm:
              (ObjcInstance::invokeMethod):
              * bindings/objc/objc_runtime.mm:
              (ObjcMethod::getMethodSignature):
              (ObjcField::name):
              (ObjcField::type):
              * kjs/grammar.y:
              * kjs/identifier.h:
      
      JavaScriptGlue:
      
              Reviewed by Darin.
      ...
      f18aae37
  11. 31 Jul, 2006 1 commit
    • hyatt's avatar
      Fix for bug 10179, digg.com scrolls slowly. Improve fixed positioning · 3bd2d0be
      hyatt authored
              and fixed backgrounds so that a count of them is kept on the FrameView.
              This allows us to switch slow scrolling on and off as these objects come
              and go.
      
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              (WebCore::CSSStyleSelector::applyProperty):
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::useSlowRepaints):
              (WebCore::FrameView::setUseSlowRepaints):
              (WebCore::FrameView::addSlowRepaintObject):
              (WebCore::FrameView::removeSlowRepaintObject):
              * page/FrameView.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackgroundExtended):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::setStyle):
              * rendering/RenderView.cpp:
              (WebCore::RenderView::paintBoxDecorations):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15722 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3bd2d0be
  12. 26 Jul, 2006 1 commit
  13. 21 Jul, 2006 1 commit
    • andersca's avatar
      2006-07-21 Anders Carlsson <acarlsson@apple.com> · 37baf8d6
      andersca authored
              Reviewed by Geoff.
      
              * dom/Document.h:
              (WebCore::Document::):
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::addEventListener):
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              Only dispatch overflowchanged events if overflowchanged event listeners have been registered on the document.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15553 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      37baf8d6
  14. 17 Jul, 2006 1 commit
    • tomernic's avatar
      WebCore: · f917f147
      tomernic authored
              Reviewed by Maciej.
      
              <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
              by script
      
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge setProhibitsScrolling:]):
              * page/Frame.cpp:
              (WebCore::Frame::prohibitsScrolling):
              (WebCore::Frame::setProhibitsScrolling):
              * page/Frame.h:
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate):
              * page/FrameView.cpp:
              (WebCore::FrameView::scrollPointRecursively):
              (WebCore::FrameView::setContentsPos):
              * page/FrameView.h:
              * platform/ScrollView.h:
      
      WebKit:
      
              Reviewed by Maciej.
      
              <rdar://problem/4612079> need a way to prevent pages from scrolling to reveal elements that are focused
              by script
      
              * WebView/WebViewPrivate.h:
              * WebView/WebView.m:
              (-[WebView setProhibitsMainFrameScrolling:]):
              New method.  Prohibits scrolling in the WebView's main frame.  Used to "lock" a WebView to a specific
              scroll position.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15498 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f917f147
  15. 14 Jul, 2006 1 commit
    • bdakin's avatar
      Reviewed by Hyatt. · 73bdf11a
      bdakin authored
              Fix for <rdar://problem/4621660> REGRESSION: Safari crashing in 
              WebCore::FrameView::updateOverflowStatus
      
              m_viewportRenderer is never initialized for framesets, and it 
              shouldn't be. So we just need to nil-check for it in 
              updateOverflowStatus() and return early.
      
              * page/FrameView.cpp:
              (WebCore::FrameView::updateOverflowStatus): Nil check.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15433 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      73bdf11a
  16. 12 Jul, 2006 1 commit
    • andersca's avatar
      WebCore: · d78244a2
      andersca authored
      2006-07-12  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              <rdar://problem/4586665> REGRESSION: autorestore.apple.com: Crashes Safari in WebCore::Widget::client() const
      
              * bridge/mac/FrameMac.h:
              Add focusCallResultedInViewBeingCreated argument. 
              
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::nextKeyViewInFrame):
              If the call to focus() caused the node to get a native widget, set focusCallResultedInViewBeingCreated to true.
              
              (WebCore::FrameMac::nextKeyViewInFrameHierarchy):
              Don't reset the focus node if focusCallResultedInViewBeingCreated is true. Also, add magic to prevent setting
              a text field as the first responder if its field editor already is the current first responder.
              
              * page/FrameView.cpp:
              (WebCore::FrameView::handleMousePressEvent):
              In some cases, get the event target node again after dispatching the mouse event.
      
      LayoutTests:
      
      2006-07-12  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              <rdar://problem/4586665> REGRESSION: autorestore.apple.com: Crashes Safari in WebCore::Widget::client() const
      
              * fast/forms/input-type-change-in-onfocus-keyboard-expected.txt: Added.
              * fast/forms/input-type-change-in-onfocus-keyboard.html: Added.
              * fast/forms/input-type-change-in-onfocus-mouse-expected.txt: Added.
              * fast/forms/input-type-change-in-onfocus-mouse.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15387 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d78244a2
  17. 09 Jul, 2006 1 commit
    • darin's avatar
      - another round of renaming; and KWQ is dead · e775cf78
      darin authored
              * WebCore.vcproj/WebCore/WebCore.vcproj: Remove paths for kwq and khtml directories.
              Move files to their new locations. Did rename.
              * WebCore.xcodeproj/project.pbxproj: Move files to their new locations. Did rename.
              * WebCoreSources.bkl: Did rename.
              * webcore-base.bkl: Removed kwq.
      
              * kwq/AccessibilityObjectCache.h: Removed.
              * kwq/AccessibilityObjectCache.mm: Removed.
              * kwq/FormDataMac.h: Removed.
              * kwq/FormDataMac.mm: Removed.
              * kwq/WebCoreAXObject.h: Removed.
              * kwq/WebCoreAXObject.mm: Removed.
              * kwq/WebCoreEditCommand.h: Removed.
              * kwq/WebCoreEditCommand.mm: Removed.
              * kwq/WebCorePageState.h: Removed.
              * kwq/WebCorePageState.mm: Removed.
              * kwq/WebCoreResourceLoaderImp.h: Removed.
              * kwq/WebCoreResourceLoaderImp.mm: Removed.
      
              * bridge/AXObjectCache.h: Added.
              * bridge/mac/AXObjectCacheMac.mm: Added.
              * bridge/mac/WebCoreAXObject.h: Added.
              * bridge/mac/WebCoreAXObject.mm: Added.
      
              * loader/CachedObject.cpp: Removed.
              * loader/CachedObject.h: Removed.
              * loader/CachedObjectClient.h: Removed.
              * loader/CachedObjectClientWalker.cpp: Removed.
              * loader/CachedObjectClientWalker.h: Removed.
      
              * loader/CachedResource.cpp: Added.
              * loader/CachedResource.h: Added.
              * loader/CachedResourceClient.h: Added.
              * loader/CachedResourceClientWalker.cpp: Added.
              * loader/CachedResourceClientWalker.h: Added.
      
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/CSSImageValue.h:
              * css/CSSImportRule.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/Notation.h:
              * dom/ProcessingInstruction.h:
              * dom/XMLTokenizer.cpp:
              * html/CanvasPattern.h:
              * html/HTMLDocument.h:
              * html/HTMLImageLoader.cpp:
              * html/HTMLImageLoader.h:
              * html/HTMLLinkElement.h:
              * html/HTMLScriptElement.cpp:
              * html/HTMLScriptElement.h:
              * html/HTMLTokenizer.cpp:
              * html/HTMLTokenizer.h:
              * kcanvas/KCanvasFilters.h:
              * ksvg2/svg/SVGCursorElement.cpp:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGFEImageElement.cpp:
              * ksvg2/svg/SVGFEImageElement.h:
              * loader/Cache.cpp:
              * loader/Cache.h:
              * loader/CachedCSSStyleSheet.cpp:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.cpp:
              * loader/CachedImage.h:
              * loader/CachedScript.cpp:
              * loader/CachedScript.h:
              * loader/CachedXBLDocument.cpp:
              * loader/CachedXBLDocument.h:
              * loader/CachedXSLStyleSheet.cpp:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocLoader.cpp:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/Request.cpp:
              * loader/Request.h:
              * loader/loader.cpp:
              * loader/loader.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.cpp:
              * page/FrameView.cpp:
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/RenderBox.h:
              * rendering/RenderContainer.cpp:
              * rendering/RenderImage.cpp:
              * rendering/RenderImage.h:
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * xml/XSLImportRule.h:
              Did renaming.
      
              * platform/mac/can-convert.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15269 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e775cf78
  18. 07 Jul, 2006 1 commit
  19. 06 Jul, 2006 2 commits
    • adele's avatar
      Reviewed by Tim Hatcher. · 0c114c5c
      adele authored
              - Speculative fix for <rdar://problem/4605532> unrepro crash at cnn.com after upgrading to 10.4.7 (but happening with 10.4.6 too)
      
              * page/FrameView.cpp: (WebCore::FrameView::layout): Ref's the view during layout, since a recalcStyle could cause the view to be deleted.
              If we get back from recalcStyle, and there's only one ref, return early since the the view will be deleted when we exit layout.
              * page/FrameView.h: (WebCore::FrameView::hasOneRef): Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15193 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0c114c5c
    • andersca's avatar
      WebCore: · 0afc15f0
      andersca authored
      2006-07-06  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              <rdar://problem/4610891> Support overflow events
              
              * DerivedSources.make:
              Add generated sources.
              
              * WebCore.xcodeproj/project.pbxproj:
              Add new files.
              
              * bindings/js/kjs_events.cpp:
              (KJS::toJS):
              Support creating wrappers for overflow events..
              
              * bindings/objc/DOMEvents.h:
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _eventWith:]):
              (-[DOMOverflowEvent _overflowEvent]):
              (-[DOMOverflowEvent orient]):
              (-[DOMOverflowEvent horizontalOverflow]):
              (-[DOMOverflowEvent verticalOverflow]):
              Add Objective-C wrapper for overflow events.
              
              * dom/Event.cpp:
              (WebCore::Event::isOverflowEvent):        
              * dom/Event.h:
              * dom/EventNames.h:
              * dom/OverflowEvent.cpp: Added.
              (WebCore::OverflowEvent::OverflowEvent):
              (WebCore::OverflowEvent::isOverflowEvent):
              * dom/OverflowEvent.h: Added.
              (WebCore::OverflowEvent::):
              (WebCore::OverflowEvent::orient):
              (WebCore::OverflowEvent::horizontalOverflow):
              (WebCore::OverflowEvent::verticalOverflow):
              * dom/OverflowEvent.idl: Added.
              Add overflow events.
              
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameView::applyOverflowToViewport):        
              (WebCore::FrameView::layout):
              Dispatch any scheduled events when layout is done.
              
              (WebCore::FrameView::scheduleEvent):
              New function which schedules an event.
              
              (WebCore::FrameView::updateOverflowStatus):
              Update overflow status for the viewport.
              
              (WebCore::FrameView::dispatchScheduledEvents):
              New function which dispatches all scheduled events.
              
              * page/FrameView.h:
              Add declarations.
              
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer):
              (WebCore::RenderLayer::updateOverflowStatus):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              * rendering/RenderLayer.h:
              Schedule overflow events when overflow status changes.
      
      LayoutTests:
      
      2006-07-06  Anders Carlsson  <acarlsson@apple.com>
      
              Reviewed by Maciej.
      
              <rdar://problem/4610891> Support overflow events
              
              * fast/events/overflow-events-expected.txt: Added.
              * fast/events/overflow-events.html: Added.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15191 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0afc15f0
  20. 30 Jun, 2006 1 commit
  21. 26 Jun, 2006 1 commit
    • darin's avatar
      Reviewed and reworked by Darin. · 8ce13dc1
      darin authored
              Code cleanup, calculate clientX/clientY in one central place.
      
              * dom/EventTargetNode.h:
              * dom/EventTargetNode.cpp: (WebCore::EventTargetNode::dispatchMouseEvent):
              Renamed parameters to pageX/Y since they aren't clientX/Y values.
              Removed code to compute clientX/Y (was a bit confused in naming before),
              because that's now done inside MouseEvent.
      
              * dom/MouseEvent.h:
              * dom/MouseEvent.cpp:
              (WebCore::MouseEvent::MouseEvent): Removed clientX/Y parameters.
              (WebCore::MouseEvent::initMouseEvent): Added comments about problems I noticed.
              (WebCore::MouseEvent::which): Fixed comment that confusingly mentioned KHTML,
              when it was talking about the DOM standard.
      
              * dom/MouseRelatedEvent.h:
              * dom/MouseRelatedEvent.cpp:
              (WebCore::contentsX): Added helper function.
              (WebCore::contentsY): Ditto.
              (WebCore::MouseRelatedEvent::MouseRelatedEvent): Removed clientX/Y parameter,
              and added code to compute clientX/Y based on pageX/Y.
              (WebCore::MouseRelatedEvent::receivedTarget): Fixed comments.
      
              * dom/WheelEvent.h:
              * dom/WheelEvent.cpp: (WebCore::WheelEvent::WheelEvent): Removed clientX/Y
              parameter.
      
              * page/FrameView.cpp: (WebCore::FrameView::dispatchDragEvent): Removed the code
              to compute coordinates, and renamed the confusingly named clientPos (which was
              a page-relative position) to contentsPos.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15047 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8ce13dc1
  22. 25 Jun, 2006 1 commit
    • ddkilzer's avatar
      WebCore: · 32149159
      ddkilzer authored
              Reviewed by Darin.
      
              Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8707:
              event.clientX and event.clientY should be relative to the viewport, not the canvas
      
              Make sure clientX and clientY take into account the scroll offsets
              of the view.
      
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchMouseEvent):
              * dom/MouseEvent.cpp:
              (WebCore::MouseEvent::MouseEvent):
              * dom/MouseEvent.h:
              * dom/MouseRelatedEvent.cpp:
              (WebCore::MouseRelatedEvent::MouseRelatedEvent):
              (WebCore::MouseRelatedEvent::initCoordinates):
              * dom/MouseRelatedEvent.h:
              * dom/WheelEvent.cpp:
              (WebCore::WheelEvent::WheelEvent):
              * page/FrameView.cpp:
              (WebCore::FrameView::dispatchDragEvent):
      
      LayoutTests:
      
              Reviewed by Darin.
      
              Test cases for
              <http://bugzilla.opendarwin.org/show_bug.cgi?id=8707>
              event.clientX and event.clientY should be relative to the viewport, not the canvas
      
              * fast/dom/window-xy-properties-expected.txt: Added.
              * fast/dom/window-xy-properties.html: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15032 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      32149159
  23. 24 Jun, 2006 4 commits
    • ap's avatar
      2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com> · 471de5ff
      ap authored
              Reviewed by Darin, landed by ap.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9547
                Resize corner does not track the mouse accurately
      
              Test: fast/css/resize-corner-tracking.html
      
              * page/FrameView.cpp:
              (WebCore::FrameView::handleMousePressEvent): Store the offset from the layer's
              resizing corner where dragging has started.
              (WebCore::FrameView::handleMouseMoveEvent): Pass the stored offset to the
              layer's resize method.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::resize): Added an offset parameter, which is added to
              the mouse location.
              For objects that may have intrinsic margins applied to them,
              added code to lift the margins into the object's style in order to keep them
              constant.
              Changed to take the content size as the base size if the box-sizing property
              is content-box.
              (WebCore::RenderLayer...
      471de5ff
    • ap's avatar
      Reviewed by Darin, landed by ap. · f8a97d90
      ap authored
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9316
                REGRESSION: text field width shrinks on first keystroke
      
              Test: fast/forms/floating-textfield-relayout.html
      
              * page/FrameView.cpp:
              (WebCore::FrameView::layoutRoot): Added. During subtree relayout, returns
              the subtree root. Otherwise returns 0.
              (WebCore::FrameView::layoutPending): Made const.
              * page/FrameView.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::calcWidth): Added early return if this is the root
              of a subtree being laid out. 
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15013 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f8a97d90
    • ddkilzer's avatar
      LayoutTests: · e9da8db0
      ddkilzer authored
              Reviewed by Hyatt.  Patch by Mitz.
      
              - updated test results for http://bugzilla.opendarwin.org/show_bug.cgi?id=9531
                Pages that need only a horizontal scroll bar get a vertical one as well
      
              * css1/classification/white_space-expected.checksum:
              * css1/classification/white_space-expected.png:
              * css1/classification/white_space-expected.txt:
              * editing/selection/select-all-004-expected.checksum:
              * editing/selection/select-all-004-expected.png:
              * editing/selection/select-all-004-expected.txt:
              * editing/selection/unrendered-001-expected.checksum:
              * editing/selection/unrendered-001-expected.png:
              * editing/selection/unrendered-001-expected.txt:
              * editing/selection/unrendered-002-expected.checksum:
              * editing/selection/unrendered-002-expected.png:
              * editing/selection/unrendered-002-expected.txt:
              * editing/selection/unrendered-003-expected.checksum:
              * editing/selection/un...
      e9da8db0
    • ap's avatar
      2006-06-24 Mitz Pettel <opendarwin.org@mitzpettel.com> · 3e6a2d71
      ap authored
              Reviewed and landed by ap.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=9563
                Remove unused layoutSuppressed field and inLayout() method
      
              No test added because there is no change in functionality.
      
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::layout):
              * page/FrameView.h:
              * rendering/RenderView.cpp:
              (WebCore::RenderView::layout):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e6a2d71
  24. 23 Jun, 2006 2 commits
    • tomernic's avatar
      LayoutTests: · 2a013bcc
      tomernic authored
              Reviewed by Tim Hatcher.
      
              <rdar://problem/4560947> Leopard REGRESSION: Dragging to TileGame Widget is broken
              
              * fast/events/ondragenter-expected.checksum: Added.
              * fast/events/ondragenter-expected.png: Added.
              * fast/events/ondragenter-expected.txt: Added.
              * fast/events/ondragenter.html: Added.
      
      WebCore:
      
              Reviewed by Tim Hatcher.
      
              <rdar://problem/4560947> Leopard REGRESSION: Dragging to TileGame Widget is broken
      
              * page/FrameView.cpp:
              (WebCore::FrameView::updateDragAndDrop):
              Use the passed mouse event, instead of the "current" event.  There is no such thing as
              a "drag event".  Asking for the current event during a drag returns a weird system-
              internal event with an invalid mouse location.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15004 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a013bcc
    • thatcher's avatar
      Reviewed by Eric. · 5d6cedb6
      thatcher authored
              Manual test added: cursor.html
      
              Bug 9560: should support new CSS3 cursor types to get more resizing directions
              http://bugzilla.opendarwin.org/show_bug.cgi?id=9560
      
              Adds support for ew-resize, ns-resize, nesw-resize, nwse-resize,
              col-resize and row-resize CSS3 cursor values.
      
              Also converted some of the cursor images to grayscale tiffs,
              some were RGB but had no color data.
      
              * Resources/eastResizeCursor.tiff:
              * Resources/eastWestResizeCursor.tiff: Added.
              * Resources/helpCursor.tiff:
              * Resources/moveCursor.tiff:
              * Resources/northEastResizeCursor.tiff:
              * Resources/northEastSouthWestResizeCursor.tiff: Added.
              * Resources/northResizeCursor.tiff:
              * Resources/northSouthResizeCursor.tiff: Added.
              * Resources/northWestResizeCursor.tiff:
              * Resources/northWestSouthEastResizeCursor.tiff: Added.
              * Resources/southEastResizeCursor.tiff:
              * Resources/...
      5d6cedb6
  25. 22 Jun, 2006 1 commit
    • ddkilzer's avatar
      LayoutTests: · e366733b
      ddkilzer authored
              Reviewed by Hyatt.  Patch by Mitz.
      
              - test and updated results for http://bugzilla.opendarwin.org/show_bug.cgi?id=9497
                REGRESSION: Incomplete repainting when scrolling thumbnails on Flickr
      
              * fast/repaint/clipped-relative-expected.checksum: Added.
              * fast/repaint/clipped-relative-expected.png: Added.
              * fast/repaint/clipped-relative-expected.txt: Added.
              * fast/repaint/clipped-relative.html: Added.
              * fast/repaint/containing-block-position-change-expected.checksum: Updated.
              * fast/repaint/containing-block-position-change-expected.png: Updated.
      
      WebCore:
      
              Reviewed by Hyatt.  Patch by Mitz.
      
              - fix http://bugzilla.opendarwin.org/show_bug.cgi?id=9497
                REGRESSION: Incomplete repainting when scrolling thumbnails on Flickr
      
              Test: fast/repaint/clipped-relative.html
      
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::removePositionedObjects): Removed call to computeRepaintRects().
              Previously, it was needed to update the cached rects before RenderBox::setStyle()
              called updateLayerPositions().
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle): Changed to call updateLayerPositions() for a newly-
              created layer only if it does not need layout. Otherwise,  updateLayerPositions() will
              be called after layout. This saves a repaint in some cases.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::checkForRepaintOnResize): Renamed computeRepaintRects() to
              this and deleted the code that cached the absolute position and repaint rects.
              (WebCore::RenderLayer::updateLayerPositions): Added code to cache the absolute
              position and repaint rects right after updating the layer's position.
              * rendering/RenderLayer.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14983 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e366733b
  26. 21 Jun, 2006 1 commit
    • hyatt's avatar
      Fix for 7362, implement the CSS3 overflow-x and overflow-y properties. · bc4f0413
      hyatt authored
              Reviewed by adele
      
              * WebCore.xcodeproj/project.pbxproj:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSPropertyNames.in:
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              (WebCore::CSSStyleSelector::applyProperty):
              * page/FrameView.cpp:
              (WebCore::FrameView::applyOverflowToViewport):
              (WebCore::FrameView::layout):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::layoutBlock):
              (WebCore::RenderBlock::determineHorizontalPosition):
              (WebCore::RenderBlock::layoutBlockChildren):
              (WebCore::RenderBlock::rightOffset):
              (WebCore::RenderBlock::rightmostPosition):
              (WebCore::RenderBlock::calcMinMaxWidth):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle):
              (WebCore::RenderBox::contentWidth):
              (WebCore::RenderBox::contentHeight):
              (WebCore::RenderBox::sizesToIntrinsicWidth):
              (WebCore::RenderBox::calcHeight):
              (WebCore::RenderBox::calcPercentageHeight):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutBlock):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::RenderLayer::shouldAutoscroll):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              (WebCore::RenderLayer::styleChanged):
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::clientWidth):
              (WebCore::RenderObject::clientHeight):
              * rendering/RenderObject.h:
              (WebCore::RenderObject::hasAutoVerticalScrollbar):
              (WebCore::RenderObject::hasAutoHorizontalScrollbar):
              (WebCore::RenderObject::scrollsOverflow):
              (WebCore::RenderObject::scrollsOverflowX):
              (WebCore::RenderObject::scrollsOverflowY):
              (WebCore::RenderObject::includeVerticalScrollbarSize):
              (WebCore::RenderObject::includeHorizontalScrollbarSize):
              * rendering/RenderTextArea.cpp:
              (WebCore::RenderTextArea::setStyle):
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::createDivStyle):
              (WebCore::RenderTextField::calcHeight):
              (WebCore::RenderTextField::calcMinMaxWidth):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::layoutInlineChildren):
              * rendering/render_style.cpp:
              (WebCore::RenderStyle::diff):
              * rendering/render_style.h:
              (WebCore::):
              (WebCore::RenderStyle::NonInheritedFlags::operator==):
              (WebCore::RenderStyle::setBitDefaults):
              (WebCore::RenderStyle::overflowX):
              (WebCore::RenderStyle::overflowY):
              (WebCore::RenderStyle::setOverflowX):
              (WebCore::RenderStyle::setOverflowY):
              (WebCore::RenderStyle::initialOverflowX):
              (WebCore::RenderStyle::initialOverflowY):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14953 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bc4f0413
  27. 19 Jun, 2006 1 commit
  28. 07 Jun, 2006 1 commit
    • adele's avatar
      WebCore: · e76b0101
      adele authored
              Reviewed by Hyatt 
      
              Added support for cross-platform resize property.
      
              * platform/PlatformMouseEvent.h: Removed isMouseButtonDown, since we
              already cache this info when we handle mouse down and mouse up.
              * platform/mac/MouseEventMac.mm: ditto.
              * platform/win/TemporaryLinkStubs.cpp: ditto.
      
              * page/Frame.cpp:
              (WebCore::Frame::autoscrollTimerFired): Use d->m_bMousePressed instead of isMouseButtonDown.
              * page/FrameView.cpp:
              (WebCore::FrameView::handleMouseMoveEvent): Passes event to layer resize method.
              (WebCore::FrameView::mousePressed): Added.
              * page/FrameView.h: Added mousePressed.
      
              * rendering/RenderTheme.h: Removed paintResizeControl.
              Since its not dependent on the theme, the layer can just paint this.
              * rendering/RenderTheme.cpp: ditto.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer): Initializes m_resizeCornerImage.
              (WebCore::RenderLay...
      e76b0101
  29. 01 Jun, 2006 1 commit
    • adele's avatar
      Reviewed by Hyatt. · 48d519bc
      adele authored
              Fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=9216
              Implement CSS3 resize property
      
              * css/html4.css: Sets resize:both for textareas. This won't affect old-style textareas.
      
              * css/CSSPropertyNames.in: Added resize property.
              * css/cssparser.cpp: (WebCore::CSSParser::parseValue): Added case for CSS_PROP_RESIZE.
              * css/cssstyleselector.cpp: (WebCore::CSSStyleSelector::applyProperty): ditto.
              * css/CSSComputedStyleDeclaration.cpp: (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue): ditto.
      
              * rendering/render_style.cpp: (WebCore::StyleCSS3InheritedData): Initialize resize.
              * rendering/render_style.h:
              (WebCore::): Added EResize enum.
              (WebCore::RenderStyle::resize):
              (WebCore::RenderStyle::setResize):
              (WebCore::RenderStyle::initialResize):
      
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate): Added m_resizeLayer to keep track of a layer that has begun resizing.
              (WebCore::FrameViewPrivate::reset): Reset m_resizeLayer.
              (WebCore::FrameView::handleMousePressEvent): If the mouse was pressed in a layer's resize control, then put the layer into resize mode.
              (WebCore::selectCursor): Updated so we get a pointer cursor for the resize control.
              (WebCore::FrameView::handleMouseMoveEvent): If there's a layer currently resizing, then tell the layer to continue resizing.
              (WebCore::FrameView::handleMouseReleaseEvent): If there's a layer currently resizing, then pull it out of resize mode.
      
              * rendering/RenderBlock.cpp: (WebCore::RenderBlock::isPointInScrollbar): Updated so the resize control isn't considered part of the scrollbar.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer): Initialize m_inResizeMode
              (WebCore::RenderLayer::updateLayerPositions): Calls positionResizeControl.
              (WebCore::RenderLayer::resize): Added. Sets a new width and height based on the current mouse point.
              (WebCore::RenderLayer::isPointInResizeControl): Added.
              (WebCore::RenderLayer::positionResizeControl): Added.
              (WebCore::RenderLayer::positionScrollbars): Calls positionResizeControl.
              (WebCore::RenderLayer::paintScrollbars): Calls positionResizeControl.
              (WebCore::RenderLayer::paintResizeControl): Added.
              (WebCore::RenderLayer::paintLayer): Calls paintResizeControl.
              * rendering/RenderLayer.h: Added m_inResizeMode.
              (WebCore::RenderLayer::resizeControlRect):
              (WebCore::RenderLayer::setResizeControlRect):
              (WebCore::RenderLayer::inResizeMode): Added.
              (WebCore::RenderLayer::setInResizeMode): Added. 
      
              * platform/mac/ImageMac.mm: (WebCore::Image::loadResource): Moved code from WebImageRendererFactory.  Now loads images from WebCore's resources.
              WebImageRendererFactory is no longer used and should be removed.
              * Resources/missingImage.tiff: Added. Copied from WebKit.
              * WebCore.xcodeproj/project.pbxproj: Added missingImage.tiff
              * loader/Cache.cpp: (WebCore::Cache::init): Updated name from missing_image to missingImage.
      
              * rendering/RenderTheme.h:
              * rendering/RenderTheme.cpp: (WebCore::RenderTheme::paintResizeControl): Added.
              * rendering/RenderThemeMac.h:
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::RenderThemeMac): Initialize resizeCornerImage.
              (WebCore::RenderThemeMac::paintResizeControl): Paints resizeCornerImage.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      48d519bc
  30. 31 May, 2006 1 commit
    • adele's avatar
      Reviewed by Hyatt. · 8877ecc6
      adele authored
              - fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=8969
                REGRESSION: typing in textfield repaints whole web page at gamefaqs.com
      
              No test possible (no functionality change)
      
              * dom/Document.cpp:
              (WebCore::Document::updateLayout): Changed to ensure that pending subtree
              layouts are performed too.
              * page/Frame.cpp:
              (WebCore::Frame::forceLayout): Force a full layout.
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::layout): Changed to relayout only the subtree rooted
              at d->layoutRoot if it's non-zero and allowSubtree is true.
              (WebCore::FrameView::scheduleRelayout): Change pending subtree relayout into
              normal relayout by clearing d->layoutRoot and propagating needsLayout to the
              root. 
              (WebCore::FrameView::scheduleRelayoutOfSubtree): Added.
              * page/FrameView.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::markContainingBlocksForLayout): Added scheduleRelayout
              parameter. FrameView passes false to force marking all the way to the root
              when turning a pending subtree relayout into a full relayout. Otherwise,
              marking stops at the first textField (or at the root) and
              relayout of the last object reached is scheduled.
              (WebCore::RenderObject::scheduleRelayout):
              * rendering/RenderObject.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14658 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8877ecc6
  31. 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
  32. 20 May, 2006 1 commit
  33. 12 May, 2006 1 commit
    • thatcher's avatar
      Reviewed by Darin. · 55bae5be
      thatcher authored
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7156
              Bug 7156: TinyMCE: Links are actually activated in editable area, not editable.
              
              Links in editable areas will not activate or perform a navigation
              change (on par with WinIE and Firefox.) To visit the link
              you can shift-click. Manual test added.
      
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::adjustRenderStyle):
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              (WebCore::HTMLAnchorElement::setActive):
              * html/HTMLAnchorElement.h:
              * manual-tests/contenteditable-link.html: Added.
              * page/FrameView.cpp:
              (WebCore::selectCursor):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14346 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55bae5be