1. 23 Sep, 2007 1 commit
    • zecke's avatar
      /: · 2752405f
      zecke authored
      2007-09-20  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Rubber stamped by Adam.
      
              Renamed files from *Gdk to *Gtk (see #14732) using the
              work of Juan A. Suarez Romero as a base.
      
              GDK -> GTK
      
              * WebKit.pri:
              * WebKit.pro:
      
      JavaScriptCore:
      2007-09-20  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Rubber stamped by Adam.
      
              Renamed files from *Gdk to *Gtk (see #14732) using the
              work of Juan A. Suarez Romero as a base.
      
              GDK -> GTK 
      
              * JavaScriptCore.pri:
              * kjs/testkjs.pro:
              * pcre/dftables.pro:
              * wtf/Platform.h: PLATFORM(GDK) to PLATFORM(GTK)
      
      WebCore:
      2007-09-20  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Rubber stamped by Adam.
      
              Renamed files from *Gdk to *Gtk (see #14732) using the
              work of Juan A. Suarez Romero as a base.
      
              GDK -> GTK
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCore.pro:
              * WebCoreSources.bkl:
              * loader/gdk: Removed.
              * loader/gdk/DocumentLoaderGdk.cpp: Removed.
              * loader/gtk: Added.
              * loader/gtk/DocumentLoaderGdk.cpp: Removed.
              * loader/gtk/DocumentLoaderGtk.cpp: Added.
              * page/FrameView.cpp:
              * page/FrameView.h:
              * page/gdk: Removed.
              * page/gdk/DragControllerGdk.cpp: Removed.
              * page/gdk/EventHandlerGdk.cpp: Removed.
              * page/gdk/FrameGdk.cpp: Removed.
              * page/gtk: Added.
              * page/gtk/DragControllerGdk.cpp: Removed.
              * page/gtk/DragControllerGtk.cpp: Added.
              * page/gtk/EventHandlerGdk.cpp: Removed.
              * page/gtk/EventHandlerGtk.cpp: Added.
              (WebCore::EventHandler::createDraggingClipboard):
              * page/gtk/FrameGdk.cpp: Removed.
              * page/gtk/FrameGtk.cpp: Added.
              * platform/ContextMenuItem.h:
              * platform/Cursor.h:
              * platform/DragData.h:
              * platform/DragImage.h:
              * platform/FontData.h:
              * platform/NotImplemented.h:
              * platform/PlatformKeyboardEvent.h:
              * platform/PlatformMenuDescription.h:
              * platform/PlatformMouseEvent.h:
              * platform/PlatformWheelEvent.h:
              * platform/ScrollView.h:
              * platform/Widget.h:
              * platform/gdk: Removed.
              * platform/gdk/ClipboardGdk.cpp: Removed.
              * platform/gdk/ClipboardGdk.h: Removed.
              * platform/gdk/ContextMenuGdk.cpp: Removed.
              * platform/gdk/ContextMenuItemGdk.cpp: Removed.
              * platform/gdk/CookieJarGdk.cpp: Removed.
              * platform/gdk/CursorGdk.cpp: Removed.
              * platform/gdk/DragDataGdk.cpp: Removed.
              * platform/gdk/DragImageGdk.cpp: Removed.
              * platform/gdk/FileChooserGdk.cpp: Removed.
              * platform/gdk/FileSystemGdk.cpp: Removed.
              * platform/gdk/FontCacheGdk.cpp: Removed.
              * platform/gdk/FontDataGdk.cpp: Removed.
              * platform/gdk/FontGdk.cpp: Removed.
              * platform/gdk/FontPlatformData.h: Removed.
              * platform/gdk/FontPlatformDataGdk.cpp: Removed.
              * platform/gdk/GlyphPageTreeNodeGdk.cpp: Removed.
              * platform/gdk/KeyEventGdk.cpp: Removed.
              * platform/gdk/KeyboardCodes.h: Removed.
              * platform/gdk/LocalizedStringsGdk.cpp: Removed.
              * platform/gdk/LoggingGdk.cpp: Removed.
              * platform/gdk/MIMETypeRegistryGdk.cpp: Removed.
              * platform/gdk/MouseEventGdk.cpp: Removed.
              * platform/gdk/PasteboardGdk.cpp: Removed.
              * platform/gdk/PlatformScreenGdk.cpp: Removed.
              * platform/gdk/PlatformScrollBar.h: Removed.
              * platform/gdk/PlatformScrollBarGdk.cpp: Removed.
              * platform/gdk/PopupMenuGdk.cpp: Removed.
              * platform/gdk/RenderThemeGdk.cpp: Removed.
              * platform/gdk/RenderThemeGdk.h: Removed.
              * platform/gdk/ScrollViewGdk.cpp: Removed.
              * platform/gdk/SearchPopupMenuGdk.cpp: Removed.
              * platform/gdk/SharedTimerLinux.cpp: Removed.
              * platform/gdk/SoundGdk.cpp: Removed.
              * platform/gdk/SystemTimeLinux.cpp: Removed.
              * platform/gdk/TemporaryLinkStubs.cpp: Removed.
              * platform/gdk/WheelEventGdk.cpp: Removed.
              * platform/gdk/WidgetGdk.cpp: Removed.
              * platform/graphics/GraphicsContext.h:
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              (WebCore::GraphicsContext::setPlatformFont):
              * platform/graphics/gdk: Removed.
              * platform/graphics/gdk/IconGdk.cpp: Removed.
              * platform/graphics/gdk/ImageGdk.cpp: Removed.
              * platform/graphics/gtk: Added.
              * platform/graphics/gtk/IconGdk.cpp: Removed.
              * platform/graphics/gtk/IconGtk.cpp: Added.
              * platform/graphics/gtk/ImageGdk.cpp: Removed.
              * platform/graphics/gtk/ImageGtk.cpp: Added.
              * platform/gtk: Added.
              * platform/gtk/ClipboardGdk.cpp: Removed.
              * platform/gtk/ClipboardGdk.h: Removed.
              * platform/gtk/ClipboardGtk.cpp: Added.
              (WebCore::ClipboardGtk::ClipboardGtk):
              (WebCore::ClipboardGtk::~ClipboardGtk):
              (WebCore::ClipboardGtk::clearData):
              (WebCore::ClipboardGtk::clearAllData):
              (WebCore::ClipboardGtk::getData):
              (WebCore::ClipboardGtk::setData):
              (WebCore::ClipboardGtk::types):
              (WebCore::ClipboardGtk::dragLocation):
              (WebCore::ClipboardGtk::dragImage):
              (WebCore::ClipboardGtk::setDragImage):
              (WebCore::ClipboardGtk::dragImageElement):
              (WebCore::ClipboardGtk::setDragImageElement):
              (WebCore::ClipboardGtk::createDragImage):
              (WebCore::ClipboardGtk::declareAndWriteDragImage):
              (WebCore::ClipboardGtk::writeURL):
              (WebCore::ClipboardGtk::writeRange):
              (WebCore::ClipboardGtk::hasData):
              * platform/gtk/ClipboardGtk.h: Added.
              * platform/gtk/ContextMenuGdk.cpp: Removed.
              * platform/gtk/ContextMenuGtk.cpp: Added.
              * platform/gtk/ContextMenuItemGdk.cpp: Removed.
              * platform/gtk/ContextMenuItemGtk.cpp: Added.
              * platform/gtk/CookieJarGdk.cpp: Removed.
              * platform/gtk/CookieJarGtk.cpp: Added.
              * platform/gtk/CursorGdk.cpp: Removed.
              * platform/gtk/CursorGtk.cpp: Added.
              * platform/gtk/DragDataGdk.cpp: Removed.
              * platform/gtk/DragDataGtk.cpp: Added.
              * platform/gtk/DragImageGdk.cpp: Removed.
              * platform/gtk/DragImageGtk.cpp: Added.
              * platform/gtk/FileChooserGdk.cpp: Removed.
              * platform/gtk/FileChooserGtk.cpp: Added.
              * platform/gtk/FileSystemGdk.cpp: Removed.
              * platform/gtk/FileSystemGtk.cpp: Added.
              * platform/gtk/FontCacheGdk.cpp: Removed.
              * platform/gtk/FontCacheGtk.cpp: Added.
              * platform/gtk/FontDataGdk.cpp: Removed.
              * platform/gtk/FontDataGtk.cpp: Added.
              * platform/gtk/FontGdk.cpp: Removed.
              * platform/gtk/FontGtk.cpp: Added.
              * platform/gtk/FontPlatformDataGdk.cpp: Removed.
              * platform/gtk/FontPlatformDataGtk.cpp: Added.
              * platform/gtk/GlyphPageTreeNodeGdk.cpp: Removed.
              * platform/gtk/GlyphPageTreeNodeGtk.cpp: Added.
              * platform/gtk/KeyEventGdk.cpp: Removed.
              * platform/gtk/KeyEventGtk.cpp: Added.
              * platform/gtk/LocalizedStringsGdk.cpp: Removed.
              * platform/gtk/LocalizedStringsGtk.cpp: Added.
              * platform/gtk/LoggingGdk.cpp: Removed.
              * platform/gtk/LoggingGtk.cpp: Added.
              * platform/gtk/MIMETypeRegistryGdk.cpp: Removed.
              * platform/gtk/MIMETypeRegistryGtk.cpp: Added.
              * platform/gtk/MouseEventGdk.cpp: Removed.
              * platform/gtk/MouseEventGtk.cpp: Added.
              * platform/gtk/PasteboardGdk.cpp: Removed.
              * platform/gtk/PasteboardGtk.cpp: Added.
              * platform/gtk/PlatformScreenGdk.cpp: Removed.
              * platform/gtk/PlatformScreenGtk.cpp: Added.
              * platform/gtk/PlatformScrollBarGdk.cpp: Removed.
              * platform/gtk/PlatformScrollBarGtk.cpp: Added.
              * platform/gtk/PopupMenuGdk.cpp: Removed.
              * platform/gtk/PopupMenuGtk.cpp: Added.
              * platform/gtk/RenderThemeGdk.cpp: Removed.
              * platform/gtk/RenderThemeGdk.h: Removed.
              * platform/gtk/RenderThemeGtk.cpp: Added.
              (WebCore::theme):
              (WebCore::RenderThemeGtk::RenderThemeGtk):
              (WebCore::RenderThemeGtk::close):
              (WebCore::RenderThemeGtk::addIntrinsicMargins):
              (WebCore::RenderThemeGtk::supportsFocus):
              (WebCore::RenderThemeGtk::determineState):
              (WebCore::RenderThemeGtk::determineShadow):
              (WebCore::RenderThemeGtk::getThemeData):
              (WebCore::RenderThemeGtk::setCheckboxSize):
              (WebCore::RenderThemeGtk::paintCheckbox):
              (WebCore::RenderThemeGtk::setRadioSize):
              (WebCore::RenderThemeGtk::paintRadio):
              (WebCore::RenderThemeGtk::paintButton):
              (WebCore::RenderThemeGtk::adjustTextFieldStyle):
              (WebCore::RenderThemeGtk::paintTextField):
              (WebCore::RenderThemeGtk::paintTextArea):
              (WebCore::RenderThemeGtk::adjustButtonStyle):
              (WebCore::RenderThemeGtk::systemFont):
              (WebCore::RenderThemeGtk::gtkButton):
              (WebCore::RenderThemeGtk::gtkCheckbox):
              (WebCore::RenderThemeGtk::gtkRadioButton):
              (WebCore::RenderThemeGtk::gtkWindowContainer):
              * platform/gtk/RenderThemeGtk.h: Added.
              * platform/gtk/ScrollViewGdk.cpp: Removed.
              * platform/gtk/ScrollViewGtk.cpp: Added.
              * platform/gtk/SearchPopupMenuGdk.cpp: Removed.
              * platform/gtk/SearchPopupMenuGtk.cpp: Added.
              * platform/gtk/SoundGdk.cpp: Removed.
              * platform/gtk/SoundGtk.cpp: Added.
              * platform/gtk/WheelEventGdk.cpp: Removed.
              * platform/gtk/WheelEventGtk.cpp: Added.
              * platform/gtk/WidgetGdk.cpp: Removed.
              * platform/gtk/WidgetGtk.cpp: Added.
              * platform/network/ResourceHandle.h:
      
      WebKitTools:
      2007-09-20  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Rubber stamped by Adam.
      
              * GdkLauncher: Removed.
              * GdkLauncher/Bakefiles.bkgen: Removed.
              * GdkLauncher/ENV: Removed.
              * GdkLauncher/GdkLauncher.pro: Removed.
              * GdkLauncher/gdklauncher.bkl: Removed.
              * GdkLauncher/main.cpp: Removed.
              * GdkLauncher/mk: Removed.
              * GdkLauncher/simple.svg: Removed.
              * GdkLauncher/text.html: Removed.
              * GtkLauncher: Added.
              * GtkLauncher/GdkLauncher.pro: Removed.
              * GtkLauncher/GtkLauncher.pro: Added.
              * GtkLauncher/main.cpp:
              (updateWindowTitle):
              (main):
              * Scripts/build-webkit:
              * Scripts/regenerate-makefiles:
              * Scripts/run-javascriptcore-tests:
              * Scripts/run-launcher:
              * Scripts/run-webkit-tests:
              * Scripts/webkitdirs.pm:
      
      
      
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25703 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2752405f
  2. 21 Aug, 2007 2 commits
    • aroben's avatar
      Build fix for Mac · b8f1c677
      aroben authored
              Keep FrameView::layoutIfNeededRecursive Windows- and Gtk-only for now
              (sadly). This will have to wait until we merge ScrollView and FrameView.
      
              Reviewed by NOBODY.
      
              * page/FrameView.cpp:
              * page/FrameView.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25179 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b8f1c677
    • aroben's avatar
      Switch Windows to using FrameView::layoutIfNeededRecursive · 7a1f2516
      aroben authored
       WebCore:
      
               Made FrameView::layoutIfNeededRecursive available to all platforms
      
               Currently it's only used on Gtk+ and Windows.
      
               Reviewed by Darin.
      
               * page/FrameView.cpp: Removed #ifdef.
               * page/FrameView.h: Ditto.
      
       WebKit/win:
      
               Switch Windows to using FrameView::layoutIfNeededRecursive
      
               Reviewed by Darin.
      
               * WebFrame.cpp: Removed layoutIfNeededRecursive.
               * WebFrame.h: Ditto.
               * WebView.cpp:
               (WebView::updateBackingStore): Call FrameView::layoutIfNeededRecursive.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25177 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7a1f2516
  3. 10 Aug, 2007 2 commits
    • bdash's avatar
      2007-08-11 Mark Rowe <mrowe@apple.com> · f2e203d2
      bdash authored
              Build fix.  Change "#ifdef PLATFORM(GDK)" to "#if PLATFORM(GDK)".
      
              * page/FrameView.cpp:
              * page/FrameView.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25007 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f2e203d2
    • zecke's avatar
      WebCore: · b387fe29
      zecke authored
      2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              Copy the WebFrame::layoutIfNeededRecursive method of the windows port
              to FrameView to be used by the Gtk+ port. Simplify the implementation due
              moving it to the FrameView class.
      
              Implement the ScrollView::children() method for the Gtk+ port and make it
              available to the FrameView as children() is used within the layoutIfNeededRecursive method.
      
              * page/FrameView.cpp:
              (WebCore::FrameView::layoutIfNeededRecursive):
              * page/FrameView.h:
              * platform/ScrollView.h:
              * platform/gdk/ScrollViewGdk.cpp:
      
      WebKit/gtk:
      2007-08-11  Holger Hans Peter Freyther  <zecke@selfish.org>
      
              Reviewed by Adam.
      
              To not hit the needsLayout() assert of Frame::paint for subframes we need to
              make sure they are layed out. Use the newly created FrameView::layoutIfNeededRecursive
              method to do this.
      
              * Api/webkitgtkpage.cpp:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@25006 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b387fe29
  4. 18 May, 2007 1 commit
  5. 14 May, 2007 1 commit
    • darin's avatar
      Reviewed by Antti. · 8f1a187b
      darin authored
              - fix <rdar://problem/3109180> VIP: after go back, page jumps after loading even if I scrolled while loading
      
              * history/CachedPage.cpp: (WebCore::CachedPage::clear): Call clearFrame rather than
              clearPart -- the "part" term was leftover prehistoric terminology.
      
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::open): Call setWasScrolledByUser(false) on the page, so that we
              can detect any user scrolling that happens during the "go back" process.
              (WebCore::FrameLoader::restoreScrollPositionAndViewState): Don't scroll if the view's
              wasScrolledByUser flag is set.
              (WebCore::FrameLoader::loadItem): Call setWasScrolledByUser(false) false when we do
              a new "load" (actually just a scroll) using the same frame. Also moved the line of code that
              sets m_currentHistoryItem to make this code path mroe similar to recursiveGoToItem.
              (WebCore::FrameLoader::recursiveGoToItem): Ditto.
      
              * page/Frame.cpp:
              (WebCore::Frame::~Frame): Call clearFrame rather than stting m_frame directly.
              (WebCore::Frame::sendScrollEvent): Call setWasScrolledByUser(true) on FrameView. The FrameView
              itself knows to ignore this if the scrolling is being done programmatically instead of by the user.
      
              * page/FrameView.h: Added wasScrolledByUser and setWasScrolledByUser. Also removed unneeded
              include and class forward declarations, renamed clearPart to clearFrame, removed uneeded function
              haveDelayedLayoutScheduled, and removed unneeded friend declarations.
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate): Added m_inProgrammaticScroll and m_wasScrolledByUser.
              (WebCore::FrameViewPrivate::reset): Set m_wasScrolledByUser to false.
              (WebCore::FrameView::clearFrame): Renamed from clearPart.
              (WebCore::FrameView::scrollRectIntoViewRecursively): Added code to set the m_inProgrammaticScroll flag.
              (WebCore::FrameView::setContentsPos): Ditto.
              (WebCore::FrameView::wasScrolledByUser): Added.
              (WebCore::FrameView::setWasScrolledByUser): Added. Does nothing if called when m_inProgrammaticScroll
              is true.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8f1a187b
  6. 16 Apr, 2007 1 commit
    • darin's avatar
      WebCore: · 28399bcb
      darin authored
              Reviewed by John Sullivan.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=13303
                <rdar://problem/5126341> REGRESSION: controls in a background Safari window
                maintain active appearance if the address bar has focus (13303)
      
              - fix a related problem where elements could look focused in non-active windows
      
              - simplify secure keyboard entry logic in Frame::setIsActive
      
              * WebCore.exp: Add two new symbols for use by WebKit.
      
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::dispatchFocusEvent): Call setUseSecureKeyboardEntryWhenActive
              rather than calling setSecureKeyboardEntry directly -- does nothing if the frame is not active.
              (WebCore::HTMLInputElement::dispatchBlurEvent): Ditto.
      
              * page/Frame.cpp:
              (WebCore::Frame::setUseSecureKeyboardEntryWhenActive): Added. Calls
              setUseSecureKeyboardEntry only if the frame is active, but also stores away the state,
              so that the setIsActive function doesn't have to recompute it.
              (WebCore::Frame::setIsActive): Rewrote all the comments in the function. Removed the code
              to manage control tints, which are not based on the whether the frame is active but rather
              on AppKit's concept of whether the window should have "key appearance". Simplified the
              logic about when to call setUseSecureKeyboardEntry by using the value of
              m_useSecureKeyboardEntryWhenActive.
              (WebCore::FramePrivate::FramePrivate): Initialize m_useSecureKeyboardEntryWhenActive.
              * page/Frame.h: Made setSecureKeyboardEntry private and renamed it to
              setUseSecureKeyboardEntry, removed isSecureKeyboardEntry, and
              added a public setUseSecureKeyboardEntryWhenActive.
              * page/FramePrivate.h: Added m_useSecureKeyboardEntryWhenActive.
              * page/mac/FrameMac.mm: (WebCore::Frame::setUseSecureKeyboardEntry): Added an assertion,
              and removed isSecureKeyboardEntry().
      
              * page/FrameView.h: Added updateControlTints.
              * page/FrameView.cpp: (WebCore::FrameView::updateControlTints): Added. Code was moved
              here from setIsActive for two reasons: (1) it makes more sense in the view class, and
              (2) it needs to be called at the appropriate time for AppKit, not when active changes.
      
              * rendering/RenderTheme.cpp: (WebCore::RenderTheme::isFocused): Added an isActive
              check here to match the logic in the implementation of the CSS pseudo-state.
              * rendering/RenderThemeMac.mm:
              (WebCore::RenderThemeMac::updateFocusedState): Use the isFocused function instead of
              repeating the logic here. Removed the "need to add a key window test here" comment.
              (WebCore::RenderThemeMac::controlSupportsTints): Added a comment about the NSCell
              SPI that's related to the _windowChangedKeyState method we now use in WebHTMLView.
      
      WebKit:
      
              Reviewed by John Sullivan.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=13303
                <rdar://problem/5126341> REGRESSION: controls in a background Safari window
                maintain active appearance if the address bar has focus (13303)
      
              * WebView/WebHTMLView.mm: (-[WebHTMLView _windowChangedKeyState]):
              Added. Calls FrameView::updateControlTints.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20901 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      28399bcb
  7. 08 Apr, 2007 1 commit
    • aroben's avatar
      Reviewed by Oliver. · e9b4cc74
      aroben authored
              Bestowed the gift of -webkit-dashboard-region upon all platforms, since
              there's nothing Mac-specific about it other than the name. This also
              allowed me to get rid of FrameViewMac.mm.
      
              Removed a lot of #if PLATFORM(MAC):
      
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSPrimitiveValue.cpp:
              (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
              (WebCore::CSSPrimitiveValue::cleanup):
              (WebCore::CSSPrimitiveValue::cssText):
              * css/CSSPrimitiveValue.h:
              (WebCore::CSSPrimitiveValue::getDashboardRegionValue):
              (WebCore::CSSPrimitiveValue::):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseDashboardRegions):
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              * dom/Document.h:
              * page/Frame.cpp:
              (WebCore::Frame::paint):
              * page/Frame.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              (WebCore::FrameView::updateDashboardRegions): Moved from FrameViewMac.mm.
              * page/FrameView.h:
              * page/qt/FrameQt.cpp:
              (WebCore::Frame::dashboardRegionsChanged): Stubbed out.
              * platform/gdk/FrameGdk.cpp:
              (WebCore::Frame::dashboardRegionsChanged): Ditto.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::RenderLayer::setHasHorizontalScrollbar):
              (WebCore::RenderLayer::setHasVerticalScrollbar):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::setStyle):
      
              * WebCore.xcodeproj/project.pbxproj: Removed FrameViewMac.mm.
              * bridge/mac/FrameViewMac.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20794 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9b4cc74
  8. 28 Mar, 2007 1 commit
    • mjs's avatar
      LayoutTests: · 14590a57
      mjs authored
              Reviewed by Darin.
              
              - <rdar://problem/4820817> Autoscroll is broken in Mail.app (message jumps around when trying to select text)
      
              * fast/overflow/scrollRevealButton-expected.checksum:
              * fast/overflow/scrollRevealButton-expected.png:
              * fast/overflow/scrollRevealButton-expected.txt:
      
      WebCore:
      
              Reviewed by Darin.
              
              - fixed <rdar://problem/4820817> Autoscroll is broken in Mail.app (message jumps around when trying to select text)
                      
              Handle scrolling external scrollviews around the webview during
              autoscroll or when scrolling into view.
              
              This should also restore performance on BenchJS test 6 lost due to Tim's partial fix.
      
              * page/FrameView.cpp:
              (WebCore::FrameView::scrollRectIntoViewRecursively):
              * page/FrameView.h:
              * platform/ScrollView.h:
              * platform/gdk/ScrollViewGdk.cpp:
              (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
              (WebCore::ScrollView::scrollRectIntoViewRecursively):
              * platform/mac/ScrollViewMac.mm:
              (WebCore::ScrollView::visibleContentRect):
              (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
              (WebCore::ScrollView::scrollRectIntoViewRecursively):
              (WebCore::ScrollView::updateContents):
              * platform/qt/ScrollViewQt.cpp:
              (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
              (WebCore::ScrollView::scrollRectIntoViewRecursively):
              * platform/win/ScrollViewWin.cpp:
              (WebCore::ScrollView::visibleContentRectConsideringExternalScrollers):
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::ScrollView::scrollRectIntoViewRecursively):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollRectToVisible):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20565 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      14590a57
  9. 22 Mar, 2007 1 commit
    • hyatt's avatar
      Minor refactoring and cleanup of the bridge calls that want to control... · cebb8f67
      hyatt authored
              Minor refactoring and cleanup of the bridge calls that want to control layout settings on the RenderView.
              Have the bridge talk through the FrameView instead of just asking for the RenderView directly.
      
              Add an assert to help catch situations where the RenderView needs layout at paint time, since this is a known
              catastrophic scenario that will (much of the time) result in a crash in RenderTableSection::paint.
      
              Reviewed by aroben
      
              * page/FrameView.cpp:
              (WebCore::FrameView::adjustViewSize):
              (WebCore::FrameView::needsLayout):
              (WebCore::FrameView::setNeedsLayout):
              * page/FrameView.h:
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge needsLayout]):
              (-[WebCoreFrameBridge setNeedsLayout]):
              * rendering/RenderView.cpp:
              (WebCore::RenderView::paint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20385 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cebb8f67
  10. 21 Mar, 2007 1 commit
    • bdakin's avatar
      Fix for <rdar://problem/5072678> Crash in · 2ad0c936
      bdakin authored
              RenderLayer::scrollRectToVisible with MallocScribble enabled
      
              I tried to fix this earlier today but my fix caused a regression
              scrolling through RSS pages. It turns out that sometimes scroll
              events need to propagate immediately, and sometimes they must be
              delayed or they risk deleting objects that are expected to be
              around after the event has propagated. Mitz's original fix made
              sheduleEvent() only delay events that happen during layout. This
              fix marks two other places in addition to layout where events also
              need to be delayed. These two places are places that were marked
              with FIXMEs that Mitz removed in his original patch. (There was a
              third FIXME in RenderLayer::updateScrollInfoAfterLayout() but that
              case is only called through layout and is covered by Mitz's
              original patch.)
      
              * page/FrameView.cpp:
              (WebCore::FrameView::~FrameView): Added assertion.
              (WebCore::FrameView::layout): Call new functions to increment and 
              decrement the queued events count.
              (WebCore::FrameView::pauseScheduledEvents):
              (WebCore::FrameView::resumeScheduledEvents): Decrement queued 
              events count and dispatch events if the count has zeroed.
              * page/FrameView.h:
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::scrollRectToVisible):
              (WebCore::Marquee::start):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20360 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2ad0c936
  11. 18 Mar, 2007 1 commit
    • 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
  12. 19 Feb, 2007 1 commit
    • mjs's avatar
      WebCore: · c13fa54c
      mjs authored
              Reviewed by Maciej.
              
              Additional coding by Maciej, additional review by Oliver.
      
              Get rid of the FrameMac and FrameQt classes. Instead
              move all methods into Frame directly, and implement
              some platform specific methods in foo/FrameFoo.cpp.
      
              Some general cleanup in Frame:
              * Move some methods out of Frame, to the place where they 
              belong.
              * Unify the different ways of creating the JavaScript wrappers
              for <object>, <embed> and <applet>
              * Some cleanup of the WebCoreFrameBridge
      
              * ForwardingHeaders/bindings/NP_jsobject.h: Added.
              * ForwardingHeaders/bindings/npruntime_impl.h: Added.
              * ForwardingHeaders/bindings/runtime_root.h: Added.
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/kjs_binding.cpp:
              (KJS::ScriptInterpreter::shouldInterruptScript):
              * bindings/objc/DOM.mm:
              (-[DOMNode KJS::Bindings::]):
              * bindings/objc/DOMInternal.mm:
              (-[WebScriptObject _initializeScriptDOMNodeImp]):
              * bridge/EditorClient.h:
              * bridge/mac/FrameViewMac.mm:
              (WebCore::FrameView::updateBorder):
              (WebCore::FrameView::updateDashboardRegions):
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject rendererForView:]):
              * dom/Position.cpp:
              (WebCore::Position::next):
              * editing/CommandByName.cpp:
              (WebCore::Frame::execCopy):
              (WebCore::Frame::execCut):
              (WebCore::Frame::execPaste):
              * editing/Editor.cpp:
              (WebCore::Editor::canEdit):
              (WebCore::Editor::pasteWithPasteboard):
              (WebCore::Editor::paste):
              (WebCore::Editor::pasteAsPlainText):
              * editing/Editor.h:
              * editing/JSEditor.cpp:
              * html/HTMLAppletElement.cpp:
              (WebCore::HTMLAppletElement::getInstance):
              * html/HTMLEmbedElement.cpp:
              (WebCore::HTMLEmbedElement::getInstance):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::formData):
              * html/HTMLObjectElement.cpp:
              (WebCore::HTMLObjectElement::getInstance):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::clear):
              (WebCore::FrameLoader::detachFromParent):
              * loader/mac/ImageDocumentMac.mm:
              (WebCore::finishImageLoad):
              * loader/qt/DocumentLoaderQt.cpp:
              * page/Chrome.cpp:
              (WebCore::Chrome::shouldInterruptJavaScript):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * page/Frame.cpp:
              (WebCore::Frame::~Frame):
              (WebCore::Frame::markedTextRange):
              (WebCore::Frame::shouldChangeSelection):
              (WebCore::Frame::shouldDeleteSelection):
              (WebCore::Frame::isContentEditable):
              (WebCore::Frame::setSecureKeyboardEntry):
              (WebCore::Frame::isSecureKeyboardEntry):
              (WebCore::Frame::bindingRootObject):
              (WebCore::Frame::createRootObject):
              (WebCore::Frame::windowScriptNPObject):
              (WebCore::Frame::cleanupScriptObjects):
              (WebCore::FramePrivate::FramePrivate):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameView.h:
              * page/mac/EventHandlerMac.mm:
              (WebCore::EventHandler::tabsToLinks):
              (WebCore::EventHandler::tabsToAllControls):
              (WebCore::EventHandler::focusDocumentView):
              (WebCore::EventHandler::passMouseDownEventToWidget):
              (WebCore::EventHandler::handleDrag):
              (WebCore::EventHandler::sendFakeEventsAfterWidgetTracking):
              (WebCore::EventHandler::keyboardUIMode):
              * page/mac/FrameMac.h: Removed.
              * page/mac/FrameMac.mm:
              (WebCore::Frame::setBridge):
              (WebCore::Frame::bridge):
              (WebCore::Frame::searchForLabelsAboveCell):
              (WebCore::Frame::searchForLabelsBeforeElement):
              (WebCore::Frame::matchLabelsAgainstElement):
              (WebCore::Frame::focusWindow):
              (WebCore::Frame::unfocusWindow):
              (WebCore::Frame::imageFromRect):
              (WebCore::Frame::selectionImage):
              (WebCore::Frame::snapshotDragImage):
              (WebCore::Frame::fontAttributesForSelectionStart):
              (WebCore::Frame::baseWritingDirectionForSelectionStart):
              (WebCore::Frame::print):
              (WebCore::Frame::issuePasteCommand):
              (WebCore::Frame::issueTransposeCommand):
              (WebCore::Frame::respondToChangedSelection):
              (WebCore::Frame::textFieldDidBeginEditing):
              (WebCore::Frame::textFieldDidEndEditing):
              (WebCore::Frame::textDidChangeInTextField):
              (WebCore::Frame::textDidChangeInTextArea):
              (WebCore::Frame::doTextFieldCommandFromEvent):
              (WebCore::Frame::textWillBeDeletedInTextField):
              (WebCore::Frame::setSecureKeyboardEntry):
              (WebCore::Frame::isSecureKeyboardEntry):
              (WebCore::Frame::setMarkedTextRange):
              (WebCore::Frame::dashboardRegionsDictionary):
              (WebCore::Frame::dashboardRegionsChanged):
              (WebCore::Frame::willPopupMenu):
              (WebCore::Frame::isCharacterSmartReplaceExempt):
              (WebCore::Frame::setNeedsReapplyStyles):
              (WebCore::Frame::customHighlightLineRect):
              (WebCore::Frame::paintCustomHighlight):
              (WebCore::Frame::createScriptInstanceForWidget):
              (WebCore::Frame::windowScriptObject):
              (WebCore::Frame::cleanupPlatformScriptObjects):
              * page/mac/WebCoreFrameBridge.h:
              * page/mac/WebCoreFrameBridge.mm:
              (createRootObject):
              (bridge):
              (-[WebCoreFrameBridge _frame]):
              * page/qt/EventHandlerQt.cpp:
              * page/qt/FrameQt.cpp:
              (WebCore::Frame::unfocusWindow):
              (WebCore::Frame::focusWindow):
              (WebCore::Frame::issueTransposeCommand):
              (WebCore::Frame::respondToChangedSelection):
              (WebCore::Frame::print):
              (WebCore::Frame::createScriptInstanceForWidget):
              (WebCore::Frame::cleanupPlatformScriptObjects):
              (WebCore::Frame::isCharacterSmartReplaceExempt):
              * page/qt/FrameQt.h: Removed.
              * platform/MimeTypeRegistry.h:
              * platform/graphics/svg/SVGImage.cpp:
              (WebCore::SVGImage::setData):
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyChromeClient::shouldInterruptJavaScript):
              (WebCore::SVGEmptyEditorClient::shouldChangeSelectedRange):
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::ClipboardMac):
              * platform/mac/FileChooserMac.mm:
              (-[OpenPanelController beginSheetWithFrame:]):
              * platform/mac/MimeTypeRegistryMac.mm:
              (WebCore::MimeTypeRegistry::getMIMETypeForPath):
              * platform/mac/PopupMenuMac.mm:
              (WebCore::PopupMenu::show):
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::setFocus):
              (WebCore::Widget::setIsSelected):
              * platform/network/mac/ResourceHandleMac.mm:
              * platform/network/qt/ResourceHandleManagerQt.cpp:
              * platform/network/qt/ResourceHandleQt.cpp:
              (WebCore::ResourceHandle::start):
              * platform/qt/MimeTypeRegistryQt.cpp:
              (WebCore::MimeTypeRegistry::getMIMETypeForPath):
              * platform/qt/PopupMenuQt.cpp:
              * platform/qt/ScrollViewCanvasQt.cpp:
              * platform/qt/ScrollViewQt.cpp:
              * platform/win/TemporaryLinkStubs.cpp:
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paintCustomHighlight):
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintCustomHighlight):
              * rendering/RootInlineBox.cpp:
              (WebCore::RootInlineBox::addHighlightOverflow):
              (WebCore::RootInlineBox::paintCustomHighlight):
      
      WebKit:
      
              Reviewed by Maciej.
      
              Additional coding by Maciej, additional review by Oliver.
      
              Added implementations for the new callbacks in EditorClient
              and ChromeClient (basically moved from WebFrameBridge).
              Cleaned up some code paths that are not called anymore
              and done fully inside WebCore now.
      
              * DefaultDelegates/WebDefaultContextMenuDelegate.mm:
              * Misc/WebElementDictionary.mm:
              * Misc/WebNSAttributedStringExtras.mm:
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView getVariable:value:]):
              * Plugins/WebNetscapePluginEmbeddedView.mm:
              * Plugins/WebNetscapePluginStream.mm:
              * Plugins/WebPluginContainerCheck.mm:
              * WebCoreSupport/WebChromeClient.h:
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::shouldInterruptJavaScript):
              * WebCoreSupport/WebEditorClient.h:
              * WebCoreSupport/WebEditorClient.mm:
              (WebEditorClient::shouldChangeSelectedRange):
              * WebCoreSupport/WebFrameBridge.mm:
              (-[WebFrameBridge finishInitializingWithPage:frameName:frameView:ownerElement:]):
              (-[WebFrameBridge fini]):
              * WebCoreSupport/WebFrameLoaderClient.mm:
              * WebView/WebArchiver.mm:
              * WebView/WebFrame.mm:
              (core):
              (kit):
              (-[WebFrame _updateBackground]):
              * WebView/WebFrameInternal.h:
              * WebView/WebFrameView.mm:
              * WebView/WebHTMLRepresentation.mm:
              * WebView/WebHTMLView.mm:
              (-[WebHTMLView _updateMouseoverWithEvent:]):
              (-[WebHTMLView _isEditable]):
              (-[WebHTMLView validateUserInterfaceItem:]):
              (-[WebHTMLView maintainsInactiveSelection]):
              (-[WebHTMLView scrollWheel:]):
              (-[WebHTMLView acceptsFirstMouse:]):
              (-[WebHTMLView shouldDelayWindowOrderingForEvent:]):
              (-[WebHTMLView cut:]):
              (-[WebHTMLView paste:]):
              (-[WebHTMLView selectedAttributedString]):
              * WebView/WebScriptDebugDelegate.mm:
              * WebView/WebView.mm:
              (-[WebView _dashboardRegions]):
              (-[WebView setProhibitsMainFrameScrolling:]):
              (-[WebView _setInViewSourceMode:]):
              (-[WebView _inViewSourceMode]):
              (-[WebView shouldClose]):
              (-[WebView setEditable:]):
      
      WebKitQt:
      
              Reviewed by Maciej.
      
              Additional coding by Maciej, additional review by Oliver.
      
              Add stubs for the new methods in ChormeClient and EditorClient,
              remove all references to FrameQt.
      
              * Api/qwebframe.cpp:
              (QWebFrame::QWebFrame):
              * Api/qwebframe_p.h:
              * Api/qwebpage.cpp:
              * WebCoreSupport/ChromeClientQt.cpp:
              (WebCore::ChromeClientQt::shouldInterruptJavaScript):
              * WebCoreSupport/ChromeClientQt.h:
              * WebCoreSupport/EditorClientQt.cpp:
              (WebCore::EditorClientQt::shouldChangeSelectedRange):
              (WebCore::EditorClientQt::isEditable):
              * WebCoreSupport/EditorClientQt.h:
              * WebCoreSupport/FrameLoaderClientQt.cpp:
              (WebCore::FrameLoaderClientQt::setFrame):
              (WebCore::FrameLoaderClientQt::webFrame):
              * WebCoreSupport/FrameLoaderClientQt.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19702 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c13fa54c
  13. 15 Jan, 2007 1 commit
    • eseidel's avatar
      2007-01-15 Eric Seidel <eric@webkit.org> · 8eddecf9
      eseidel authored
              Reviewed by bdash.
      
              Update header guards to follow new style guidelines using new clean-header-guards script.
      
              * bindings/js/JSHTMLElementWrapperFactory.h:
              * bindings/js/JSHTMLInputElementBase.h:
              * bindings/js/JSHTMLOptionElementConstructor.h:
              * bindings/js/JSSVGElementWrapperFactory.h:
              * bindings/js/JSSVGPODTypeWrapper.h:
              * bindings/js/JSXMLHttpRequest.h:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_binding.h:
              * bindings/js/kjs_css.h:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_domnode.h:
              * bindings/js/kjs_events.h:
              * bindings/js/kjs_html.h:
              * bindings/js/kjs_navigator.h:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_traversal.h:
              * bindings/js/kjs_window.h:
              * bridge/EditorClient.h:
              * bridge/History.h:
              * css/CSSStyleSheet.h:
              * css/CSSValue.h:
              * css/CSSValueList.h:
              * css/DashboardRegion.h:
              * css/FontFamilyValue.h:
              * css/FontValue.h:
              * css/MediaFeatureNames.h:
              * css/MediaList.h:
              * css/Pair.h:
              * css/RectImpl.h:
              * css/ShadowValue.h:
              * css/StyleBase.h:
              * css/StyleList.h:
              * css/StyleSheet.h:
              * css/StyleSheetList.h:
              * css/cssstyleselector.h:
              * dom/BeforeTextInsertedEvent.h:
              * dom/CDATASection.h:
              * dom/CharacterData.h:
              * dom/ChildNodeList.h:
              * dom/Comment.h:
              * dom/DOMImplementation.h:
              * dom/DocPtr.h:
              * dom/Document.h:
              * dom/DocumentFragment.h:
              * dom/DocumentMarker.h:
              * dom/DocumentType.h:
              * dom/EditingText.h:
              * dom/Entity.h:
              * dom/EntityReference.h:
              * dom/EventNames.h:
              * dom/EventTargetNode.h:
              * dom/NameNodeList.h:
              * dom/NamedNodeMap.h:
              * dom/Node.h:
              * dom/NodeList.h:
              * dom/Notation.h:
              * dom/Position.h:
              * dom/ProcessingInstruction.h:
              * dom/Range.h:
              * dom/StyleElement.h:
              * dom/Text.h:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.h:
              * editing/BreakBlockquoteCommand.h:
              * editing/CommandByName.h:
              * editing/CompositeEditCommand.h:
              * editing/DeleteButton.h:
              * editing/DeleteButtonController.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertParagraphSeparatorCommand.h:
              * editing/InsertTextCommand.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RemoveCSSPropertyCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TextGranularity.h:
              * editing/TypingCommand.h:
              * editing/WrapContentsInDummySpanCommand.h:
              * history/BackForwardList.h:
              * history/HistoryItem.h:
              * history/HistoryItemTimer.h:
              * history/PageCache.h:
              * html/CanvasGradient.h:
              * html/CanvasPattern.h:
              * html/CanvasRenderingContext2D.h:
              * html/CanvasStyle.h:
              * html/FormDataList.h:
              * html/HTMLAnchorElement.h:
              * html/HTMLAppletElement.h:
              * html/HTMLAreaElement.h:
              * html/HTMLBRElement.h:
              * html/HTMLBaseElement.h:
              * html/HTMLBaseFontElement.h:
              * html/HTMLBlockquoteElement.h:
              * html/HTMLBodyElement.h:
              * html/HTMLButtonElement.h:
              * html/HTMLCanvasElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDListElement.h:
              * html/HTMLDirectoryElement.h:
              * html/HTMLDivElement.h:
              * html/HTMLElement.h:
              * html/HTMLElementFactory.h:
              * html/HTMLEmbedElement.h:
              * html/HTMLFieldSetElement.h:
              * html/HTMLFontElement.h:
              * html/HTMLFormCollection.h:
              * html/HTMLFormElement.h:
              * html/HTMLFrameSetElement.h:
              * html/HTMLGenericFormElement.h:
              * html/HTMLHRElement.h:
              * html/HTMLHeadElement.h:
              * html/HTMLHeadingElement.h:
              * html/HTMLHtmlElement.h:
              * html/HTMLImageElement.h:
              * html/HTMLImageLoader.h:
              * html/HTMLInputElement.h:
              * html/HTMLIsIndexElement.h:
              * html/HTMLKeygenElement.h:
              * html/HTMLLIElement.h:
              * html/HTMLLabelElement.h:
              * html/HTMLLegendElement.h:
              * html/HTMLLinkElement.h:
              * html/HTMLMapElement.h:
              * html/HTMLMarqueeElement.h:
              * html/HTMLMenuElement.h:
              * html/HTMLMetaElement.h:
              * html/HTMLModElement.h:
              * html/HTMLNameCollection.h:
              * html/HTMLOListElement.h:
              * html/HTMLObjectElement.h:
              * html/HTMLOptGroupElement.h:
              * html/HTMLOptionElement.h:
              * html/HTMLOptionsCollection.h:
              * html/HTMLParagraphElement.h:
              * html/HTMLParamElement.h:
              * html/HTMLParser.h:
              * html/HTMLPlugInElement.h:
              * html/HTMLPreElement.h:
              * html/HTMLQuoteElement.h:
              * html/HTMLScriptElement.h:
              * html/HTMLSelectElement.h:
              * html/HTMLStyleElement.h:
              * html/HTMLTableCaptionElement.h:
              * html/HTMLTableCellElement.h:
              * html/HTMLTableColElement.h:
              * html/HTMLTableElement.h:
              * html/HTMLTablePartElement.h:
              * html/HTMLTableRowElement.h:
              * html/HTMLTableSectionElement.h:
              * html/HTMLTextAreaElement.h:
              * html/HTMLTextFieldInnerElement.h:
              * html/HTMLTitleElement.h:
              * html/HTMLUListElement.h:
              * ksvg2/css/SVGRenderStyle.h:
              * ksvg2/css/SVGRenderStyleDefs.h:
              * ksvg2/events/JSSVGLazyEventListener.h:
              * ksvg2/events/SVGZoomEvent.h:
              * ksvg2/misc/KCanvasRenderingStyle.h:
              * ksvg2/misc/PointerEventsHitRules.h:
              * ksvg2/misc/SVGDocumentExtensions.h:
              * ksvg2/misc/SVGImageLoader.h:
              * ksvg2/misc/TimeScheduler.h:
              * ksvg2/svg/GradientAttributes.h:
              * ksvg2/svg/LinearGradientAttributes.h:
              * ksvg2/svg/PatternAttributes.h:
              * ksvg2/svg/RadialGradientAttributes.h:
              * ksvg2/svg/SVGAElement.h:
              * ksvg2/svg/SVGAngle.h:
              * ksvg2/svg/SVGAnimateColorElement.h:
              * ksvg2/svg/SVGAnimateElement.h:
              * ksvg2/svg/SVGAnimateMotionElement.h:
              * ksvg2/svg/SVGAnimateTransformElement.h:
              * ksvg2/svg/SVGAnimatedPathData.h:
              * ksvg2/svg/SVGAnimatedPoints.h:
              * ksvg2/svg/SVGAnimatedTemplate.h:
              * ksvg2/svg/SVGAnimationElement.h:
              * ksvg2/svg/SVGCircleElement.h:
              * ksvg2/svg/SVGClipPathElement.h:
              * ksvg2/svg/SVGColor.h:
              * ksvg2/svg/SVGComponentTransferFunctionElement.h:
              * ksvg2/svg/SVGCursorElement.h:
              * ksvg2/svg/SVGDOMImplementation.h:
              * ksvg2/svg/SVGDefsElement.h:
              * ksvg2/svg/SVGDescElement.h:
              * ksvg2/svg/SVGDocument.h:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGElementInstance.h:
              * ksvg2/svg/SVGElementInstanceList.h:
              * ksvg2/svg/SVGEllipseElement.h:
              * ksvg2/svg/SVGExternalResourcesRequired.h:
              * ksvg2/svg/SVGFEBlendElement.h:
              * ksvg2/svg/SVGFEColorMatrixElement.h:
              * ksvg2/svg/SVGFEComponentTransferElement.h:
              * ksvg2/svg/SVGFECompositeElement.h:
              * ksvg2/svg/SVGFEDiffuseLightingElement.h:
              * ksvg2/svg/SVGFEDisplacementMapElement.h:
              * ksvg2/svg/SVGFEDistantLightElement.h:
              * ksvg2/svg/SVGFEFloodElement.h:
              * ksvg2/svg/SVGFEFuncAElement.h:
              * ksvg2/svg/SVGFEFuncBElement.h:
              * ksvg2/svg/SVGFEFuncGElement.h:
              * ksvg2/svg/SVGFEFuncRElement.h:
              * ksvg2/svg/SVGFEGaussianBlurElement.h:
              * ksvg2/svg/SVGFEImageElement.h:
              * ksvg2/svg/SVGFELightElement.h:
              * ksvg2/svg/SVGFEMergeElement.h:
              * ksvg2/svg/SVGFEMergeNodeElement.h:
              * ksvg2/svg/SVGFEOffsetElement.h:
              * ksvg2/svg/SVGFEPointLightElement.h:
              * ksvg2/svg/SVGFESpecularLightingElement.h:
              * ksvg2/svg/SVGFESpotLightElement.h:
              * ksvg2/svg/SVGFETileElement.h:
              * ksvg2/svg/SVGFETurbulenceElement.h:
              * ksvg2/svg/SVGFilterElement.h:
              * ksvg2/svg/SVGFilterPrimitiveStandardAttributes.h:
              * ksvg2/svg/SVGFitToViewBox.h:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGGElement.h:
              * ksvg2/svg/SVGGradientElement.h:
              * ksvg2/svg/SVGImageElement.h:
              * ksvg2/svg/SVGLangSpace.h:
              * ksvg2/svg/SVGLength.h:
              * ksvg2/svg/SVGLengthList.h:
              * ksvg2/svg/SVGLineElement.h:
              * ksvg2/svg/SVGLinearGradientElement.h:
              * ksvg2/svg/SVGList.h:
              * ksvg2/svg/SVGListTraits.h:
              * ksvg2/svg/SVGLocatable.h:
              * ksvg2/svg/SVGMarkerElement.h:
              * ksvg2/svg/SVGMaskElement.h:
              * ksvg2/svg/SVGMetadataElement.h:
              * ksvg2/svg/SVGNumberList.h:
              * ksvg2/svg/SVGPaint.h:
              * ksvg2/svg/SVGParserUtilities.h:
              * ksvg2/svg/SVGPathElement.h:
              * ksvg2/svg/SVGPathSeg.h:
              * ksvg2/svg/SVGPathSegArc.h:
              * ksvg2/svg/SVGPathSegClosePath.h:
              * ksvg2/svg/SVGPathSegCurvetoCubic.h:
              * ksvg2/svg/SVGPathSegCurvetoCubicSmooth.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadratic.h:
              * ksvg2/svg/SVGPathSegCurvetoQuadraticSmooth.h:
              * ksvg2/svg/SVGPathSegLineto.h:
              * ksvg2/svg/SVGPathSegLinetoHorizontal.h:
              * ksvg2/svg/SVGPathSegLinetoVertical.h:
              * ksvg2/svg/SVGPathSegList.h:
              * ksvg2/svg/SVGPathSegMoveto.h:
              * ksvg2/svg/SVGPatternElement.h:
              * ksvg2/svg/SVGPointList.h:
              * ksvg2/svg/SVGPolyElement.h:
              * ksvg2/svg/SVGPolygonElement.h:
              * ksvg2/svg/SVGPolylineElement.h:
              * ksvg2/svg/SVGPreserveAspectRatio.h:
              * ksvg2/svg/SVGRadialGradientElement.h:
              * ksvg2/svg/SVGRectElement.h:
              * ksvg2/svg/SVGRenderingIntent.h:
              * ksvg2/svg/SVGSVGElement.h:
              * ksvg2/svg/SVGScriptElement.h:
              * ksvg2/svg/SVGSetElement.h:
              * ksvg2/svg/SVGStopElement.h:
              * ksvg2/svg/SVGStringList.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGStyleElement.h:
              * ksvg2/svg/SVGStyledElement.h:
              * ksvg2/svg/SVGStyledLocatableElement.h:
              * ksvg2/svg/SVGStyledTransformableElement.h:
              * ksvg2/svg/SVGSwitchElement.h:
              * ksvg2/svg/SVGSymbolElement.h:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTests.h:
              * ksvg2/svg/SVGTextContentElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/SVGTextPositioningElement.h:
              * ksvg2/svg/SVGTitleElement.h:
              * ksvg2/svg/SVGTransform.h:
              * ksvg2/svg/SVGTransformList.h:
              * ksvg2/svg/SVGTransformable.h:
              * ksvg2/svg/SVGURIReference.h:
              * ksvg2/svg/SVGUnitTypes.h:
              * ksvg2/svg/SVGUseElement.h:
              * ksvg2/svg/SVGViewElement.h:
              * ksvg2/svg/SVGZoomAndPan.h:
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedImage.h:
              * loader/CachedXSLStyleSheet.h:
              * loader/DocumentLoader.h:
              * loader/Request.h:
              * loader/SubresourceLoader.h:
              * loader/icon/IconDataCache.h:
              * loader/icon/IconDatabase.h:
              * loader/icon/IconLoader.h:
              * loader/icon/SQLDatabase.h:
              * loader/icon/SQLStatement.h:
              * loader/icon/SQLTransaction.h:
              * page/Frame.h:
              * page/FrameLoadRequest.h:
              * page/FrameTree.h:
              * page/FrameView.h:
              * page/PageState.h:
              * page/Plugin.h:
              * page/qt/FrameQt.h:
              * page/qt/FrameQtClient.h:
              * platform/Arena.h:
              * platform/ArrayImpl.h:
              * platform/Cursor.h:
              * platform/DeprecatedArray.h:
              * platform/DeprecatedCString.h:
              * platform/FileChooser.h:
              * platform/Font.h:
              * platform/FontCache.h:
              * platform/FontData.h:
              * platform/FontDescription.h:
              * platform/FontFamily.h:
              * platform/GlyphBuffer.h:
              * platform/GlyphMap.h:
              * platform/GlyphWidthMap.h:
              * platform/Logging.h:
              * platform/Pasteboard.h:
              * platform/PlatformString.h:
              * platform/PlugInInfoStore.h:
              * platform/PopupMenu.h:
              * platform/PopupMenuClient.h:
              * platform/ScrollBar.h:
              * platform/ScrollView.h:
              * platform/SearchPopupMenu.h:
              * platform/Shared.h:
              * platform/Sound.h:
              * platform/SystemTime.h:
              * platform/Timer.h:
              * platform/Widget.h:
              * platform/cf/RetainPtr.h:
              * platform/gdk/ChromeClientGdk.h:
              * platform/gdk/FontPlatformData.h:
              * platform/gdk/FrameGdk.h:
              * platform/gdk/KeyboardCodes.h:
              * platform/gdk/RenderPopupMenuGdk.h:
              * platform/gdk/RenderThemeGdk.h:
              * platform/graphics/BitmapImage.h:
              * platform/graphics/Color.h:
              * platform/graphics/FloatPoint.h:
              * platform/graphics/FloatPoint3D.h:
              * platform/graphics/FloatRect.h:
              * platform/graphics/Icon.h:
              * platform/graphics/Image.h:
              * platform/graphics/ImageAnimationObserver.h:
              * platform/graphics/ImageBuffer.h:
              * platform/graphics/ImageSource.h:
              * platform/graphics/IntPoint.h:
              * platform/graphics/IntRect.h:
              * platform/graphics/IntSize.h:
              * platform/graphics/IntSizeHash.h:
              * platform/graphics/PathTraversalState.h:
              * platform/graphics/Pen.h:
              * platform/graphics/qt/ImageDecoderQt.h:
              * platform/graphics/svg/SVGImage.h:
              * platform/graphics/svg/SVGImageEmptyClients.h:
              * platform/graphics/svg/SVGPaintServer.h:
              * platform/graphics/svg/SVGPaintServerGradient.h:
              * platform/graphics/svg/SVGPaintServerLinearGradient.h:
              * platform/graphics/svg/SVGPaintServerPattern.h:
              * platform/graphics/svg/SVGPaintServerRadialGradient.h:
              * platform/graphics/svg/SVGPaintServerSolid.h:
              * platform/graphics/svg/SVGResource.h:
              * platform/graphics/svg/SVGResourceClipper.h:
              * platform/graphics/svg/SVGResourceFilter.h:
              * platform/graphics/svg/SVGResourceMarker.h:
              * platform/graphics/svg/SVGResourceMasker.h:
              * platform/graphics/svg/cg/CgSupport.h:
              * platform/graphics/svg/filters/SVGDistantLightSource.h:
              * platform/graphics/svg/filters/SVGFEBlend.h:
              * platform/graphics/svg/filters/SVGFEColorMatrix.h:
              * platform/graphics/svg/filters/SVGFEComponentTransfer.h:
              * platform/graphics/svg/filters/SVGFEComposite.h:
              * platform/graphics/svg/filters/SVGFEConvolveMatrix.h:
              * platform/graphics/svg/filters/SVGFEDiffuseLighting.h:
              * platform/graphics/svg/filters/SVGFEDisplacementMap.h:
              * platform/graphics/svg/filters/SVGFEFlood.h:
              * platform/graphics/svg/filters/SVGFEGaussianBlur.h:
              * platform/graphics/svg/filters/SVGFEImage.h:
              * platform/graphics/svg/filters/SVGFEMerge.h:
              * platform/graphics/svg/filters/SVGFEMorphology.h:
              * platform/graphics/svg/filters/SVGFEOffset.h:
              * platform/graphics/svg/filters/SVGFESpecularLighting.h:
              * platform/graphics/svg/filters/SVGFETile.h:
              * platform/graphics/svg/filters/SVGFETurbulence.h:
              * platform/graphics/svg/filters/SVGFilterEffect.h:
              * platform/graphics/svg/filters/SVGLightSource.h:
              * platform/graphics/svg/filters/SVGPointLightSource.h:
              * platform/graphics/svg/filters/SVGSpotLightSource.h:
              * platform/mac/FontPlatformData.h:
              * platform/mac/PlatformScrollBar.h:
              * platform/network/AuthenticationChallenge.h:
              * platform/network/Credential.h:
              * platform/network/HTTPHeaderMap.h:
              * platform/network/ProtectionSpace.h:
              * platform/network/ResourceError.h:
              * platform/network/ResourceRequest.h:
              * platform/network/ResourceResponse.h:
              * platform/network/cf/FormDataStreamCFNet.h:
              * platform/network/cf/ResourceRequestCFNet.h:
              * platform/network/cf/ResourceResponseCFNet.h:
              * platform/network/gdk/ResourceHandleManager.h:
              * platform/network/mac/AuthenticationMac.h:
              * platform/network/mac/FormDataStreamMac.h:
              * platform/network/qt/ResourceHandleManagerKDE.h:
              * platform/network/qt/ResourceHandleManagerQt.h:
              * platform/network/win/ResourceHandleWin.h:
              * platform/qt/FontPlatformData.h:
              * platform/qt/KeyboardCodes.h:
              * platform/qt/PlatformScrollBar.h:
              * platform/qt/ScrollViewCanvasQt.h:
              * platform/qt/SharedTimerQt.h:
              * platform/win/FontPlatformData.h:
              * platform/win/PlatformScrollBar.h:
              * rendering/AutoTableLayout.h:
              * rendering/HitTestRequest.h:
              * rendering/HitTestResult.h:
              * rendering/InlineBox.h:
              * rendering/InlineFlowBox.h:
              * rendering/Length.h:
              * rendering/ListMarkerBox.h:
              * rendering/RenderBox.h:
              * rendering/RenderMenuList.h:
              * rendering/RenderPart.h:
              * rendering/RenderPartObject.h:
              * rendering/RenderPath.h:
              * rendering/RenderReplaced.h:
              * rendering/RenderSVGContainer.h:
              * rendering/RenderSVGImage.h:
              * rendering/RenderSVGInline.h:
              * rendering/RenderSVGInlineText.h:
              * rendering/RenderSVGTSpan.h:
              * rendering/RenderSVGText.h:
              * rendering/RenderStyle.h:
              * rendering/RenderTableCol.h:
              * rendering/RenderThemeWin.h:
              * rendering/bidi.h:
              * xml/DOMParser.h:
              * xml/XPathEvaluator.h:
              * xml/XPathExpression.h:
              * xml/XPathExpressionNode.h:
              * xml/XPathFunctions.h:
              * xml/XPathNSResolver.h:
              * xml/XPathNamespace.h:
              * xml/XPathParser.h:
              * xml/XPathPath.h:
              * xml/XPathPredicate.h:
              * xml/XPathResult.h:
              * xml/XPathStep.h:
              * xml/XPathUtil.h:
              * xml/XPathValue.h:
              * xml/XPathVariableReference.h:
              * xml/XSLImportRule.h:
              * xml/XSLStyleSheet.h:
              * xml/XSLTProcessor.h:
              * xml/xmlhttprequest.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18874 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8eddecf9
  14. 28 Nov, 2006 1 commit
    • aroben's avatar
      WebCore: · 590b5aaa
      aroben authored
              Reviewed by Beth.
      
              More WebCore context menu work (still not turned on, however).
      
              Split ContextMenuItem into its own files and make it a class.
      
              * WebCore.exp: Updated symbols.
              * WebCore.xcodeproj/project.pbxproj: Added new ContextMenuItem files.
              * platform/ContextMenu.cpp:
              (WebCore::ContextMenu::populate): Code cleanup.
              * platform/ContextMenu.h: Split ContextMenuItem into a separate file,
              removed redundant "Menu" part of platformMenuDescription(),
              setPlatformMenuDescription().
              (WebCore::ContextMenu::ContextMenu):
              (WebCore::ContextMenu::hitTestResult):
              (WebCore::ContextMenu::platformDescription):
              * platform/ContextMenuItem.h: Added. Made ContextMenuItem a
              full-fledged class.
              (WebCore::):
              (WebCore::ContextMenuItem::ContextMenuItem):
              (WebCore::ContextMenuItem::menu):
              (WebCore::ContextMenuItem::platformDescription):
              (WebCore::ContextMenuItem::type):
              (WebCore::ContextMenuItem::action):
              (WebCore::ContextMenuItem::title):
              * platform/mac/ContextMenuItemMac.mm: Added.
              (WebCore::ContextMenuItem::ContextMenuItem):
              * platform/mac/ContextMenuMac.mm: Updated for ContextMenuItem changes.
              (-[MenuTarget forwardContextMenuAction:]):
              (getNSMenuItem): Handle separator items.
              (ContextMenu::appendItem):
              (ContextMenu::itemCount):
              (ContextMenu::insertItem):
              (ContextMenu::setPlatformDescription):
              * page/ContextMenuController.h: Updated declaration, added getter.
              (WebCore::ContextMenuController::contextMenu):
      
              Added some more context menu plumbing.
      
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::defaultEventHandler): Added code to call the
              ContextMenuController when a context menu event is received.
              * page/ContextMenuClient.h: New client method declaration.
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::handleContextMenuEvent): Set the event
              defaultHandled after handling it.
              (WebCore::ContextMenuController::contextMenuItemSelected): Take a
              ContextMenuItem instead of a separate action and title.
      
              Changed event-handling methods to return bools to signify whether the
              event was handled or not. This is needed so we can know whether to hand
              the event off to the OS. Also restructured some code to use early
              returns instead of nesting ifs.
      
              * page/EventHandler.cpp:
              (WebCore::EventHandler::handleMousePressEventDoubleClick):
              (WebCore::EventHandler::handleMousePressEventTripleClick):
              (WebCore::EventHandler::handleMousePressEventSingleClick):
              (WebCore::EventHandler::handleMousePressEvent):
              (WebCore::EventHandler::handleMouseMoveEvent):
              (WebCore::EventHandler::handleMouseReleaseEvent):
              (WebCore::EventHandler::handleMouseDoubleClickEvent):
              (WebCore::EventHandler::handleWheelEvent):
              (WebCore::EventHandler::canMouseDownStartSelect):
              * page/EventHandler.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::handleMouseMoveEvent):
              (WebCore::FrameView::handleMouseReleaseEvent):
              * page/FrameView.h:
              * platform/ScrollBar.h: More bool return values.
              (WebCore::Scrollbar::handleMouseMoveEvent):
              (WebCore::Scrollbar::handleMouseOutEvent):
              * platform/Widget.h: Ditto.
              (WebCore::Widget::handleMouseMoveEvent):
              (WebCore::Widget::handleMouseReleaseEvent):
      
              Reverted the changes made in r17805 so that we can have fewer header
              #includes.
      
              * page/Page.cpp:
              (WebCore::Page::Page):
              * page/Page.h: Ditto.
              (WebCore::Page::dragCaretController):
              (WebCore::Page::chrome):
              (WebCore::Page::contextMenuController):
      
      WebKit:
      
              Reviewed by Beth.
      
              More WebCore context menu work.
      
              * DefaultDelegates/WebDefaultUIDelegate.m: New stub delegate method implementation.
              (-[NSApplication webView:contextMenuItemSelected:forElement:]):
              * WebCoreSupport/WebContextMenuClient.h: Updated to match ContextMenuClient.h changes.
              * WebCoreSupport/WebContextMenuClient.mm:
              (WebContextMenuClient::addCustomContextMenuItems): Updated for method name changes.
              (WebContextMenuClient::contextMenuItemSelected): Added new client method.
              * WebView/WebUIDelegatePrivate.h: New private delegate method declaration.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17910 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      590b5aaa
  15. 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
  16. 08 Nov, 2006 1 commit
    • darin's avatar
      LayoutTests: · 2a7db559
      darin authored
              Reviewed by Anders.
      
              - added test for option-tab
      
              * fast/events/option-tab.html: Added.
              * fast/events/option-tab-expected.txt: Added.
      
      WebCore:
      
              Reviewed by Anders.
      
              - added event parameters to focus-related functions so we can
                implement the "option-tab to all links" behavior without relying
                on a global "current event" -- also makes it work with DOM events
      
              * page/Frame.h: Removed unneeded includes. Moved some functions
              that were misplaced into the appropriate sections.
              * page/Frame.cpp:
              (WebCore::Frame::doTextFieldCommandFromEvent): Changed parameter from
              PlatformKeyboardEvent to the DOM keyboard event class.
              (WebCore::Frame::tabsToLinks): Added event parameter.
              (WebCore::Frame::tabsToAllControls): Ditto.
              (WebCore::scanForForm): Fixed code that incorrectly assumes
              that an iframe is an HTMLFrameElement (no longer true since Geoff
              changed the class hierarchy a bit).
              (WebCore::Frame::hitTestResultAtPoint): Ditto.
      
              * bridge/mac/FrameMac.h: Removed unneeded includes. Moved some functions
              that were misplaced into the appropriate sections.
              * bridge/mac/FrameMac.mm:
              (WebCore::selectorForKeyEvent): Changed to use a DOM event instead of
              a PlatformKeyboardEvent.
              (WebCore::FrameMac::nextKeyViewInFrame): Changed to use currentKeyboardEvent()
              and pass event into next/previousFocusNode.
              (WebCore::FrameMac::currentKeyboardEvent): Added. Creates a DOM event from
              the AppKit current event, if it's a keyboard event. Really just a hack that's
              needed to preserve some code we can remove once we deal with the last NSView-
              based form control.
              (WebCore::isKeyboardOptionTab): Added.
              (WebCore::FrameMac::tabsToLinks): Added event parameter, used to check if the
              option (alt) key is down.
              (WebCore::FrameMac::tabsToAllControls): Ditto.
              (WebCore::FrameMac::keyEvent): Changed call to prepareForUserAction() to just
              call resetMultipleFormSubmissionProtection() explicitly instead.
              (WebCore::FrameMac::mouseDown): Ditto.
      
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject accessibilityDescription]): Fixed code that incorrectly
              assumes that an iframe is an HTMLFrameElement (no longer true since Geoff
              changed the class hierarchy a bit).
              (-[WebCoreAXObject accessibilityPerformAction:]): Changed call to
              prepareForUserAction() to call resetMultipleFormSubmissionProtection()
              explicitly instead.
      
              * page/FrameView.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::advanceFocus): Changed function to take an
              event parameter, and decide the direction based on the shift key
              modifier instead of a passed-in boolean.
      
              * dom/Document.h:
              * dom/Document.cpp:
              (WebCore::Document::nextFocusNode): Added event parameter.
              (WebCore::Document::previousFocusNode): Ditto.
              * dom/Node.h:
              * dom/Node.cpp:
              (WebCore::Node::isKeyboardFocusable): Ditto.
              * html/HTMLAnchorElement.h:
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::isKeyboardFocusable): Ditto.
              * html/HTMLGenericFormElement.h:
              * html/HTMLGenericFormElement.cpp:
              (WebCore::HTMLGenericFormElement::isKeyboardFocusable): Ditto.
              * html/HTMLInputElement.h:
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::isKeyboardFocusable): Ditto.
              (WebCore::HTMLInputElement::defaultEventHandler): Ditto.
              * html/HTMLSelectElement.h:
              * html/HTMLSelectElement.cpp:
              (WebCore::HTMLSelectElement::isKeyboardFocusable): Ditto.
              * html/HTMLTextAreaElement.h:
              * html/HTMLTextAreaElement.cpp:
              (WebCore::HTMLTextAreaElement::isKeyboardFocusable): Ditto.
      
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::defaultEventHandler): Pass event to the
              advanceFocus function.
      
              * platform/TextField.h:
              * platform/mac/TextFieldMac.mm: Removed the non-search field code.
      
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm: Removed the non-search field code.
              (-[WebCoreTextFieldController controlTextDidChange:]): Removed the
              call to FrameMac::handleKeyboardOptionTabInView, which is no longer
              needed since the default handler in HTMLInputElement takes care of
              option-tab.
      
              * platform/mac/SliderMac.mm:
              (-[WebCoreSlider canBecomeKeyView]): Changed to use currentKeyboardEvent()
              and pass event into tabsToAllControls.
              (Slider::focusPolicy): Ditto.
      
              * rendering/RenderLineEdit.cpp:
              (WebCore::RenderLineEdit::RenderLineEdit): Removed the non-search field code.
              (WebCore::RenderLineEdit::updateFromElement): Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17674 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2a7db559
  17. 07 Nov, 2006 1 commit
    • darin's avatar
      WebCore: · c370e7e1
      darin authored
              Reviewed by Geoff.
      
              - moved loader code from Frame/FrameMac to FrameLoader
      
              * WebCore.exp:
              * WebCore.xcodeproj/project.pbxproj:
              * bindings/js/JSXSLTProcessor.h:
              * bindings/js/kjs_events.cpp:
              (KJS::JSLazyEventListener::parseCode):
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLDocument::putValueProperty):
              * bindings/js/kjs_navigator.cpp:
              (KJS::Navigator::getValueProperty):
              * bindings/js/kjs_proxy.cpp:
              (WebCore::KJSProxy::initScriptIfNeeded):
              * bindings/js/kjs_window.cpp:
              (KJS::Screen::Screen):
              (KJS::createNewWindow):
              (KJS::Window::getValueProperty):
              (KJS::Window::put):
              (KJS::Window::isSafeScript):
              (KJS::WindowFunc::callAsFunction):
              (KJS::ScheduledAction::execute):
              (KJS::Location::getValueProperty):
              (KJS::Location::put):
              (KJS::Location::toString):
              (KJS::LocationFunc::callAsFunction):
              (KJS::History::getValueProperty):
              (KJS::HistoryFunc::callAsFunction):
              * bindings/objc/DOM.mm:
              (+[DOMNode _nodeWith:WebCore::]):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::~FrameMac):
              (WebCore::FrameMac::setView):
              (WebCore::FrameMac::setStatusBarText):
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge close]):
              (-[WebCoreFrameBridge addData:]):
              (-[WebCoreFrameBridge createFrameViewWithNSView:marginWidth:marginHeight:]):
              (-[WebCoreFrameBridge reapplyStylesForDeviceType:]):
              (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]):
              (-[WebCoreFrameBridge baseURL]):
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge dragExitedWithDraggingInfo:]):
              (-[WebCoreFrameBridge canProvideDocumentSource]):
              (-[WebCoreFrameBridge receivedData:textEncodingName:]):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseContent):
              * dom/DOMImplementation.cpp:
              (WebCore::DOMImplementation::createDocument):
              (WebCore::DOMImplementation::createHTMLDocument):
              * dom/DOMImplementation.h:
              * dom/Document.cpp:
              (WebCore::Document::readyState):
              (WebCore::Document::updateTitle):
              (WebCore::Document::open):
              (WebCore::Document::close):
              (WebCore::Document::implicitClose):
              (WebCore::Document::processHttpEquiv):
              (WebCore::Document::referrer):
              (WebCore::Document::finishedParsing):
              * dom/ProcessingInstruction.cpp:
              (WebCore::ProcessingInstruction::checkStyleSheet):
              * dom/XMLTokenizer.cpp:
              (WebCore::XMLTokenizer::endElementNs):
              (WebCore::ignorableWhitespaceHandler):
              (WebCore::XMLTokenizer::notifyFinished):
              * editing/TextIterator.cpp:
              (WebCore::TextIterator::rangeFromLocationAndLength):
              * html/HTMLAnchorElement.cpp:
              (WebCore::HTMLAnchorElement::defaultEventHandler):
              * html/HTMLBaseElement.cpp:
              (WebCore::HTMLBaseElement::process):
              * html/HTMLDocument.cpp:
              (WebCore::HTMLDocument::lastModified):
              * html/HTMLFormElement.cpp:
              (WebCore::HTMLFormElement::formData):
              (WebCore::HTMLFormElement::submit):
              * html/HTMLFrameElementBase.cpp:
              (WebCore::HTMLFrameElementBase::isURLAllowed):
              (WebCore::HTMLFrameElementBase::openURL):
              (WebCore::HTMLFrameElementBase::willRemove):
              * html/HTMLInputElement.cpp:
              (WebCore::HTMLInputElement::setValueFromRenderer):
              * html/HTMLLinkElement.cpp:
              (WebCore::HTMLLinkElement::process):
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::handleError):
              (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
              * html/HTMLPreElement.idl:
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::parseMappedAttribute):
              (WebCore::HTMLScriptElement::insertedIntoDocument):
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptExecution):
              (WebCore::HTMLTokenizer::parseTag):
              (WebCore::HTMLTokenizer::write):
              (WebCore::HTMLTokenizer::stopParsing):
              (WebCore::HTMLTokenizer::timerFired):
              * kcanvas/device/quartz/KCanvasFilterQuartz.mm:
              (WebCore::KCanvasFilterQuartz::prepareFilter):
              * ksvg2/svg/SVGAElement.cpp:
              (WebCore::SVGAElement::defaultEventHandler):
              * ksvg2/svg/SVGElement.cpp:
              (WebCore::SVGElement::sendSVGLoadEventIfPossible):
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::setLoadInProgress):
              * loader/FrameLoader.cpp:
              (WebCore::FormSubmission::FormSubmission):
              (WebCore::ScheduledRedirection::):
              (WebCore::ScheduledRedirection::ScheduledRedirection):
              (WebCore::cancelAll):
              (WebCore::getString):
              (WebCore::isBackForwardLoadType):
              (WebCore::numRequests):
              (WebCore::FrameLoader::FrameLoader):
              (WebCore::FrameLoader::~FrameLoader):
              (WebCore::FrameLoader::createWindow):
              (WebCore::FrameLoader::changeLocation):
              (WebCore::FrameLoader::urlSelected):
              (WebCore::FrameLoader::requestFrame):
              (WebCore::FrameLoader::loadSubframe):
              (WebCore::FrameLoader::submitFormAgain):
              (WebCore::FrameLoader::submitForm):
              (WebCore::FrameLoader::stopLoading):
              (WebCore::FrameLoader::stop):
              (WebCore::FrameLoader::closeURL):
              (WebCore::FrameLoader::cancelRedirection):
              (WebCore::FrameLoader::iconURL):
              (WebCore::FrameLoader::didOpenURL):
              (WebCore::FrameLoader::didExplicitOpen):
              (WebCore::FrameLoader::replaceContentsWithScriptResult):
              (WebCore::FrameLoader::executeScript):
              (WebCore::FrameLoader::cancelAndClear):
              (WebCore::FrameLoader::clear):
              (WebCore::FrameLoader::receivedFirstData):
              (WebCore::FrameLoader::responseMIMEType):
              (WebCore::FrameLoader::setResponseMIMEType):
              (WebCore::FrameLoader::begin):
              (WebCore::FrameLoader::write):
              (WebCore::FrameLoader::end):
              (WebCore::FrameLoader::endIfNotLoading):
              (WebCore::FrameLoader::startIconLoader):
              (WebCore::FrameLoader::commitIconURLToIconDatabase):
              (WebCore::FrameLoader::gotoAnchor):
              (WebCore::FrameLoader::finishedParsing):
              (WebCore::FrameLoader::loadDone):
              (WebCore::FrameLoader::checkCompleted):
              (WebCore::FrameLoader::checkEmitLoadEvent):
              (WebCore::FrameLoader::baseURL):
              (WebCore::FrameLoader::baseTarget):
              (WebCore::FrameLoader::completeURL):
              (WebCore::FrameLoader::scheduleRedirection):
              (WebCore::FrameLoader::scheduleLocationChange):
              (WebCore::FrameLoader::scheduleRefresh):
              (WebCore::FrameLoader::isScheduledLocationChangePending):
              (WebCore::FrameLoader::scheduleHistoryNavigation):
              (WebCore::FrameLoader::redirectionTimerFired):
              (WebCore::FrameLoader::encoding):
              (WebCore::FrameLoader::requestObject):
              (WebCore::FrameLoader::shouldUsePlugin):
              (WebCore::FrameLoader::loadPlugin):
              (WebCore::FrameLoader::clearRecordedFormValues):
              (WebCore::FrameLoader::recordFormValue):
              (WebCore::FrameLoader::parentCompleted):
              (WebCore::FrameLoader::outgoingReferrer):
              (WebCore::FrameLoader::lastModified):
              (WebCore::FrameLoader::opener):
              (WebCore::FrameLoader::setOpener):
              (WebCore::FrameLoader::openedByJavaScript):
              (WebCore::FrameLoader::setOpenedByJavaScript):
              (WebCore::FrameLoader::handleFallbackContent):
              (WebCore::FrameLoader::provisionalLoadStarted):
              (WebCore::FrameLoader::userGestureHint):
              (WebCore::FrameLoader::didNotOpenURL):
              (WebCore::FrameLoader::resetMultipleFormSubmissionProtection):
              (WebCore::FrameLoader::setEncoding):
              (WebCore::FrameLoader::addData):
              (WebCore::FrameLoader::canCachePage):
              (WebCore::FrameLoader::updatePolicyBaseURL):
              (WebCore::FrameLoader::setPolicyBaseURL):
              (WebCore::FrameLoader::scrollToAnchor):
              (WebCore::FrameLoader::isComplete):
              (WebCore::FrameLoader::isLoadingMainResource):
              (WebCore::FrameLoader::url):
              (WebCore::FrameLoader::startRedirectionTimer):
              (WebCore::FrameLoader::stopRedirectionTimer):
              (WebCore::FrameLoader::updateBaseURLForEmptyDocument):
              (WebCore::FrameLoader::completed):
              (WebCore::FrameLoader::started):
              (WebCore::FrameLoader::containsPlugins):
              (WebCore::FrameLoader::prepareForLoadStart):
              (WebCore::FrameLoader::setupForReplace):
              (WebCore::FrameLoader::setupForReplaceByMIMEType):
              (WebCore::FrameLoader::finalSetupForReplace):
              (WebCore::FrameLoader::load):
              (WebCore::FrameLoader::canTarget):
              (WebCore::FrameLoader::stopLoadingPlugIns):
              (WebCore::FrameLoader::stopLoadingSubresources):
              (WebCore::FrameLoader::stopLoadingSubframes):
              (WebCore::FrameLoader::stopAllLoaders):
              (WebCore::FrameLoader::cancelMainResourceLoad):
              (WebCore::FrameLoader::cancelPendingArchiveLoad):
              (WebCore::FrameLoader::activeDocumentLoader):
              (WebCore::FrameLoader::addPlugInStreamLoader):
              (WebCore::FrameLoader::removePlugInStreamLoader):
              (WebCore::FrameLoader::hasMainResourceLoader):
              (WebCore::FrameLoader::isLoadingSubresources):
              (WebCore::FrameLoader::isLoadingPlugIns):
              (WebCore::FrameLoader::isLoading):
              (WebCore::FrameLoader::addSubresourceLoader):
              (WebCore::FrameLoader::removeSubresourceLoader):
              (WebCore::FrameLoader::releaseMainResourceLoader):
              (WebCore::FrameLoader::setDocumentLoader):
              (WebCore::FrameLoader::documentLoader):
              (WebCore::FrameLoader::setPolicyDocumentLoader):
              (WebCore::FrameLoader::provisionalDocumentLoader):
              (WebCore::FrameLoader::setProvisionalDocumentLoader):
              (WebCore::FrameLoader::state):
              (WebCore::FrameLoader::timeOfLastCompletedLoad):
              (WebCore::FrameLoader::setState):
              (WebCore::FrameLoader::clearProvisionalLoad):
              (WebCore::FrameLoader::markLoadComplete):
              (WebCore::FrameLoader::commitProvisionalLoad):
              (WebCore::FrameLoader::privateBrowsingEnabled):
              (WebCore::FrameLoader::clientRedirectCancelledOrFinished):
              (WebCore::FrameLoader::clientRedirected):
              (WebCore::FrameLoader::shouldReload):
              (WebCore::FrameLoader::closeOldDataSources):
              (WebCore::FrameLoader::open):
              (WebCore::FrameLoader::isStopping):
              (WebCore::FrameLoader::finishedLoading):
              (WebCore::FrameLoader::URL):
              (WebCore::FrameLoader::isArchiveLoadPending):
              (WebCore::FrameLoader::isHostedByObjectElement):
              (WebCore::FrameLoader::isLoadingMainFrame):
              (WebCore::FrameLoader::canShowMIMEType):
              (WebCore::FrameLoader::representationExistsForURLScheme):
              (WebCore::FrameLoader::generatedMIMETypeForURLScheme):
              (WebCore::FrameLoader::cancelContentPolicyCheck):
              (WebCore::FrameLoader::didReceiveServerRedirectForProvisionalLoadForFrame):
              (WebCore::FrameLoader::finishedLoadingDocument):
              (WebCore::FrameLoader::isReplacing):
              (WebCore::FrameLoader::setReplacing):
              (WebCore::FrameLoader::revertToProvisional):
              (WebCore::FrameLoader::subframeIsLoading):
              (WebCore::FrameLoader::willChangeTitle):
              (WebCore::FrameLoader::loadType):
              (WebCore::FrameLoader::stopPolicyCheck):
              (WebCore::FrameLoader::continueAfterContentPolicy):
              (WebCore::FrameLoader::continueAfterWillSubmitForm):
              (WebCore::FrameLoader::didFirstLayout):
              (WebCore::FrameLoader::frameLoadCompleted):
              (WebCore::FrameLoader::firstLayoutDone):
              (WebCore::FrameLoader::isQuickRedirectComing):
              (WebCore::FrameLoader::closeDocument):
              (WebCore::FrameLoader::detachChildren):
              (WebCore::FrameLoader::checkLoadComplete):
              (WebCore::FrameLoader::numPendingOrLoadingRequests):
              (WebCore::FrameLoader::setClient):
              (WebCore::FrameLoader::client):
              (WebCore::FrameLoader::userAgent):
              (WebCore::FrameLoader::createEmptyDocument):
              (WebCore::FrameLoader::tokenizerProcessedData):
              (WebCore::FrameLoader::didTellBridgeAboutLoad):
              (WebCore::FrameLoader::haveToldBridgeAboutLoad):
              (WebCore::FrameLoader::handledOnloadEvents):
              (WebCore::FrameLoader::frameDetached):
              (WebCore::FrameLoader::setTitle):
              (WebCore::FrameLoaderClient::~FrameLoaderClient):
              * loader/FrameLoader.h:
              (WebCore::):
              * loader/FrameLoaderClient.h:
              * loader/PluginDocument.cpp:
              (WebCore::PluginTokenizer::createDocumentStructure):
              (WebCore::PluginTokenizer::writeRawData):
              * loader/ResourceLoader.h:
              * loader/TextResourceDecoder.cpp:
              (WebCore::TextResourceDecoder::checkForHeadCharset):
              * loader/icon/IconLoader.cpp:
              (WebCore::IconLoader::startLoading):
              (WebCore::IconLoader::finishLoading):
              * loader/loader.cpp:
              (WebCore::Loader::didReceiveResponse):
              * loader/mac/DocumentLoaderMac.mm:
              (WebCore::DocumentLoader::~DocumentLoader):
              (WebCore::DocumentLoader::stopLoading):
              (WebCore::DocumentLoader::finishedLoading):
              (WebCore::DocumentLoader::setupForReplaceByMIMEType):
              (WebCore::DocumentLoader::setPrimaryLoadComplete):
              * loader/mac/FrameLoaderMac.mm:
              (WebCore::FrameLoader::load):
              (WebCore::FrameLoader::startLoading):
              (WebCore::FrameLoader::cancelMainResourceLoad):
              (WebCore::FrameLoader::receivedMainResourceError):
              (WebCore::FrameLoader::continueFragmentScrollAfterNavigationPolicy):
              (WebCore::FrameLoader::commitProvisionalLoad):
              (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
              (WebCore::FrameLoader::checkLoadCompleteForThisFrame):
              (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
              (WebCore::FrameLoader::detachFromParent):
              (WebCore::FrameLoader::addExtraFieldsToRequest):
              (WebCore::FrameLoader::loadResourceSynchronously):
              (WebCore::FrameLoader::createFrame):
              (WebCore::FrameLoader::objectContentType):
              (WebCore::nsArray):
              (WebCore::FrameLoader::createPlugin):
              (WebCore::FrameLoader::redirectDataToPlugin):
              (WebCore::FrameLoader::createJavaAppletWidget):
              (WebCore::FrameLoader::partClearedInBegin):
              (WebCore::FrameLoader::saveDocumentState):
              (WebCore::FrameLoader::restoreDocumentState):
              (WebCore::FrameLoader::overrideMediaType):
              (WebCore::FrameLoader::mainResourceData):
              (WebCore::FrameLoader::canGoBackOrForward):
              (WebCore::FrameLoader::originalRequestURL):
              (WebCore::FrameLoader::getHistoryLength):
              (WebCore::FrameLoader::goBackOrForward):
              (WebCore::FrameLoader::historyURL):
              (WebCore::FrameLoader::didFinishLoad):
              * loader/mac/LoaderFunctionsMac.mm:
              (WebCore::ServeSynchronousRequest):
              (WebCore::CheckCacheObjectStatus):
              * loader/mac/ResourceLoaderMac.mm:
              (WebCore::ResourceLoader::cancel):
              * loader/mac/SubresourceLoaderMac.mm:
              (WebCore::SubresourceLoader::create):
              * loader/qt/FrameLoaderQt.cpp: Added.
              (WebCore::FrameLoader::submitForm):
              (WebCore::FrameLoader::urlSelected):
              (WebCore::FrameLoader::setTitle):
              (WebCore::FrameLoader::createFrame):
              (WebCore::FrameLoader::objectContentType):
              (WebCore::FrameLoader::createPlugin):
              (WebCore::FrameLoader::createJavaAppletWidget):
              (WebCore::FrameLoader::originalRequestURL):
              * page/DOMWindow.cpp:
              (WebCore::DOMWindow::document):
              * page/Frame.cpp:
              (WebCore::Frame::~Frame):
              (WebCore::Frame::reparseConfiguration):
              (WebCore::Frame::shouldDragAutoNode):
              (WebCore::Frame::prepareForUserAction):
              (WebCore::FramePrivate::FramePrivate):
              (WebCore::FramePrivate::~FramePrivate):
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              (WebCore::FrameView::mediaType):
              * page/FrameView.h:
              * page/PageState.cpp:
              (WebCore::PageState::PageState):
              (WebCore::PageState::restoreJavaScriptState):
              * platform/mac/CookieJar.mm:
              (WebCore::setCookies):
              * platform/mac/TextCodecMac.cpp:
              * platform/mac/WebFontCache.mm:
              (+[WebFontCache fontWithFamily:traits:size:]):
              * platform/network/cf/ResourceHandleCFNet.cpp:
              (WebCore::ResourceHandle::start):
              * platform/network/mac/ResourceHandleMac.mm:
              (WebCore::ResourceHandle::start):
              * platform/qt/FrameQt.cpp:
              * platform/qt/FrameQt.h:
              * rendering/RenderApplet.cpp:
              (WebCore::RenderApplet::createWidgetIfNecessary):
              * rendering/RenderBlock.h:
              * rendering/RenderPartObject.cpp:
              (WebCore::isURLAllowed):
              (WebCore::RenderPartObject::updateWidget):
              * xml/DOMParser.cpp:
              (WebCore::DOMParser::parseFromString):
              * xml/XSLTProcessor.cpp:
              (WebCore::XSLTProcessor::createDocumentFromSource):
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::getResponseXML):
      
      WebKit:
      
              Reviewed by Geoff.
      
              - udpated for changes to move from Frame/FrameMac to FrameLoader
      
              * DefaultDelegates/WebDefaultContextMenuDelegate.m:
              (-[WebDefaultUIDelegate openNewWindowWithURL:element:]):
              * Misc/WebNSAttributedStringExtras.m:
              (+[NSAttributedString _web_attributedStringFromRange:]):
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView requestWithURLCString:]):
              * Plugins/WebNetscapePluginEmbeddedView.m:
              (-[WebNetscapePluginEmbeddedView didStart]):
              * Plugins/WebNetscapePluginStream.mm:
              * Plugins/WebPluginController.mm:
              (-[WebPluginController pluginView:receivedResponse:]):
              * WebCoreSupport/WebFrameBridge.mm:
              (-[WebFrameBridge viewForPluginWithURL:attributeNames:attributeValues:MIMEType:DOMElement:loadManually:]):
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::provisionalLoadStarted):
              * WebView/WebFrame.mm:
              (-[WebFrame _canCachePage]):
              (+[WebFrame _timeOfLastCompletedLoad]):
              (-[WebFrame _loadItem:withLoadType:]):
              (-[WebFrame _reloadForPluginChanges]):
              (-[WebFrame stopLoading]):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17652 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c370e7e1
  18. 05 Nov, 2006 1 commit
    • darin's avatar
      Reviewed by Geoff. · 647be15c
      darin authored
              - more preparation for splitting up Frame into sub-pieces
              - removed unnecessary includes from Frame.h
      
              * page/Frame.h: Removed unneeded includes and forward declarations.
              Added additional forward declarations. Removed the constant
              NoXPosForVerticalArrowNavigation, now moved inside SelectionController.
              Created sections of functions to be moved into Chrome, Editor,
              EventHandler, FrameLoader, SelectionController, and the Platform
              directory, as well as marking one function for deletion.
      
              * page/FramePrivate.h: Removed the definition of the constructor and
              destructor and removed unnecessary includes.
      
              * page/FrameView.h: Removed unneeded forward declarations and friend
              declarations. Created a section of functions and data to be moved into
              EventHandler.
      
              * bridge/mac/FrameMac.h: Removed unneeded forward declarations.
              Created sections of functions and data to be moved into Chrome,
              Editor, EventHandler, FrameLoader, and the Platform directory.
      
              * bridge/mac/WebCoreFrameBridge.h: Removed obsolete comment.
              Removed unused methods areScrollbarsVisible,
              nextValidKeyViewOutsideWebFrameViews, and fileWrapperForURL:.
      
              * page/Frame.cpp:
              (WebCore::Frame::begin): Added an overload, so Frame.h doesn't have
              to include KURL.h just for the KURL default constructor.
              (WebCore::FramePrivate::FramePrivate): Moved here from FramePrivate.h.
              (WebCore::FramePrivate::~FramePrivate): Ditto.
      
              * page/FrameView.cpp: Removed unused scrollbarMoved and scrollingSelf
              booleans, scrollbarMoved and cleared funcitons.
              (WebCore::FrameView::clear): Moved the code from the cleared
              function in here.
              (WebCore::FrameView::scrollTo): Removed code to set scrollingSelf.
      
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac): Updated
              for changes to header.
      
              * editing/SelectionController.cpp:
              (WebCore::SelectionController::setSelection):
              (WebCore::SelectionController::xPosForVerticalArrowNavigation):
              Moved NoXPosForVerticalArrowNavigation into this file.
      
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_html.cpp:
              * bindings/js/kjs_window.cpp:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreFrameBridge.mm:
              * css/cssstyleselector.cpp:
              * dom/Document.cpp:
              * dom/Element.cpp:
              * dom/EventTargetNode.cpp:
              * dom/MouseRelatedEvent.cpp:
              * dom/XMLTokenizer.cpp:
              * html/HTMLBaseElement.cpp:
              * html/HTMLDocument.cpp:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFrameElementBase.cpp:
              * html/HTMLGenericFormElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLTokenizer.cpp:
              * loader/mac/FrameLoaderMac.mm:
              * page/PageState.cpp:
              * rendering/RenderApplet.cpp:
              * rendering/RenderBlock.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderObject.cpp:
              * rendering/RenderPartObject.cpp:
              * rendering/RenderTreeAsText.cpp:
              * xml/XSLTProcessor.cpp:
              Added includes as needed to keep compiling, since there are fewer
              includes in Frame.h.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17604 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      647be15c
  19. 29 Oct, 2006 1 commit
    • darin's avatar
      JavaScriptCore: · e4d34c61
      darin authored
              Reviewed by Maciej.
      
              - renamed PassRefPtr::release to releaseRef to make it clearer that
                it's the counterpart of adoptRef, and to make it harder to confuse
                it with the safer-to-use RefPtr::release
      
              * kjs/identifier.cpp:
              (KJS::CStringTranslator::translate):
              (KJS::UCharBufferTranslator::translate):
              * kjs/ustring.cpp:
              (KJS::UString::Rep::create):
              * wtf/PassRefPtr.h:
              (WTF::PassRefPtr::PassRefPtr):
              (WTF::PassRefPtr::~PassRefPtr):
              (WTF::PassRefPtr::get):
              (WTF::PassRefPtr::releaseRef):
              (WTF::PassRefPtr::operator->):
              (WTF::PassRefPtr::operator=):
              (WTF::adoptRef):
              (WTF::static_pointer_cast):
              (WTF::const_pointer_cast):
              * wtf/RefPtr.h:
              (WTF::RefPtr::RefPtr):
              (WTF::RefPtr::operator=):
      
      WebCore:
      
              Reviewed by Maciej.
      
              - eliminated the use of Objective-C for the policy decider
                machinery, obviating the need for WebPolicyDecider,
                WebCoreFrameLoaderAsDelegate, and
                WebCoreMainResourceLoaderAsPolicyDelegate
      
              - grouped the state related to policy decisions into a PolicyCheck
                class to simplify the FrameLoader logic
      
              - removed six methods from the bridge, reducing FrameLoader's use of
                the bridge to a single method
      
              - changed form state to always use HashMap instead of NSDictionary
      
              - moved the defersLoading flag from WebView to WebCore::Page
                and changed code to consistently call it defersLoading rather
                than defersCallbacks
      
              - updated for rename of PassRefPtr::release to releaseRef
              - replaced all uses of __APPLE__ with appropriate PLATFORM defines
              - cleaned up kjs_binding.h a bit
              - cleaned up FrameMac.h a bit
      
              * loader/mac/WebPolicyDecider.h: Removed.
              * loader/mac/WebPolicyDecider.mm: Removed.
              * WebCore.xcodeproj/project.pbxproj: Updated for removal.
      
              * WebCore.exp:
              * bindings/js/kjs_binding.cpp:
              (KJS::ScriptInterpreter::ScriptInterpreter):
              (KJS::ScriptInterpreter::wasRunByUserGesture):
              * bindings/js/kjs_binding.h:
              (KJS::ScriptInterpreter::setCurrentEvent):
              (KJS::ScriptInterpreter::setInlineCode):
              (KJS::ScriptInterpreter::setProcessingTimerCallback):
              (KJS::ScriptInterpreter::getCurrentEvent):
              (KJS::cacheDOMObject):
              (KJS::DOMExceptionTranslator::DOMExceptionTranslator):
              * bridge/AXObjectCache.h:
              * bridge/mac/BrowserExtensionMac.mm:
              (WebCore::BrowserExtensionMac::createNewWindow):
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::loadRequest):
              (WebCore::FrameMac::submitForm):
              (WebCore::FrameMac::urlSelected):
              (WebCore::FrameMac::userAgent):
              (WebCore::FrameMac::passMouseDownEventToWidget):
              (WebCore::FrameMac::handleMouseMoveEvent):
              * bridge/mac/PageMac.mm:
              (WebCore::Page::Page):
              * bridge/mac/WebCoreEditCommand.mm:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge dragOperationForDraggingInfo:]):
              (-[WebCoreFrameBridge syncLoadResourceWithMethod:URL:customHeaders:postData:finalURL:responseHeaders:statusCode:]):
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::):
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSPrimitiveValue.cpp:
              (WebCore::CSSPrimitiveValue::CSSPrimitiveValue):
              (WebCore::CSSPrimitiveValue::cleanup):
              (WebCore::CSSPrimitiveValue::cssText):
              * css/CSSPrimitiveValue.h:
              (WebCore::CSSPrimitiveValue::):
              * css/CSSValueList.cpp:
              (WebCore::CSSValueList::append):
              * css/cssparser.cpp:
              (WebCore::CSSParser::parseValue):
              * css/cssparser.h:
              * css/cssstyleselector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * dom/Document.cpp:
              (WebCore::Document::Document):
              (WebCore::Document::updateSelection):
              (WebCore::Document::implicitClose):
              (WebCore::Document::setFocusNode):
              * dom/Document.h:
              * editing/ReplaceSelectionCommand.h:
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::handleResidualStyleCloseTagAcrossBlocks):
              * loader/mac/FrameLoader.h:
              (WebCore::PolicyCheck::request):
              * loader/mac/FrameLoader.mm:
              (WebCore::FrameLoader::~FrameLoader):
              (WebCore::FrameLoader::safeLoad):
              (WebCore::FrameLoader::load):
              (WebCore::FrameLoader::open):
              (WebCore::FrameLoader::stopLoading):
              (WebCore::setAllDefersLoading):
              (WebCore::FrameLoader::setDefersLoading):
              (WebCore::FrameLoader::willSendRequest):
              (WebCore::FrameLoader::receivedMainResourceError):
              (WebCore::FrameLoader::callContinueFragmentScrollAfterNavigationPolicy):
              (WebCore::FrameLoader::commitProvisionalLoad):
              (WebCore::FrameLoader::checkNavigationPolicy):
              (WebCore::FrameLoader::checkContentPolicy):
              (WebCore::FrameLoader::cancelContentPolicyCheck):
              (WebCore::FrameLoader::stopPolicyCheck):
              (WebCore::FrameLoader::checkNewWindowPolicy):
              (WebCore::FrameLoader::continueAfterNewWindowPolicy):
              (WebCore::FrameLoader::continueAfterNavigationPolicy):
              (WebCore::FrameLoader::continueAfterContentPolicy):
              (WebCore::FrameLoader::continueAfterWillSubmitForm):
              (WebCore::FrameLoader::callContinueLoadAfterNavigationPolicy):
              (WebCore::FrameLoader::continueLoadAfterNavigationPolicy):
              (WebCore::FrameLoader::closeDocument):
              (WebCore::FrameLoader::transitionToCommitted):
              (WebCore::FrameLoader::callContinueLoadAfterNewWindowPolicy):
              (WebCore::FrameLoader::continueLoadAfterNewWindowPolicy):
              (WebCore::FrameLoader::post):
              (WebCore::FrameLoader::detachFromParent):
              (WebCore::FrameLoader::addExtraFieldsToRequest):
              (WebCore::PolicyCheck::PolicyCheck):
              (WebCore::PolicyCheck::clear):
              (WebCore::PolicyCheck::set):
              (WebCore::PolicyCheck::call):
              (WebCore::PolicyCheck::dropRequest):
              (WebCore::FrameLoaderClient::~FrameLoaderClient):
              * loader/mac/WebFormState.h:
              * loader/mac/WebFormState.mm:
              * loader/mac/WebFrameLoaderClient.h:
              * loader/mac/WebLoader.h:
              (WebCore::WebResourceLoader::defersLoading):
              * loader/mac/WebLoader.mm:
              (WebCore::WebResourceLoader::WebResourceLoader):
              (WebCore::WebResourceLoader::load):
              (WebCore::WebResourceLoader::setDefersLoading):
              * loader/mac/WebMainResourceLoader.h:
              * loader/mac/WebMainResourceLoader.mm:
              (WebCore::MainResourceLoader::MainResourceLoader):
              (WebCore::MainResourceLoader::releaseDelegate):
              (WebCore::MainResourceLoader::didCancel):
              (WebCore::MainResourceLoader::callContinueAfterNavigationPolicy):
              (WebCore::MainResourceLoader::continueAfterNavigationPolicy):
              (WebCore::MainResourceLoader::willSendRequest):
              (WebCore::MainResourceLoader::callContinueAfterContentPolicy):
              (WebCore::MainResourceLoader::continueAfterContentPolicy):
              (WebCore::MainResourceLoader::didReceiveResponse):
              (WebCore::MainResourceLoader::didReceiveData):
              (WebCore::MainResourceLoader::didFinishLoading):
              (WebCore::MainResourceLoader::didFail):
              (WebCore::MainResourceLoader::loadNow):
              (WebCore::MainResourceLoader::load):
              (WebCore::MainResourceLoader::setDefersLoading):
              * page/Frame.cpp:
              (WebCore::Frame::paint):
              * page/FrameView.cpp:
              (WebCore::FrameView::layout):
              * page/FrameView.h:
              * page/Page.cpp:
              (WebCore::Page::setDefersLoading):
              * page/Page.h:
              (WebCore::Page::defersLoading):
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.h:
              * platform/FontFallbackList.h:
              * platform/PlatformKeyboardEvent.h:
              * platform/PlatformMouseEvent.h:
              * platform/PlatformWheelEvent.h:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::setDragImage):
              (WebCore::ClipboardMac::dragNSImage):
              (WebCore::ClipboardMac::sourceOperation):
              (WebCore::ClipboardMac::destinationOperation):
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::setStyle):
              * rendering/break_lines.cpp:
              (WebCore::nextBreakablePosition):
      
      WebKit:
      
              Reviewed by Maciej.
      
              - eliminated the use of Objective-C for the policy decider
                machinery, obviating the need for WebPolicyDeciderMac
      
              - moved the defersLoading flag from WebView to WebCore::Page
      
              - removed unused copies of four methods that in the frame bridge;
                the actually-used copies are in the page bridge
      
              - updated for rename of PassRefPtr::release to releaseRef
      
              * WebView/WebPolicyDeciderMac.h: Removed.
              * WebView/WebPolicyDeciderMac.m: Removed.
              * WebKit.xcodeproj/project.pbxproj: Updated for removal.
      
              * Plugins/WebBaseNetscapePluginView.mm:
              (-[WebBaseNetscapePluginView sendEvent:]):
              * Plugins/WebNetscapePluginStream.mm:
              * WebCoreSupport/WebFrameBridge.mm:
              * WebCoreSupport/WebFrameLoaderClient.h:
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (getWebView):
              (WebFrameLoaderClient::WebFrameLoaderClient):
              (WebFrameLoaderClient::willCloseDocument):
              (WebFrameLoaderClient::dispatchDecidePolicyForMIMEType):
              (WebFrameLoaderClient::dispatchDecidePolicyForNewWindowAction):
              (WebFrameLoaderClient::dispatchDecidePolicyForNavigationAction):
              (WebFrameLoaderClient::cancelPolicyCheck):
              (WebFrameLoaderClient::dispatchWillSubmitForm):
              (WebFrameLoaderClient::setDefersLoading):
              (WebFrameLoaderClient::setTitle):
              (WebFrameLoaderClient::deliverArchivedResourcesAfterDelay):
              (WebFrameLoaderClient::deliverArchivedResources):
              (WebFrameLoaderClient::setUpPolicyListener):
              (WebFrameLoaderClient::receivedPolicyDecison):
              (WebFrameLoaderClient::userAgent):
              (-[WebFramePolicyListener initWithWebCoreFrame:]):
              (-[WebFramePolicyListener invalidate]):
              (-[WebFramePolicyListener dealloc]):
              (-[WebFramePolicyListener finalize]):
              (-[WebFramePolicyListener receivedPolicyDecision:]):
              (-[WebFramePolicyListener ignore]):
              (-[WebFramePolicyListener download]):
              (-[WebFramePolicyListener use]):
              (-[WebFramePolicyListener continue]):
              * WebCoreSupport/WebPageBridge.mm:
              (-[WebPageBridge runModal]):
              * WebView/WebArchiver.m:
              (+[WebArchiver archiveSelectionInFrame:]):
              * WebView/WebFormDelegate.h:
              * WebView/WebFormDelegate.m:
              (+[WebFormDelegate _sharedWebFormDelegate]):
              (-[WebFormDelegate textFieldDidBeginEditing:inFrame:]):
              (-[WebFormDelegate textFieldDidEndEditing:inFrame:]):
              (-[WebFormDelegate textDidChangeInTextField:inFrame:]):
              (-[WebFormDelegate textDidChangeInTextArea:inFrame:]):
              (-[WebFormDelegate frame:sourceFrame:willSubmitForm:withValues:submissionListener:]):
              * WebView/WebFrame.mm:
              (-[WebFrame _loadURL:referrer:intoChild:]):
              (-[WebFrame _isFrameSet]):
              * WebView/WebFrameInternal.h:
              * WebView/WebFrameView.mm:
              (-[WebFrameView _shouldDrawBorder]):
              * WebView/WebHTMLView.m:
              (-[NSArray knowsPageRange:]):
              * WebView/WebView.mm:
              (-[WebView _formDelegate]):
              * WebView/WebViewInternal.h:
              * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e4d34c61
  20. 13 Oct, 2006 1 commit
    • ggaren's avatar
      LayoutTests: · 31614e2f
      ggaren authored
              Tests for accessing renderer-dependent properties from a javascript: URL.
              
              * fast/frames/frame-js-url-clientWidth-expected.txt: Added.
              * fast/frames/frame-js-url-clientWidth.html: Added.
              * fast/frames/iframe-js-url-clientWidth-expected.txt: Added.
              * fast/frames/iframe-js-url-clientWidth.html: Added.
      
      WebCore:
      
              Reviewed by Darin, John.
      
              - Merged more frame and iframe code
              - Fixed a bug where iframes returned incorrect values for renderer-dependent 
              properties during javascript: loads because they didn't have renderers at 
              load time
              
              PLT insists this is a small performance win. Don't believe its lies.
      
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLElement::frameGetter): Renamed frameWidth and frameHeight to
              width and height, for consistency with the rest of the DOM.
              * dom/ContainerNode.cpp:
              (WebCore::ContainerNode::queuePostAttachCallback): Added a post-attach callback
              queue that gets drained after the render tree is fully constructed. Currently,
              this is only used for frame loading.
              (WebCore::ContainerNode::attach):
              * dom/ContainerNode.h:
              * html/HTMLFrameElement.cpp:
              (WebCore::HTMLFrameElement::insertedIntoDocument): Removed frame loading from
              attach() because loading iframes during attach() causes a crash. 
              Moved frame loading logic into insertedIntoDocument(). That's a more 
              logical place for it because  document insertion is what 
              triggers frame loading. Made frame loading a post-attach callback, instead
              of an immediate action, to fix the incorrect values bug.
              (WebCore::HTMLFrameElement::attach): Added setWidget call that used to be
              in HTMLIFrameElement::attach. IFRAME requires this call. FRAME will soon 
              require this call, once I remove the call from WebKit.
              (WebCore::HTMLFrameElement::setLocation):
              (WebCore::HTMLFrameElement::width):
              (WebCore::HTMLFrameElement::height):
              * html/HTMLFrameElement.h: Made openURL non-virtual to avoid the unnecessary
              killing of puppies.
              * html/HTMLIFrameElement.cpp: Merged code into HTMLFrameElement
              (WebCore::HTMLIFrameElement::rendererIsNeeded):
              (WebCore::HTMLIFrameElement::createRenderer):
              (WebCore::HTMLIFrameElement::insertedIntoDocument):
              (WebCore::HTMLIFrameElement::removedFromDocument):
              (WebCore::HTMLIFrameElement::attach):
              * page/FrameView.h: Removed unused method.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17040 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      31614e2f
  21. 12 Oct, 2006 1 commit
  22. 06 Oct, 2006 3 commits
  23. 05 Oct, 2006 1 commit
    • ggaren's avatar
      Reviewed by Darin. · cd2cd536
      ggaren authored
              
              Fixed <rdar://problem/4766987>
              
              - renamed ScrollBar to Scrollbar and scroll bar to scrollbar in every case
              except for file names.
              
              - fixed RenderLayer to properly tear down scrollbars, removing them from
              their parents.
      
              * bindings/js/kjs_window.cpp:
              (KJS::showModalDialog):
              (KJS::setWindowFeature):
              (KJS::parseWindowFeatures):
              * bridge/BrowserExtension.h:
              * dom/Document.cpp:
              (WebCore::Document::setInPageCache):
              * html/HTMLFrameElement.cpp:
              (WebCore::HTMLFrameElement::init):
              (WebCore::HTMLFrameElement::parseMappedAttribute):
              * html/HTMLFrameElement.h:
              (WebCore::HTMLFrameElement::scrollingMode):
              * page/Frame.cpp:
              (WebCore::Frame::finishedParsing):
              (WebCore::Frame::scrollbarsVisible):
              * page/FrameView.cpp:
              (WebCore::FrameViewPrivate::FrameViewPrivate):
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::~FrameView):
              (WebCore::FrameView::resetScrollbars):
              (WebCore::FrameView::clear):
              (WebCore::FrameView::initScrollbars):
              (WebCore::FrameView::applyOverflowToViewport):
              (WebCore::FrameView::layout):
              (WebCore::FrameView::handleMousePressEvent):
              (WebCore::selectCursor):
              (WebCore::FrameView::handleMouseMoveEvent):
              (WebCore::FrameView::setScrollbarsMode):
              (WebCore::FrameView::setVScrollbarMode):
              (WebCore::FrameView::setHScrollbarMode):
              (WebCore::FrameView::restoreScrollbar):
              (WebCore::FrameView::dispatchMouseEvent):
              (WebCore::FrameView::scrollbarMoved):
              * page/FrameView.h:
              * page/MouseEventWithHitTestResults.cpp:
              (WebCore::MouseEventWithHitTestResults::MouseEventWithHitTestResults):
              * page/MouseEventWithHitTestResults.h:
              (WebCore::MouseEventWithHitTestResults::scrollbar):
              * platform/ScrollBar.cpp:
              (WebCore::Scrollbar::Scrollbar):
              (WebCore::Scrollbar::setValue):
              (WebCore::Scrollbar::setProportion):
              (WebCore::Scrollbar::setSteps):
              (WebCore::Scrollbar::scroll):
              * platform/ScrollBar.h:
              (WebCore::):
              (WebCore::ScrollbarClient::~ScrollbarClient):
              (WebCore::Scrollbar::~Scrollbar):
              (WebCore::Scrollbar::orientation):
              (WebCore::Scrollbar::controlSize):
              (WebCore::Scrollbar::hasPlatformScrollbars):
              (WebCore::Scrollbar::client):
              * platform/ScrollBarMode.h:
              (WebCore::):
              * platform/ScrollView.h:
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::isPointInScrollbar):
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::RenderLayer):
              (WebCore::RenderLayer::~RenderLayer):
              (WebCore::RenderLayer::scrollToOffset):
              (WebCore::RenderLayer::horizontaScrollbarWidget):
              (WebCore::RenderLayer::verticalScrollbarWidget):
              (WebCore::RenderLayer::valueChanged):
              (WebCore::RenderLayer::createScrollbar):
              (WebCore::RenderLayer::destroyScrollbar):
              (WebCore::RenderLayer::setHasHorizontalScrollbar):
              (WebCore::RenderLayer::setHasVerticalScrollbar):
              (WebCore::RenderLayer::verticalScrollbarWidth):
              (WebCore::RenderLayer::horizontalScrollbarHeight):
              (WebCore::RenderLayer::updateScrollInfoAfterLayout):
              * rendering/RenderLayer.h:
              (WebCore::RenderLayer::horizontalScrollbar):
              (WebCore::RenderLayer::verticalScrollbar):
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::~RenderListBox):
              (WebCore::RenderListBox::calcMinMaxWidth):
              (WebCore::RenderListBox::isPointInScrollbar):
              (WebCore::RenderListBox::optionAtPoint):
              (WebCore::RenderListBox::valueChanged):
              * rendering/RenderListBox.h:
              * rendering/RenderObject.h:
              (WebCore::RenderObject::NodeInfo::scrollbar):
              (WebCore::RenderObject::NodeInfo::setScrollbar):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16815 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd2cd536
  24. 03 Oct, 2006 2 commits
  25. 02 Oct, 2006 1 commit
  26. 01 Oct, 2006 2 commits
  27. 30 Sep, 2006 1 commit
  28. 29 Sep, 2006 1 commit
    • adele's avatar
      Reviewed by Adam. · f989049f
      adele authored
              Initial implementation of engine-based list box control.
      
              * WebCore.xcodeproj/project.pbxproj: Added RenderListBox.h and RenderListBox.cpp
      
              * bridge/mac/FrameMac.h: Added _mouseDownMayStartAutoscroll.
              * bridge/mac/FrameMac.mm: Updated autoscroll code to use renderers instead of layers, so any renderer that implements autoscroll will work.
              (WebCore::FrameMac::FrameMac):
              (WebCore::FrameMac::handleMousePressEvent):
              (WebCore::FrameMac::handleMouseMoveEvent):
              (WebCore::FrameMac::mouseDown):
      
              * page/Frame.cpp:
              (WebCore::Frame::handleMouseMoveEvent):
              (WebCore::Frame::scrollOverflow): Don't scroll list box here- this would cause arrow keys to scroll instead of select.
              (WebCore::Frame::handleAutoscroll): Updated to use a renderer instead of a layer when setting up autoscroll.
              (WebCore::Frame::autoscrollTimerFired): ditto.
              (WebCore::Frame::stopAutoscrollTimer): ditto.
              (WebCore::Frame::passWidgetMouseDownEventToWidget): Updated to check for list box's scroll bar.
              * page/Frame.h:
              * page/FramePrivate.h: (WebCore::FramePrivate::FramePrivate): Updated to use renderer unstead of layer for autoscroll.
      
              * page/FrameView.cpp: Keep track of current mouse position so this can be used for list box autoscroll.
              (WebCore::FrameViewPrivate::reset):
              (WebCore::FrameView::currentMousePosition):
              (WebCore::FrameView::handleMousePressEvent):
              (WebCore::FrameView::handleMouseDoubleClickEvent):
              (WebCore::selectCursor):
              (WebCore::FrameView::handleMouseMoveEvent):
              (WebCore::FrameView::handleMouseReleaseEvent):
              * page/FrameView.h:
      
              * platform/ScrollBar.cpp: (WebCore::ScrollBar::ScrollBar): Added controlSize argument.  The list box will use a smaller scroll bar size.
              * platform/ScrollBar.h:
              (WebCore::):
              (WebCore::ScrollBar::controlSize):
              * platform/mac/PlatformScrollBar.h:
              * platform/mac/PlatformScrollBarMac.mm:
              (NSControlSizeForScrollBarControlSize):
              (-[WebCoreScrollBar initWithPlatformScrollBar:]):
              (WebCore::PlatformScrollBar::PlatformScrollBar):
      
              * rendering/RenderBlock.h:
              * rendering/RenderLayer.cpp: (WebCore::RenderLayer::createScrollbar): Updated to pass regular control size to scrollbar constructor.
              * rendering/RenderLayer.h:
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::shouldAutoscroll):
              (WebCore::RenderObject::autoscroll):
              * rendering/RenderObject.h: (WebCore::RenderObject::isListBox):
      
              * css/html4.css: Added properties for new list boxes.
      
              * html/HTMLOptionElement.cpp:
              (WebCore::HTMLOptionElement::setSelected): Doesn't allow selection to be changed here if the option is disabled.
              (WebCore::HTMLOptionElement::disabled): Added. Checks the parent's disabled status.
              * html/HTMLOptionElement.h: Added disabled method.
      
              * html/HTMLSelectElement.cpp: Added appearance switch for new list box implementation.
              (WebCore::HTMLSelectElement::recalcStyle):
              (WebCore::HTMLSelectElement::lastSelectedListIndex):
              (WebCore::HTMLSelectElement::deselectItems):
              (WebCore::HTMLSelectElement::setSelectedIndex):
              (WebCore::HTMLSelectElement::isKeyboardFocusable):
              (WebCore::HTMLSelectElement::isMouseFocusable):
              (WebCore::HTMLSelectElement::createRenderer):
              (WebCore::HTMLSelectElement::recalcListItems):
              (WebCore::HTMLSelectElement::setRecalcListItems):
              (WebCore::HTMLSelectElement::reset):
              (WebCore::HTMLSelectElement::notifyOptionSelected):
              (WebCore::HTMLSelectElement::defaultEventHandler): Added code to select options for list box when clicking and using arrow keys.
              (WebCore::HTMLSelectElement::nextSelectableListIndex):
              (WebCore::HTMLSelectElement::previousSelectableListIndex):
              * html/HTMLSelectElement.h:
      
              * rendering/RenderTheme.cpp: Added support for ListBoxAppearance
              (WebCore::RenderTheme::paint):
              (WebCore::RenderTheme::paintBorderOnly):
              (WebCore::RenderTheme::paintDecorations):
              (WebCore::RenderTheme::activeListBoxSelectionBackgroundColor):
              (WebCore::RenderTheme::activeListBoxSelectionForegroundColor):
              (WebCore::RenderTheme::inactiveListBoxSelectionBackgroundColor):
              (WebCore::RenderTheme::inactiveListBoxSelectionForegroundColor):
              (WebCore::RenderTheme::isControlStyled):
              (WebCore::RenderTheme::supportsFocusRing):
              * rendering/RenderTheme.h:
              * rendering/RenderThemeMac.mm: (WebCore::RenderThemeMac::isControlStyled):
      
              * rendering/RenderListBox.cpp: Added.
              (WebCore::RenderListBox::RenderListBox):
              (WebCore::RenderListBox::~RenderListBox):
              (WebCore::RenderListBox::setStyle):
              (WebCore::RenderListBox::updateFromElement):
              (WebCore::RenderListBox::calcMinMaxWidth):
              (WebCore::RenderListBox::size):
              (WebCore::RenderListBox::numItems):
              (WebCore::RenderListBox::calcHeight):
              (WebCore::RenderListBox::baselinePosition):
              (WebCore::RenderListBox::itemBoundingBoxRect):
              (WebCore::RenderListBox::paintObject):
              (WebCore::RenderListBox::paintScrollbar):
              (WebCore::RenderListBox::paintItemForeground):
              (WebCore::RenderListBox::paintItemBackground):
              (WebCore::RenderListBox::scrollBarTarget):
              (WebCore::RenderListBox::isPointInScrollbar):
              (WebCore::RenderListBox::optionAtPoint):
              (WebCore::RenderListBox::autoscroll):
              (WebCore::RenderListBox::scrollToRevealElementAtListIndex):
              (WebCore::RenderListBox::scroll):
              (WebCore::RenderListBox::valueChanged):
              * rendering/RenderListBox.h: Added.
              (WebCore::RenderListBox::isListBox):
              (WebCore::RenderListBox::selectionChanged):
              (WebCore::RenderListBox::setSelectionChanged):
              (WebCore::RenderListBox::canHaveChildren):
              (WebCore::RenderListBox::renderName):
              (WebCore::RenderListBox::setOptionsChanged):
              (WebCore::RenderListBox::shouldAutoscroll):
              (WebCore::RenderListBox::listIndexIsVisible):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f989049f
  29. 25 Sep, 2006 1 commit
    • andersca's avatar
      2006-09-25 Anders Carlsson <acarlsson@apple.com> · faf7bea9
      andersca authored
              Reviewed by Maciej.
      
              * css/MediaList.cpp:
              Remove unused header.
              
              * dom/Document.cpp:
              (WebCore::Document::clear):
              Use clear instead of iterating through the list of event listeners, removing each one.
              (Doing that causes a crash when running the layout tests with GuardMalloc turned on)
              
              * html/HTMLKeygenElement.cpp:
              (WebCore::HTMLKeygenElement::HTMLKeygenElement):
              (WebCore::HTMLKeygenElement::appendFormData):
              Update due to changes in the SSL key generator.
              
              * ksvg2/svg/SVGAngle.cpp:
              Remove unused header.
              
              * ksvg2/svg/SVGAnimationElement.cpp:
              (SVGAnimationElement::parseMappedAttribute):
              Rename methods and pass Strings instead of DeprecatedStrings to
              parseSeparatedList.
              
              * ksvg2/svg/SVGFEColorMatrixElement.cpp:
              * ksvg2/svg/SVGFEDiffuseLightingElement.cpp:
              * ksvg2/svg/SVGFEDisplacementMapElement.cpp:
              * ksvg2/svg/SVGFEMergeElement.cpp:
              * ksvg2/svg/SVGFEOffsetElement.cpp:
              Remove unused headers.
              
              * ksvg2/svg/SVGHelper.cpp:
              (WebCore::SVGHelper::parseSeparatedList):
              * ksvg2/svg/SVGHelper.h:
              Rename ParseSeperatedList to parseSeparatedList, make it take a String instead of a 
              DeprecatedString and have it use Vector<String> instead of DeprecatedStringList.
              
              * ksvg2/svg/SVGLengthList.cpp:
              (WebCore::SVGLengthList::parse):
              * ksvg2/svg/SVGLengthList.h:
              Use Vector<String> instead of DeprecatedStringList.
              
              * loader/Cache.cpp:
              (WebCore::Cache::requestImage):
              (WebCore::Cache::requestStyleSheet):
              (WebCore::Cache::requestScript):
              (WebCore::Cache::requestXSLStyleSheet):
              (WebCore::Cache::requestXBLDocument):
              (WebCore::Cache::remove):
              (WebCore::Cache::get):
              Use a String as the key in the cache set instead of a RefPtr<StringImpl>.
              
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::needReload):
              * loader/DocLoader.h:
              Use a HashSet instead of DeprecatedStringList.
              
              * page/FrameView.h:
              Remove declarations that have no functions.
              
              * platform/SSLKeyGenerator.h:
              * platform/mac/SSLKeyGeneratorMac.mm:
              (WebCore::supportedKeySizes):
              (WebCore::signedPublicKeyAndChallengeString):
              Convert to use Vector<String> instead of DeprecatedStringList, and String instead of
              DeprecatedString.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16556 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      faf7bea9
  30. 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]):
              * WebView/WebFrameInternal.h:
              * WebView/WebFrameView.m:
              (-[WebFrameView drawRect:]):
              * WebView/WebView.m:
              (-[WebView setBackgroundColor:]):
              (-[WebView backgroundColor]):
              (-[WebView _commonInitializationWithFrameName:groupName:]):
              (-[WebView setDrawsBackground:]):
              * WebView/WebViewPrivate.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16027 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7122a90b
  31. 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
  32. 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
  33. 09 Jul, 2006 1 commit
    • darin's avatar
      Reviewed by Tim Hatcher. · f4b05b29
      darin authored
              - put more into the WebCore namespace
              - removed unused code for plain text fields
      
              Put more classes, class templates, enums, functions, and constants into
              the WebCore namespace, including all the headers in the platform directory.
      
              Removed lots of unneeded "WebCore::" qualifiers and "using" directives.
      
              Added some "WebCore::" qualifiers in a few places.
      
              Removed "uses WebCore::" in headers that we said we'd remove "when
              everything is in the WebCore namespace".
      
              * bindings/js/JSDOMParser.cpp:
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              * bindings/js/JSXSLTProcessor.cpp:
              * bindings/js/kjs_binding.cpp:
              * bindings/js/kjs_css.cpp:
              * bindings/js/kjs_dom.cpp:
              * bindings/js/kjs_dom.h:
              * bindings/js/kjs_events.cpp:
              * bindings/js/kjs_proxy.h:
              * bindings/js/kjs_window.h:
              * bindings/objc/DOM.mm:
              * bridge/History.h:
              * bridge/JavaAppletWidget.h:
              * bridge/mac/FormDataMac.h:
              * bridge/mac/FormDataMac.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * bridge/mac/WebCoreEncodings.mm:
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreIconDatabaseBridge.mm:
              * bridge/mac/WebCorePageState.h:
              * bridge/mac/WebCoreScriptDebugger.mm:
              * bridge/mac/WebCoreSettings.h:
              * css/CSSGrammar.y:
              * css/CSSPageRule.cpp:
              * css/CSSPageRule.h:
              * css/MediaList.cpp:
              * css/cssstyleselector.h:
              * dom/Clipboard.h:
              * dom/Document.cpp:
              * dom/Document.h:
              * dom/EventTargetNode.h:
              * dom/Node.cpp:
              * dom/Node.h:
              * dom/Position.h:
              * dom/Range.cpp:
              * dom/XMLTokenizer.cpp:
              * editing/AppendNodeCommand.h:
              * editing/ApplyStyleCommand.cpp:
              * editing/BreakBlockquoteCommand.cpp:
              * editing/BreakBlockquoteCommand.h:
              * editing/CompositeEditCommand.cpp:
              * editing/CompositeEditCommand.h:
              * editing/CreateLinkCommand.h:
              * editing/DeleteFromTextNodeCommand.h:
              * editing/DeleteSelectionCommand.h:
              * editing/FormatBlockCommand.h:
              * editing/HTMLInterchange.cpp:
              * editing/HTMLInterchange.h:
              * editing/IndentOutdentCommand.h:
              * editing/InsertIntoTextNodeCommand.h:
              * editing/InsertLineBreakCommand.h:
              * editing/InsertListCommand.h:
              * editing/InsertNodeBeforeCommand.h:
              * editing/InsertTextCommand.cpp:
              * editing/InsertTextCommand.h:
              * editing/JSEditor.cpp:
              * editing/JSEditor.h:
              * editing/JoinTextNodesCommand.h:
              * editing/MergeIdenticalElementsCommand.cpp:
              * editing/MergeIdenticalElementsCommand.h:
              * editing/ModifySelectionListLevel.h:
              * editing/MoveSelectionCommand.h:
              * editing/RebalanceWhitespaceCommand.h:
              * editing/RemoveNodeAttributeCommand.h:
              * editing/RemoveNodeCommand.h:
              * editing/RemoveNodePreservingChildrenCommand.h:
              * editing/ReplaceSelectionCommand.h:
              * editing/SetNodeAttributeCommand.h:
              * editing/SplitElementCommand.cpp:
              * editing/SplitElementCommand.h:
              * editing/SplitTextNodeCommand.cpp:
              * editing/SplitTextNodeCommand.h:
              * editing/SplitTextNodeContainingElementCommand.h:
              * editing/TypingCommand.cpp:
              * editing/TypingCommand.h:
              * editing/UnlinkCommand.h:
              * editing/VisiblePosition.cpp:
              * editing/WrapContentsInDummySpanCommand.cpp:
              * editing/WrapContentsInDummySpanCommand.h:
              * editing/markup.cpp:
              * editing/markup.h:
              * html/HTMLAnchorElement.cpp:
              * html/HTMLBodyElement.cpp:
              * html/HTMLButtonElement.h:
              * html/HTMLCollection.h:
              * html/HTMLDocument.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLFormElement.cpp:
              * html/HTMLFormElement.h:
              * html/HTMLFrameElement.cpp:
              * html/HTMLFrameSetElement.cpp:
              * html/HTMLKeygenElement.cpp:
              * html/HTMLLabelElement.cpp:
              * html/HTMLObjectElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLTableElement.cpp:
              * html/HTMLTablePartElement.cpp:
              * icon/IconDatabase.h:
              * kcanvas/KCanvasPath.h:
              * kcanvas/KCanvasResources.cpp:
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasTreeDebug.cpp:
              * kcanvas/KCanvasTreeDebug.h:
              * kcanvas/RenderSVGContainer.cpp:
              * kcanvas/RenderSVGText.h:
              * kcanvas/device/KRenderingPaintServer.h:
              * kcanvas/device/KRenderingPaintServerGradient.h:
              * kcanvas/device/KRenderingPaintServerSolid.cpp:
              * ksvg2/misc/SVGImageLoader.cpp:
              * ksvg2/svg/SVGElement.cpp:
              * ksvg2/svg/SVGElement.h:
              * ksvg2/svg/SVGForeignObjectElement.cpp:
              * ksvg2/svg/SVGForeignObjectElement.h:
              * ksvg2/svg/SVGImageElement.cpp:
              * ksvg2/svg/SVGPoint.h:
              * ksvg2/svg/SVGStylable.h:
              * ksvg2/svg/SVGTRefElement.cpp:
              * ksvg2/svg/SVGTRefElement.h:
              * ksvg2/svg/SVGTSpanElement.cpp:
              * ksvg2/svg/SVGTSpanElement.h:
              * ksvg2/svg/SVGTextElement.h:
              * ksvg2/svg/svgpathparser.cpp:
              * ksvg2/svg/svgpathparser.h:
              * loader/Cache.h:
              * loader/DocLoader.h:
              * loader/LoaderFunctions.h:
              * loader/mac/LoaderFunctionsMac.mm:
              * page/Frame.h:
              * page/FrameView.h:
              * page/Page.h:
              * page/Settings.h:
              * platform/AffineTransform.cpp:
              * platform/AffineTransform.h:
              * platform/Arena.cpp:
              * platform/Arena.h:
              * platform/CookieJar.h:
              * platform/DeprecatedCString.cpp:
              * platform/DeprecatedCString.h:
              * platform/DeprecatedPtrList.h:
              * platform/DeprecatedPtrListImpl.cpp:
              * platform/DeprecatedPtrListImpl.h:
              * platform/DeprecatedPtrQueue.h:
              * platform/DeprecatedString.cpp:
              * platform/DeprecatedString.h:
              * platform/DeprecatedStringList.cpp:
              * platform/DeprecatedStringList.h:
              * platform/DeprecatedValueList.h:
              * platform/DeprecatedValueListImpl.cpp:
              * platform/DeprecatedValueListImpl.h:
              * platform/FileButton.h:
              * platform/FloatPoint.h:
              * platform/FloatRect.h:
              * platform/FloatSize.h:
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/GraphicsContext.h:
              * platform/IntPoint.h:
              * platform/IntRect.h:
              * platform/IntSize.h:
              * platform/KURL.cpp:
              * platform/KURL.h:
              * platform/ListBox.h:
              * platform/Logging.cpp:
              * platform/Logging.h:
              * platform/Pen.h:
              * platform/PopUpButton.h:
              * platform/RegularExpression.cpp:
              * platform/RegularExpression.h:
              * platform/SSLKeyGenerator.h:
              * platform/ScrollBar.h:
              * platform/SegmentedString.h:
              * platform/Shared.h:
              * platform/Slider.h:
              * platform/StringImpl.h:
              * platform/TextBox.h:
              * platform/TextField.h:
              * platform/TextStream.cpp:
              * platform/TextStream.h:
              * platform/TransferJob.h:
              * platform/TransferJobClient.h:
              * platform/Widget.h:
              * platform/cg/AffineTransformCG.cpp:
              * platform/mac/ClipboardMac.h:
              * platform/mac/ClipboardMac.mm:
              * platform/mac/DeprecatedStringListMac.mm:
              * platform/mac/FontCacheMac.mm:
              * platform/mac/KURLMac.mm:
              * platform/mac/ListBoxMac.mm:
              * platform/mac/PopUpButtonMac.mm:
              * platform/mac/SSLKeyGeneratorMac.mm:
              * platform/mac/TextBoxMac.mm:
              * platform/mac/TextFieldMac.mm:
              * platform/mac/WebCoreTextArea.h:
              * platform/mac/WebCoreTextArea.mm:
              * platform/mac/WebCoreTextField.h:
              * platform/mac/WebCoreTextField.mm:
              * rendering/DeprecatedRenderSelect.h:
              * rendering/RenderArena.cpp:
              * rendering/RenderArena.h:
              * rendering/RenderBlock.cpp:
              * rendering/RenderBox.cpp:
              * rendering/RenderContainer.cpp:
              * rendering/RenderFlexibleBox.cpp:
              * rendering/RenderFlow.cpp:
              * rendering/RenderLayer.cpp:
              * rendering/RenderLineEdit.cpp:
              * rendering/RenderObject.h:
              * rendering/RenderStyle.cpp:
              * rendering/RenderStyle.h:
              * rendering/RenderText.cpp:
              * rendering/RenderTextFragment.cpp:
              * rendering/RenderTheme.h:
              * rendering/RenderTreeAsText.cpp:
              * rendering/RenderTreeAsText.h:
              * rendering/RenderView.h:
              * rendering/bidi.h:
              * xml/XSLStyleSheet.cpp:
              * xml/XSLTProcessor.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15286 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f4b05b29
  34. 06 Jul, 2006 1 commit
    • 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