1. 03 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-03 Eric Seidel <eseidel@apple.com> · 2e3cbd9a
      eseidel authored
              Reviewed by mjs.
      
              Wire up WidgetWin, CursorWin, ScrollViewWin.
              Stub out methods for selection and cursors.
      
              * Viewer/ImageDocument.h:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * bridge/win/FrameWin.cpp:
              * khtml/ecma/kjs_proxy.cpp:
              (WebCore::KJSProxyImpl::initScriptIfNeeded):
              * platform/IntRect.h:
              (WebCore::IntRect::IntRect):
              * platform/Widget.h:
              * platform/win/CursorWin.cpp:
              (WebCore::eastResizeCursor):
              (WebCore::northResizeCursor):
              (WebCore::northEastResizeCursor):
              (WebCore::northWestResizeCursor):
              (WebCore::southResizeCursor):
              (WebCore::southEastResizeCursor):
              (WebCore::southWestResizeCursor):
              (WebCore::westResizeCursor):
              * platform/win/IntRectWin.cpp:
              (WebCore::IntRect::IntRect):
              (WebCore::IntRect::operator RECT):
              * platform/win/MouseEventWin.cpp:
              * platform/win/ScrollViewWin.cpp: Added.
              (WebCore::ScrollView::updateContents):
              * platform/win/TemporaryLinkStubs.cpp:
              (QTextEdit::textWithHardLineBreaks):
              (QLineEdit::setPlaceholderString):
              (QScrollBar::scroll):
              (GraphicsContext::beginTransparencyLayer):
              (Widget::setIsSelected):
              (QLineEdit::selectedText):
              (QComboBox::sizeHint):
              (KWQFileButton::focusPolicy):
              (QTextEdit::focusPolicy):
              (QSlider::focusPolicy):
              (QListBox::focusPolicy):
              (QLineEdit::focusPolicy):
              (WebCore::moveCursor):
              (ScrollView::scrollBy):
              (KWQKCookieJar::cookieEnabled):
              (WebCore::TransferJob::TransferJob):
              (WebCore::screenDepth):
              (WebCore::usableScreenRect):
              (FrameWin::getObjectInstanceForWidget):
              (FrameWin::getEmbedInstanceForWidget):
              (FrameWin::getAppletInstanceForWidget):
              (FrameWin::passMouseDownEventToWidget):
              (FrameWin::issuePasteCommand):
              (FrameWin::issueTransposeCommand):
              (QSlider::setFont):
              (QLineEdit::setFont):
              (QListBox::setFont):
              (QFontMetrics::QFontMetrics):
              (QComboBox::setFont):
              (QTextEdit::setFont):
              (QTextEdit::setWritingDirection):
              (QFontMetrics::setFontDescription):
              (QFontMetrics::checkSelectionPoint):
              (FrameWin::addMessageToConsole):
              (FrameWin::shouldChangeSelection):
              (ScrollView::resizeContents):
              (ScrollView::visibleHeight):
              (ScrollView::visibleWidth):
              (ScrollView::setContentsPos):
              (ScrollView::contentsX):
              (ScrollView::contentsY):
              (ScrollView::contentsHeight):
              (ScrollView::contentsWidth):
              (ScrollView::viewportToContents):
              * platform/win/WidgetWin.cpp: Added.
              (WebCore::Widget::Widget):
              (WebCore::Widget::~Widget):
              (WebCore::Widget::windowHandle):
              (WebCore::Widget::setWindowHandle):
              (WebCore::Widget::setActiveWindow):
              (WebCore::Widget::frameGeometry):
              (WebCore::Widget::hasFocus):
              (WebCore::Widget::setFocus):
              (WebCore::Widget::clearFocus):
              (WebCore::Widget::font):
              (WebCore::Widget::setFont):
              (WebCore::Widget::setCursor):
              (WebCore::Widget::show):
              (WebCore::Widget::hide):
              (WebCore::Widget::setFrameGeometry):
              (WebCore::Widget::mapFromGlobal):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13113 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2e3cbd9a
  2. 06 Feb, 2006 1 commit
  3. 24 Jan, 2006 1 commit
    • darin's avatar
      Reviewed by John Sullivan. · 71e27498
      darin authored
              - http://bugzilla.opendarwin.org/show_bug.cgi?id=6750
                replace QDateTime with a simpler platform abstraction
      
              * ForwardingHeaders/qdatetime.h: Removed.
              * kwq/KWQDateTime.cpp: Removed.
              * kwq/KWQDateTime.h: Removed.
      
              * platform/SystemTime.h: Added.
              * platform/mac/SystemTime.cpp: (WebCore::currentTime): Added.
              * platform/win: Added.
              * platform/win/SystemTime.cpp: (WebCore::currentTime): Added.
      
              * WebCore.vcproj/WebCore/WebCore.vcproj: Added new files, removed old.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
      
              * css/css_base.h: Removed include of <qdatetime.h>.
              * css/cssstyleselector.cpp: Ditto.
      
              * khtml/html/htmltokenizer.h:
              * khtml/html/htmltokenizer.cpp: Convert tabs to spaces.
              (WebCore::HTMLTokenizer::continueProcessing): Change parameter from QTime to double.
              Use currentTime() instead of QTime::elapsed().
              (WebCore::HTMLTokenizer::write): Use currentTime() instead of QTime::elapsed().
      
              * config.h: Added HAVE_FUNC_USLEEP for now, not sure this is really a
              good way to handle this.
              * khtml/xml/ContainerNodeImpl.cpp: (WebCore::ContainerNodeImpl::setActive):
              Use currentTime() instead of QTime::elapsed(). Use HAVE_FUNC_USLEEP for the if.
      
              * khtml/xml/DocumentImpl.h:
              * khtml/xml/DocumentImpl.cpp:
              (WebCore::DocumentImpl::DocumentImpl): Use currentTime() instead of QTime::elapsed().
              (WebCore::DocumentImpl::implicitClose): Ditto.
              (WebCore::DocumentImpl::minimumLayoutDelay): Ditto.
              (WebCore::DocumentImpl::elapsedTime): Ditto.
      
              * khtml/xml/dom2_eventsimpl.cpp: (WebCore::EventImpl::EventImpl): Use currentTime()
              instead of local function called currentTimeStamp().
      
              * khtml/xml/xml_tokenizer.h: Removed declaration of class QTime.
      
              * ksvg2/misc/KSVGTimeScheduler.h:
              * ksvg2/misc/KSVGTimeScheduler.cpp:
              (KSVG::TimeScheduler::TimeScheduler): Use currentTime instead of QTime::elapsed.
              (KSVG::TimeScheduler::startAnimations): Ditto.
              (KSVG::TimeScheduler::toggleAnimations): Ditto.
              (KSVG::TimeScheduler::elapsed): Ditto.
      
              * page/Frame.cpp: (Frame::clear): Removed unused m_parsetime.
              * page/FramePrivate.h: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12341 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      71e27498
  4. 23 Jan, 2006 1 commit
    • mjs's avatar
      Reviewed by Darin. · 3823c585
      mjs authored
              
              - Set up Page class and invert Frame / WebCoreFrameBridge ownership
              http://bugzilla.opendarwin.org/show_bug.cgi?id=6577
      
              * bridge/mac/MacFrame.h:
              * bridge/mac/MacFrame.mm:
              (MacFrame::MacFrame): Initialize _bridge
              (MacFrame::~MacFrame): Clear the bridge's frame pointer and release it.
              (Frame::frameDetached): Reverse order of removing from old-style frames
              array and calling frameDetached.
              (MacFrame::createPart): Don't ref the part when creating it, since the child
              bridge is no longer going to own a ref.
              (MacFrame::setBridge): KWQRetain / KWQRelease since we know own the bridge.
              (MacFrame::detachFromView): New method; clear out the view.
              * bridge/mac/WebCoreFrameBridge.h:
              * bridge/mac/WebCoreFrameBridge.mm:
              (Bridge): Helper method to get a WebCoreFrameBridge from a Frame.
              (-[WebCoreFrameBridge firstChild]): Call through Frame.
              (-[WebCoreFrameBridge lastChild]): ditto
              (-[WebCoreFrameBridge childCount]): ditto
              (-[WebCoreFrameBridge previousSibling]): ditto
              (-[WebCoreFrameBridge nextSibling]): ditto
              (-[WebCoreFrameBridge isDescendantOfFrame:]): No need to cast parent
              pointer.
              (-[WebCoreFrameBridge appendChild:]): Call through Frame.
              (-[WebCoreFrameBridge _clearRenderPart]): New helper method to free
              the renderPart when removing a child.
              (-[WebCoreFrameBridge removeChild:]): Clear child's render part
              and call through to Frame.
              (-[WebCoreFrameBridge dealloc]): Remove unneeded m_frame-related code.
              (-[WebCoreFrameBridge finalize]): ditto
              (-[WebCoreFrameBridge clearFrame]): New helper method, needed now that
              bridge can outlive frame.
              (-[WebCoreFrameBridge handleFallbackContent]): Make safe against a null
              frame.
              (-[WebCoreFrameBridge removeFromFrame]): ditto
              * bridge/mac/WebCorePageBridge.h:
              * bridge/mac/WebCorePageBridge.mm:
              (-[WebCorePageBridge initWithMainFrame:]): Create a Page instance.
              (-[WebCorePageBridge dealloc]): Delete the Page.
              (-[WebCorePageBridge mainFrame]): Get the main frame from the Page.
              * khtml/ecma/kjs_binding.cpp:
              (KJS::ScriptInterpreter::globalExec): Override; keep frame alive, then
              call superclass.
              * khtml/ecma/kjs_binding.h:
              * khtml/ecma/kjs_proxy.cpp:
              (KJSProxyImpl::clear): Don't pass exec to window.
              (KJSProxyImpl::interpreter): Don't do keepAlive.
              * khtml/ecma/kjs_window.cpp:
              (KJS::Window::isSafeScript): If the active part's document is gone, use the frame's
              URL for security check purposes.
              (KJS::Window::clear): Don't take an ExecState parameter any more - it
              wasn't used.
              * khtml/ecma/kjs_window.h:
              * khtml/xml/DocumentImpl.cpp:
              (WebCore::DocumentImpl::implicitOpen): If we've got a tokenizer, delete
              it before closing - you don't ever want to fire an onload handler because of
              an open.
              * page/Frame.cpp:
              (Frame::init): Pass `this' to FramePrivate constructor.
              (FrameCounter::~FrameCounter): Added debug counting of leftover
              Frame objects on exit.
              (Frame::Frame): Moved out-of-line. Increment debug counter.
              (Frame::~Frame): Assert that there is no life support going, either at the
              start or end of this method. Decrement frame counter.
              (Frame::stopLoading): tweaked for the fact that ChildFrame::m_frame is now
              a RefPtr.
              (Frame::clear): ditto
              (Frame::stop): ditto
              (Frame::stopAnimations): ditto
              (Frame::checkEmitLoadEvent): ditto
              (Frame::processObjectRequest): ditto
              (Frame::childFrame): ditto
              (Frame::findFrame): ditto
              (Frame::setZoomFactor): ditto
              (Frame::frames): ditto
              (Frame::connectChild): ditto
              (Frame::disconnectChild): ditto
              (Frame::endAllLifeSupport): Method that, in debug mode, will clear
              all life suppor timers so the Frame exit counter works.
              (Frame::keepAlive): In debug mode, add proper support for
              endAllLifeSupport
              (Frame::slotEndLifeSupport): ditto
              (Frame::setPolicyBaseURL): Update for the fact that ChildFrame::m_frame is now
              a RefPtr.
              (Frame::treeNode): New helper method, get the FrameTreeNode class that implements
              frame tree traversal.
              (Frame::nextSibling): Simple wrapper that calls through to treeNode().
              (Frame::previousSibling): ditto
              (Frame::firstChild): ditto
              (Frame::lastChild): ditto
              (Frame::childCount): ditto
              (Frame::appendChild): ditto
              (Frame::removeChild): ditto
              (Frame::detachFromView): no-op, just a virtual base for the MAcFrame method.
              * page/Frame.h:
              * page/FramePrivate.h:
              (FramePrivate::FramePrivate): Add FrameTreeNode member.
              * page/FrameTreeNode.cpp: Added.
              (FrameTreeNode::~FrameTreeNode): detach all children from their view
              (FrameTreeNode::appendChild): implemented
              (FrameTreeNode::removeChild): implemented - make sure to detach child
              from its view.
              * page/FrameTreeNode.h: Added.
              (FrameTreeNode::FrameTreeNode): New; initialize fields tht need it.
              (FrameTreeNode::nextSibling): Trivial inline.
              (FrameTreeNode::previousSibling): ditto
              (FrameTreeNode::firstChild): ditto
              (FrameTreeNode::lastChild): ditto
              (FrameTreeNode::childCount): ditto
              * page/Page.cpp: Added.
              (Page::Page): Initialize mainFrame and bump pageCount appropriately.
              (Page::~Page): Detach main frame from view, handle ending life support
              when last frame is destroyed.
              * page/Page.h: Added.
              (Page::mainFrame): Trivial inline.
              * WebCore.xcodeproj/project.pbxproj: Add new files.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12307 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      3823c585
  5. 14 Jan, 2006 1 commit
    • mjs's avatar
      WebCore: · e2913e52
      mjs authored
              Reviewed by Eric.
      
              - added bridging infrastructure for Page class
              
              The Page class itself is coming very soon.
      
              * WebCore.exp: Export WebCorePageBridge.
              * WebCore.xcodeproj/project.pbxproj: Add new files.
              * bridge/mac/WebCorePageBridge.h: Added.
              * bridge/mac/WebCorePageBridge.mm: Added.
              (-[WebCorePageBridge initWithMainFrame:]): Added new class, obvious
              (-[WebCorePageBridge dealloc]): ditto
              (-[WebCorePageBridge mainFrame]): ditto
              * bridge/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge init]): Fixed style a bit.
      
      WebKit:
      
              Reviewed by Eric.
      
              - added bridging infrastructure for Page class
              
              * WebCoreSupport.subproj/WebPageBridge.h: Added.
              * WebCoreSupport.subproj/WebPageBridge.m: Added.
              (-[WebPageBridge initWithMainFrameName:view:]): New class, somewhat obvious.
              * WebKit.xcodeproj/project.pbxproj:
              * WebView.subproj/WebView.m:
              (-[WebViewPrivate dealloc]): Don't use _mainFrameBrige, use _pageBridge
              (-[WebView _close]): ditto
              (-[WebView _commonInitializationWithFrameName:groupName:]): ditto
              (-[WebView mainFrame]): ditto
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@12104 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e2913e52
  6. 27 Sep, 2005 1 commit
    • mjs's avatar
      JavaScriptCore: · cff5e5ee
      mjs authored
              Reviewed by John.
      
      	- replace dlmalloc with tcmalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5145
      
      	I also moved SharedPtr and the assertion code from WebCore into a
      	new kxmlcore directory.
      
              * JavaScriptCore.xcodeproj/project.pbxproj:
              * kjs/collector.cpp:
              (KJS::Collector::allocate):
              (KJS::Collector::collect):
              * kjs/config.h:
              * kjs/fast_malloc.cpp: Removed.
              * kjs/fast_malloc.h: Removed.
              * kjs/function.cpp:
              * kjs/function.h:
              * kjs/function_object.cpp:
              * kjs/identifier.cpp:
              (KJS::Identifier::add):
              * kjs/internal.cpp:
              * kjs/internal.h:
              * kjs/nodes.h:
              * kjs/nodes2string.cpp:
              * kjs/property_map.cpp:
              (KJS::PropertyMap::~PropertyMap):
              (KJS::PropertyMap::rehash):
              * kjs/scope_chain.h:
              * kjs/shared_ptr.h: Removed.
              * kjs/string_object.cpp:
              (StringObjectFuncImp::callAsFunction):
              * kjs/ustring.cpp:
              (KJS::UString::Rep::createCopying):
              (KJS::UString::Rep::destroy):
              (KJS::UString::expandCapacity):
              (KJS::UString::expandPreCapacity):
              (KJS::UString::UString):
              (KJS::UString::spliceSubstringsWithSeparators):
              (KJS::UString::append):
              (KJS::UString::operator=):
              (KJS::UString::detach):
              * kjs/ustring.h:
              * kxmlcore/Assertions.h: Added.
              * kxmlcore/Assertions.mm: Added.
              * kxmlcore/FastMalloc.cpp: Added.
              (KXMLCore::LgFloor):
              (KXMLCore::SizeClass):
              (KXMLCore::ByteSizeForClass):
              (KXMLCore::InitSizeClasses):
              (KXMLCore::MetaDataAlloc):
              (KXMLCore::PageHeapAllocator::Init):
              (KXMLCore::PageHeapAllocator::New):
              (KXMLCore::PageHeapAllocator::Delete):
              (KXMLCore::PageHeapAllocator::inuse):
              (KXMLCore::pages):
              (KXMLCore::AllocationSize):
              (KXMLCore::Event):
              (KXMLCore::NewSpan):
              (KXMLCore::DeleteSpan):
              (KXMLCore::DLL_Init):
              (KXMLCore::DLL_Remove):
              (KXMLCore::DLL_IsEmpty):
              (KXMLCore::DLL_Length):
              (KXMLCore::DLL_Print):
              (KXMLCore::DLL_Prepend):
              (KXMLCore::DLL_InsertOrdered):
              (KXMLCore::):
              (KXMLCore::TCMalloc_PageHeap::GetDescriptor):
              (KXMLCore::TCMalloc_PageHeap::SystemBytes):
              (KXMLCore::TCMalloc_PageHeap::FreeBytes):
              (KXMLCore::TCMalloc_PageHeap::RecordSpan):
              (KXMLCore::TCMalloc_PageHeap::TCMalloc_PageHeap):
              (KXMLCore::TCMalloc_PageHeap::New):
              (KXMLCore::TCMalloc_PageHeap::Split):
              (KXMLCore::TCMalloc_PageHeap::Carve):
              (KXMLCore::TCMalloc_PageHeap::Delete):
              (KXMLCore::TCMalloc_PageHeap::RegisterSizeClass):
              (KXMLCore::TCMalloc_PageHeap::Dump):
              (KXMLCore::TCMalloc_PageHeap::GrowHeap):
              (KXMLCore::TCMalloc_PageHeap::Check):
              (KXMLCore::TCMalloc_PageHeap::CheckList):
              (KXMLCore::TCMalloc_ThreadCache_FreeList::Init):
              (KXMLCore::TCMalloc_ThreadCache_FreeList::length):
              (KXMLCore::TCMalloc_ThreadCache_FreeList::empty):
              (KXMLCore::TCMalloc_ThreadCache_FreeList::lowwatermark):
              (KXMLCore::TCMalloc_ThreadCache_FreeList::clear_lowwatermark):
              (KXMLCore::TCMalloc_ThreadCache_FreeList::Push):
              (KXMLCore::TCMalloc_ThreadCache_FreeList::Pop):
              (KXMLCore::TCMalloc_ThreadCache::freelist_length):
              (KXMLCore::TCMalloc_ThreadCache::Size):
              (KXMLCore::TCMalloc_Central_FreeList::length):
              (KXMLCore::TCMalloc_Central_FreeList::Init):
              (KXMLCore::TCMalloc_Central_FreeList::Insert):
              (KXMLCore::TCMalloc_Central_FreeList::Remove):
              (KXMLCore::TCMalloc_Central_FreeList::Populate):
              (KXMLCore::TCMalloc_ThreadCache::SampleAllocation):
              (KXMLCore::TCMalloc_ThreadCache::Init):
              (KXMLCore::TCMalloc_ThreadCache::Cleanup):
              (KXMLCore::TCMalloc_ThreadCache::Allocate):
              (KXMLCore::TCMalloc_ThreadCache::Deallocate):
              (KXMLCore::TCMalloc_ThreadCache::FetchFromCentralCache):
              (KXMLCore::TCMalloc_ThreadCache::ReleaseToCentralCache):
              (KXMLCore::TCMalloc_ThreadCache::Scavenge):
              (KXMLCore::TCMalloc_ThreadCache::GetCache):
              (KXMLCore::TCMalloc_ThreadCache::GetCacheIfPresent):
              (KXMLCore::TCMalloc_ThreadCache::PickNextSample):
              (KXMLCore::TCMalloc_ThreadCache::InitModule):
              (KXMLCore::TCMalloc_ThreadCache::InitTSD):
              (KXMLCore::TCMalloc_ThreadCache::CreateCacheIfNecessary):
              (KXMLCore::TCMalloc_ThreadCache::DeleteCache):
              (KXMLCore::TCMalloc_ThreadCache::RecomputeThreadCacheSize):
              (KXMLCore::TCMalloc_ThreadCache::Print):
              (KXMLCore::ExtractStats):
              (KXMLCore::DumpStats):
              (KXMLCore::PrintStats):
              (KXMLCore::DumpStackTraces):
              (KXMLCore::TCMallocImplementation::GetStats):
              (KXMLCore::TCMallocImplementation::ReadStackTraces):
              (KXMLCore::TCMallocImplementation::GetNumericProperty):
              (KXMLCore::TCMallocImplementation::SetNumericProperty):
              (KXMLCore::DoSampledAllocation):
              (KXMLCore::do_malloc):
              (KXMLCore::do_free):
              (KXMLCore::do_memalign):
              (KXMLCore::TCMallocGuard::TCMallocGuard):
              (KXMLCore::TCMallocGuard::~TCMallocGuard):
              (KXMLCore::malloc):
              (KXMLCore::free):
              (KXMLCore::calloc):
              (KXMLCore::cfree):
              (KXMLCore::realloc):
              (KXMLCore::memalign):
              (KXMLCore::posix_memalign):
              (KXMLCore::valloc):
              (KXMLCore::pvalloc):
              (KXMLCore::malloc_stats):
              (KXMLCore::mallopt):
              (KXMLCore::mallinfo):
              * kxmlcore/FastMalloc.h: Added.
              (KXMLCore::FastAllocated::operator new):
              (KXMLCore::FastAllocated::operator delete):
              (KXMLCore::FastAllocated::operator new[]):
              (KXMLCore::FastAllocated::operator delete[]):
              * kxmlcore/SharedPtr.h: Added.
              (KXMLCore::SharedPtr::SharedPtr):
              (KXMLCore::SharedPtr::~SharedPtr):
              (KXMLCore::SharedPtr::isNull):
              (KXMLCore::SharedPtr::notNull):
              (KXMLCore::SharedPtr::reset):
              (KXMLCore::SharedPtr::get):
              (KXMLCore::SharedPtr::operator*):
              (KXMLCore::SharedPtr::operator->):
              (KXMLCore::SharedPtr::operator!):
              (KXMLCore::SharedPtr::operator bool):
              (KXMLCore::::operator):
              (KXMLCore::operator==):
              (KXMLCore::operator!=):
              (KXMLCore::static_pointer_cast):
              (KXMLCore::const_pointer_cast):
              * kxmlcore/TCPageMap.h: Added.
              (TCMalloc_PageMap1::TCMalloc_PageMap1):
              (TCMalloc_PageMap1::Ensure):
              (TCMalloc_PageMap1::get):
              (TCMalloc_PageMap1::set):
              (TCMalloc_PageMap2::TCMalloc_PageMap2):
              (TCMalloc_PageMap2::get):
              (TCMalloc_PageMap2::set):
              (TCMalloc_PageMap2::Ensure):
              (TCMalloc_PageMap3::NewNode):
              (TCMalloc_PageMap3::TCMalloc_PageMap3):
              (TCMalloc_PageMap3::get):
              (TCMalloc_PageMap3::set):
              (TCMalloc_PageMap3::Ensure):
              * kxmlcore/TCSpinLock.h: Added.
              (TCMalloc_SpinLock::Init):
              (TCMalloc_SpinLock::Finalize):
              (TCMalloc_SpinLock::Lock):
              (TCMalloc_SpinLock::Unlock):
              (TCMalloc_SlowLock):
              (TCMalloc_SpinLockHolder::TCMalloc_SpinLockHolder):
              (TCMalloc_SpinLockHolder::~TCMalloc_SpinLockHolder):
              * kxmlcore/TCSystemAlloc.cpp: Added.
              (TrySbrk):
              (TryMmap):
              (TryDevMem):
              (TCMalloc_SystemAlloc):
              * kxmlcore/TCSystemAlloc.h: Added.
      
      WebCore:
      
              Reviewed by John.
      
      	- replace dlmalloc with tcmalloc
      	http://bugzilla.opendarwin.org/show_bug.cgi?id=5145
      
      	I also moved SharedPtr and the assertion code from WebCore into a
      	new kxmlcore directory.
      
              * ForwardingHeaders/kjs/shared_ptr.h: Removed.
              * ForwardingHeaders/kxmlcore/Assertions.h: Added.
              * ForwardingHeaders/kxmlcore/FastMalloc.h: Added.
              * ForwardingHeaders/kxmlcore/SharedPtr.h: Added.
              * ForwardingHeaders/misc/main_thread_malloc.h: Removed.
              * WebCore.xcodeproj/project.pbxproj:
              * khtml/css/css_base.h:
              * khtml/css/css_computedstyle.cpp:
              * khtml/css/css_ruleimpl.h:
              * khtml/css/css_valueimpl.h:
              * khtml/css/cssstyleselector.h:
              * khtml/ecma/domparser.h:
              * khtml/ecma/kjs_css.h:
              * khtml/ecma/kjs_dom.cpp:
              * khtml/ecma/kjs_dom.h:
              * khtml/ecma/kjs_events.h:
              * khtml/ecma/kjs_html.cpp:
              * khtml/ecma/kjs_html.h:
              * khtml/ecma/kjs_range.h:
              * khtml/ecma/kjs_traversal.h:
              * khtml/ecma/kjs_views.cpp:
              * khtml/ecma/kjs_views.h:
              * khtml/ecma/kjs_window.cpp:
              * khtml/ecma/xmlhttprequest.h:
              * khtml/editing/SelectionController.cpp:
              * khtml/editing/append_node_command.cpp:
              * khtml/editing/apply_style_command.cpp:
              * khtml/editing/break_blockquote_command.cpp:
              * khtml/editing/composite_edit_command.cpp:
              * khtml/editing/delete_from_text_node_command.cpp:
              * khtml/editing/delete_selection_command.cpp:
              * khtml/editing/edit_command.cpp:
              * khtml/editing/htmlediting.cpp:
              * khtml/editing/insert_into_text_node_command.cpp:
              * khtml/editing/insert_line_break_command.cpp:
              * khtml/editing/insert_node_before_command.cpp:
              * khtml/editing/insert_paragraph_separator_command.cpp:
              * khtml/editing/insert_text_command.cpp:
              * khtml/editing/join_text_nodes_command.cpp:
              * khtml/editing/markup.cpp:
              * khtml/editing/merge_identical_elements_command.cpp:
              * khtml/editing/move_selection_command.cpp:
              * khtml/editing/rebalance_whitespace_command.cpp:
              * khtml/editing/remove_css_property_command.cpp:
              * khtml/editing/remove_node_attribute_command.cpp:
              * khtml/editing/remove_node_command.cpp:
              * khtml/editing/remove_node_preserving_children_command.cpp:
              * khtml/editing/replace_selection_command.cpp:
              * khtml/editing/set_node_attribute_command.cpp:
              * khtml/editing/split_element_command.cpp:
              * khtml/editing/split_text_node_command.cpp:
              * khtml/editing/split_text_node_containing_element.cpp:
              * khtml/editing/typing_command.cpp:
              * khtml/editing/visible_position.cpp:
              * khtml/editing/visible_position.h:
              * khtml/editing/wrap_contents_in_dummy_span_command.cpp:
              * khtml/html/html_imageimpl.h:
              * khtml/html/html_tableimpl.h:
              * khtml/html/htmlparser.cpp:
              * khtml/khtmlpart_p.h:
              * khtml/misc/arena.cpp:
              (ArenaAllocate):
              (FreeArenaList):
              (ArenaFinish):
              * khtml/misc/hashtable.h:
              (khtml::HashTable::~HashTable):
              (khtml::::allocateTable):
              (khtml::::rehash):
              (khtml::::clear):
              (khtml::::HashTable):
              * khtml/misc/loader.cpp:
              * khtml/misc/main_thread_malloc.cpp: Removed.
              * khtml/misc/main_thread_malloc.h: Removed.
              * khtml/misc/shared.h:
              * khtml/rendering/render_style.h:
              * khtml/xml/dom2_eventsimpl.h:
              * khtml/xml/dom2_rangeimpl.h:
              * khtml/xml/dom2_traversalimpl.h:
              * khtml/xml/dom2_viewsimpl.h:
              * khtml/xml/dom_docimpl.h:
              * khtml/xml/dom_elementimpl.cpp:
              (NamedAttrMapImpl::clearAttributes):
              (NamedAttrMapImpl::operator=):
              (NamedAttrMapImpl::addAttribute):
              (NamedAttrMapImpl::removeAttribute):
              * khtml/xml/dom_elementimpl.h:
              * khtml/xml/dom_nodeimpl.cpp:
              * khtml/xml/dom_nodeimpl.h:
              * khtml/xml/dom_position.cpp:
              * khtml/xml/dom_stringimpl.h:
              * kwq/DOM-CSS.mm:
              * kwq/DOM.mm:
              * kwq/DOMEvents.mm:
              * kwq/DOMHTML.mm:
              * kwq/DOMInternal.mm:
              * kwq/DOMViews.mm:
              * kwq/KWQAccObject.mm:
              * kwq/KWQAccObjectCache.mm:
              * kwq/KWQArrayImpl.h:
              * kwq/KWQArrayImpl.mm:
              (KWQArrayImpl::KWQArrayPrivate::KWQArrayPrivate):
              (KWQArrayImpl::KWQArrayPrivate::~KWQArrayPrivate):
              (KWQArrayImpl::resize):
              * kwq/KWQAssertions.h: Removed.
              * kwq/KWQAssertions.m: Removed.
              * kwq/KWQButton.mm:
              * kwq/KWQCString.mm:
              * kwq/KWQClipboard.h:
              * kwq/KWQClipboard.mm:
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQEditCommand.mm:
              * kwq/KWQExceptions.h:
              * kwq/KWQFileButton.mm:
              * kwq/KWQFontFamily.h:
              * kwq/KWQFormData.mm:
              * kwq/KWQKHTMLPart.h:
              * kwq/KWQKHTMLPart.mm:
              * kwq/KWQKPartsBrowserInterface.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.mm:
              * kwq/KWQLogging.h:
              * kwq/KWQLogging.m:
              * kwq/KWQMapImpl.h:
              * kwq/KWQMapImpl.mm:
              * kwq/KWQObject.mm:
              * kwq/KWQPageState.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQResourceLoader.mm:
              * kwq/KWQSignal.mm:
              * kwq/KWQSlot.mm:
              * kwq/KWQString.h:
              * kwq/KWQString.mm:
              (ALLOC_QCHAR):
              (QString::setBufferFromCFString):
              (allocatePageNode):
              * kwq/KWQTextArea.mm:
              * kwq/KWQTextCodec.mm:
              * kwq/KWQTextEdit.mm:
              * kwq/KWQTextField.mm:
              * kwq/KWQTimer.mm:
              * kwq/KWQValueListImpl.h:
              * kwq/KWQValueListImpl.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/WebCoreCookieAdapter.m:
              * kwq/WebCoreGraphicsBridge.m:
              * kwq/WebCoreImageRendererFactory.m:
              * kwq/WebCoreKeyGenerator.m:
              * kwq/WebCoreTextRendererFactory.mm:
              * kwq/WebCoreViewFactory.m:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10634 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cff5e5ee
  7. 10 Dec, 2003 1 commit
    • rjw's avatar
      WebKit: · 7389d4e8
      rjw authored
      	Added method to get to the bridge from a view.  This is
      	used to ultimately get the part and KJS::Window for a
      	particular applet.
      
              Reviewed by Hyatt.
      
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory refreshPlugins:]):
              (-[WebViewFactory bridgeForView:]):
      
      WebCore:
      	Added method to get to the bridge from a view.  This is
      	used to ultimately get the part and KJS::Window for a
      	particular applet.
      
              Reviewed by Hyatt.
      
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreBridge.mm:
              (rootForView):
              (-[WebCoreBridge init]):
              * kwq/WebCoreViewFactory.h:
              * kwq/WebCoreViewFactory.m:
      
      JavaScriptCore:
      	Added code to manage reference counting of JavaScript
      	objects passed to Java.   Also added implementation of
      	KJS_JSCreateNativeJSObject.  This is the function that
      	provides the root object to Java (KJS::Window).
      
              Reviewed by Hyatt.
      
              * JavaScriptCore.pbproj/project.pbxproj:
              * bindings/jni_jsobject.cpp:
              (KJS_setFindObjectForNativeHandleFunction):
              (KJS_findObjectForNativeHandleFunction):
              (getReferencesByOwnerDictionary):
              (getReferencesDictionary):
              (findReferenceDictionary):
              (addJavaReference):
              (removeJavaReference):
              (removeAllJavaReferencesForOwner):
              * bindings/jni_jsobject.h:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@5750 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7389d4e8
  8. 14 Mar, 2003 1 commit
    • mjs's avatar
      WebCore: · ceea48e0
      mjs authored
              Reviewed by Trey.
      
      	- fixed 3188209 - REGRESSION: onmouseup handlers not running for most form elements
      
              * khtml/rendering/render_form.cpp:
              (RenderLineEdit::RenderLineEdit): Connect to clicked signal.
              (RenderFileButton::RenderFileButton): Likewise.
              (RenderFileButton::slotClicked): Send clicked through DOM.
              (RenderTextArea::RenderTextArea): Connect to clicked signal.
              * khtml/rendering/render_replaced.cpp:
              (RenderWidget::sendConsumedMouseUp): New method to send a
      	mouseUp event for this DOM element. Meant for up events consumed
      	by AppKit mouseDown: methods that use modal event loops.
              * khtml/rendering/render_replaced.h:
              * kwq/KWQButton.h:
              * kwq/KWQButton.mm:
              (-[KWQButton initWithQButton:]): Moved here from former adaptor class.
              (-[KWQButton action:]): Make sure to send up before click.
              (-[KWQButton mouseDown:]): Record that we are processing a mouse
      	event. If no click happened, send the missing up event.
              (QButton::QButton): Use NSButton subclass instead of separate adaptor.
              (QButton::~QButton): Likewise.
              * kwq/KWQFileButton.h:
              * kwq/KWQFileButton.mm:
              (KWQFileButton::KWQFileButton): Initialize clicked signal.
              (KWQFileButton::clicked): Emit clicked signal.
              (-[KWQFileButtonAdapter initWithKWQFileButton:]): Observe Clicked notification too.
              (-[KWQFileButtonAdapter clicked]): Send mouse up and click through DOM.
              * kwq/KWQLineEdit.h:
              * kwq/KWQLineEdit.mm:
              (QLineEdit::QLineEdit): Initialize clicked signal.
              (QLineEdit::clicked): Emit clicked signal.
              * kwq/KWQListBox.mm:
              (QListBox::QListBox): No longer use separate object as delegate and data source.
              (QListBox::~QListBox): No more need to retrieve and release delegate.
              (-[KWQTableView initWithListBox:items:]):
              (-[KWQTableView mouseDown:]): Record that we are processing a mouse
      	event; if no click happens while processing, send the mouse up event
      	through the DOM.
              (-[KWQTableView tableViewSelectionDidChange:]): If sending clicked
      	and processing a mouse event, send up first.
              * kwq/KWQTextArea.mm:
              (-[KWQTextAreaTextView mouseDown:]): Send up and click through DOM
      	after calling super.
              * kwq/KWQTextEdit.h:
              * kwq/KWQTextEdit.mm:
              (QTextEdit::QTextEdit): Initialize clicked signal.
              (QTextEdit::clicked): Emit clicked signal.
              * kwq/KWQTextField.mm:
              (-[KWQTextField setPasswordMode:]): initWithQLineEdit: instead of initWithQWidget:
              (-[KWQTextField fieldEditorDidMouseDown:]): Send up and click through DOM.
              (-[KWQSecureTextField initWithQLineEdit:]): Store QLineEdit*, not just QWidget*.
              (-[KWQSecureTextField fieldEditorDidMouseDown:]): Send up and click through DOM.
              * kwq/KWQWidget.h:
              * kwq/KWQWidget.mm:
      	(QWidget::sendConsumedMouseUp): Common method for widgets to send
      	a mouseUp that has been consumed by mouseDown processing through
      	the DOM.
              * kwq/WebCoreBridge.h:
              * kwq/WebCoreFirstResponderChanges.h:
              * kwq/WebCoreViewFactory.m:
              * WebCore.exp: Export new string constant.
              * WebCore-combined.exp: Regenerated.
      
      WebKit:
      
              Reviewed by Trey.
      
      	- fixed 3188209 - REGRESSION: onmouseup handlers not running for most form elements
      
              * WebCoreSupport.subproj/WebFileButton.m:
              (-[WebFileButton chooseButtonPressed:]): Send appropriate NSNotification.
              * WebView.subproj/WebHTMLViewPrivate.m:
              (-[WebNSTextView mouseDown:]): Call fieldEditorDidMouseDown: on
      	delegate, if implemented, after calling super.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@3830 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ceea48e0
  9. 21 Jan, 2003 1 commit
  10. 26 Oct, 2002 1 commit
  11. 23 Oct, 2002 1 commit
    • darin's avatar
      WebCore: · cd4186d5
      darin authored
      	- fixed 3080478 -- reproducible incomplete load on apple.com
      
              * kwq/KWQLoaderImpl.mm:
              (-[WebCoreResourceLoader receivedResponse:]): Add an assert.
              (-[WebCoreResourceLoader cancel]): Don't finish here, just disconnect the handle
      	from the job, and disconnect the job from the WebCoreResourceLoader, and let the
      	KHTML code finish the cleanup later. This is the bug fix.
              (KWQCheckCacheObjectStatus): Add an assertion.
      
              * kwq/KWQKjobclasses.mm:
      	(TransferJob::~TransferJob): Don't call kill(); do the work here instead.
      	(TransferJob::kill): Self-destruct. Need this to avoid a storage leak.
      
              * khtml/misc/loader.cpp:
              (CachedObject::~CachedObject): Put some Apple-specific code inside APPLE_CHANGES.
              (CachedObject::setResponse): Streamlined this function.
              (Loader::receivedResponse): Added assertions.
      
              * kwq/qt/qxml.h: Add more stubs.
              * kwq/KWQxml.mm: Ditto.
      
              * kwq/WebCoreViewFactory.h: Add [WebCoreViewFactory fileButton], the
      	WebCoreFileButton protocol, and WebCoreFileButtonFilenameChanged.
              * kwq/WebCoreViewFactory.m: Add WebCoreFileButtonFilenameChanged.
              * WebCore.exp: Export _WebCoreFileButtonFilenameChanged.
      
      WebKit:
      
      	Add WebFileButton, to be used by WebCore soon. It's about 1/2
      	done right now. Compiles but not used yet.
      
              * WebCoreSupport.subproj/WebViewFactory.m: (-[WebViewFactory fileButton]): Added.
      
              * WebCoreSupport.subproj/WebFileButton.h: Added.
              * WebCoreSupport.subproj/WebFileButton.m: Added.
              * WebKit.pbproj/project.pbxproj: Added WebFileButton files.
      
              * WebCoreSupport.subproj/WebSubresourceClient.m:
              (-[WebSubresourceClient handle:didReceiveResponse:]): Add an assertion.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cd4186d5
  12. 21 Oct, 2002 1 commit
    • darin's avatar
      WebCore: · d9650806
      darin authored
              * kwq/KWQInputDialog.mm: (QInputDialog::getText): Call the view factory to do the
      	heavy lifting.
      
              * kwq/WebCoreViewFactory.h: Add runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:.
      	Use a protocol for the subclass responsibility.
              * kwq/WebCoreViewFactory.m: Remove stub methods not needed because of the subclass responsibility
      	technique we are using.
      
              * kwq/qt/qstylesheet.h: Made this inline, since it does nothing.
              * kwq/KWQStyleSheet.mm: Removed.
              * WebCore.pbproj/project.pbxproj: Removed KWQStyleSheet.mm.
      
      WebKit:
      
              * WebCoreSupport.subproj/WebViewFactory.h: Changed to use new protocol scheme so we
      	get an error if we forget to implement something.
              * WebCoreSupport.subproj/WebViewFactory.m:
              (-[WebViewFactory runJavaScriptTextInputPanelWithPrompt:defaultText:returningText:]): Stub.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2405 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d9650806
  13. 09 Sep, 2002 1 commit
    • darin's avatar
      Tools: · 7e7b97ba
      darin authored
              * Scripts/update-kwq-assert: Added. Script to keep the KWQ version
      	of the assert macros in sync. with the WebFoundation version. Just
      	update the WebFoundation one and run this script.
      
              * wftool/WFTool.m: Remove obsolete include.
      
      WebCore:
      
      	Switch over to new assertion/logging scheme.
      
              * kwq/KWQAssertions.h: Added.
              * kwq/KWQAssertions.m: Added.
              * kwq/KWQLogging.h: Added.
              * kwq/KWQLogging.m: Added.
              * kwq/kwqdebug.h: Removed.
              * kwq/kwqdebug.mm: Removed.
              * WebCore.pbproj/project.pbxproj: Update to reflect above changes.
      
              * kwq/KWQApplication.mm:
              * kwq/KWQChar.mm:
              * kwq/KWQColor.mm:
              * kwq/KWQComboBox.mm:
              * kwq/KWQCompletion.mm:
              * kwq/KWQCursor.mm:
              * kwq/KWQDrawUtil.mm:
              * kwq/KWQEvent.mm:
              * kwq/KWQFontInfo.mm:
              * kwq/KWQFontMetrics.mm:
              * kwq/KWQFrame.mm:
              * kwq/KWQHBox.mm:
              * kwq/KWQInputDialog.mm:
              * kwq/KWQInvisibleButton.mm:
              * kwq/KWQKConfigBase.mm:
              * kwq/KWQKFileDialog.mm:
              * kwq/KWQKFileItem.mm:
              * kwq/KWQKGlobalSettings.mm:
              * kwq/KWQKHTMLPartImpl.mm:
              * kwq/KWQKHTMLSettings.mm:
              * kwq/KWQKIconLoader.mm:
              * kwq/KWQKJob.mm:
              * kwq/KWQKLocale.mm:
              * kwq/KWQKMimeType.mm:
              * kwq/KWQKPartsEvent.mm:
              * kwq/KWQKSimpleConfig.mm:
              * kwq/KWQKURL.mm:
              * kwq/KWQKWin.mm:
              * kwq/KWQKWinModule.mm:
              * kwq/KWQKjobclasses.mm:
              * kwq/KWQKnetaccess.mm:
              * kwq/KWQLabel.mm:
              * kwq/KWQLineEdit.mm:
              * kwq/KWQListBox.mm:
              * kwq/KWQListImpl.mm:
              * kwq/KWQLoaderImpl.mm:
              * kwq/KWQObject.mm:
              * kwq/KWQPaintDeviceMetrics.mm:
              * kwq/KWQPainter.mm:
              * kwq/KWQPixmap.mm:
              * kwq/KWQRegion.mm:
              * kwq/KWQScrollView.mm:
              * kwq/KWQSlot.mm:
              * kwq/KWQString.mm:
              * kwq/KWQTimer.mm:
              * kwq/KWQWidget.mm:
              * kwq/KWQbrowserinterface.mm:
              * kwq/KWQtextcodec.mm:
              * kwq/KWQtextstream.mm:
              * kwq/KWQxml.mm:
              * kwq/WebCoreBridge.mm:
              * kwq/WebCoreCookieAdapter.m:
              * kwq/WebCoreHistory.m:
              * kwq/WebCoreImageRendererFactory.m:
              * kwq/WebCoreTextRendererFactory.m:
              * kwq/WebCoreViewFactory.m:
      	Update to use new assertions and logging macros.
      	In some cases, just removed unneeded includes.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2001 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7e7b97ba
  14. 27 Jun, 2002 2 commits
    • darin's avatar
      WebCore: · 6f57ec94
      darin authored
              * khtml/rendering/render_applet.cpp: Remove include of <iostream.h> to avoid bloat.
              (RenderApplet::RenderApplet): Remove APPLE_CHANGES.
              (RenderApplet::processArguments): Remove APPLE_CHANGES.
      	This file is now back to 100% the same as the KDE original.
      
              * kwq/khtml/java/kjavaappletwidget.h: Added a bit of stuff so we match the interface
      	of the KDE original and don't need APPLE_CHANGES.
              * kwq/KWQKJavaAppletWidget.mm: Remove include of <iostream.h> to avoid bloat.
              (KJavaAppletWidget::KJavaAppletWidget): Update for parameters that match the
      	KDE original.
              (KJavaAppletWidget::~KJavaAppletWidget): Added.
              (KJavaAppletWidget::setBaseURL): Added.
              (KJavaAppletWidget::setParameter): Put strings into an NSMutableDictionary.
              (KJavaAppletWidget::showApplet): Use the new baseURL and parameters dictionary.
      
              * kwq/WebCoreViewFactory.h: Add baseURL parameter.
              * kwq/WebCoreViewFactory.m:
              (-[WebCoreViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]): Add baseURL parameter.
      
              * kwq/kdecore/kurl.h: Fix NSURL definition to fit idiom.
              * kwq/qt/qmap.h: Added the const version of the [] operator.
      
              * khtml/ecma/kjs_navigator.cpp: Tweak whitespace.
              * khtml/html/html_documentimpl.cpp: Tweak to make it a little closer to original.
      
              * kwq/KWQKCookieJar.h: Reduce includes.
              * kwq/KWQKCookieJar.mm: Move includes in here.
      
              * kwq/WebCoreCookieAdapter.h: Fix comment that emacs munged.
      
      WebKit:
      
              * WebCoreSupport.subproj/IFWebCoreViewFactory.m:
              (-[IFWebCoreViewFactory viewForJavaAppletWithFrame:baseURL:parameters:]):
      	Pass baseURL as a separate parameter.
      
              * WebView.subproj/IFBaseLocationChangeHandler.m: Fix a typo. I think this
      	file might be unneeded, but I won't delete it until I hear from Chris.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1454 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      6f57ec94
    • cblu's avatar
      WebCore: · 49846180
      cblu authored
              Fix to support sending PARAM tags to the Java plug-in.
      
              * khtml/rendering/render_applet.cpp:
              (RenderApplet::RenderApplet): removed APPLE_CHANGES
              (RenderApplet::layout): removed APPLE_CHANGES
              * kwq/KWQKJavaAppletWidget.mm:
              (KJavaAppletWidget::KJavaAppletWidget): removed setView
              (KJavaAppletWidget::showApplet): call setView here
              * kwq/WebCoreViewFactory.h:
              * kwq/WebCoreViewFactory.m:
              (-[WebCoreViewFactory viewForJavaAppletWithFrame:andArguments:]): renamed
              * kwq/khtml/java/kjavaappletwidget.h: added KJavaApplet
      
      WebKit:
      
              Support for Java.
      
              * Plugins.subproj/IFPluginView.mm:
              (-[IFPluginView initWithFrame:plugin:url:baseURL:mime:arguments:]): set DOCBASE argument
              * WebCoreSupport.subproj/IFWebCoreViewFactory.m:
              (-[IFWebCoreViewFactory viewForJavaAppletWithFrame:andArguments:]): renamed
      
      WebBrowser:
      
              Removed some logging.
      
              * DownloadMonitor.m:
              (-[DownloadMonitor monitorDownload:withProgress:error:dataSource:complete:]):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1448 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      49846180
  15. 24 Jun, 2002 1 commit
  16. 07 May, 2002 1 commit
    • darin's avatar
      WebCore: · 1267f07a
      darin authored
      	Move more plugin code into WebKit.
      
      	Stop using IF for anything in WebCore to help make it clear what's part of
      	the BSD licensed stuff and what's part of our proprietary stuff.
      
      	* libwebcore.exp: Names of what exported changed.
      	* kwq/Makefile.am: Source file names changed.
      
      	* kwq/IFTextRenderer.h: Renamed to WebCoreTextRenderer.
      	* kwq/IFTextRendererFactory.h: Renamed to WebCoreTextRendererFactory.
      	* kwq/IFTextRendererFactory.m: Renamed to WebCoreTextRendererFactory.
      	* kwq/WebCoreTextRenderer.h: Renamed from IFTextRenderer.
      	* kwq/WebCoreTextRendererFactory.h: Renamed from IFTextRendererFactory.
      	* kwq/WebCoreTextRendererFactory.m: Renamed from IFTextRendererFactory.
      
      	* kwq/KWQFontMetrics.mm:
      	* kwq/KWQPainter.mm:
      	Updated for IF -> WebCore name change.
      
      	* kwq/WebCoreViewFactory.h: Added.
      	* kwq/WebCoreViewFactory.m: Added.
      
      	* kwq/KWQKConfigBase.mm: (KConfig::readEntry): (KConfig::readNumEntry):
      	Use the new [WebCoreViewFactory pluginsInfo] so we don't have to have
      	the plugin database in WebCore any more.
      
      	* kwq/WCJavaAppletWidget.h:
      	* kwq/WCJavaAppletWidget.mm: (IFJavaAppletWidgetCreate):
      	* kwq/WCPluginWidget.h:
      	* kwq/WCPluginWidget.mm: (IFPluginWidgetCreate):
      	Remove creation function machinery, and use the WebCoreViewFactory instead.
      
      	* kwq/WCPlugin.h: Moved to WebKit.
      	* kwq/WCPlugin.mm: Moved to WebKit.
      	* kwq/WCPluginDatabase.h: Moved to WebKit.
      	* kwq/WCPluginDatabase.mm: Moved to WebKit.
      	* kwq/npapi.h: Moved to WebKit.
      	* kwq/npapi.mm: Moved to WebKit.
      
      WebKit:
      
      	Move more plugin code here from WebCore.
      
      	* IFWebCoreViewFactory.h: Added.
      	* IFWebCoreViewFactory.m: Added.
      
      	* Plugins.subproj/IFPlugin.h: Moved from WebCore.
      	* Plugins.subproj/IFPlugin.m: Moved from WebCore.
      	* Plugins.subproj/IFPluginDatabase.h: Moved from WebCore.
      	* Plugins.subproj/IFPluginDatabase.m: Moved from WebCore.
      	* Plugins.subproj/npapi.h: Moved from WebCore.
      	* Plugins.subproj/npapi.m: Moved from WebCore.
      
      	* WebKit.pbproj/project.pbxproj: Source file names changed
      
      	* MIME.subproj/IFMIMEDatabase.m:
      	* MIME.subproj/IFMIMEHandler.m:
      	* Plugins.subproj/IFPluginView.h:
      	* Plugins.subproj/IFPluginView.mm:
      	Updated for WC -> IF name change.
      
      	* WebCoreSupport.subproj/IFCachedTextRenderer.h: Renamed to IFTextRenderer.
      	* WebCoreSupport.subproj/IFCachedTextRenderer.m: Renamed to IFTextRenderer.
      	* WebCoreSupport.subproj/IFCachedTextRendererFactory.h: Renamed to IFTextRendererFactory.
      	* WebCoreSupport.subproj/IFCachedTextRendererFactory.m: Renamed to IFTextRendererFactory.
      	* WebCoreSupport.subproj/IFTextRenderer.h: Renamed from IFCachedTextRenderer.
      	* WebCoreSupport.subproj/IFTextRenderer.m: Renamed from IFCachedTextRenderer.
      	* WebCoreSupport.subproj/IFTextRendererFactory.h: Renamed from IFCachedTextRendererFactory.
      	* WebCoreSupport.subproj/IFTextRendererFactory.m: Renamed from IFCachedTextRendererFactory.
      	Renamed to take "Cached" out of the name now that the simpler name is
      	available.
      
      	* WebView.subproj/IFWebView.mm:
      	(-[IFWebView initWithFrame:]): Create shared IFWebCoreViewFactory.
      	(-[IFWebView delayLayout:]): Use WEBKITDEBUG, not KWQDEBUG.
      	(-[IFWebView notificationReceived:]): Use WEBKITDEBUG, not KWQDEBUG.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1105 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1267f07a
  17. 03 May, 2002 1 commit
    • darin's avatar
      WebCore: · 458becea
      darin authored
      	* kwq/IFTextRenderer.h: Added.
      	* kwq/IFTextRendererFactory.h: Added.
      	* kwq/IFTextRendererFactory.m: Added.
      	These three are the new API for supplying text rendering machinery for WebCore.
      	The implementation is in WebKit. Later we might want to flesh out the default
      	implementation in WebCore so that it works OK by itself.
      
      	* khtml/rendering/font.cpp: (Font::width): Function is now "width" without
      	an underscore. We don't really need to hide the overload we added in this
      	case.
      
      	* kwq/qt/qfont.h: Simplify a lot. Doesn't hold an NSFont any more.
      	* kwq/KWQFont.mm:
      	(QFont::QFont): Eliminated the concept of "default font". Also, a QFont no
      	longer holds an NSFont object. That's handled inside IFTextRenderer machinery.
      	(QFont::~QFont): Simplify since we don't have an NSFont.
      	(QFont::setFamily): Simplify since we don't have an NSFont.
      	(QFont::setPixelSize): Simplify since we don't have an NSFont.
      	(QFont::setPixelSizeFloat): Simplify since we don't have an NSFont.
      	(QFont::setWeight): Simplify since we don't have an NSFont.
      	(QFont::weight): Fix a bug where it would return Normal for a QFont that was
      	both bold and italic.
      	(QFont::setItalic): Simplify since we don't have an NSFont.
      	(QFont::italic): Simplify since we have real "bool".
      	(QFont::bold): Simplify since we have real "bool".
      	(QFont::operator=): Simplify since we don't have an NSFont.
      	(QFont::operator==): Rewrite since we don't have an NSFont.
      
      	* kwq/qt/qfontmetrics.h: Simplify a little. The _width() method is now just an
      	overload of the width() method. The main change was removing the include of Cocoa.h.
      	* kwq/KWQFontMetrics.mm:
      	Move most of the code out of here into WebKit.
      	(QFontMetrics::ascent): Get it from the renderer.
      	(QFontMetrics::descent): Get it from the renderer.
      	(QFontMetrics::lineSpacing): Get it from the renderer.
      	(QFontMetrics::width): Get it from the renderer.
      	(QFontMetrics::boundingRect): Combine width and height that came from the renderer.
      	(QFontMetrics::size): Combine width and height that came from the renderer.
      
      	* kwq/Makefile.am: Add IFTextRendererFactory.m, remove KWQTextStorage.mm and KWQTextContainer.mm.
      	* kwq/KWQMetrics.h: Removed.
      	* kwq/KWQTextContainer.h: Removed.
      	* kwq/KWQTextContainer.mm: Removed.
      	* kwq/KWQTextStorage.h: Removed.
      	* kwq/KWQTextStorage.mm: Removed.
      
      	* kwq/KWQPainter.mm:
      	Move most of the code out of here into WebKit.
      	(QPainter::drawText): Call the renderer to do it.
      	(QPainter::drawUnderlineForText): Call the renderer to do it.
      
      	* libwebcore.exp: Export the IFTextRendererFactory class.
      
      WebKit:
      
      	* Misc.subproj/WebKitDebug.h: Add WEBKIT_LOG_MEMUSAGE, WEBKIT_LOG_FONTCACHE, and
      	WEBKIT_LOG_FONTCACHECHARMISS for font code moved here from WebCore.
      
      	* Resources/url_icon.tiff: New URL icon?
      
      	* WebCoreSupport.subproj/IFCachedTextRenderer.h: Added.
      	* WebCoreSupport.subproj/IFCachedTextRenderer.m: Added.
      	* WebCoreSupport.subproj/IFCachedTextRendererFactory.h: Added.
      	* WebCoreSupport.subproj/IFCachedTextRendererFactory.m: Added.
      	This has code moved here from WebCore.
      
      	* WebKit.pbproj/project.pbxproj: Add the new source files.
      
      	* Bookmarks.subproj/IFBookmarkLeaf.m:
      	(-[IFBookmarkLeaf setURLString:]): Use copy instead of initWithString.
      	* Bookmarks.subproj/IFBookmarkList.m:
      	(-[IFBookmarkList initWithTitle:image:group:]): Use copy instead of stringWithString.
      	(-[IFBookmarkList setTitle:]): Use copy instead of stringWithString.
      	* WebView.subproj/IFWebDataSourcePrivate.mm: (-[IFWebDataSource _setTitle:]):
      	Use mutableCopy instead of stringWithString.
      	* WebView.subproj/IFWebView.mm: (-[IFWebView initWithFrame:]): Use copy instead
      	of stringWithString.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@1092 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      458becea
  18. 08 Nov, 2001 1 commit
    • kocienda's avatar
      A large set of changes: · 60bddac0
      kocienda authored
      	- I did a pass over all .mm files in WebCore/src/kwq, adding
      	actual return values for all functions that return something
      	(there were *many* cases where callers were left dangling).
      	- I added numerous log statements throughout the code.
      	- I made the log statement system configurable at runtime, so the
      	amount of logging can be increased or decreased as desired.
      	- I added an implementation for QVariant.
      	- I cleaned up the implementations of QBrush and QPen.
      	- I made general fixups and cleanups in various places.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@423 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      60bddac0
  19. 31 Oct, 2001 1 commit
  20. 15 Oct, 2001 1 commit
  21. 05 Oct, 2001 1 commit
  22. 03 Oct, 2001 1 commit
  23. 27 Sep, 2001 2 commits
  24. 20 Sep, 2001 1 commit
  25. 19 Sep, 2001 1 commit
  26. 10 Sep, 2001 1 commit
  27. 27 Aug, 2001 1 commit
  28. 24 Aug, 2001 1 commit