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. 24 Jul, 2007 1 commit
    • bdash's avatar
      2007-07-24 Mitz Pettel <mitz@webkit.org> · 4b582b73
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=14684
                Hebrew text in Safari chrome is reversed (LTR instead of RTL)
      
              Test: fast/text/drawBidiText.html
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * manual-tests/chrome-bidi-text.html: Added.
              * manual-tests/resources/chrome-bidi-text-window.html: Added.
              * platform/BidiReorderCharacters.cpp: Removed.
              * platform/BidiReorderCharacters.h: Removed.
              * platform/BidiResolver.h:
              (WebCore::BidiCharacterRun::start): Added accessor method.
              (WebCore::BidiCharacterRun::stop): Ditto.
              (WebCore::BidiCharacterRun::level): Ditto.
              (WebCore::BidiCharacterRun::next): Ditto.
              (WebCore::::appendRun): Added default implementation.
              * platform/TextStyle.h:
              (WebCore::TextStyle::setDirectionalOverride): Added accessor method.
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::TextRunIterator::TextRunIterator): Added. A BidiResolver-
              compliant iterator over the characters in a TextRun.
              (WebCore::TextRunIterator::offset):
              (WebCore::TextRunIterator::increment):
              (WebCore::TextRunIterator::atEnd):
              (WebCore::TextRunIterator::current):
              (WebCore::TextRunIterator::direction):
              (WebCore::TextRunIterator::operator==):
              (WebCore::TextRunIterator::operator!=):
              (WebCore::GraphicsContext::drawBidiText): Added. Applies the Unicode
              Bidi Algorithm to the text and draws the resulting unidirectional runs
              in the right order and with the right directionality.
              * platform/graphics/GraphicsContext.h:
              * platform/win/PopupMenuWin.cpp:
              (WebCore::PopupMenu::paint): Replaced the use of a character buffer
              and BidiReorderCharacters with calling to drawBidiText(). Removed special
              handling of '-webkit-rtl-ordering:visual' because that CSS property is an
              implementation detail of WebCore's visual Hebrew support, and the UA stylesheet
              sets it to 'logical' for this form control. Authors can specify the ordering
              using the 'direction' and 'unicode-bidi' properties.
              * platform/win/WebCoreTextRenderer.cpp:
              (WebCore::isOneLeftToRightRun): Added. Checks if the text consists of
              a single left-to-right run, in which case it requires no bidi processing.
              (WebCore::doDrawTextAtPoint): Changed to call drawBidiText if the text
              is not entirely left-to-right.
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::paintObject): Replaced the use of a
              character buffer in BidiReorderCharacters with calling to drawBidiText().
              Removed special handling of '-webkit-rtl-ordering:visual' for the same reason
              stated above.
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::paintItemForeground): Ditto. Also changed the
              run-rounding modes used when drawing to match those used when measuring.
      
      2007-07-24  Mitz Pettel  <mitz@webkit.org>
      
              Reviewed by Darin.
      
              - test, updated tests and updated results for
                http://bugs.webkit.org/show_bug.cgi?id=14684
                Hebrew text in Safari chrome is reversed (LTR instead of RTL)
      
              * fast/forms/HTMLOptionElement_label05-expected.checksum:
              * fast/forms/HTMLOptionElement_label05-expected.png:
              * fast/forms/listbox-deselect-scroll-expected.checksum:
              * fast/forms/listbox-deselect-scroll-expected.png:
              * fast/forms/listbox-width-change-expected.checksum:
              * fast/forms/listbox-width-change-expected.png:
              * fast/forms/option-strip-whitespace-expected.checksum:
              * fast/forms/option-strip-whitespace-expected.png:
              * fast/forms/select-change-popup-to-listbox-expected.checksum:
              * fast/forms/select-change-popup-to-listbox-expected.png:
              * fast/forms/select-initial-position-expected.checksum:
              * fast/forms/select-initial-position-expected.png:
              * fast/text/drawBidiText-expected.checksum: Added.
              * fast/text/drawBidiText-expected.png: Added.
              * fast/text/drawBidiText-expected.txt: Added.
              * fast/text/drawBidiText.html: Added.
              * fast/text/international/bidi-listbox-atsui-expected.checksum:
              * fast/text/international/bidi-listbox-atsui-expected.png:
              * fast/text/international/bidi-listbox-atsui-expected.txt:
              * fast/text/international/bidi-listbox-atsui.html: Removed the
              visual ordering cases.
              * fast/text/international/bidi-listbox-expected.checksum:
              * fast/text/international/bidi-listbox-expected.png:
              * fast/text/international/bidi-listbox-expected.txt:
              * fast/text/international/bidi-listbox.html: Removed the visual ordering
              cases because the patch removed special handling of visual ordering.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24582 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4b582b73
  3. 20 Jul, 2007 2 commits
    • ggaren's avatar
      Reviewed by Darin Adler. · 4434b147
      ggaren authored
              
              Fixed http://bugs.webkit.org/show_bug.cgi?id=12900 Page tear-down 
              forces garbage collection once per frame
      
              Also fixed <rdar://problem/5286989> GC on window close does not always 
              bring the JS object count down to 0
              
              Implemented a 0-delay GC timer in WebCore. Instead of forcing GC
              immediately, code that thinks it has created a lot of garbage starts
              the timer. This has two advantages: 
      
              1) Multiple GCs can coalesce. In my pathological test case, this 
              improves performance by an order of magnitude. 
              
              2) Conservative marking is less likely to keep alive important dead
              objects, like the window object, because the stack is small and free of
              JS processing when the timer fires.
      
              Added GCController.h/.cpp, sometimes blindly:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
      
              Added singleton that implements GC on a 0-delay timer:
              * bindings/js/GCController.h: Added.
              * bindings/js/GCController.cpp: Added.
              
              Changed Collector::collect() calls below to call to the singleton:
              * bindings/js/kjs_proxy.cpp:
              (WebCore::KJSProxy::~KJSProxy):
              * bindings/js/kjs_window.cpp:
              (KJS::Window::clear):
              * history/CachedPage.cpp:
              (WebCore::CachedPage::clear):
              
              * page/Frame.cpp:
              (WebCore::Frame::~Frame): Removed previous slightly hackish attempt to
              avoid conservative marking of the window object.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24493 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4434b147
    • pewtermoose's avatar
      2007-07-20 Mitz Pettel <mitz@webkit.org> · cf72e2d5
      pewtermoose authored
              Reviewed by Darin.
      
              - http://bugs.webkit.org/show_bug.cgi?id=14626
                Make bidiReorderCharacters independent of RenderBlock
      
              No layout test possible because there is no change in functionality.
      
              This patch generalizes RenderBlock's implementation of the Unicode Bidi Algorithm
              in the form of the BidiResolver class template. An instance of a BidiResolver class
              can generate a sequence of runs with corresponding level and override attributes,
              given a range specified by start and end iterators. The iterators can optionally
              call back to the BidiResolver instance to push or pop explicit embedding levels.
      
              The patch replaces BidiState with a specialization of BidiResolver that uses
              BidiIterators and generates BidiRuns. It also eliminates some of the file statics
              in bidi.cpp, instead relying on BidiResolver data members.
      
              The patch makes the BidiContext part of BidiStatus, thus making BidiStatus the
              entire state that needs to be saved and restored in order to restart the bidi
              algorithm at a given point. Previously, you had to keep and pass around two
              separate structures, namely the BidiContext and the BidiStatus.
      
              bidiReorderCharacters is implemented without relying on render objects, using
              a BidiResolver specialization that uses simple character buffer iterators and
              simple run structures.
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * platform/BidiContext.cpp: Added.
              (WebCore::operator==):
              * platform/BidiContext.h: Added.
              (WebCore::BidiContext::BidiContext):
              (WebCore::BidiContext::ref):
              (WebCore::BidiContext::deref):
              (WebCore::BidiContext::parent):
              (WebCore::BidiContext::level):
              (WebCore::BidiContext::dir):
              (WebCore::BidiContext::override):
              * platform/BidiReorderCharacters.cpp: Added.
              (WebCore::CharacterBufferIterator::CharacterBufferIterator):
              (WebCore::CharacterBufferIterator::offset):
              (WebCore::CharacterBufferIterator::increment):
              (WebCore::CharacterBufferIterator::atEnd):
              (WebCore::CharacterBufferIterator::current):
              (WebCore::CharacterBufferIterator::direction):
              (WebCore::CharacterBufferIterator::operator==):
              (WebCore::CharacterBufferIterator::operator!=):
              (WebCore::::appendRun):
              (WebCore::bidiReorderCharacters):
              * platform/BidiReorderCharacters.h: Added.
              * platform/BidiResolver.h: Added.
              (WebCore::BidiStatus::BidiStatus):
              (WebCore::operator==):
              (WebCore::operator!=):
              (WebCore::BidiCharacterRun::BidiCharacterRun):
              (WebCore::BidiCharacterRun::reversed):
              (WebCore::BidiCharacterRun::dirOverride):
              (WebCore::BidiCharacterRun::next):
              (WebCore::BidiResolver::):
              (WebCore::BidiResolver::context):
              (WebCore::BidiResolver::setContext):
              (WebCore::BidiResolver::setLastDir):
              (WebCore::BidiResolver::setLastStrongDir):
              (WebCore::BidiResolver::setEorDir):
              (WebCore::BidiResolver::dir):
              (WebCore::BidiResolver::setDir):
              (WebCore::BidiResolver::status):
              (WebCore::BidiResolver::setStatus):
              (WebCore::BidiResolver::adjustEmbedding):
              (WebCore::BidiResolver::setAdjustEmbedding):
              (WebCore::BidiResolver::firstRun):
              (WebCore::BidiResolver::lastRun):
              (WebCore::BidiResolver::runCount):
              (WebCore::::embed):
              (WebCore::::deleteRuns):
              (WebCore::::reverseRuns):
              (WebCore::::createBidiRunsForLine):
              * platform/win/PopupMenuWin.cpp:
              (WebCore::PopupMenu::paint):
              * rendering/RenderBlock.h:
              * rendering/RenderFileUploadControl.cpp:
              (WebCore::RenderFileUploadControl::paintObject):
              * rendering/RenderListBox.cpp:
              (WebCore::RenderListBox::paintItemForeground):
              * rendering/RootInlineBox.cpp:
              (WebCore::RootInlineBox::childRemoved):
              (WebCore::RootInlineBox::lineBreakBidiStatus):
              (WebCore::RootInlineBox::setLineBreakInfo):
              * rendering/RootInlineBox.h:
              (WebCore::RootInlineBox::RootInlineBox):
              * rendering/bidi.cpp:
              (WebCore::BidiIterator::BidiIterator):
              (WebCore::BidiState::deleteRuns):
              (WebCore::operator==):
              (WebCore::operator!=):
              (WebCore::bidiNext):
              (WebCore::bidiFirst):
              (WebCore::BidiState::addRun):
              (WebCore::appendRunsForObject):
              (WebCore::BidiState::appendRun):
              (WebCore::RenderBlock::constructLine):
              (WebCore::RenderBlock::computeHorizontalPositionsForLine):
              (WebCore::RenderBlock::computeVerticalPositionsForLine):
              (WebCore::RenderBlock::bidiReorderLine):
              (WebCore::buildCompactRuns):
              (WebCore::RenderBlock::layoutInlineChildren):
              (WebCore::RenderBlock::determineStartPosition):
              (WebCore::RenderBlock::determineEndPosition):
              (WebCore::RenderBlock::matchedEndLine):
              (WebCore::RenderBlock::skipWhitespace):
              * rendering/bidi.h:
              (WebCore::BidiRun::BidiRun):
              (WebCore::BidiRun::next):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24485 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cf72e2d5
  4. 18 Jul, 2007 1 commit
    • thatcher's avatar
      WebCore: · 7f30b3dc
      thatcher authored
              Reviewed by Adam.
      
              <rdar://problem/5343767> Should have a way to disable the Web Inspector
      
              This change facilitates the ability to turn the Web Inspector on and off.
      
              Makes the InspectorClient be required to create a new Page. This also means that
              InspectorController will never be NULL. Adds a new function on Page to test
              if the inspector is enabled.
      
              * WebCore.exp: New symbol for the Page constructor.
              * WebCore.pro: Add InspectorClientGdk.cpp.
              * WebCoreSources.bkl: ditto.
              * html/HTMLDocument.cpp:
              (WebCore::HTMLDocument::createTokenizer):
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::detachFromParent): Don't null check the InspectorCOntroller.
              (WebCore::FrameLoader::dispatchDidCommitLoad): Ditto.
              (WebCore::FrameLoader::dispatchAssignIdentifierToInitialRequest): Ditto.
              (WebCore::FrameLoader::dispatchWillSendRequest): Ditto.
              (WebCore::FrameLoader::dispatchDidReceiveResponse): Ditto.
              (WebCore::FrameLoader::dispatchDidReceiveContentLength): Ditto.
              (WebCore::FrameLoader::dispatchDidFinishLoading): Ditto.
              (WebCore::FrameLoader::dispatchDidLoadResourceFromMemoryCache): Ditto.
              * page/ContextMenuController.cpp:
              (WebCore::ContextMenuController::handleContextMenuEvent): Ask the InspectorController if it is enabled.
              (WebCore::ContextMenuController::contextMenuItemSelected): Ditto.
              * page/InspectorController.cpp:
              (WebCore::InspectorController::enabled): Ask the Page's settings if developer extras are enabled.
              (WebCore::InspectorController::inspect): Check if the InspectorController is enabled.
              (WebCore::InspectorController::focusNode): Ditto.
              (WebCore::InspectorController::highlight): Ditto.
              (WebCore::InspectorController::hideHighlight): Ditto.
              (WebCore::InspectorController::addMessageToConsole): Ditto.
              (WebCore::InspectorController::attachWindow): Ditto.
              (WebCore::InspectorController::detachWindow): Ditto.
              (WebCore::InspectorController::windowScriptObjectAvailable): Ditto.
              (WebCore::InspectorController::didCommitLoad): Ditto.
              (WebCore::InspectorController::frameDetachedFromParent): Ditto.
              (WebCore::InspectorController::didLoadResourceFromMemoryCache): Ditto.
              (WebCore::InspectorController::identifierForInitialRequest): Ditto.
              (WebCore::InspectorController::willSendRequest): Ditto.
              (WebCore::InspectorController::didReceiveResponse): Ditto.
              (WebCore::InspectorController::didReceiveContentLength): Ditto.
              (WebCore::InspectorController::didFinishLoading): Ditto.
              (WebCore::InspectorController::didFailLoading): Ditto.
              * page/InspectorController.h:
              * page/Page.cpp:
              (WebCore::Page::Page): Require an InspectorClient.
              (WebCore::Page::~Page): Always call pageDestroyed on the InspectorController.
              (WebCore::Page::inspectorEnabled): Check the WebCore settings if the developer extras are enabled.
              * page/Page.h:
              * page/gdk/InspectorClientGdk.cpp: Added.
              (WebCore::InspectorClientGdk::inspectorDestroyed): Empty stub calling notImplemented.
              (WebCore::InspectorClientGdk::createPage): Ditto.
              (WebCore::InspectorClientGdk::showWindow): Ditto.
              (WebCore::InspectorClientGdk::closeWindow): Ditto.
              (WebCore::InspectorClientGdk::attachWindow): Ditto.
              (WebCore::InspectorClientGdk::detachWindow): Ditto.
              (WebCore::InspectorClientGdk::highlight): Ditto.
              (WebCore::InspectorClientGdk::hideHighlight): Ditto.
              (WebCore::InspectorClientGdk::inspectedURLChanged): Ditto.
              * page/gdk/InspectorClientGdk.h: Added.
              * platform/graphics/svg/SVGImage.cpp:
              (WebCore::SVGImage::dataChanged): Pass in a dummy InspectorClient.
              * platform/graphics/svg/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyInspectorClient::~SVGEmptyInspectorClient): Empty dummy implementation.
              (WebCore::SVGEmptyInspectorClient::inspectorDestroyed): Ditto.
              (WebCore::SVGEmptyInspectorClient::createPage): Ditto.
              (WebCore::SVGEmptyInspectorClient::showWindow): Ditto.
              (WebCore::SVGEmptyInspectorClient::closeWindow): Ditto.
              (WebCore::SVGEmptyInspectorClient::attachWindow): Ditto.
              (WebCore::SVGEmptyInspectorClient::detachWindow): Ditto.
              (WebCore::SVGEmptyInspectorClient::highlight): Ditto.
              (WebCore::SVGEmptyInspectorClient::hideHighlight): Ditto.
              (WebCore::SVGEmptyInspectorClient::inspectedURLChanged): Ditto.
      
      WebKit:
      
              Reviewed by Adam.
      
              <rdar://problem/5343767> Should have a way to disable the Web Inspector
      
              Adds a new DisableWebKitDeveloperExtras default that will force the Web Inspector to be disabled.
              This overrides the WebKitDeveloperExtras and IncludeDebugMenu default. It also disables
              the Web Inspector in Debug builds.
      
              * WebView/WebView.mm:
              (+[WebView _developerExtrasEnabled]): Check for the DisableWebKitDeveloperExtras default.
              (-[WebView _commonInitializationWithFrameName:groupName:]): Make a new WebInspectorClient when making the Page.
      
      WebKitQt:
      
              Reviewed by Adam.
      
              Make the Page with the now required InspectorClient.
      
              * Api/qwebpage.cpp:
              (QWebPagePrivate::QWebPagePrivate):
              * WebKitPart/WebKitPart.cpp:
              (WebKitPart::initView):
      
      WebKitTools:
      
              Reviewed by Adam.
      
              Make the Page with the now required InspectorClient.
      
              * GdkLauncher/main.cpp:
              (main):
      
      win:
      
              Reviewed by Adam.
      
              Make the Page with the now required InspectorClient.
      
              * WebView.cpp:
              (WebView::initWithFrame):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24422 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7f30b3dc
  5. 07 Jul, 2007 1 commit
    • ap's avatar
      Reviewed by Maciej. · 7169d2aa
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=14525
              Support exslt:node-set()
      
              Test: fast/xsl/exslt-node-set.xml
      
              * xml/XSLTExtensions.cpp: Added.
              (WebCore::exsltNodeSetFunction): A copy of exslt:node-set() implementation
              from libexslt 1.1.11 (shipped with Tiger).
              (WebCore::registerXSLTExtensions): This function registers any WebCore-provided
              extensions on a context. Currently, the only extension is exslt:node-set().
              * xml/XSLTExtensions.h: Added.
      
              * xml/XSLTProcessor.cpp:
              (WebCore::XSLTProcessor::transformToString):
              Register extensions when creating a context.
      
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              Add XSLTExtensions.{h,cpp} to projects.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24088 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7169d2aa
  6. 11 May, 2007 1 commit
    • darin's avatar
      LayoutTests: · 55ae73e3
      darin authored
              Reviewed by Mitz.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=7452
                <rdar://problem/3211749> line breaks ignored after <wbr> in <pre> block (affects livejournal.com)
      
              * fast/text/wbr-pre-expected.checksum: Added.
              * fast/text/wbr-pre-expected.png: Added.
              * fast/text/wbr-pre-expected.txt: Added.
              * fast/text/wbr-pre.html: Added.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=10657
                <rdar://problem/4274588> <wbr> tags are ignored
      
              * fast/text/wbr-expected.checksum: Added.
              * fast/text/wbr-expected.png: Added.
              * fast/text/wbr-expected.txt: Added.
              * fast/text/wbr.html: Added.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=12689
                <wbr> :before/:after content causes line break
      
              * fast/css-generated-content/wbr-with-before-content-expected.checksum: Added.
              * fast/css-generated-content/wbr-with-before-content-expected.png: Added.
              * fast/css-generated-content/wbr-with-before-content-expected.txt: Added.
              * fast/css-generated-content/wbr-with-before-content.html: Added.
      
              - test for <rdar://problem/5127366> DOM tree isn't correct when parsing with <wbr>
      
              * fast/invalid/021-expected.txt: Updated result.
              * fast/parser/parse-wbr-expected.txt: Added.
              * fast/parser/parse-wbr.html: Added.
      
      WebCore:
      
              Reviewed by Mitz.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=7452
                <rdar://problem/3211749> line breaks ignored after <wbr> in <pre> block (affects livejournal.com)
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=10657
                <rdar://problem/4274588> <wbr> tags are ignored
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=12689
                <wbr> :before/:after content causes line break
      
              - fix <rdar://problem/5127366> DOM tree isn't correct when parsing with <wbr>
      
              Test: fast/text/wbr-pre.html
              Test: fast/text/wbr.html
              Test: fast/css-generated-content/wbr-with-before-content.html
              Test: fast/parser/parse-wbr.html
      
              * html/HTMLElement.h:
              * html/HTMLElement.cpp:
              (WebCore::HTMLElement::endTagRequirement): Use the same end tag requirement for a <wbr>
              element as for a <br> element, TagStatusForbidden.
              (WebCore::HTMLElement::tagPriority): Use the same priority for a <wbr> element as for a
              <br> element, 0.
              (WebCore::HTMLElement::createRenderer): Added. Create a RenderWordBreak to trigger the
              new rendering code paths.
      
              * rendering/RenderFlow.h: Add a virtual isWordBreak so we can detect RenderWordBreak.
      
              * rendering/RenderWordBreak.h: Added.
              * rendering/RenderWordBreak.cpp: Added.
      
              * WebCore.pro: Added new files.
              * WebCore.xcodeproj/project.pbxproj: Added new files.
              * WebCoreSources.bkl: Added new files.
      
              * rendering/RenderBlock.cpp: (WebCore::RenderBlock::calcInlinePrefWidths): Reset the
              line when we hit a <wbr>.
              * rendering/bidi.cpp: (WebCore::RenderBlock::findNextLineBreak): Add a line break when
              we hit a <wbr>.
      
              * dom/Node.cpp: (Node::createRendererIfNeeded): Fix a null check for the case where
              createRenderer returns 0 even though rendererIsNeeded returned true. I can't reproduce
              it on demand, but while running layout tests I hit this once. Since there was already
              a null check here, I rearranged it so it guards all the code that uses the renderer.
              Later we might want to figure out under exactly what circumstances rendererIsNeeded
              will return true but createRenderer return 0 and consider eliminating them.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      55ae73e3
  7. 29 Apr, 2007 1 commit
    • weinig's avatar
      LayoutTests: · fef13633
      weinig authored
              Reviewed by Darin and Hyatt.
      
              - test and updated results for http://bugs.webkit.org/show_bug.cgi?id=13487
                Implement O(1) absoluteClippedOverflowRect and absoluteOutlineBox during layout for a possible speed gain
      
              * fast/repaint/bugzilla-3509-expected.checksum:
              * fast/repaint/bugzilla-3509-expected.png:
              * fast/repaint/intermediate-layout-position-clip-expected.checksum: Added.
              * fast/repaint/intermediate-layout-position-clip-expected.png: Added.
              * fast/repaint/intermediate-layout-position-clip-expected.txt: Added.
              * fast/repaint/intermediate-layout-position-clip.html: Added.
              * fast/repaint/intermediate-layout-position-expected.checksum:
              * fast/repaint/intermediate-layout-position-expected.png:
      
      WebCore:
      
              Reviewed by Darin and Hyatt.
      
              - http://bugs.webkit.org/show_bug.cgi?id=13487
                Implement O(1) absoluteClippedOverflowRect and absoluteOutlineBox during layout for a possible speed gain
      
              Test for a bug fixed by this patch: fast/repaint/intermediate-layout-position-clip.html
      
              By keeping track of the total translation and clip during layout, absolutePosition and
              computeAbsoluteRepaintRect become O(1).
      
              * WebCore.pro: Added LayoutState.cpp
              * WebCore.vcproj/WebCore/WebCore.vcproj: Added LayoutState.{cpp,h}
              * WebCore.xcodeproj/project.pbxproj: Added LayoutState.{cpp,h}
              * WebCoreSources.bkl: Added LayoutState.cpp
              * page/FrameView.cpp:
              (WebCore::FrameView::layout): When doing subtree layout, push an initial layout state for the
              layout root.
              * rendering/LayoutState.cpp: Added. A LayoutState corresponding to a box consists of the origin of
              its coordinate system in view coordinates and possibly the clip rect, in view coordinates, which
              applies to its children.
              (WebCore::LayoutState::LayoutState):
              (WebCore::LayoutState::destroy):
              (WebCore::throw):
              (WebCore::LayoutState::operator delete):
              * rendering/LayoutState.h: Added.
              (WebCore::LayoutState::LayoutState):
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::layoutBlock): Factored out the "only positioned objects" case into
              layoutOnlyPositionedObjects(). Added code to push/pop LayoutState, unless we have columns, in
              which case we disable/enable LayoutState. Removed the translation by the layout delta
              of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
              absoluteOutlineBox().
              (WebCore::RenderBlock::layoutOnlyPositionedObjects): Added this helper function that checks for
              and handles the case where only positioned objects need layout. Returns true in that case.
              (WebCore::RenderBlock::repaintOverhangingFloats): Disabled LayoutState when repainting floats, since
              they may belong to other containers.
              (WebCore::RenderBlock::updateFirstLetter): Disabled LayoutState when adding and removing from the
              first letter container, since it may be different than ourselves.
              * rendering/RenderBlock.h:
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::setStyle): Minor cleanup: changed element()->document() to the equivalent document().
              (WebCore::RenderBox::offsetForPositionedInContainer): Added. Factored out common code from
              absolutePosition, computeAbsoluteRepaintRect and RenderLayer::updateLayerPosition into this function.
              (WebCore::RenderBox::absolutePosition): Added an O(1) code path when this function is called during
              layout (and LayoutState has not been disabled). Factored out some code into
              offsetForPositionedInContainer.
              (WebCore::RenderBox::absoluteClippedOverflowRect): Added the layout delta here, so callers don't need
              to.
              (WebCore::RenderBox::computeAbsoluteRepaintRect): Added an O(1) code path when this function is called
              during layout (and LayoutState has not been disabled). Factored out some code into
              offsetForPositionedInContainer.
              * rendering/RenderContainer.cpp:
              (WebCore::RenderContainer::layout): Added LayoutState push/pop.
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutBlock): Factored out the "only positioned objects" case into
              layoutOnlyPositionedObjects(). Added LayoutState push/pop. Removed the translation by the layout delta
              of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
              absoluteOutlineBox().
              * rendering/RenderFlow.cpp:
              (WebCore::RenderFlow::absoluteClippedOverflowRect): Added an ASSERT.
              * rendering/RenderForeignObject.cpp:
              (WebCore::RenderForeignObject::layout): Disabled LayoutState because it is incompatible with arbitrary
              affine transforms.
              * rendering/RenderHTMLCanvas.cpp:
              (WebCore::RenderHTMLCanvas::layout): Removed the translation by the layout delta of the old absolute
              rects, since that is now integral to absoluteClippedOverflowRect() and absoluteOutlineBox().
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::layout): Ditto.
              * rendering/RenderLayer.cpp:
              (WebCore::RenderLayer::updateLayerPositions): Added ASSERTs. Factored out some code into
              RenderBox::offsetForPositionedInContainer.
              (WebCore::RenderLayer::updateScrollInfoAfterLayout): Disabled LayoutState around the call to
              scrollToOffset.
              * rendering/RenderListItem.cpp:
              (WebCore::RenderListItem::updateMarkerLocation): Disabled LayoutState when moving the list marker, since
              it can trigger repainting in other containers.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::isRoot): Minor cleanup: changed element()->document() to the equivalent
              document().
              (WebCore::RenderObject::computeAbsoluteRepaintRect): Removed 'return' at the end of the function.
              (WebCore::RenderObject::container): Reordered to avoid calling isText() twice.
              (WebCore::RenderObject::absoluteOutlineBox): Added the layout delta here, so callers don't need to.
              * rendering/RenderSVGContainer.cpp:
              (WebCore::RenderSVGContainer::layout): Disabled LayoutState because it is incompatible with arbitrary
              affine transforms.
              * rendering/RenderTable.cpp:
              (WebCore::RenderTable::layout):  Factored out the "only positioned objects" case into
              layoutOnlyPositionedObjects(). Added LayoutState push/pop. Removed the translation by the layout delta
              of the old absolute rects, since that is now integral to absoluteClippedOverflowRect() and
              absoluteOutlineBox().
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::absoluteClippedOverflowRect): Added the layout delta here, so callers
              don't need to.
              (WebCore::RenderTableCell::computeAbsoluteRepaintRect): For the O(1) code path, skipped the correction
              for the parent row, because RenderTableRow doesn't push a translation into LayoutState.
              (WebCore::RenderTableCell::absolutePosition): Ditto.
              * rendering/RenderTableRow.cpp:
              (WebCore::RenderTableRow::layout): Added LayoutState push/pop.
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::setCellWidths): Added LayoutState push/pop if cells are repainted or
              receive layout.
              (WebCore::RenderTableSection::calcRowHeight): Ditto.
              (WebCore::RenderTableSection::layoutRows): Added LayoutState push/pop.
              * rendering/RenderView.cpp:
              (WebCore::RenderView::RenderView):
              (WebCore::RenderView::layout): Added initial LayoutState setup for the layout.
              (WebCore::RenderView::paintBoxDecorations): Minor cleanup: changed element()->document() to the
              equivalent document().
              (WebCore::RenderView::repaintViewRectangle): Ditto.
              (WebCore::RenderView::pushLayoutState): Added. Pushes initial layout state for subtree layout.
              * rendering/RenderView.h:
              (WebCore::RenderView::pushLayoutState):
              (WebCore::RenderView::popLayoutState):
              (WebCore::RenderView::layoutState):
              (WebCore::RenderView::disableLayoutState):
              (WebCore::RenderView::enableLayoutState):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      fef13633
  8. 19 Apr, 2007 1 commit
  9. 18 Apr, 2007 1 commit
    • bdash's avatar
      2007-04-18 Alp Toker <alp@atoker.com> · 3ba385d1
      bdash authored
              Gdk build fix.  Reviewed by Sam Weinig.
      
              Track changes to make GdkLauncher work again.
      
              * WebCoreSources.bkl:
              * platform/gdk/ChromeClientGdk.h:
              * platform/gdk/TemporaryLinkStubs.cpp:
              (ChromeClientGdk::createWindow):
              (ChromeClientGdk::createModalDialog):
              (Editor::markBadGrammar):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20939 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3ba385d1
  10. 20 Mar, 2007 1 commit
    • ap's avatar
      Reviewed by Darin. · ce79f366
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=12497
              Implement XPath result ordering.
      
      WebCore:
              XPath::NodeVector typedef is replaced with a real XPath::NodeSet class that knows how 
              to sort itself, and can remember whether it has been already sorted.
      
              * CMakeLists.txt:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              Added XPathNodeSet files.
      
              * xml/XPathExpression.cpp: Fixed includes.
      
              * xml/XPathFunctions.cpp:
              (WebCore::XPath::FunId::evaluate): Mark the resulting node-set as unsorted.
              (WebCore::XPath::FunLocalName::evaluate): Replacing NodeVector with NodeSet.
              (WebCore::XPath::FunNamespaceURI::evaluate): Ditto.
              (WebCore::XPath::FunName::evaluate): Ditto.
              (WebCore::XPath::FunCount::evaluate): Ditto.
              (WebCore::XPath::FunSum::evaluate): Ditto.
      
              * xml/XPathNodeSet.cpp: Added.
              (WebCore::XPath::parentWithDepth):
              (WebCore::XPath::sortBlock):
              (WebCore::XPath::NodeSet::sort): Sort the node-set in document order.
              (WebCore::XPath::NodeSet::reverse): Reverse the order (useful for making axes such as 
              parent or ancestor sorted).
              (WebCore::XPath::NodeSet::firstNode): Returns the first node in document order; currently
              implemented via fully sorting the node-set, but this can obviously be optimized.
              (WebCore::XPath::NodeSet::anyNode): Added for symmetry with firstNode().
              
              * xml/XPathNodeSet.h: Added.
              (WebCore::XPath::NodeSet::NodeSet):
              (WebCore::XPath::NodeSet::operator=):
              (WebCore::XPath::NodeSet::size):
              (WebCore::XPath::NodeSet::isEmpty):
              (WebCore::XPath::NodeSet::operator[]):
              (WebCore::XPath::NodeSet::reserveCapacity):
              (WebCore::XPath::NodeSet::clear):
              (WebCore::XPath::NodeSet::swap):
              (WebCore::XPath::NodeSet::append):
              (WebCore::XPath::NodeSet::markSorted):
              (WebCore::XPath::NodeSet::isSorted):
              Most of these methods just call Vector counterparts. 
      
              * xml/XPathParser.cpp: Updated the copyright notice.
      
              * xml/XPathPath.cpp:
              (WebCore::XPath::Filter::evaluate): Replacing NodeVector with NodeSet.
              (WebCore::XPath::Path::evaluate): Ditto.
              (WebCore::XPath::LocationPath::evaluate): Replacing NodeVector with NodeSet. This function
              always marks the result as unsorted, because it is hard to tell whether a step breaks node order.
              Identifying and implementing special cases when it is not necessary to do so is an important
              future optimization.
      
              * xml/XPathPath.h: Replacing NodeVector with NodeSet.
              * xml/XPathPredicate.cpp:
              (WebCore::XPath::EqTestOp::compare): Replacing NodeVector with NodeSet.
              (WebCore::XPath::Union::evaluate): Replacing NodeVector with NodeSet. Currently, Union just
              marks the result as unordered; we can consider using merge sort to avoid this.
      
              * xml/XPathResult.cpp:
              (WebCore::XPathResult::XPathResult): Replacing NodeVector with NodeSet.
              (WebCore::XPathResult::singleNodeValue): Ditto.
              (WebCore::XPathResult::snapshotLength): Ditto.
              (WebCore::XPathResult::iterateNext): Ditto.
              (WebCore::XPathResult::snapshotItem): Ditto.
              (WebCore::XPathResult::convertTo): Ditto. Sort the result when requested to.
      
              * xml/XPathResult.h: Replacing NodeVector with NodeSet.
      
              * xml/XPathStep.cpp:
              (WebCore::XPath::Step::evaluate): If the input is not sorted, mark the output as such, too.
              (WebCore::XPath::Step::nodesInAxis): Fixed a number of bugs when enumerating with an
              attribute context node.
              (WebCore::XPath::Step::nodeTestMatches): Replacing NodeVector with NodeSet.
              * xml/XPathStep.h: Ditto.
      
              * xml/XPathUtil.cpp:
              (WebCore::XPath::isValidContextNode): XPath data model doesn't put attribute data into child
              nodes, so passing such node as a context could cause problems.
      
              * xml/XPathUtil.h: Removed NodeVector typedef.
      
              * xml/XPathValue.cpp:
              (WebCore::XPath::Value::Value):
              (WebCore::XPath::Value::toNodeSet):
              (WebCore::XPath::Value::toBoolean):
              (WebCore::XPath::Value::toNumber):
              (WebCore::XPath::Value::toString):
              * xml/XPathValue.h:
              (WebCore::XPath::Value::):
              (WebCore::XPath::Value::isNodeSet):
              Replacing NodeVector with NodeSet.
      
      LayoutTests:
              * fast/xpath/document-order-expected.txt: Added.
              * fast/xpath/document-order.html: Added.
      
              * fast/xpath/text-nodes-expected.txt:
              * fast/xpath/text-nodes.html:
              * fast/xpath/4XPath/Core/test_step-expected.txt:
              Updated results for tests that now pass.
      
              * fast/xpath/xpath-test-pre.js: Added.
              * fast/xpath/4XPath/Core/test.js:
              Moved checkSnapshot() to a separate file.
      
              * fast/xpath/4XPath/Core/test_core_functions.html:
              * fast/xpath/4XPath/Core/test_location_path.html:
              * fast/xpath/4XPath/Core/test_nodeset_expr.html:
              * fast/xpath/4XPath/Core/test_parser.html:
              * fast/xpath/4XPath/Core/test_predicate_list.html:
              * fast/xpath/4XPath/Core/test_step.html:
              Load xpath-test-pre.js for checkSnapshot().
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20345 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ce79f366
  11. 12 Mar, 2007 1 commit
    • darin's avatar
      LayoutTests: · 45471111
      darin authored
              Reviewed by Tim Hatcher.
      
              - added a test that checks the classes of wrappers created by both
                the JavaScript binding and the Objective-C binding
      
              * fast/dom/wrapper-classes-expected.txt: Added.
              * fast/dom/wrapper-classes.html: Added.
              * fast/js/resources/js-test-pre.js: Improve the format of the failure message when
              both the real results and expected results are strings.
      
      WebCore:
      
              Reviewed by Tim Hatcher.
      
              - fixed JavaScript wrapper classes to be correct for a variety of cases
                that a new test uncovered: was broken for at least 5 classes
      
              - fixed Objective-C wrapper classes to be correct for a variety of cases
                that a test case uncovered: was broken for ast least 50 classes
      
              - added missing DOM API for creating OverflowEvent and WheelEvent instances
      
              Test: fast/dom/wrapper-classes.html
      
              * DerivedSources.make: Added missing bindings: HTMLCanvasElement for ObjC,
              CDATASection, Comment, and EntityReference for JavaScript.
              * WebCore.xcodeproj/project.pbxproj: Added those new generated files.
      
              * bindings/js/JSHTMLElementWrapperFactory.cpp:
              (WebCore::createJSHTMLWrapper): Corrected the wrapper classes for <keygen>,
              which needs an HTMLSelectElement wrapper, and <xmp>, which needs an
              HTMLPreElement wrapper.
      
              * bindings/objc/DOMInternal.h: Updated for new naming scheme.
              Also moved createDOMWrapper from the KJS namespace to the WebCore namespace.
              * bindings/objc/DOMUtility.mm:
              (KJS::createDOMWrapper): Broke the core function into a separate one, and
              left it in the KJS namespace because Objective-C++ rules make it impossible
              for it to work in the WebCore namespace. Used a macro-based implementation
              to cut down on repeated code, and added missing cases for Counter,
              HTMLOptionsCollection, Range, XPathExpression, XPathResult, Event, RGBColor,
              Rect, Window, DOMImplementation, NodeIterator, TreeWalker, and HTMLCollection.
              (WebCore::createDOMWrapper): The other half of the function.
      
              * bindings/objc/DOM.mm:
              (WebCore::createElementClassMap): Corrected the wrapper classes for
              <canvas>, which needs a DOMHTMLCanvasElement wrapper, <del>, which needs
              a DOMHTMLModElement wrapper, <embed>, which needs a DOMHTMLEmbedElement
              wrapper, <ins>, which needs a DOMHTMLModElement wrapper, <th>, which needs
              a DOMHTMLTableCellElement wrapper, and <xmp>, which needs an
              DOMHTMLPreElement wrapper.
              (+[DOMNode _wrapNode:]): Updated for new naming scheme.
              (+[DOMNode _wrapEventTarget:]): Ditto.
              (+[DOMNodeFilter _wrapNodeFilter:]): Ditto.
              (ObjCNodeFilterCondition::acceptNode): Ditto.
              (-[DOMDocument createNodeIterator:whatToShow:filter:expandEntityReferences:]): Ditto.
              (-[DOMDocument createTreeWalker:whatToShow:filter:expandEntityReferences:]): Ditto.
              (WebCore::ObjCEventListener::handleEvent): Ditto.
      
              * dom/Document.cpp: (WebCore::Document::createEvent):
              Added cases for OverflowEvent and WheelEvent.
      
              * dom/OverflowEvent.h: Added empty constructor and initOverflowEvent.
              * dom/OverflowEvent.cpp:
              (WebCore::OverflowEvent::OverflowEvent): Added.
              (WebCore::OverflowEvent::initOverflowEvent): Added.
              * dom/OverflowEvent.idl: Added initOverflowEvent.
      
              * bindings/objc/PublicDOMInterfaces.h: Added initOverflowEvent.
      
              * bindings/objc/DOMCSS.mm:
              (+[DOMStyleSheet _wrapStyleSheet:]): Updated for new naming scheme.
              (+[DOMCSSRule _wrapCSSRule:]): Corrected wrapper for CSSUnknownRule.
              (+[DOMCSSValue _wrapCSSValue:]): Updated for new naming scheme.
      
              * bindings/js/kjs_css.h:
              (KJS::DOMRGBColor::impl): Added. Used when making an ObjC wrapper.
              (KJS::DOMRect::impl): Ditto.
      
              * bindings/js/kjs_dom.cpp: (KJS::toJS): Corrected the wrapper classes for
              CDATASection, Comment, and EntityReference.
      
              * bindings/js/kjs_html.cpp: Corrected the class name for HTMLElement
              (was "DOMHTMLElement") and HTMLCollection (was "Collection").
      
              * bindings/objc/DOMImplementationFront.h:
              * bindings/objc/DOMImplementationFront.cpp:
              (WebCore::implementationFront): Added new overload that returns a front given
              a JavaScript wrapper. Needed by the code that makes the Objective-C wrapper.
      
              * bindings/objc/WebScriptObject.mm:
              (+[WebScriptObject _convertValueToObjcValue:originRootObject:rootObject:]):
              Updated since createDOMWrapper is now in the WebCore namespace.
      
              * bindings/scripts/CodeGeneratorObjC.pm: Update the naming scheme for the
              wrapper creation functions to use _wrapElement: rather then _elementWith:
              style. Removed now-unneeded special cases for things that needed to stay
              upper-case, since we don't have to do the whole lcfirst thing.
      
              * html/HTMLCanvasElement.idl: Added #if so we can successfully generate the
              Objective-C wrapper for this class, even though we can't yet handle the
              DOMObject return type.
      
              * html/HTMLOptionsCollection.idl: Added GenerateNativeConverter so we get
              an appropriate toJS function.
      
              * bindings/objc/DOMEvents.mm:
              (+[DOMEvent _wrapEvent:]):
              * bindings/objc/DOMHTML.mm:
              (-[DOMHTMLDocument createDocumentFragmentWithMarkupString:baseURL:]):
              (-[DOMHTMLDocument createDocumentFragmentWithText:]):
              * bindings/objc/DOMObject.mm:
              (-[DOMObject sheet]):
              * bindings/objc/DOMRGBColor.mm:
              (-[DOMRGBColor red]):
              (-[DOMRGBColor green]):
              (-[DOMRGBColor blue]):
              (-[DOMRGBColor alpha]):
              (+[DOMRGBColor _wrapRGBColor:]):
              * bindings/objc/DOMSVGPathSegInternal.mm:
              (+[DOMSVGPathSeg _wrapSVGPathSeg:]):
              * bindings/objc/DOMXPath.mm:
              (+[DOMNativeXPathNSResolver _wrapXPathNSResolver:]):
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge nodesFromList:]):
              (-[WebCoreFrameBridge elementWithName:inForm:]):
              (-[WebCoreFrameBridge formForElement:]):
              (-[WebCoreFrameBridge currentForm]):
              (-[WebCoreFrameBridge controlsInForm:]):
              (-[WebCoreFrameBridge rangeByAlteringCurrentSelection:SelectionController::direction:SelectionController::granularity:]):
              (-[WebCoreFrameBridge convertNSRangeToDOMRange:]):
              (-[WebCoreFrameBridge markDOMRange]):
              (-[WebCoreFrameBridge markedTextDOMRange]):
              (-[WebCoreFrameBridge smartDeleteRangeForProposedRange:]):
              (-[WebCoreFrameBridge documentFragmentWithMarkupString:baseURLString:]):
              (-[WebCoreFrameBridge documentFragmentWithText:inContext:]):
              (-[WebCoreFrameBridge documentFragmentWithNodesAsParagraphs:]):
              (-[WebCoreFrameBridge replaceSelectionWithNode:selectReplacement:smartReplace:matchStyle:]):
              (-[WebCoreFrameBridge replaceSelectionWithText:selectReplacement:smartReplace:]):
              (-[WebCoreFrameBridge increaseSelectionListLevel]):
              (-[WebCoreFrameBridge increaseSelectionListLevelOrdered]):
              (-[WebCoreFrameBridge increaseSelectionListLevelUnordered]):
              (-[WebCoreFrameBridge dragCaretDOMRange]):
              (-[WebCoreFrameBridge editableDOMRangeForPoint:]):
              (-[WebCoreFrameBridge characterRangeAtPoint:]):
              (-[WebCoreFrameBridge typingStyle]):
              (-[WebCoreFrameBridge rangeOfCharactersAroundCaret]):
              * platform/mac/ClipboardMac.mm:
              (WebCore::ClipboardMac::declareAndWriteDragImage):
              * platform/mac/PasteboardMac.mm:
              (WebCore::Pasteboard::writeSelection):
              Updated for new naming scheme.
      
      WebKit:
      
              Reviewed by Tim Hatcher.
      
              - update for the new naming scheme for the Objective-C wrapper-creation
                functions: _wrapElement: instead of _elementWith:, etc.
      
              * WebCoreSupport/WebEditorClient.mm:
              (WebEditorClient::textFieldDidBeginEditing):
              (WebEditorClient::textFieldDidEndEditing):
              (WebEditorClient::textDidChangeInTextField):
              (WebEditorClient::doTextFieldCommandFromEvent):
              (WebEditorClient::textWillBeDeletedInTextField):
              (WebEditorClient::textDidChangeInTextArea):
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::createPlugin):
              (WebFrameLoaderClient::createJavaAppletWidget):
              * WebView/WebFrame.mm: (kit):
              Use the _wrapElement-style functions.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20130 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      45471111
  12. 20 Feb, 2007 2 commits
    • kjk's avatar
      Reviewed by Maciej S. · 781540ce
      kjk authored
              Gdk build fixes for recent refactorings.
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCoreSources.bkl:
              * page/gdk/DragControllerGdk.cpp:
              (WebCore::DragController::dragOperation):
              (WebCore::DragController::maxDragImageSize):
              * page/gdk/EventHandlerGdk.cpp:
              (WebCore::EventHandler::createDraggingClipboard):
              * platform/DragImage.h:
              * platform/gdk/ChromeClientGdk.h:
              * platform/gdk/CursorGdk.cpp:
              (WebCore::verticalTextCursor):
              (WebCore::cellCursor):
              (WebCore::contextMenuCursor):
              (WebCore::noDropCursor):
              (WebCore::copyCursor):
              (WebCore::progressCursor):
              (WebCore::aliasCursor):
              (WebCore::noneCursor):
              (WebCore::notAllowedCursor):
              * platform/gdk/EditorClientGdk.cpp:
              (WebCore::EditorClientGdk::shouldChangeSelectedRange):
              (WebCore::EditorClientGdk::isEditable):
              (WebCore::EditorClientGdk::textFieldDidBeginEditing):
              (WebCore::EditorClientGdk::textFieldDidEndEditing):
              (WebCore::EditorClientGdk::textDidChangeInTextField):
              (WebCore::EditorClientGdk::doTextFieldCommandFromEvent):
              (WebCore::EditorClientGdk::textWillBeDeletedInTextField):
              (WebCore::EditorClientGdk::textDidChangeInTextArea):
              * platform/gdk/EditorClientGdk.h:
              * platform/gdk/FrameGdk.cpp:
              (WebCore::Frame::print):
              (WebCore::Frame::issueTransposeCommand):
              (WebCore::Frame::respondToChangedSelection):
              (WebCore::Frame::cleanupPlatformScriptObjects):
              (WebCore::Frame::isCharacterSmartReplaceExempt):
              (WebCore::Frame::dragImageForSelection):
              * platform/gdk/FrameGdk.h:
              * platform/gdk/MimeTypeRegistryGdk.cpp: Added.
              * platform/gdk/TemporaryLinkStubs.cpp:
              (ChromeClientGdk::tabsToLinks):
              (ChromeClientGdk::windowResizerRect):
              (ChromeClientGdk::addToDirtyRegion):
              (ChromeClientGdk::scrollBackingStore):
              (ChromeClientGdk::updateBackingStore):
              * webcore-base.bkl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      781540ce
    • weinig's avatar
      Reviewed by Darin and then Sam. · 346f9e37
      weinig authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=10735
                Clicking in SVG results causes WebKit to consume 100% CPU for several minutes
      
              No test since there is no change in functionality.
      
              * CMakeLists.txt:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj: Added PositionIterator.{cpp,h}.
              * WebCoreSources.bkl:
              * dom/Position.cpp:
              (WebCore::Position::Position): Added converting constructor from
              PositionIterator.
              (WebCore::Position::previous): Changed assert() to ASSERT().
              (WebCore::Position::next): Ditto.
              (WebCore::isStreamer): Changed the argument to a PositionIterator.
              (WebCore::Position::upstream): Changed to use PositionIterator.
              (WebCore::Position::downstream): Ditto.
              (WebCore::Position::inRenderedText): Made public.
              (WebCore::Position::hasRenderedNonAnonymousDescendantsWithHeight): Changed
              into a static member function.
              (WebCore::Position::nodeIsUserSelectNone): Ditto.
              * dom/Position.h:
              * dom/PositionIterator.cpp: Added. A Position iterator with constant-time
              increment, decrement, and several predicates on the Position it is at.
              Conversion to/from Position is O(n) in the offset.
              (WebCore::PositionIterator::increment):
              (WebCore::PositionIterator::decrement):
              (WebCore::PositionIterator::atStart):
              (WebCore::PositionIterator::atEnd):
              (WebCore::PositionIterator::atStartOfNode):
              (WebCore::PositionIterator::atEndOfNode):
              (WebCore::PositionIterator::isCandidate):
              * dom/PositionIterator.h: Added.
              (WebCore::PositionIterator::PositionIterator):
              (WebCore::PositionIterator::node):
              (WebCore::PositionIterator::offsetInLeafNode):
              * editing/htmlediting.cpp:
              (WebCore::nextCandidate): Changed to use PositionIterator.
              (WebCore::previousCandidate): Changed to use PositionIterator.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      346f9e37
  13. 16 Feb, 2007 1 commit
    • kjk's avatar
      Reviewed by Adam Roben. · 7c46dde8
      kjk authored
              Move Path implementation from TemporaryLinkStubs.cpp to
              its own file.
              Implement setLineCap, setLineJoin and setMiterLimit for
              cairo's GraphicsContext.
      
              * WebCoreSources.bkl:
              * platform/gdk/TemporaryLinkStubs.cpp:
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::setPlatformFillColor):
              (WebCore::GraphicsContext::setPlatformStrokeColor):
              (WebCore::GraphicsContext::setLineCap):
              (WebCore::GraphicsContext::setLineJoin):
              (WebCore::GraphicsContext::setMiterLimit):
              * platform/graphics/cairo/PathCairo.cpp: Added.
              (WebCore::Path::Path):
              (WebCore::Path::~Path):
              (WebCore::Path::contains):
              (WebCore::Path::translate):
              (WebCore::Path::boundingRect):
              (WebCore::Path::operator=):
              (WebCore::Path::clear):
              (WebCore::Path::moveTo):
              (WebCore::Path::addLineTo):
              (WebCore::Path::addQuadCurveTo):
              (WebCore::Path::addBezierCurveTo):
              (WebCore::Path::addArcTo):
              (WebCore::Path::closeSubpath):
              (WebCore::Path::addArc):
              (WebCore::Path::addRect):
              (WebCore::Path::addEllipse):
              (WebCore::Path::transform):
              (WebCore::Path::apply):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19675 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7c46dde8
  14. 15 Feb, 2007 1 commit
    • kjk's avatar
      Reviewed by Adam Roben. · 89b3cb48
      kjk authored
              Add gdk version of ContextMenuClient based on qt version.
      
              * WebCoreSources.bkl:
              * page/gdk/ContextMenuClientGdk.cpp: Added.
              (WebCore::ContextMenuClientGdk::contextMenuDestroyed):
              (WebCore::ContextMenuClientGdk::getCustomMenuFromDefaultItems):
              (WebCore::ContextMenuClientGdk::contextMenuItemSelected):
              (WebCore::ContextMenuClientGdk::downloadURL):
              (WebCore::ContextMenuClientGdk::copyImageToClipboard):
              (WebCore::ContextMenuClientGdk::searchWithGoogle):
              (WebCore::ContextMenuClientGdk::lookUpInDictionary):
              (WebCore::ContextMenuClientGdk::speak):
              (WebCore::ContextMenuClientGdk::stopSpeaking):
              * page/gdk/ContextMenuClientGdk.h: Added.
              * webcore-base.bkl: curl is needed when building webcore_base files.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19647 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      89b3cb48
  15. 09 Feb, 2007 1 commit
    • darin's avatar
      Reviewed by Adele. · a64faa8c
      darin authored
              - Add TextEvent to the DOM (based on the proposed DOM level 3)
                to be used to fix some international input bugs soon.
                At this point, we don't send any text events.
      
              - Remove some obsolete files.
      
              * CMakeLists.txt:
              * WebCore.pro:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              Add new files, remove obsolete files.
      
              * DerivedSources.make: Add TextEvent to the Objective-C and JavaScript bindings lists.
              * WebCore.exp: Export DOMTextEvent Objective-C wrapper.
      
              * bindings/js/kjs_events.cpp: (KJS::toJS): Added TextEvent to the list of Event subclasses
              so we make the right kind of JS wrapper.
              * bindings/objc/DOMEvents.mm: (+[DOMEvent _eventWith:]): Same thing, for Objective-C.
      
              * bindings/objc/DOMInternal.h: Added DOMTextEventInternal.h.
      
              * dom/DOMImplementation.cpp: (WebCore::DOMImplementation::hasFeature):
              Added "TextEvents", "3.0" to the list of things we'll answer true for
              (as specified in the DOM Level 3 documentation).
              This isn't so great until we actually send textInput events, but that's coming soon.
      
              * dom/Document.cpp: (WebCore::Document::createEvent): Add "TextEvent" as a way to make
              a TextEvent (as specified in the DOM Level 3 documentation).
      
              * dom/Event.h:
              * dom/Event.cpp: (WebCore::Event::isTextEvent): Added virtual function to be used
              for runtime type checking of Event objects (as for other event types).
      
              * dom/TextEvent.cpp: Added.
              * dom/TextEvent.h: Added.
              * dom/TextEvent.idl: Added.
      
              * platform/mac/WebCoreWidgetHolder.h: Removed.
              * rendering/CounterListItem.h: Removed.
              * rendering/CounterResetNode.cpp: Removed.
              * rendering/CounterResetNode.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19538 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a64faa8c
  16. 08 Feb, 2007 1 commit
    • kjk's avatar
      WebCore: · 18901133
      kjk authored
              Reviewed by Adam Roben.
      
              Linux/gdk build fixes.
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCoreSources.bkl:
              * webcore-base.bkl:
      
        WebKitTools:
      
              Reviewed by Adam Roben..
      
              Linux/gdk build fixes.
      
              * GdkLauncher/gdklauncher.bkl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19507 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      18901133
  17. 04 Feb, 2007 1 commit
    • ap's avatar
      Reviewed by Darin. · 10cb0092
      ap authored
              http://bugs.webkit.org/show_bug.cgi?id=8791
              XPath should support custom node resolvers
      
      WebCore:
              * bindings/js/JSCustomXPathNSResolver.cpp: Added.
              (WebCore::JSCustomXPathNSResolver::create):
              (WebCore::JSCustomXPathNSResolver::JSCustomXPathNSResolver):
              (WebCore::JSCustomXPathNSResolver::~JSCustomXPathNSResolver):
              (WebCore::JSCustomXPathNSResolver::lookupNamespaceURI):
              * bindings/js/JSCustomXPathNSResolver.h: Added.
              * bindings/objc/DOMCustomXPathNSResolver.h: Added.
              * bindings/objc/DOMCustomXPathNSResolver.mm: Added.
              (WebCore::DOMCustomXPathNSResolver::DOMCustomXPathNSResolver):
              (WebCore::DOMCustomXPathNSResolver::~DOMCustomXPathNSResolver):
              (WebCore::DOMCustomXPathNSResolver::lookupNamespaceURI):
              Wrappers for JS/ObjC objects that can be used as resolvers.
      
              * bindings/scripts/CodeGeneratorJS.pm:
              * bindings/scripts/CodeGeneratorObjC.pm:
              Use the above wrappers to support custom resolvers.
      
              * xml/XPathNSResolver.cpp:
              * xml/XPathNSResolver.h:
              Turned this class into an abstract one.
      
              * xml/NativeXPathNSResolver.cpp: Added.
              (WebCore::NativeXPathNSResolver::NativeXPathNSResolver):
              (WebCore::NativeXPathNSResolver::~NativeXPathNSResolver):
              (WebCore::NativeXPathNSResolver::lookupNamespaceURI):
              * xml/NativeXPathNSResolver.h: Added.
              A XPathNSResolver subclass, doing what XPathNSResolver used to do.
      
              * xml/XPathEvaluator.cpp:
              (WebCore::XPathEvaluator::createNSResolver): Create a NativeXPathNSResolver.
      
              * WebCore.xcodeproj/project.pbxproj: Added new files.
      
      LayoutTests:
              * fast/xpath/nsresolver-bad-object-expected.txt: Added.
              * fast/xpath/nsresolver-bad-object.xhtml: Added.
              * fast/xpath/nsresolver-exception-expected.txt: Added.
              * fast/xpath/nsresolver-exception.xhtml: Added.
              * fast/xpath/nsresolver-function-expected.txt: Added.
              * fast/xpath/nsresolver-function.xhtml: Added.
              * fast/xpath/nsresolver-object-expected.txt: Added.
              * fast/xpath/nsresolver-object.xhtml: Added.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      10cb0092
  18. 22 Jan, 2007 1 commit
    • darin's avatar
      Reviewed by Adam. · 03488715
      darin authored
              - fix http://bugs.webkit.org/show_bug.cgi?id=12273
                REGRESSION: File input value invisible after removing and re-appending
      
              - made more of the file chooser code cross-platform
      
              - fixed an Objective-C garbage collection problem in FileChooser
      
              - tried to remove layering violations where FileChooser in the platform
                directory knows about the rendering and DOM trees (but wasn't able to
                do it entirely)
      
              * platform/FileChooser.cpp: Added.
              (WebCore::FileChooser::create): Changed parameters.
              (WebCore::FileChooser::chooseFile): Changed to call chooseIcon function.
              (WebCore::FileChooser::chooseIcon): Added.
      
              * platform/FileChooser.h: Added FileChooserClient so this file doesn't have
              to know about RenderFileUploadControl. Used RetainPtr instead of retain/release
              so this works properly with Objective-C GC. Replaced disconnectUploadControl
              with disconnectClient, which has a simple inline implementation. Moved the
              Document parameter from the constructor to openFileChooser, along with a comment
              about why it should not be there. Added a filename parameter to the constructor
              for the initial filename. Added a font parameter to basenameForWidth so we don't
              depend on having a pointer to the renderer. Removed the uploadControl() and
              document() functions since no one calls either of them.
      
              * platform/mac/FileChooserMac.mm: Removed code that is now cross-platform.
              (-[OpenPanelController beginSheetWithFrame:]): Added frame parameter, instead
              of storing a document pointer in the FileChooser.
              (WebCore::FileChooser::FileChooser): Updated for changed parameters. Also added
              code to choose the icon based on the initial filename. Pass the adopt parameter
              to the constructor of the RetainPtr.
              (WebCore::FileChooser::~FileChooser): Removed the release call, since the
              RetainPtr will take care of it. Added a call to disconnectFileChooser here.
              There's no need to disconnect at disconnectClient time, and that lets us have
              one more cross-platform function.
              (WebCore::FileChooser::openFileChooser): Added document parameter. Added code
              to get the frame from the document. And added a nil check since there's no
              ironclad guarantee the document won't have outlived its frame.
              (WebCore::FileChooser::basenameForWidth): Added font parameter. Use that instead
              of going at the upload control's style. The caller can handle that now.
      
              * rendering/RenderFileUploadControl.h: Removed unnecessary includes.
              Made class inherit privately from FileChooserClient. Changed constructor
              parameter to HTMLInputElement rather than Node. Made protected members be
              private instead, and made a couple function members const.
              * rendering/RenderFileUploadControl.cpp: Moved constants to the top of the file,
              but after the "using namespace"
              (WebCore::RenderFileUploadControl::RenderFileUploadControl): Updated for changes
              to the FileChooser::create function and the parameter types.
              (WebCore::RenderFileUploadControl::~RenderFileUploadControl): Removed unneeded
              null check -- there's no case where the FileChooser fails to be created.
              (WebCore::RenderFileUploadControl::click): Pass document to openFileChooser.
              (WebCore::RenderFileUploadControl::updateFromElement): Tweaked code a bit by
              using updateFromElement and setValue instead of casting the renderer to a
              RenderButton and calling setText directly. Put setInputType call here.
              (WebCore::RenderFileUploadControl::maxFilenameWidth): Made const. Broke long line.
              (WebCore::RenderFileUploadControl::createButtonStyle): Made const.
              (WebCore::RenderFileUploadControl::paintObject): Moved buttonShadowHeight constant
              to the top of the file. Call isEmpty instead of checking width and height of
              IntRect for 0. Computed font to pass to FileChooser::basenameForWidth. Broke
              long lines.
              (WebCore::HTMLFileUploadInnerButtonElement::HTMLFileUploadInnerButtonElement):
              Moved the setInputType call to the caller; concept here is that this class is
              as simple as possible, rather than doing as much of the button job as possible.
      
              * WebCore.xcodeproj/project.pbxproj: Added FileChooser.cpp.
              * WebCore.pro: Ditto.
              * CMakeLists.txt: Ditto.
              * WebCoreSources.bkl: Ditto.
      
              * platform/gdk/TemporaryLinkStubs.cpp: Updated stubs.
              * platform/qt/FileChooserQt.cpp: Updated stubs.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@19035 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      03488715
  19. 21 Jan, 2007 1 commit
  20. 18 Jan, 2007 1 commit
    • bdash's avatar
      2007-01-18 Mitz Pettel <mitz@webkit.org> · d0f54218
      bdash authored
              Reviewed by Darin.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=6218
                CSS1: WebTextRenderer caches and re-uses fallback renderers that are based on family lists
      
              This patch takes character-to-glyph mapping out of FontData and instead makes
              each Font keep its own mapping, using a shared set of glyph page fallback trees.
      
              For each page number there is (at most) one tree. A path from the root to a
              node in the tree corresponds to a fallback list of FontDatas. The node points to
              a page (which may be shared with other nodes) that maps each character in its range
              to a glyph in the first FontData in the fallback list that has it, or to 0 if none of
              the FontDatas has a glyph for that character. A special kind of node, that can
              only occur as a leaf, corresponds to using system fallback fonts after the list
              has been exhausted. This prevents system fallback from polluting non-leaf
              nodes.
      
              Nodes and pages are initialized lazily and employ "copy on write".
      
              * CMakeLists.txt:
              * WebCore.pro:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * platform/Font.cpp:
              (WebCore::WidthIterator::WidthIterator): Removed substituteFontData.
              (WebCore::WidthIterator::advance): Moved all character-to-glyph mapping logic out
              of here and replaced it with a call to Font::glyphDataForCharacter().
              (WebCore::Font::Font):
              (WebCore::Font::operator=):
              (WebCore::Font::glyphDataForCharacter): Added. This method performs the lookup in the
              page fallback trees, triggering lazy initialization as needed, and caching pointers to
              the retrieved page tree nodes in the font.
              (WebCore::Font::update):
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::floatWidthForSimpleText): Removed substituteFont argument.
              (WebCore::Font::offsetForPositionForSimpleText):
              * platform/Font.h:
              * platform/FontData.cpp:
              (WebCore::FontData::FontData):
              * platform/FontData.h:
              (WebCore::FontData::missingGlyphData): Added. Returns the "missing glyph" GlyphData for
              this FontData.
              * platform/GlyphMap.cpp: Removed.
              * platform/GlyphMap.h: Removed.
              * platform/GlyphPageTreeNode.cpp: Renamed GlyphMap.cpp to this.
              (WebCore::GlyphPageTreeNode::getRoot): Added. Returns the root of the page fallback tree for
              the given page number.
              (WebCore::GlyphPageTreeNode::initializePage): Added. Helper method that initializes the page
              pointer of a node, possibly to a pointer to another node's page or to 0.
              (WebCore::GlyphPageTreeNode::getChild): Added.
              * platform/GlyphPageTreeNode.h: Renamed GlyphMap.h to this.
              (WebCore::GlyphPage::glyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForIndex):
              (WebCore::GlyphPageTreeNode::GlyphPageTreeNode):
              (WebCore::GlyphPageTreeNode::getRootChild):
              (WebCore::GlyphPageTreeNode::parent):
              (WebCore::GlyphPageTreeNode::page):
              (WebCore::GlyphPageTreeNode::level):
              (WebCore::GlyphPageTreeNode::isSystemFallback): Added. Returns whether the node corresponds
              to the system providing fallback fonts, which is done on a character-by-character basis.
              * platform/gdk/GlyphMapGdk.cpp: Removed.
              * platform/gdk/GlyphPageTreeNodeGdk.cpp: Renamed GlyphMapGdk.cpp to this.
              (WebCore::GlyphPage::fill):
              * platform/mac/FontDataMac.mm:
              (WebCore::FontData::platformInit):
              * platform/mac/FontMac.mm:
              (WebCore::Font::Font):
              * platform/mac/GlyphMapMac.cpp: Removed.
              * platform/mac/GlyphPageTreeNodeMac.cpp: Renamed GlypMapMac.cpp to this.
              (WebCore::GlyphPage::fill): Changed to return false if the font has no glyphs in the page.
              * platform/qt/GlyphMapQt.cpp: Removed.
              * platform/qt/GlyphPageTreeNodeQt.cpp: Renamed GlyphMapQt.cpp to this.
              (WebCore::GlyphPage::fill):
              * platform/win/GlyphMapWin.cpp: Removed.
              * platform/win/GlyphPageTreeNodeWin.cpp: Renamed GlyphMapWin to this.
              (WebCore::GlyphPage::fill):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18966 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d0f54218
  21. 03 Jan, 2007 1 commit
    • darin's avatar
      Reviewed by Adele. · ac48d122
      darin authored
              - removed some obsolete source files
      
              * CMakeLists.txt: Removed obsolete files.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * WebCoreSources.bkl: Ditto.
      
              * html/HTMLGenericFormElement.h: Removed reference to RenderFormElement.
      
              * platform/qt/ComboBoxQt.cpp: Removed.
              * platform/qt/LineEditQt.cpp: Removed.
              * platform/qt/ListBoxQt.cpp: Removed.
              * platform/qt/TextEditQt.cpp: Removed.
              * rendering/RenderFormElement.cpp: Removed.
              * rendering/RenderFormElement.h: Removed.
              * rendering/RenderLabel.cpp: Removed.
              * rendering/RenderLabel.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18560 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac48d122
  22. 01 Jan, 2007 1 commit
    • ddkilzer's avatar
      WebCore: · f5572ec2
      ddkilzer authored
              WebCore.vcproj change reviewed by Darin.  Additional build files updated by ddkilzer.
      
              * CMakeLists.txt: Removed RenderLineEdit.cpp.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Removed RenderLineEdit.cpp and RenderLineEdit.h.
              * WebCoreSources.bkl: Removed RenderLineEdit.cpp.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18515 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f5572ec2
  23. 11 Dec, 2006 1 commit
    • darin's avatar
      WebCore: · cb3524af
      darin authored
              Reviewed by Brady.
      
              - http://bugs.webkit.org/show_bug.cgi?id=11794
                fix lifetime problems affecting Frame's ownerElement pointer
      
              * CMakeLists.txt:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              Updated for new source files.
      
              * WebCore.exp: Updated for changes to entry point names.
      
              * bridge/mac/FrameMac.h:
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::FrameMac):
              * bridge/win/FrameWin.h:
              * bridge/win/FrameWin.cpp: (WebCore::FrameWin::FrameWin):
              * platform/qt/FrameQt.h:
              * platform/qt/FrameQt.cpp: (WebCore::FrameQt::FrameQt):
              Updated owner element type to HTMLFrameOwnerElement.
      
              * bridge/mac/WebCoreFrameBridge.h: Removed non-C++ case since we don't
              use that any more. Updated owner element type to HTMLFrameOwnerElement.
      
              * dom/Document.cpp: Added include so that the ownerElement function can
              compile (since it downcasts an HTMLFrameOwnerElement to an Element).
      
              * html/HTMLFrameElement.cpp:
              (WebCore::containingFrameSetElement): Moved this function in here; it
              doesn't need to be a member function.
              (WebCore::HTMLFrameElement::attach): Updated to call this.
      
              * html/HTMLFrameElementBase.h:
              * html/HTMLFrameElementBase.cpp:
              (WebCore::HTMLFrameElementBase::HTMLFrameElementBase): Inherit from
              HTMLFrameOwnerElement. Removed contentFrame, contentDocument, and
              containingFrameSetElement. Removed friend classes.
      
              * html/HTMLFrameOwnerElement.h: Added.
              * html/HTMLFrameOwnerElement.cpp: Added.
      
              * html/HTMLEmbedElement.h:
              * html/HTMLEmbedElement.cpp:
              * html/HTMLObjectElement.h:
              * html/HTMLObjectElement.cpp:
              Remove now-unneeded contentDocument functions.
      
              * html/HTMLPlugInElement.h:
              * html/HTMLPlugInElement.cpp:
              (WebCore::HTMLPlugInElement::HTMLPlugInElement): Inherit from
              HTMLFrameOwnerElement.
      
              * loader/FormState.h:
              * loader/FormState.cpp: Use HTMLFormElement instead of just Element.
      
              * loader/FrameLoader.h:
              * loader/FrameLoader.cpp:
              (WebCore::FrameLoader::requestFrame): Use HTMLFormElement.
              (WebCore::FrameLoader::loadSubframe): Ditto.
              (WebCore::FrameLoader::requestObject): Don't pass an element parameter
              to shouldUsePlugin, and remove now-unneeded type casts.
              (WebCore::FrameLoader::shouldUsePlugin): Removed unneeded element parameter.
              (WebCore::FrameLoader::handleFallbackContent): Use HTMLFrameOwnerElement.
              (WebCore::FrameLoader::updateBaseURLForEmptyDocument): Ditto.
              (WebCore::FrameLoader::isHostedByObjectElement): Ditto.
              * loader/mac/FrameLoaderMac.mm:
              (WebCore::FrameLoader::load): Use HTMLFormElement.
              (WebCore::FrameLoader::post): Ditto.
              (WebCore::FrameLoader::createFrame): Use HTMLFrameOwnerElement.
      
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/Frame.cpp:
              (WebCore::parentFromOwnerElement): Use HTMLFrameOwnerElement.
              (WebCore::Frame::Frame): Ditto. Also set m_contentFrame on the owner element.
              (WebCore::Frame::ownerElement): Ditto.
              (WebCore::Frame::ownerRenderer): Ditto.
              (WebCore::Frame::disconnectOwnerElement): Clear m_contentFrame on the owner
              element before disconnecting it.
              (WebCore::FramePrivate::FramePrivate): Use HTMLFrameOwnerElement.
      
              * page/mac/EventHandlerMac.mm: Include HTMLFrameOwnerElement.h so that
              the code here will compile (no code changes needed).
      
              * rendering/RenderFrame.cpp: (WebCore::RenderFrame::viewCleared):
              Updated so that RenderFrame doesn't need to be a friend of HTMLFrameElementBase.
      
              * rendering/RenderPart.h:
              * rendering/RenderPart.cpp: (WebCore::RenderPart::RenderPart):
              Use HTMLFrameOwnerElement.
      
              * rendering/RenderPartObject.h:
              * rendering/RenderPartObject.cpp:
              (WebCore::RenderPartObject::RenderPartObject): Use HTMLFrameOwnerElement.
              (WebCore::RenderPartObject::viewCleared): Updated so that RenderFrame doesn't
              need to be a friend of HTMLFrameElementBase.
      
              - other changes
      
              * platform/network/ResourceHandleInternal.h: Added Noncopyable and
              fixed indentation.
      
      WebKit:
      
              Reviewed by Brady.
      
              - http://bugs.webkit.org/show_bug.cgi?id=11794
                fix lifetime problems affecting Frame's ownerElement pointer
      
              * WebCoreSupport/WebFrameBridge.mm:
              (-[WebFrameBridge finishInitializingWithPage:WebCore::frameName:frameView:ownerElement:]):
              (-[WebFrameBridge initSubframeWithOwnerElement:frameName:frameView:]):
              (-[WebFrameBridge createChildFrameNamed:withURL:referrer:ownerElement:allowsScrolling:marginWidth:marginHeight:]):
              Use HTMLFrameOwnerElement.
      
              * WebCoreSupport/WebFrameLoaderClient.mm: Include the relevant headers for the
              HTMLFormElement class.
      
              * WebKit.xcodeproj/project.pbxproj: Let Xcode have its way.
      
              * WebView/WebFrame.mm: (-[WebFrame frameElement]): Update includes and types for the
              change in return type of ownerElement.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18163 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cb3524af
  24. 04 Dec, 2006 1 commit
    • darin's avatar
      LayoutTests: · 5b3aa63c
      darin authored
              Reviewed by Adele.
      
              - test the part of http://bugs.webkit.org/show_bug.cgi?id=11628
                REGRESSION (r17597): Command-return in text fields doesn't open a new tab or window
                that can easily be tested from the DOM -- this only checks that
                simulated mouse events from clicking on a link have the key state
                from the Enter key keyboard event, which is one part of the fix
                for the bug above
      
              * fast/events/simulated-key-state-expected.txt: Added.
              * fast/events/simulated-key-state.html: Added.
      
      WebCore:
      
              Reviewed by Adele.
      
              - fix another part of http://bugs.webkit.org/show_bug.cgi?id=11628
                REGRESSION (r17597): Command-return in text fields doesn't open a new tab or window
      
              This fixes command-return when the focus is on a link.
              Despite the title of the bug, Mitz wanted me to fix both, and I will not
              say no to him!
      
              Test: fast/events/simulated-key-state.html
      
              * dom/EventTargetNode.cpp:
              (WebCore::EventTargetNode::dispatchSimulatedMouseEvent): Instead of always passing
              false for all the key state in simulated mouse events, pass the state from the
              first underlying event in the chain that has key state; in the case in the bug,
              the keyboard event will be the underlying event itself and we'll propagate the
              alt key modifier to the mouse event, resulting in the effect we want. It's nice
              that JavaScript also gets to see the proper modifiers in the mouse event.
      
              * html/HTMLAnchorElement.cpp: (WebCore::HTMLAnchorElement::defaultEventHandler):
              Added code to pass in an underlying event to dispatchSimulatedClick. After looking
              at all the other callers, this seems to be the only one that needs to pass an
              event that is currently passing 0. Also removed the code that only simulated a
              click when the event has a PlatformKeyboardEvent -- no reason for that and it
              prevented me from writing a layout test for the fix. 
      
              * dom/UIEventWithKeyState.h: Added findEventWithKeyState function that walks the
              underlyingEvent chain to find the first event that has key state. This already
              existed in WebKit, but I wanted to use it in dispatchSimulatedMouseEvent.
              * dom/UIEventWithKeyState.cpp: Added.
      
              * CMakeLists.txt: Added UIEventWithKeyState.cpp.
              * WebCore.vcproj/WebCore/WebCore.vcproj: Added UIEventWithKeyState.cpp.
              * WebCore.xcodeproj/project.pbxproj: Added UIEventWithKeyState.cpp.
              * WebCoreSources.bkl: Added UIEventWithKeyState.cpp.
      
              * WebCore.exp: Added findEventWithKeyState, used by WebKit.
      
      WebKit:
      
              Reviewed by Adele.
      
              * WebCoreSupport/WebFrameLoaderClient.mm:
              (WebFrameLoaderClient::actionDictionary): Changed to use the new
              findEventWithKeyState function in WebCore instead of a local function
              in this file.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18012 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b3aa63c
  25. 12 Nov, 2006 2 commits
    • bdash's avatar
      2006-11-13 Mark Rowe <bdash@webkit.org> · 08d3e46a
      bdash authored
              Reviewed by Mitz.
      
              Fix some Linux/Gdk build issues noted by Alp Toker.
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCoreSources.bkl:
              * platform/graphics/gdk/ImageGdk.cpp:
              (WebCore::Image::loadPlatformResource):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17743 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      08d3e46a
    • bdash's avatar
      2006-11-12 Mark Rowe <bdash@webkit.org> · 3e7c4ace
      bdash authored
              Reviewed by Mitz.
      
              Linux/Gdk compilation fixes, and bakefile cleanups.  Based on patches by
              Alp Toker.
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCoreSources.bkl:
              * page/PageState.cpp:
              * platform/gdk/ChromeClientGdk.h:
              (WebCore::ChromeClientGdk::ref):
              (WebCore::ChromeClientGdk::deref):
              * platform/gdk/FrameGdk.cpp:
              (WebCore::FrameGdkClientDefault::openURL):
              (WebCore::FrameGdkClientDefault::didReceiveData):
              (WebCore::FrameGdkClientDefault::receivedAllData):
              (WebCore::FrameGdk::FrameGdk):
              (WebCore::FrameGdk::~FrameGdk):
              * platform/gdk/FrameGdk.h:
              * platform/gdk/KeyEventGdk.cpp:
              (WebCore::keyIdentifierForGdkKeyCode):
              * platform/gdk/ScreenClientGdk.h: Removed.
              * platform/gdk/TemporaryLinkStubs.cpp:
              (FrameGdk::canPaste):
              (FrameGdk::originalRequestURL):
              (TextField::TextField):
              * platform/network/gdk/ResourceHandleManager.cpp:
              (WebCore::ResourceHandleManager::downloadTimerCallback):
              (WebCore::ResourceHandleManager::add):
              (WebCore::ResourceHandleManager::cancel):
              * webcore-base.bkl:
      2006-11-12  Mark Rowe  <bdash@webkit.org>
      
              Reviewed by Mitz.
      
              Clean up of JavaScriptCore bakefiles.
      
              * JavaScriptCoreSources.bkl:
              * jscore.bkl:
      2006-11-12  Mark Rowe  <bdash@webkit.org>
      
              Reviewed by Mitz.
      
              Clean up of GdkLauncher bakefile.
      
              * GdkLauncher/gdklauncher.bkl:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17741 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3e7c4ace
  26. 07 Nov, 2006 1 commit
  27. 30 Oct, 2006 1 commit
    • darin's avatar
      Reviewed by Adam. · c1116559
      darin authored
              - fix FrameLoader files so they can be built on non-Mac platforms
      
              * page/FramePrivate.h:
              (WebCore::FramePrivate::FramePrivate): Added code to create the frame loader.
              (WebCore::FramePrivate::~FramePrivate): Added code to delete the frame loader.
      
              * page/Page.h:
              * page/Page.cpp: (WebCore::Page::setDefersLoading): Removed the
              #if PLATFORM(MAC) that Adam added as a stop-gap when I did this wrong
              the other day.
      
              * bridge/mac/FrameMac.mm:
              (WebCore::FrameMac::FrameMac): Removed code to create the frame loader.
              (WebCore::FrameMac::~FrameMac): Removed code to delete the frame loader.
      
              * loader/FrameLoader.h: Changed import to include, added #if PLATFORM(MAC)
              around the PolicyCheck definition.
      
              * loader/FormState.cpp: Changed import to include.
              * loader/FrameLoader.cpp: Ditto.
              * loader/MainResourceLoader.h: Ditto.
      
              * loader/FrameLoaderTypes.h: Added a header guard.
      
              * loader/NetscapePlugInStreamLoader.h: Changed import to include.
              Added #if PLATFORM(MAC) around Mac-specific details.
              * loader/SubresourceLoader.h: Ditto.
      
              * page/Frame.cpp: (WebCore::Frame::loader): Updated name of loader to
              m_loader from m_frameLoader.
      
              * CMakeLists.txt: Updated.
              * WebCoreSources.bkl: Updated.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17442 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c1116559
  28. 29 Oct, 2006 2 commits
    • darin's avatar
      WebCore: · 5b2cbe11
      darin authored
              - did the do-webcore-rename renames, including a number of changes
                to the names of loader files (and WebResourceLoader -> ResourceLoader),
                jScript() to scriptProxy(), jScriptEnabled() to javaScriptEnabled(),
                and improvements to the names of decoder classes and their source
                files (Decoder -> TextResourceDecoder, StreamingTextDecoder -> TextCodec)
      
      WebKit:
      
              - update for the WebCore renames
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17431 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      5b2cbe11
    • mjs's avatar
      Rubber stamped by Darin. · 1d734efa
      mjs authored
              - renamed ResourceLoader to ResourceHandle (and same for related classes)
      
              * CMakeLists.txt:
              * Projects/gdk/webcore-gdk.bkl:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bridge/mac/FrameMac.mm:
              * bridge/win/FrameWin.cpp:
              * dom/XMLTokenizer.cpp:
              * loader/Cache.cpp:
              * loader/CachedResource.h:
              * loader/LoaderFunctions.h:
              * loader/icon/IconLoader.cpp:
              (IconLoader::startLoading):
              (IconLoader::didReceiveData):
              (IconLoader::didFinishLoading):
              * loader/icon/IconLoader.h:
              * loader/loader.cpp:
              (WebCore::Loader::servePendingRequests):
              (WebCore::Loader::receivedAllData):
              (WebCore::Loader::receivedResponse):
              (WebCore::Loader::didReceiveData):
              (WebCore::Loader::cancelRequests):
              (WebCore::Loader::jobForRequest):
              * loader/loader.h:
              * loader/mac/IconLoaderMac.mm:
              (IconLoader::receivedResponse):
              * loader/mac/LoaderFunctionsMac.mm:
              * loader/mac/WebLoader.h:
              * loader/mac/WebSubresourceLoader.h:
              * loader/mac/WebSubresourceLoader.mm:
              (WebCore::SubresourceLoader::SubresourceLoader):
              (WebCore::SubresourceLoader::create):
              * platform/gdk/FrameGdk.cpp:
              (WebCore::FrameGdkClientDefault::FrameGdkClientDefault):
              (WebCore::FrameGdkClientDefault::openURL):
              (WebCore::FrameGdkClientDefault::submitForm):
              (WebCore::FrameGdkClientDefault::receivedResponse):
              (WebCore::FrameGdkClientDefault::didReceiveData):
              (WebCore::FrameGdkClientDefault::receivedAllData):
              * platform/gdk/FrameGdk.h:
              * platform/gdk/TemporaryLinkStubs.cpp:
              (WebCore::ServeSynchronousRequest):
              (WebCore::ResourceHandle::assembleResponseHeaders):
              (WebCore::ResourceHandle::retrieveCharset):
              * platform/network/ResourceHandle.cpp: Added.
              (WebCore::ResourceHandle::ResourceHandle):
              (WebCore::ResourceHandle::create):
              (WebCore::ResourceHandle::isErrorPage):
              (WebCore::ResourceHandle::error):
              (WebCore::ResourceHandle::setError):
              (WebCore::ResourceHandle::responseEncoding):
              (WebCore::ResourceHandle::responseHTTPHeadersAsString):
              (WebCore::ResourceHandle::kill):
              (WebCore::ResourceHandle::requestHeaders):
              (WebCore::ResourceHandle::url):
              (WebCore::ResourceHandle::postData):
              (WebCore::ResourceHandle::method):
              (WebCore::ResourceHandle::client):
              * platform/network/ResourceHandle.h: Added.
              (WebCore::ResourceHandle::getInternal):
              * platform/network/ResourceHandleClient.h: Added.
              (WebCore::ResourceHandleClient::~ResourceHandleClient):
              (WebCore::ResourceHandleClient::didReceiveData):
              (WebCore::ResourceHandleClient::didFinishLoading):
              (WebCore::ResourceHandleClient::receivedRedirect):
              (WebCore::ResourceHandleClient::receivedResponse):
              (WebCore::ResourceHandleClient::receivedAllData):
              * platform/network/ResourceHandleInternal.h: Added.
              (WebCore::ResourceHandleInternal::ResourceHandleInternal):
              * platform/network/ResourceLoader.cpp: Removed.
              * platform/network/ResourceLoader.h: Removed.
              * platform/network/ResourceLoaderClient.h: Removed.
              * platform/network/ResourceLoaderInternal.h: Removed.
              * platform/network/cf/ResourceHandleCFNet.cpp: Added.
              (WebCore::willSendRequest):
              (WebCore::didReceiveResponse):
              (WebCore::didReceiveData):
              (WebCore::didFinishLoading):
              (WebCore::didFail):
              (WebCore::willCacheResponse):
              (WebCore::didReceiveChallenge):
              (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
              (WebCore::ResourceHandle::~ResourceHandle):
              (WebCore::ResourceHandle::start):
              (WebCore::ResourceHandle::cancel):
              * platform/network/cf/ResourceLoaderCFNet.cpp: Removed.
              * platform/network/gdk/ResourceHandleCurl.cpp: Added.
              (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
              (WebCore::ResourceHandle::~ResourceHandle):
              (WebCore::ResourceHandle::start):
              (WebCore::ResourceHandle::cancel):
              * platform/network/gdk/ResourceHandleManager.cpp: Added.
              (WebCore::ResourceHandleManager::ResourceHandleManager):
              (WebCore::ResourceHandleManager::get):
              (WebCore::ResourceHandleManager::useSimpleTransfer):
              (WebCore::writeCallback):
              (WebCore::ResourceHandleManager::downloadTimerCallback):
              (WebCore::ResourceHandleManager::remove):
              (WebCore::ResourceHandleManager::add):
              (WebCore::ResourceHandleManager::cancel):
              * platform/network/gdk/ResourceHandleManager.h: Added.
              * platform/network/gdk/ResourceLoaderCurl.cpp: Removed.
              * platform/network/gdk/ResourceLoaderManager.cpp: Removed.
              * platform/network/gdk/ResourceLoaderManager.h: Removed.
              * platform/network/mac/ResourceHandleMac.mm: Added.
              (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
              (WebCore::ResourceHandle::~ResourceHandle):
              (WebCore::ResourceHandle::start):
              (WebCore::ResourceHandle::assembleResponseHeaders):
              (WebCore::ResourceHandle::retrieveResponseEncoding):
              (WebCore::ResourceHandle::receivedResponse):
              (WebCore::ResourceHandle::cancel):
              (WebCore::ResourceHandle::redirectedToURL):
              (WebCore::ResourceHandle::addData):
              (WebCore::ResourceHandle::finishJobAndHandle):
              (WebCore::ResourceHandle::reportError):
              * platform/network/mac/ResourceLoaderMac.mm: Removed.
              * platform/network/qt/ResourceHandleManager.cpp: Added.
              (WebCore::ResourceHandleManager::ResourceHandleManager):
              (WebCore::ResourceHandleManager::~ResourceHandleManager):
              (WebCore::ResourceHandleManager::self):
              (WebCore::ResourceHandleManager::slotData):
              (WebCore::ResourceHandleManager::slotMimetype):
              (WebCore::ResourceHandleManager::slotResult):
              (WebCore::ResourceHandleManager::remove):
              (WebCore::ResourceHandleManager::add):
              (WebCore::ResourceHandleManager::cancel):
              * platform/network/qt/ResourceHandleManager.h: Added.
              * platform/network/qt/ResourceHandleQt.cpp: Added.
              (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
              (WebCore::ResourceHandle::~ResourceHandle):
              (WebCore::ResourceHandle::start):
              (WebCore::ResourceHandle::cancel):
              (WebCore::ResourceHandle::assembleResponseHeaders):
              (WebCore::ResourceHandle::retrieveResponseEncoding):
              (WebCore::ResourceHandle::receivedResponse):
              (WebCore::ResourceHandle::extractCharsetFromHeaders):
              * platform/network/qt/ResourceLoaderManager.cpp: Removed.
              * platform/network/qt/ResourceLoaderManager.h: Removed.
              * platform/network/qt/ResourceLoaderQt.cpp: Removed.
              * platform/network/win/ResourceHandleWin.cpp: Added.
              (WebCore::):
              (WebCore::addToOutstandingJobs):
              (WebCore::lookupResourceHandle):
              (WebCore::ResourceHandleWndProc):
              (WebCore::initializeOffScreenResourceHandleWindow):
              (WebCore::ResourceHandleInternal::~ResourceHandleInternal):
              (WebCore::ResourceHandle::~ResourceHandle):
              (WebCore::ResourceHandle::onHandleCreated):
              (WebCore::ResourceHandle::onRequestRedirected):
              (WebCore::ResourceHandle::onRequestComplete):
              (WebCore::ResourceHandle::start):
              (WebCore::ResourceHandle::fileLoadTimer):
              (WebCore::ResourceHandle::cancel):
              (WebCore::ResourceHandle::setHasReceivedResponse):
              (WebCore::ResourceHandle::hasReceivedResponse):
              * platform/network/win/ResourceHandleWin.h: Added.
              * platform/network/win/ResourceLoaderWin.cpp: Removed.
              * platform/network/win/ResourceLoaderWin.h: Removed.
              * platform/qt/FrameQt.cpp:
              * platform/qt/FrameQtClient.cpp:
              (WebCore::FrameQtClientDefault::openURL):
              (WebCore::FrameQtClientDefault::submitForm):
              (WebCore::FrameQtClientDefault::receivedResponse):
              (WebCore::FrameQtClientDefault::didReceiveData):
              (WebCore::FrameQtClientDefault::receivedAllData):
              * platform/qt/FrameQtClient.h:
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::ResourceHandle::assembleResponseHeaders):
              (WebCore::ResourceHandle::retrieveResponseEncoding):
              (WebCore::ServeSynchronousRequest):
              * xml/XSLTProcessor.cpp:
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::didFinishLoading):
              (WebCore::XMLHttpRequest::receivedRedirect):
              (WebCore::XMLHttpRequest::didReceiveData):
              * xml/xmlhttprequest.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17410 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1d734efa
  29. 22 Oct, 2006 1 commit
    • mjs's avatar
      Reviewed by Anders. · cdb60b70
      mjs authored
              - moved ResourceLoader and related files to platform/network
              in preparation for building out this API.
      
              I tried to update all the build systems but I'm not sure they are
              all fixed properly
      
              * page/ResourceRequest.h: Moved to platform/network.
              * platform/ResourceLoader.cpp: Moved to platform/network.
              * platform/ResourceLoader.h: Moved to platform/network.
              * platform/ResourceLoaderClient.h: Moved to platform/network.
              * platform/ResourceLoaderInternal.h: Moved to platform/network.
              * platform/cf/ResourceLoaderCFNet.cpp: Moved to platform/network/cf.
              * platform/gdk/ResourceLoaderCurl.cpp: Moved to platform/network/gdk.
              * platform/gdk/ResourceLoaderManager.cpp: Moved to platform/network/gdk.
              * platform/gdk/ResourceLoaderManager.h: Moved to platform/network/gdk.
              * platform/mac/ResourceLoaderMac.mm: Moved to platform/network/mac.
              * platform/qt/ResourceLoaderManager.cpp: Moved to platform/network/qt.
              * platform/qt/ResourceLoaderManager.h: Moved to platform/network/qt.
              * platform/qt/ResourceLoaderQt.cpp: Moved to platform/network/qt.
              * platform/win/ResourceLoaderWin.cpp: Moved to platform/network/win.
              * platform/win/ResourceLoaderWin.h: Moved to platform/network/win.
              * webcore-base.bkl: Updated for new paths.
              * CMakeLists.txt: ditto
              * Projects/gdk/webcore-gdk.bkl: ditto
              * WebCore.xcodeproj/project.pbxproj: ditto
              * WebCoreSources.bkl: ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17210 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cdb60b70
  30. 05 Oct, 2006 1 commit
  31. 03 Oct, 2006 1 commit
    • bdash's avatar
      2006-10-03 Mark Rowe <bdash@webkit.org> · 52b3d239
      bdash authored
              Reviewed by Eric.
      
              Stop Bakefile-generated Makefile from running `pkg-config' multiple times per file.
      
              * presets.bkl: Make use of "options" and Python commands to run pkg-config etc up front.
      
      2006-10-03  Mark Rowe  <bdash@webkit.org>
      
              Reviewed by Eric.
      
              http://bugs.webkit.org/show_bug.cgi?id=10981
              Linux/GDK build fixes
      
              Based on a patch by Krzysztof Kowalczyk.
      
              * WebCoreSources.bkl:
              * platform/gdk/FrameGdk.cpp:
              (WebCore::doScroll):
              (WebCore::FrameGdk::handleGdkEvent):
              * platform/gdk/PlatformScrollBar.h: Added.
              (WebCore::PlatformScrollBar::isWidget):
              * platform/gdk/ScrollViewGdk.cpp:
              * platform/gdk/TemporaryLinkStubs.cpp:
              (FrameView::passMousePressEventToScrollbar):
              (FrameView::passMousePressEventToSubframe):
              (FrameView::passMouseReleaseEventToSubframe):
              (FrameView::passMouseMoveEventToSubframe):
              (FrameView::passWheelEventToSubframe):
              (Cursor::Cursor):
              (Widget::invalidate):
              (Widget::invalidateRect):
              (ScrollView::wheelEvent):
              (ScrollView::convertToContainingWindow):
              (ScrollView::convertFromContainingWindow):
              (GraphicsContext::clip):
              (PlatformScrollBar::PlatformScrollBar):
              (PlatformScrollBar::updateThumbPosition):
              (PlatformScrollBar::updateThumbProportion):
              (ScrollBar::ScrollBar):
              (ScrollBar::setProportion):
              (WebCore::supportedKeySizes):
              (WebCore::signedPublicKeyAndChallengeString):
              * platform/gdk/WheelEventGdk.cpp:
              (WebCore::PlatformWheelEvent::PlatformWheelEvent):
              * platform/gdk/WidgetGdk.cpp:
              (WebCore::Widget::convertToContainingWindow):
              (WebCore::Widget::convertFromContainingWindow):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16733 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      52b3d239
  32. 15 Sep, 2006 1 commit
    • bdash's avatar
      2006-09-15 Krzysztof Kowalczyk <kkowalczyk@gmail.com> · e2ec6f25
      bdash authored
              Reviewed by Adam.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=10864
              Bug 10864: Linux\GDK build fixes
      
              * JavaScriptCoreSources.bkl:
              * jscore.bkl:
      
      2006-09-15  Krzysztof Kowalczyk  <kkowalczyk@gmail.com>
      
              Reviewed by Adam.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=10864
              Bug 10864: Linux\GDK build fixes
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCoreSources.bkl:
              * platform/gdk/FontCacheGdk.cpp:
              * platform/gdk/FontDataGdk.cpp:
              (WebCore::FontData::platformInit):
              * platform/gdk/FontGdk.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/gdk/FrameGdk.cpp:
              (WebCore::FrameGdk::handleGdkEvent):
              * platform/gdk/FrameGdk.h:
              * platform/gdk/ImageGdk.cpp: Added.
              (WebCore::Image::initPlatformData):
              (WebCore::Image::invalidatePlatformData):
              (WebCore::Image::loadPlatformResource):
              (WebCore::Image::supportsType):
              * platform/gdk/RenderPopupMenuGdk.cpp:
              (WebCore::RenderPopupMenuGdk::hidePopup):
              * platform/gdk/RenderPopupMenuGdk.h:
              * platform/gdk/ScreenGdk.cpp:
              (WebCore::drawableForPage):
              (WebCore::screenRect):
              (WebCore::screenDepth):
              (WebCore::usableScreenRect):
              (WebCore::scaleFactor):
              * platform/gdk/SystemTimeLinux.cpp:
              (WebCore::currentTime):
              * platform/gdk/TemporaryLinkStubs.cpp:
              (FrameGdk::bindingRootObject):
              (FrameGdk::markMisspellings):
              (WebCore::screenDepthPerComponent):
              (WebCore::screenIsMonochrome):
              (WebCore::fileButtonChooseFileLabel):
              (WebCore::fileButtonNoFileSelectedLabel):
              (FrameGdk::shouldChangeSelection):
              (FrameGdk::respondToChangedSelection):
              (FrameGdk::respondToChangedContents):
              (Path::contains):
              (PlatformScrollBar::PlatformScrollBar):
              (PlatformScrollBar::~PlatformScrollBar):
              (PlatformScrollBar::width):
              (PlatformScrollBar::height):
              (PlatformScrollBar::setEnabled):
              (PlatformScrollBar::paint):
              (PlatformScrollBar::setScrollBarValue):
              (PlatformScrollBar::setKnobProportion):
              (PlatformScrollBar::setRect):
              (ScrollBar::ScrollBar):
              (FileChooser::FileChooser):
              (FileChooser::~FileChooser):
              (FileChooser::openFileChooser):
              (FileChooser::basenameForWidth):
              (FileChooser::uploadControlDetaching):
              (FileChooser::chooseFile):
              (Icon::Icon):
              (Icon::~Icon):
              (Icon::newIconForFile):
              (Icon::paint):
              (IconLoader::stopLoading):
              (IconLoader::startLoading):
              (IconLoader::createForFrame):
              (IconDatabase::isIconExpiredForIconURL):
              (IconDatabase::hasEntryForIconURL):
              (IconDatabase::sharedIconDatabase):
              * platform/gdk/WidgetGdk.cpp:
              * webcore-base.bkl:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16382 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e2ec6f25
  33. 05 Sep, 2006 1 commit
    • darin's avatar
      LayoutTests: · b3547a37
      darin authored
              Reviewed by Alexey.
      
              - test for bug where the charset in a link element for a CSS stylesheet is ignored.
                I noticed this while working on new text encoding machinery.
      
              * fast/encoding/css-link-charset-expected.txt: Added.
              * fast/encoding/css-link-charset.css: Added.
              * fast/encoding/css-link-charset.html: Added.
      
              - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=10681
                REGRESSION: Reproducible crash at Wikipedia
                (Alexey wrote this one, I reviewed.)
      
              * fast/forms/form-data-encoding-normalization-overrun-expected.txt: Added.
              * fast/forms/form-data-encoding-normalization-overrun.html: Added.
      
              - and a tweak to an existing test
      
              * fast/forms/form-data-encoding.html: Changed to dump encoded URL so it's easier to
              diagnose this when it fails.
      
      WebCore:
      
              Reviewed by Alexey.
      
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=10728
                text encodings should work without a numeric ID
      
              - includes a fix for http://bugzilla.opendarwin.org/show_bug.cgi?id=10681
                REGRESSION: Reproducible crash at Wikipedia
      
              - fixed a bug where link elements would not set the charset properly for
                CSS stylesheets they loaded
      
              - converted DeprecatedString code paths that are related to decoding web
                pages to use String instead, to ensure that conversion back and forth won't
                hurt performance
      
              Test: fast/encoding/css-link-charset.html
              Test: fast/forms/form-data-encoding-normalization-overrun.html
      
              Coverage for encoding issues is pretty good, so we probably don't need more
              tests to land this. Our existing tests did find issues with this patch while
              it was under development. And I suppose it would be nice to have even more tests.
      
              * platform/TextEncoding.h:
              * platform/TextEncoding.cpp:
              (WebCore::addEncodingName): Added. Used to build up the set used by isJapanese.
              (WebCore::TextEncoding::TextEncoding): Removed boolean "eight bit only" parameter and
              added an overload for String as well as const char*. Simplified because now the only
              data member is m_name -- calls the registry's atomicCanonicalTextEncodingName function
              to make the name canonical (resolve aliases) and atomic (use a single pointer for each
              encoding name so we can compare and hash efficiently).
              (WebCore::TextEncoding::decode): Renamed from toUnicode. Just a simple wrapper on top
              of TextDecoder that can be used when the data to decode is all present at once.
              (WebCore::TextEncoding::encode): Renamed from fromUnicode. Handles the normalization and
              then uses the registry to get a codec to handle the rest.
              (WebCore::TextEncoding::usesVisualOrdering): New implementation that compares with the
              name of the only encoding that uses visual ordering. We blur the concepts a bit so that
              we treat the visual ordering and logical ordering variations as two separate encodings.
              (WebCore::TextEncoding::isJapanese): New implementation that uses a set to efficiently
              determine if an encoding is Japanese.
              (WebCore::TextEncoding::backslashAsCurrencySymbol): New implementation that compares
              with the names of the two encodings that have the strange backslash.
              (WebCore::TextEncoding::closest8BitEquivalent): Added. Replaces the old "eight bit only"
              boolean parameter to the constructor.
              (WebCore::ASCIIEncoding): Added.
              (WebCore::Latin1Encoding): Added.
              (WebCore::UTF16BigEndianEncoding): Added.
              (WebCore::UTF16LittleEndianEncoding): Added.
              (WebCore::UTF8Encoding): Added.
              (WebCore::WindowsLatin1Encoding): Added.
      
              * platform/TextEncodingRegistry.h: Added.
              * platform/TextEncodingRegistry.cpp: Added. Keeps a table of all the character set
              aliases and names and another of all the codecs and parameters for each name.
      
              * platform/TextDecoder.h: Added.
              * platform/TextDecoder.cpp: Added. Contains logic to look for a BOM and hand the data
              to the proper codec, based on code that used to be in both the ICU and Mac codecs.
      
              * platform/StreamingTextDecoder.h: Renamed class to TextCodec. We'll rename
              the files in a later check-in. Moved creation functions into TextEncodingRegistry.h.
              Added typedefs of the registrar function types so classes derived from this one
              can use them without including the TextEncodingRegistry header. Renamed toUnicode
              and fromUnicode to decode and encode. Changed the parameter and return types so that
              the parameters are pointers to the data and the return types are String and CString.
              * platform/StreamingTextDecoder.cpp:
              (WebCore::TextCodec::appendOmittingBOM): Added. Helper function used by multiple
              classes derived from this one.
      
              * platform/TextCodecLatin1.h: Added.
              * platform/TextCodecLatin1.cpp: Added. Contains logic to handle encoding and decoding
              Windows Latin-1, based on code that used to be in both the ICU and Mac codecs.
      
              * platform/TextCodecUTF16.h: Added.
              * platform/TextCodecUTF16.cpp: Added. Contains logic to handle encoding and decoding
              UTF-16, based on code that used to be in both the ICU and Mac codecs.
      
              * platform/StreamingTextDecoderICU.h: Renamed class to TextCodecICU. We'll rename
              the files in a later check-in. Removed all the functions having to do with handling
              BOM, UTF-16, and Latin-1; those are now handled elsewhere. Removed textEncodingSupported
              because that's superseded by the registry. Added registry hook functions.
              * platform/StreamingTextDecoderICU.cpp:
              (WebCore::TextCodecICU::registerEncodingNames): Added. Registers all encodings that
              ICU can handle with the "IANA" standard. Also includes a special case for a particular
              type of encoding for Hebrew that uses logical ordering. Also includes aliases that are
              not in ICU but that were historically known to WebKit for encodings that ICU handles. 
              (WebCore::newTextCodecICU): Added. Used by registerCodecs.
              (WebCore::TextCodecICU::registerCodecs): Added. Registers codecs for the same encodings
              as above.
              (WebCore::TextCodecICU::TextCodecICU): Much simplified since this now only handles the
              actual ICU encoding and decoding.
              (WebCore::TextCodecICU::~TextCodecICU): Renamed.
              (WebCore::TextCodecICU::releaseICUConverter): Changed to be a const member function.
              (WebCore::TextCodecICU::createICUConverter): Changed to be a const member function and
              to check if the cached converter can be reused in a simpler way.
              (WebCore::TextCodecICU::decode): Updated for changes to types.
              (WebCore::TextCodecICU::encode): Updated for changes to types, and removed normalization
              since this is now handled by the caller.
      
              * platform/mac/StreamingTextDecoderMac.h: Renamed class to TextCodecMac. We'll rename
              the files in a later check-in. Removed all the functions having to do with handling
              BOM, UTF-16, and Latin-1; those are now handled elsewhere. Removed textEncodingSupported
              because that's superseded by the registry. Added registry hook functions.
              * platform/mac/StreamingTextDecoderMac.cpp:
              (WebCore::TextCodecMac::registerEncodingNames): Added. Registers encodings based on
              the charset table generated by the make-charset-table.pl perl script.
              (WebCore::newTextCodecMac): Added. Used by registerCodecs.
              (WebCore::TextCodecMac::registerCodecs): Added. Registers codecs for the same encodings
              as above.
              (WebCore::TextCodecMac::TextCodecMac): Much simplified since this now only handles the
              actual TEC/CF encoding and decoding.
              (WebCore::TextCodecMac::~TextCodecMac): Renamed.
              (WebCore::TextCodecMac::releaseTECConverter): Changed to be a const member function.
              (WebCore::TextCodecMac::createTECConverter): Changed to be a const member function.
              (WebCore::TextCodecMac::decode): Updated for changes to types.
              (WebCore::TextCodecMac::encode): Updated for changes to types, and removed normalization
              since this is now handled by the caller.
      
              * platform/mac/mac-encodings.txt: Removed most of the names in this file. This now
              only includes encodings where we want to use Mac OS X Carbon Text Encoding Converter,
              which is only encodings that are not supported by ICU.
              * platform/make-charset-table.pl: Removed flags from output. We don't use them any more.
              * platform/CharsetData.h: Changed from a platform-independent header into a
              Macintosh-specific one. A later patch should move this and rename it. Also
              subsumes ExtraCFEncodings.h.
      
              * WebCore.xcodeproj/project.pbxproj: Added new files. Changed the prefix on the
              "make character sets" rule to be kTextEncoding instead of kCFStringEncoding.
      
              * loader/Decoder.h: Change the default encoding parameter to the constructor to be
              a TextEncoding object. Renamed setEncodingName to setEncoding, and made it take a
              TextEncoding for the encoding. Removed the encodingName and visuallyOrdered functions,
              since TextEncoding supports both directly in a straightforward way. Changed both
              decode and flush functions to return String instead of DeprecatedString. Added a
              number of private functions to factor this class a bit more so it's easier to read.
              Got rid of a number of redundant data members. Changed the buffer to a Vector<char>.
              * loader/Decoder.cpp:
              (WebCore::Decoder::determineContentType): Added. Used by constructor to determine
              the content type based on the passed-in MIME type.
              (WebCore::Decoder::defaultEncoding): Added. Used by constructor to determine the
              default encoding based on the passed in default and the content type.
              (WebCore::Decoder::Decoder): Changed to use the functions above. Also renamed
              m_reachedBody to m_checkedForHeadCharset.
              (WebCore::Decoder::setEncoding): Renamed and changed to take an encoding rather
              than an encoding name.
              (WebCore::Decoder::checkForBOM): Factored out of decode.
              (WebCore::Decoder::checkForCSSCharset): Factored out of decode.
              (WebCore::Decoder::checkForHeadCharset): Factored out of decode.
              (WebCore::Decoder::detectJapaneseEncoding): Factored out of decode.
              (WebCore::Decoder::decode): Refactored so it's no longer one huge function.
              Changed to use the new Vector<char> and the new API for TextDecoder.
              (WebCore::Decoder::flush): Added code to empty out the buffer. Not an issue in
              practice since we don't re-use the decoder after flushing it.
      
              * platform/UChar.h: Added. Has the type named WebCore::UChar that we'll be switching
              to. We'll switch away from the ICU ::UChar type, because we don't want to be so
              closely tied to ICU -- include this instead of <unicode/umachine.h>.
      
              * platform/PlatformString.h:
              * platform/String.cpp:
              (WebCore::String::latin1): Updated for changes to TextEncoding.
              (WebCore::String::utf8): Ditto.
              (WebCore::String::newUninitialized): Added. Gives a way to create a String and
              then write directly into its buffer.
      
              * platform/StringImpl.h: Changed return value for charactersWithNullTermination to
              be a const UChar*. While it's true that this function changes the underlying
              StringImpl, the characters still shouldn't be modified with the returned pointer.
              * platform/StringImpl.cpp:
              (WebCore::StringImpl::charactersWithNullTermination): Updated for change above.
              (WebCore::StringImpl::newUninitialized): Added. Gives a way to create a StringImpl
              and then write directly into its buffer.
      
              * platform/CString.h:
              * platform/CString.cpp: (WebCore::CString::newUninitialized): Added. Gives a way
              to create a CString and then write directly into its buffer.
      
              * bridge/mac/WebCoreFrameBridge.h: Removed textEncoding method, and replaced
              +[WebCoreFrameBridge stringWithData:textEncoding:] with
              -[WebCoreFrameBridge stringWithData:] to avoid having to pass text encoding
              IDs around.
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge setEncoding:userChosen:]): Removed now-unneeded conversion
              to DeprecatedString.
              (-[WebCoreFrameBridge stringByEvaluatingJavaScriptFromString:forceUserGesture:]):
              Ditto.
              (-[WebCoreFrameBridge aeDescByEvaluatingJavaScriptFromString:]): Ditto.
              (-[WebCoreFrameBridge referrer]): Removed now-unneeded call to getNSString.
              (-[WebCoreFrameBridge stringWithData:]): Added. Asks the document's decoder
              what its encoding is, and decodes using that.
              (+[WebCoreFrameBridge stringWithData:textEncodingName:]): Simplified so it
              no longer involved a text encoding ID number.
              (-[WebCoreFrameBridge smartInsertForString:replacingRange:beforeString:afterString:]):
              Changed to use UChar instead of DeprecatedChar.
              (-[WebCoreFrameBridge documentFragmentWithMarkupString:baseURLString:]): Removed
              now-unneeded conversion to DeprecatedString.
              (-[WebCoreFrameBridge documentFragmentWithText:inContext:]): Ditto.
      
              * html/HTMLFormElement.cpp:
              (WebCore::encodeCString): Changed parameter to CString.
              (WebCore::HTMLFormElement::formData): Updated code for improvements to TextEncoding.
      
              * loader/CachedCSSStyleSheet.h:
              * loader/CachedCSSStyleSheet.cpp:
              (WebCore::CachedCSSStyleSheet::CachedCSSStyleSheet): Fixed mistake where the
              decoder was created without passing in the character set. Also changed from
              DeprecatedString to String.
              (WebCore::CachedCSSStyleSheet::setCharset): More of the same.
      
              * bindings/js/kjs_window.h: (KJS::ScheduledAction::ScheduledAction): Changed
              to use String instead of DeprecatedString, UChar instead of DeprecatedChar,
              CString instead of DeprecatedCString, etc.
              * bridge/mac/FormDataMac.mm: (WebCore::arrayFromFormData): Ditto.
              * bridge/mac/FrameMac.h: Ditto.
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::isCharacterSmartReplaceExempt):
              Ditto.
              * bridge/mac/WebCoreAXObject.mm:
              (-[WebCoreAXObject helpText]): Ditto.
              (-[WebCoreAXObject value]): Ditto.
              (-[WebCoreAXObject accessibilityDescription]): Ditto.
              (-[WebCoreAXObject doAXStringForTextMarkerRange:]): Ditto.
              * bridge/mac/WebCoreEncodings.mm: (+[WebCoreEncodings decodeData:]): Ditto.
              Also fixed code that does a deref without a ref to use RefPtr instead.
              * bridge/mac/WebCoreScriptDebugger.mm:
              (-[WebCoreScriptCallFrame evaluateWebScript:]): Ditto.
              * bridge/mac/WebCoreSettings.mm:
              (-[WebCoreSettings setDefaultTextEncoding:]): Ditto.
              * css/CSSImportRule.cpp: (WebCore::CSSImportRule::insertedIntoParent): Ditto.
              * css/cssparser.cpp: (WebCore::CSSParser::lex): Ditto.
              * dom/Document.h:
              * dom/Document.cpp:
              (WebCore::Document::setCharset): Ditto.
              (WebCore::Document::write): Ditto.
              (WebCore::Document::determineParseMode): Ditto.
              * dom/ProcessingInstruction.cpp:
              (WebCore::ProcessingInstruction::checkStyleSheet): Ditto.
              * dom/XMLTokenizer.h:
              * dom/XMLTokenizer.cpp:
              (WebCore::shouldAllowExternalLoad): Ditto.
              (WebCore::createStringParser): Ditto.
              (WebCore::XMLTokenizer::write): Ditto.
              (WebCore::toString): Ditto.
              (WebCore::handleElementAttributes): Ditto.
              (WebCore::XMLTokenizer::startElementNs): Ditto.
              (WebCore::XMLTokenizer::endElementNs): Ditto.
              (WebCore::XMLTokenizer::characters): Ditto.
              (WebCore::XMLTokenizer::processingInstruction): Ditto.
              (WebCore::XMLTokenizer::cdataBlock): Ditto.
              (WebCore::XMLTokenizer::comment): Ditto.
              (WebCore::XMLTokenizer::internalSubset): Ditto.
              (WebCore::getXHTMLEntity): Ditto.
              (WebCore::externalSubsetHandler): Ditto.
              (WebCore::XMLTokenizer::initializeParserContext): Ditto.
              (WebCore::XMLTokenizer::notifyFinished): Ditto.
              (WebCore::xmlDocPtrForString): Ditto.
              (WebCore::parseXMLDocumentFragment): Ditto.
              (WebCore::attributesStartElementNsHandler): Ditto.
              (WebCore::parseAttributes): Ditto.
              * html/FormDataList.h:
              * html/FormDataList.cpp:
              (WebCore::FormDataList::appendString): Ditto. Also changed to call the
              encoding function by its new name and with new parameters.
              (WebCore::FormDataList::appendFile): Ditto.
              * html/HTMLDocument.h:
              * html/HTMLDocument.cpp:
              (WebCore::parseDocTypePart): Ditto.
              (WebCore::containsString): Ditto.
              (WebCore::parseDocTypeDeclaration): Ditto.
              (WebCore::HTMLDocument::determineParseMode): Ditto.
              * html/HTMLInputElement.cpp: (WebCore::HTMLInputElement::appendFormData): Ditto.
              * html/HTMLScriptElement.cpp:
              (WebCore::HTMLScriptElement::parseMappedAttribute): Ditto.
              * html/HTMLTokenizer.h:
              * html/HTMLTokenizer.cpp:
              (WebCore::HTMLTokenizer::scriptHandler): Ditto.
              (WebCore::HTMLTokenizer::parseTag): Ditto.
              (WebCore::HTMLTokenizer::write): Ditto.
              (WebCore::HTMLTokenizer::finish): Ditto.
              (WebCore::parseHTMLDocumentFragment): Ditto.
              * loader/Cache.h:
              * loader/Cache.cpp:
              (WebCore::Cache::requestStyleSheet): Ditto.
              (WebCore::Cache::requestScript): Ditto.
              * loader/CachedResource.h: Ditto.
              * loader/CachedScript.h:
              * loader/CachedScript.cpp:
              (WebCore::CachedScript::CachedScript): Ditto.
              (WebCore::CachedScript::ref): Ditto.
              (WebCore::CachedScript::deref): Ditto.
              (WebCore::CachedScript::setCharset): Ditto.
              (WebCore::CachedScript::data): Ditto.
              (WebCore::CachedScript::checkNotify): Ditto.
              * loader/CachedXBLDocument.h:
              * loader/CachedXBLDocument.cpp:
              (WebCore::CachedXBLDocument::setCharset): Ditto.
              * loader/CachedXSLStyleSheet.h:
              * loader/CachedXSLStyleSheet.cpp:
              (WebCore::CachedXSLStyleSheet::setCharset): Ditto.
              * loader/DocLoader.cpp:
              (WebCore::DocLoader::requestStyleSheet): Ditto.
              (WebCore::DocLoader::requestScript): Ditto.
              * loader/DocLoader.h: Ditto.
              * loader/FormData.h:
              * loader/FormData.cpp:
              (WebCore::FormData::FormData): Ditto.
              (WebCore::FormData::appendFile): Ditto.
              (WebCore::FormData::flattenToString): Ditto.
              * page/Frame.h:
              * page/FramePrivate.h:
              * page/Frame.cpp:
              (WebCore::UserStyleSheetLoader::setStyleSheet): Ditto.
              (WebCore::getString): Ditto.
              (WebCore::Frame::replaceContentsWithScriptResult): Ditto.
              (WebCore::Frame::executeScript): Ditto.
              (WebCore::Frame::clear): Ditto.
              (WebCore::Frame::write): Ditto.
              (WebCore::Frame::endIfNotLoading): Ditto.
              (WebCore::Frame::baseTarget): Ditto.
              (WebCore::Frame::scheduleRedirection): Ditto.
              (WebCore::Frame::scheduleLocationChange): Ditto.
              (WebCore::Frame::scheduleHistoryNavigation): Ditto.
              (WebCore::Frame::changeLocation): Ditto.
              (WebCore::Frame::redirectionTimerFired): Ditto.
              (WebCore::Frame::encoding): Ditto.
              (WebCore::Frame::submitForm): Ditto.
              (WebCore::Frame::referrer): Ditto.
              (WebCore::Frame::isCharacterSmartReplaceExempt): Ditto.
              (WebCore::Frame::setEncoding): Ditto.
              * page/Settings.h: Ditto.
              * platform/SegmentedString.h: Ditto.
              * platform/SegmentedString.cpp: Ditto.
              * xml/XSLStyleSheet.cpp: (WebCore::XSLStyleSheet::parseString): Ditto.
              * xml/XSLTProcessor.cpp:
              (WebCore::transformTextStringToXHTMLDocumentString): Ditto.
              (WebCore::XSLTProcessor::createDocumentFromSource): Ditto.
              * xml/xmlhttprequest.h:
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::open): Ditto.
              (WebCore::XMLHttpRequest::send): Ditto.
              (WebCore::XMLHttpRequest::receivedData): Ditto.
      
              * platform/DeprecatedString.cpp:
              (WebCore::DeprecatedString::fromUtf8): Updated for changes to TextEncoding.
              (WebCore::DeprecatedString::utf8): Ditto.
      
              * platform/KURL.h:
              * platform/KURL.cpp:
              (WebCore::KURL::KURL): Updated to overload based on presence or absence of
              TextEncoding rather than having a default.
              (WebCore::KURL::init): Moved body of constructor in here. Updated to use
              the new TextEncoding interface.
              (WebCore::KURL::decode_string): Updated to overload based on presence or
              absence of TextEncoding rather than having a default. Updated to use
              the new TextEncoding interface.
              (WebCore::encodeRelativeString): Updated to use the new TextEncoding interface.
      
              * platform/Font.cpp: (WebCore::WidthIterator::normalizeVoicingMarks): Fixed
              code to use U_ZERO_ERROR instead of a typecast.
      
              * bindings/js/kjs_proxy.h: Removed unneeded declaration of DeprecatedString.
              * platform/GraphicsContext.h: Ditto.
      
              * platform/GraphicsContext.cpp: Removed unneeded include of "DeprecatedString.h".
              * rendering/break_lines.cpp: Ditto.
              * xml/XMLSerializer.cpp: Ditto.
      
              * platform/mac/FontDataMac.mm: Removed unneeded include of <unicode/unorm.h>.
      
              * platform/CharsetNames.h: Emptied out this file. A later patch could remove it.
              * platform/CharsetNames.cpp: Ditto.
              * platform/mac/ExtraCFEncodings.h: Ditto.
      
      WebKit:
      
              Reviewed by Alexey.
      
              - WebKit side of changes to encoding
      
              * WebView/WebHTMLRepresentation.m: (-[WebHTMLRepresentation documentSource]):
              Changed to call new -[WebCoreFrameBridge stringWithData:] instead of the calling
              the old methods that used a CFStringEncoding: -[WebCoreFrameBridge textEncoding]
              and +[WebCoreFrameBridge stringWithData:textEncoding:].
      
              * WebView/WebResource.m: (-[WebResource _stringValue]): Removed special case for
              nil encoding name. The bridge itself now has the rule that "nil encoding name
              means Latin-1", so we don't need to check for nil.
      
              * WebView/WebFrame.m: (-[WebFrame _checkLoadComplete]): Retain the frame until
              we get the parent frame while walking up parent frames, because it's possible
              for _checkLoadCompleteForThisFrame to release the last reference to the frame.
              (Not reviewed; needed to run performance tests successfully.)
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16245 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      b3547a37
  34. 02 Sep, 2006 1 commit
  35. 15 Aug, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 7cc8b384
      darin authored
              Tweaked and landed by Darin.
      
              http://bugzilla.opendarwin.org/show_bug.cgi?id=10399
              Bug 10399: RenderTextArea is unused
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              Removed RenderTextArea source files.
      
              * html/HTMLTextAreaElement.cpp: Removed include of RenderTextArea.h.
              * html/HTMLTextAreaElement.h: Removed forward declaration of RenderTextArea.
      
              * platform/mac/WidgetMac.mm: (WebCore::Widget::paint): Updated a comment.
      
              * platform/TextBox.h: Removed.
              * platform/mac/TextBoxMac.mm: Removed.
              * platform/mac/WebCoreTextArea.h: Removed.
              * platform/mac/WebCoreTextArea.mm: Removed.
              * rendering/RenderTextArea.cpp: Removed.
              * rendering/RenderTextArea.h: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15879 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7cc8b384
  36. 31 Jul, 2006 1 commit
    • mjs's avatar
      WebCore: · 63474f34
      mjs authored
              Rubber-stamped by Tim Hatcher.
      
              - renamed TransferJob to ResourceLoader
      
              * Projects/gdk/webcore-gdk.bkl:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bridge/mac/FrameMac.mm:
              * bridge/mac/WebCoreResourceLoaderImp.h:
              * bridge/mac/WebCoreResourceLoaderImp.mm:
              (-[WebCoreResourceLoaderImp redirectedToURL:]):
              (-[WebCoreResourceLoaderImp addData:]):
              (-[WebCoreResourceLoaderImp finishJobAndHandle:]):
              * bridge/win/FrameWin.cpp:
              * dom/XMLTokenizer.cpp:
              (WebCore::openFunc):
              * loader/Cache.cpp:
              * loader/LoaderFunctions.h:
              * loader/loader.cpp:
              (WebCore::Loader::servePendingRequests):
              (WebCore::Loader::receivedAllData):
              (WebCore::Loader::receivedResponse):
              (WebCore::Loader::receivedData):
              (WebCore::Loader::cancelRequests):
              (WebCore::Loader::jobForRequest):
              * loader/loader.h:
              * loader/mac/LoaderFunctionsMac.mm:
              (WebCore::ServeSynchronousRequest):
              * platform/ResourceLoader.cpp: Added.
              (WebCore::ResourceLoader::ResourceLoader):
              (WebCore::ResourceLoader::isErrorPage):
              (WebCore::ResourceLoader::error):
              (WebCore::ResourceLoader::setError):
              (WebCore::ResourceLoader::queryMetaData):
              (WebCore::ResourceLoader::addMetaData):
              (WebCore::ResourceLoader::kill):
              (WebCore::ResourceLoader::url):
              (WebCore::ResourceLoader::postData):
              (WebCore::ResourceLoader::method):
              (WebCore::ResourceLoader::client):
              * platform/ResourceLoader.h: Added.
              (WebCore::ResourceLoader::getInternal):
              * platform/ResourceLoaderClient.h: Added.
              (WebCore::ResourceLoaderClient::~ResourceLoaderClient):
              (WebCore::ResourceLoaderClient::receivedRedirect):
              (WebCore::ResourceLoaderClient::receivedResponse):
              (WebCore::ResourceLoaderClient::receivedData):
              (WebCore::ResourceLoaderClient::receivedAllData):
              * platform/ResourceLoaderInternal.h: Added.
              (WebCore::ResourceLoaderInternal::ResourceLoaderInternal):
              * platform/TransferJob.cpp: Removed.
              * platform/TransferJob.h: Removed.
              * platform/TransferJobClient.h: Removed.
              * platform/TransferJobInternal.h: Removed.
              * platform/gdk/FrameGdk.cpp:
              (WebCore::FrameGdk::openURL):
              (WebCore::FrameGdk::urlSelected):
              (WebCore::FrameGdk::receivedData):
              (WebCore::FrameGdk::receivedAllData):
              * platform/gdk/FrameGdk.h:
              * platform/gdk/ResourceLoaderCurl.cpp: Added.
              (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
              (WebCore::ResourceLoader::~ResourceLoader):
              (WebCore::ResourceLoader::start):
              (WebCore::ResourceLoader::cancel):
              * platform/gdk/ResourceLoaderManager.cpp: Added.
              (WebCore::ResourceLoaderManager::ResourceLoaderManager):
              (WebCore::ResourceLoaderManager::get):
              (WebCore::ResourceLoaderManager::useSimpleTransfer):
              (WebCore::writeCallback):
              (WebCore::ResourceLoaderManager::downloadTimerCallback):
              (WebCore::ResourceLoaderManager::remove):
              (WebCore::ResourceLoaderManager::add):
              (WebCore::ResourceLoaderManager::cancel):
              * platform/gdk/ResourceLoaderManager.h: Added.
              * platform/gdk/TemporaryLinkStubs.cpp:
              (WebCore::ServeSynchronousRequest):
              (WebCore::ResourceLoader::assembleResponseHeaders):
              (WebCore::ResourceLoader::retrieveCharset):
              * platform/gdk/TransferJobCurl.cpp: Removed.
              * platform/gdk/TransferJobManager.cpp: Removed.
              * platform/gdk/TransferJobManager.h: Removed.
              * platform/mac/ResourceLoaderMac.mm: Added.
              (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
              (WebCore::ResourceLoader::~ResourceLoader):
              (WebCore::ResourceLoader::start):
              (WebCore::ResourceLoader::assembleResponseHeaders):
              (WebCore::ResourceLoader::retrieveCharset):
              (WebCore::ResourceLoader::setLoader):
              (WebCore::ResourceLoader::receivedResponse):
              (WebCore::ResourceLoader::cancel):
              * platform/mac/TransferJobMac.mm: Removed.
              * platform/win/ResourceLoaderWin.cpp: Added.
              (WebCore::addToOutstandingJobs):
              (WebCore::lookupResourceLoader):
              (WebCore::ResourceLoaderWndProc):
              (WebCore::initializeOffScreenResourceLoaderWindow):
              (WebCore::ResourceLoaderInternal::~ResourceLoaderInternal):
              (WebCore::ResourceLoader::~ResourceLoader):
              (WebCore::ResourceLoader::start):
              (WebCore::ResourceLoader::fileLoadTimer):
              (WebCore::ResourceLoader::cancel):
              * platform/win/ResourceLoaderWin.h: Added.
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::ServeSynchronousRequest):
              (WebCore::ResourceLoader::assembleResponseHeaders):
              (WebCore::ResourceLoader::retrieveCharset):
              * platform/win/TransferJobWin.cpp: Removed.
              * platform/win/TransferJobWin.h: Removed.
              * xml/XSLTProcessor.cpp:
              (WebCore::docLoaderFunc):
              * xml/xmlhttprequest.cpp:
              (WebCore::XMLHttpRequest::send):
              (WebCore::XMLHttpRequest::receivedAllData):
              (WebCore::XMLHttpRequest::receivedRedirect):
              (WebCore::XMLHttpRequest::receivedData):
              * xml/xmlhttprequest.h:
      
      WebKit:
      
              Reviewed by Tim Hatcher.
              
              - renamed TransferJob to ResourceLoader in WebCore
      
              * COM/WebFrame.cpp:
              (WebFrame::loadDataSource):
              (WebFrame::receivedRedirect):
              (WebFrame::receivedResponse):
              (WebFrame::receivedData):
              (WebFrame::receivedAllData):
              (WebFrame::setStatusText):
              * COM/WebFrame.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15730 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      63474f34