1. 30 Nov, 2007 2 commits
  2. 05 Nov, 2007 1 commit
  3. 27 May, 2007 1 commit
    • kevino's avatar
      WebCore: · 64ee95cb
      kevino authored
              Reviewed by Sam Weinig.
      
              Consolidate all notImplemented() macro definitions into
              one header file for all platforms.
      
              * loader/gdk/DocumentLoaderGdk.cpp:
              (WebCore::DocumentLoader::getResponseModifiedHeader):
              * loader/gdk/FrameLoaderClientGdk.cpp:
              (WebCore::FrameLoaderClientGdk::dispatchDidReceiveAuthenticationChallenge):
              (WebCore::FrameLoaderClientGdk::dispatchDidCancelAuthenticationChallenge):
              (WebCore::FrameLoaderClientGdk::dispatchWillSendRequest):
              (WebCore::FrameLoaderClientGdk::assignIdentifierToInitialRequest):
              (WebCore::FrameLoaderClientGdk::createPlugin):
              (WebCore::FrameLoaderClientGdk::createFrame):
              (WebCore::FrameLoaderClientGdk::redirectDataToPlugin):
              (WebCore::FrameLoaderClientGdk::createJavaAppletWidget):
              (WebCore::FrameLoaderClientGdk::objectContentType):
              (WebCore::FrameLoaderClientGdk::overrideMediaType):
              (WebCore::FrameLoaderClientGdk::windowObjectCleared):
              (WebCore::FrameLoaderClientGdk::hasWebView):
              (WebCore::FrameLoaderClientGdk::hasFrameView):
              (WebCore::FrameLoaderClientGdk::frameLoadCompleted):
              (WebCore::FrameLoaderClientGdk::saveViewStateToItem):
              (WebCore::FrameLoaderClientGdk::restoreViewState):
              (WebCore::FrameLoaderClientGdk::privateBrowsingEnabled):
              (WebCore::FrameLoaderClientGdk::makeDocumentView):
              (WebCore::FrameLoaderClientGdk::makeRepresentation):
              (WebCore::FrameLoaderClientGdk::forceLayout):
              (WebCore::FrameLoaderClientGdk::forceLayoutForNonHTML):
              (WebCore::FrameLoaderClientGdk::setCopiesOnScroll):
              (WebCore::FrameLoaderClientGdk::detachedFromParent1):
              (WebCore::FrameLoaderClientGdk::detachedFromParent2):
              (WebCore::FrameLoaderClientGdk::detachedFromParent3):
              (WebCore::FrameLoaderClientGdk::detachedFromParent4):
              (WebCore::FrameLoaderClientGdk::loadedFromCachedPage):
              (WebCore::FrameLoaderClientGdk::dispatchDidHandleOnloadEvents):
              (WebCore::FrameLoaderClientGdk::dispatchDidReceiveServerRedirectForProvisionalLoad):
              (WebCore::FrameLoaderClientGdk::dispatchDidCancelClientRedirect):
              (WebCore::FrameLoaderClientGdk::dispatchWillPerformClientRedirect):
              (WebCore::FrameLoaderClientGdk::dispatchDidChangeLocationWithinPage):
              (WebCore::FrameLoaderClientGdk::dispatchWillClose):
              (WebCore::FrameLoaderClientGdk::dispatchDidReceiveIcon):
              (WebCore::FrameLoaderClientGdk::dispatchDidStartProvisionalLoad):
              (WebCore::FrameLoaderClientGdk::dispatchDidReceiveTitle):
              (WebCore::FrameLoaderClientGdk::dispatchDidCommitLoad):
              (WebCore::FrameLoaderClientGdk::dispatchDidFinishDocumentLoad):
              (WebCore::FrameLoaderClientGdk::dispatchDidFirstLayout):
              (WebCore::FrameLoaderClientGdk::dispatchShow):
              (WebCore::FrameLoaderClientGdk::cancelPolicyCheck):
              (WebCore::FrameLoaderClientGdk::dispatchDidLoadMainResource):
              (WebCore::FrameLoaderClientGdk::revertToProvisionalState):
              (WebCore::FrameLoaderClientGdk::clearUnarchivingState):
              (WebCore::FrameLoaderClientGdk::willChangeTitle):
              (WebCore::FrameLoaderClientGdk::finishedLoading):
              (WebCore::FrameLoaderClientGdk::finalSetupForReplace):
              (WebCore::FrameLoaderClientGdk::setDefersLoading):
              (WebCore::FrameLoaderClientGdk::isArchiveLoadPending):
              (WebCore::FrameLoaderClientGdk::cancelPendingArchiveLoad):
              (WebCore::FrameLoaderClientGdk::clearArchivedResources):
              (WebCore::FrameLoaderClientGdk::canHandleRequest):
              (WebCore::FrameLoaderClientGdk::canShowMIMEType):
              (WebCore::FrameLoaderClientGdk::representationExistsForURLScheme):
              (WebCore::FrameLoaderClientGdk::generatedMIMETypeForURLScheme):
              (WebCore::FrameLoaderClientGdk::provisionalLoadStarted):
              (WebCore::FrameLoaderClientGdk::didFinishLoad):
              (WebCore::FrameLoaderClientGdk::prepareForDataSourceReplacement):
              (WebCore::FrameLoaderClientGdk::setTitle):
              (WebCore::FrameLoaderClientGdk::setDocumentViewFromCachedPage):
              (WebCore::FrameLoaderClientGdk::dispatchDidReceiveContentLength):
              (WebCore::FrameLoaderClientGdk::dispatchDidFinishLoading):
              (WebCore::FrameLoaderClientGdk::dispatchDidFailLoading):
              (WebCore::FrameLoaderClientGdk::dispatchDidLoadResourceFromMemoryCache):
              (WebCore::FrameLoaderClientGdk::dispatchDidFailProvisionalLoad):
              (WebCore::FrameLoaderClientGdk::dispatchDidFailLoad):
              (WebCore::FrameLoaderClientGdk::download):
              (WebCore::FrameLoaderClientGdk::cancelledError):
              (WebCore::FrameLoaderClientGdk::blockedError):
              (WebCore::FrameLoaderClientGdk::cannotShowURLError):
              (WebCore::FrameLoaderClientGdk::interruptForPolicyChangeError):
              (WebCore::FrameLoaderClientGdk::cannotShowMIMETypeError):
              (WebCore::FrameLoaderClientGdk::fileDoesNotExistError):
              (WebCore::FrameLoaderClientGdk::shouldFallBack):
              (WebCore::FrameLoaderClientGdk::willUseArchive):
              (WebCore::FrameLoaderClientGdk::saveDocumentViewToCachedPage):
              (WebCore::FrameLoaderClientGdk::canCachePage):
              (WebCore::FrameLoaderClientGdk::dispatchCreatePage):
              (WebCore::FrameLoaderClientGdk::dispatchUnableToImplementPolicy):
              (WebCore::FrameLoaderClientGdk::setMainDocumentError):
              (WebCore::FrameLoaderClientGdk::startDownload):
              (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForStandardLoad):
              (WebCore::FrameLoaderClientGdk::updateGlobalHistoryForReload):
              * loader/qt/DocumentLoaderQt.cpp:
              * page/gdk/ContextMenuClientGdk.cpp:
              (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/EventHandlerGdk.cpp:
              (WebCore::EventHandler::passMouseDownEventToWidget):
              (WebCore::EventHandler::eventActivatedView):
              (WebCore::EventHandler::passSubframeEventToSubframe):
              (WebCore::EventHandler::passWheelEventToWidget):
              (WebCore::EventHandler::createDraggingClipboard):
              * page/qt/EventHandlerQt.cpp:
              * page/qt/FrameQt.cpp:
              * platform/NotImplemented.h: Added.
              * platform/gdk/CursorGdk.cpp:
              (WebCore::Cursor::Cursor):
              * platform/gdk/EditorClientGdk.cpp:
              (WebCore::EditorClientGdk::shouldDeleteRange):
              (WebCore::EditorClientGdk::isContinuousSpellCheckingEnabled):
              (WebCore::EditorClientGdk::isGrammarCheckingEnabled):
              (WebCore::EditorClientGdk::spellCheckerDocumentTag):
              (WebCore::EditorClientGdk::shouldBeginEditing):
              (WebCore::EditorClientGdk::shouldEndEditing):
              (WebCore::EditorClientGdk::shouldInsertText):
              (WebCore::EditorClientGdk::shouldChangeSelectedRange):
              (WebCore::EditorClientGdk::shouldApplyStyle):
              (WebCore::EditorClientGdk::didBeginEditing):
              (WebCore::EditorClientGdk::respondToChangedContents):
              (WebCore::EditorClientGdk::respondToChangedSelection):
              (WebCore::EditorClientGdk::didEndEditing):
              (WebCore::EditorClientGdk::didWriteSelectionToPasteboard):
              (WebCore::EditorClientGdk::didSetSelectionTypesForPasteboard):
              (WebCore::EditorClientGdk::selectWordBeforeMenuEvent):
              (WebCore::EditorClientGdk::isEditable):
              (WebCore::EditorClientGdk::registerCommandForUndo):
              (WebCore::EditorClientGdk::registerCommandForRedo):
              (WebCore::EditorClientGdk::clearUndoRedoOperations):
              (WebCore::EditorClientGdk::canUndo):
              (WebCore::EditorClientGdk::canRedo):
              (WebCore::EditorClientGdk::undo):
              (WebCore::EditorClientGdk::redo):
              (WebCore::EditorClientGdk::shouldInsertNode):
              (WebCore::EditorClientGdk::pageDestroyed):
              (WebCore::EditorClientGdk::smartInsertDeleteEnabled):
              (WebCore::EditorClientGdk::toggleContinuousSpellChecking):
              (WebCore::EditorClientGdk::handleInputMethodKeypress):
              (WebCore::EditorClientGdk::textFieldDidBeginEditing):
              (WebCore::EditorClientGdk::textFieldDidEndEditing):
              (WebCore::EditorClientGdk::textDidChangeInTextField):
              (WebCore::EditorClientGdk::doTextFieldCommandFromEvent):
              (WebCore::EditorClientGdk::textWillBeDeletedInTextField):
              (WebCore::EditorClientGdk::textDidChangeInTextArea):
              * platform/gdk/FrameGdk.cpp:
              (WebCore::Frame::print):
              (WebCore::Frame::issueTransposeCommand):
              (WebCore::Frame::cleanupPlatformScriptObjects):
              (WebCore::Frame::dragImageForSelection):
              * platform/gdk/NotImplementedGdk.h: Removed.
              * platform/gdk/PopupMenuGdk.cpp:
              (WebCore::PopupMenu::PopupMenu):
              (WebCore::PopupMenu::~PopupMenu):
              (WebCore::PopupMenu::show):
              (WebCore::PopupMenu::hide):
              (WebCore::PopupMenu::updateFromElement):
              * platform/gdk/RenderThemeGdk.cpp:
              (WebCore::RenderThemeGdk::setCheckboxSize):
              (WebCore::RenderThemeGdk::setRadioSize):
              (WebCore::RenderThemeGdk::adjustTextFieldStyle):
              * platform/gdk/ScreenGdk.cpp:
              (WebCore::screenDepthPerComponent):
              (WebCore::screenIsMonochrome):
              (WebCore::screenRect):
              (WebCore::screenAvailableRect):
              * platform/gdk/ScrollViewGdk.cpp:
              (WebCore::ScrollView::update):
              (WebCore::ScrollView::addChild):
              (WebCore::ScrollView::removeChild):
              (WebCore::ScrollView::scrollRectIntoViewRecursively):
              (WebCore::ScrollView::inWindow):
              (WebCore::ScrollView::wheelEvent):
              (WebCore::ScrollView::updateScrollbars):
              (WebCore::ScrollView::updateScrollInfo):
              (WebCore::ScrollView::windowToContents):
              (WebCore::ScrollView::contentsToWindow):
              (WebCore::ScrollView::scrollbarUnderMouse):
              * platform/gdk/TemporaryLinkStubs.cpp:
              (FrameView::updateBorder):
              (WebCore::findNextWordFromIndex):
              (WebCore::currentTextBreakLocaleID):
              (ChromeClientGdk::chromeDestroyed):
              (ChromeClientGdk::windowRect):
              (ChromeClientGdk::setWindowRect):
              (ChromeClientGdk::pageRect):
              (ChromeClientGdk::scaleFactor):
              (ChromeClientGdk::focus):
              (ChromeClientGdk::unfocus):
              (ChromeClientGdk::createWindow):
              (ChromeClientGdk::createModalDialog):
              (ChromeClientGdk::show):
              (ChromeClientGdk::canRunModal):
              (ChromeClientGdk::runModal):
              (ChromeClientGdk::setToolbarsVisible):
              (ChromeClientGdk::toolbarsVisible):
              (ChromeClientGdk::setStatusbarVisible):
              (ChromeClientGdk::statusbarVisible):
              (ChromeClientGdk::setScrollbarsVisible):
              (ChromeClientGdk::scrollbarsVisible):
              (ChromeClientGdk::setMenubarVisible):
              (ChromeClientGdk::menubarVisible):
              (ChromeClientGdk::setResizable):
              (ChromeClientGdk::closeWindowSoon):
              (ChromeClientGdk::canTakeFocus):
              (ChromeClientGdk::takeFocus):
              (ChromeClientGdk::canRunBeforeUnloadConfirmPanel):
              (ChromeClientGdk::addMessageToConsole):
              (ChromeClientGdk::runBeforeUnloadConfirmPanel):
              (ChromeClientGdk::runJavaScriptAlert):
              (ChromeClientGdk::runJavaScriptConfirm):
              (ChromeClientGdk::runJavaScriptPrompt):
              (ChromeClientGdk::setStatusbarText):
              (ChromeClientGdk::shouldInterruptJavaScript):
              (ChromeClientGdk::tabsToLinks):
              (ChromeClientGdk::windowResizerRect):
              (ChromeClientGdk::addToDirtyRegion):
              (ChromeClientGdk::scrollBackingStore):
              (ChromeClientGdk::updateBackingStore):
              (PlugInInfoStore::createPluginInfoForPluginAtIndex):
              (PlugInInfoStore::pluginCount):
              (WebCore::PlugInInfoStore::supportsMIMEType):
              (WebCore::refreshPlugins):
              (SearchPopupMenu::saveRecentSearches):
              (SearchPopupMenu::loadRecentSearches):
              (SearchPopupMenu::SearchPopupMenu):
              (SearchPopupMenu::enabled):
              (FileChooser::FileChooser):
              (FileChooser::~FileChooser):
              (FileChooser::openFileChooser):
              (FileChooser::basenameForWidth):
              (ResourceHandle::willLoadFromCache):
              (ResourceHandle::loadsBlocked):
              (ResourceHandle::loadResourceSynchronously):
              (Icon::Icon):
              (Icon::~Icon):
              (Icon::newIconForFile):
              (Icon::paint):
              (Font::selectionRectForComplexText):
              (Font::drawComplexText):
              (Font::floatWidthForComplexText):
              (Font::offsetForPositionForComplexText):
              (CachedPage::close):
              (Editor::newGeneralClipboard):
              (Pasteboard::generalPasteboard):
              (Pasteboard::writeSelection):
              (Pasteboard::writeURL):
              (Pasteboard::writeImage):
              (Pasteboard::clear):
              (Pasteboard::canSmartReplace):
              (Pasteboard::documentFragment):
              (Pasteboard::plainText):
              (Pasteboard::Pasteboard):
              (Pasteboard::~Pasteboard):
              (ContextMenu::ContextMenu):
              (ContextMenu::~ContextMenu):
              (ContextMenu::appendItem):
              (ContextMenuItem::ContextMenuItem):
              (ContextMenuItem::~ContextMenuItem):
              (ContextMenuItem::releasePlatformDescription):
              (ContextMenuItem::type):
              (ContextMenuItem::setType):
              (ContextMenuItem::action):
              (ContextMenuItem::setAction):
              (ContextMenuItem::title):
              (ContextMenuItem::setTitle):
              (ContextMenuItem::platformSubMenu):
              (ContextMenuItem::setSubMenu):
              (ContextMenuItem::setChecked):
              (ContextMenuItem::setEnabled):
              (WebCore::supportedKeySizes):
              (WebCore::systemBeep):
              (WebCore::userIdleTime):
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              * platform/graphics/cairo/ImageBufferCairo.cpp:
              * platform/graphics/cairo/PathCairo.cpp:
              * platform/graphics/gdk/ImageGdk.cpp:
              * platform/graphics/qt/GraphicsContextQt.cpp:
              * platform/graphics/qt/IconQt.cpp:
              * platform/graphics/qt/ImageQt.cpp:
              * platform/network/gdk/ResourceHandleCurl.cpp:
              (WebCore::ResourceHandle::setDefersLoading):
              * platform/network/gdk/ResourceHandleManager.cpp:
              (WebCore::ResourceHandleManager::setupPUT):
              (WebCore::ResourceHandleManager::setupPOST):
              * platform/network/qt/ResourceHandleQt.cpp:
              * platform/qt/ClipboardQt.cpp:
              * platform/qt/CursorQt.cpp:
              * platform/qt/DragDataQt.cpp:
              * platform/qt/FileChooserQt.cpp:
              * platform/qt/MimeTypeRegistryQt.cpp:
              * platform/qt/PasteboardQt.cpp:
              * platform/qt/PlatformScrollBarQt.cpp:
              * platform/qt/PopupMenuQt.cpp:
              * platform/qt/ScrollViewQt.cpp:
              * platform/qt/TemporaryLinkStubs.cpp:
              * platform/qt/TextBoundaries.cpp:
              * platform/qt/WidgetQt.cpp:
              * platform/win/FontWin.cpp:
              * platform/win/TemporaryLinkStubs.cpp:
              * platform/wx/ClipboardWx.cpp:
              * platform/wx/FontWx.cpp:
              * platform/wx/ScrollViewWx.cpp:
              * platform/wx/SharedTimerWx.cpp:
              * platform/wx/TemporaryLinkStubs.cpp:
      
      WebKitQt:
      
              Reviewed by Sam Weinig.
              
              Consolidate all notImplemented() macro definitions into
              one header file for all platforms.
      
              * WebCoreSupport/ChromeClientQt.cpp:
              * WebCoreSupport/ContextMenuClientQt.cpp:
              * WebCoreSupport/EditorClientQt.cpp:
              * WebCoreSupport/FrameLoaderClientQt.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@21827 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      64ee95cb
  4. 14 Apr, 2007 1 commit
  5. 04 Jan, 2007 1 commit
    • ap's avatar
      2007-01-04 Don Gibson <dgibson77@gmail.com> · 54ee1988
      ap authored
              Reviewed by Alexey.
      
              http://bugs.webkit.org/show_bug.cgi?id=11900:
              Windows build bustage
      
      WebCore:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::FrameWin):
              * platform/graphics/BitmapImage.h:
              * platform/graphics/GraphicsContext.cpp:
              (WebCore::GraphicsContext::setPlatformStrokeColor):
              * platform/graphics/Image.h:
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawRect):
              (WebCore::adjustLineToPixelBoundaries):
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::drawEllipse):
              (WebCore::GraphicsContext::strokeArc):
              (WebCore::GraphicsContext::drawConvexPolygon):
              * platform/graphics/cairo/ImageCairo.cpp:
              (WebCore::BitmapImage::checkForSolidColor):
              (WebCore::BitmapImage::draw):
              (WebCore::BitmapImage::drawTiled):
              * platform/graphics/win/ImageWin.cpp:
              (WebCore::BitmapImage::initPlatformData):
              (WebCore::BitmapImage::invalidatePlatformData):
              (WebCore::Image::loadPlatformResource):
              * platform/win/FontWin.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::userIdleTime):
              (WebCore::BitmapImage::drawTiled):
              (WebCore::BitmapImage::getHBITMAP):
              (WebCore::ContextMenu::~ContextMenu):
              (WebCore::ContextMenu::appendItem):
              (WebCore::ContextMenuItem::ContextMenuItem):
              (WebCore::ContextMenuItem::releasePlatformDescription):
              (WebCore::ContextMenuItem::type):
              (WebCore::ContextMenuItem::setType):
              (WebCore::ContextMenuItem::setAction):
              (WebCore::ContextMenuItem::setTitle):
              (WebCore::ContextMenuItem::setSubMenu):
              (WebCore::ContextMenuItem::setChecked):
              (WebCore::ContextMenuItem::setEnabled):
              (WebCore::DocumentLoader::originalRequest):
              (WebCore::DocumentLoader::request):
              (WebCore::DocumentLoader::unreachableURL):
              (WebCore::DocumentLoader::getResponseRefreshAndModifiedHeaders):
              (WebCore::DocumentLoader::replaceRequestURLForAnchorScroll):
              (WebCore::DocumentLoader::setCommitted):
              (WebCore::DocumentLoader::isLoading):
              (WebCore::DocumentLoader::prepareForLoadStart):
              (WebCore::DocumentLoader::isClientRedirect):
              (WebCore::DocumentLoader::title):
              (WebCore::DocumentLoader::urlForHistory):
              (WebCore::Editor::markMisspellingsAfterTypingToPosition):
              (WebCore::FrameLoader::load):
              (WebCore::FrameLoader::referrer):
              (WebCore::FrameLoader::dataURLBaseFromRequest):
              (WebCore::FrameLoader::opened):
              (WebCore::FrameLoader::applyUserAgent):
              (WebCore::GraphicsContext::strokeRect):
              (WebCore::IconDatabase::iconForPageURL):
              (WebCore::IconDatabase::defaultIcon):
              (WebCore::IconDatabase::retainIconForPageURL):
              (WebCore::IconDatabase::releaseIconForPageURL):
              (WebCore::PageCache::close):
              (WebCore::ResourceHandle::willLoadFromCache):
              (WebCore::SearchPopupMenu::saveRecentSearches):
              (WebCore::SearchPopupMenu::loadRecentSearches):
              (WebCore::SearchPopupMenu::SearchPopupMenu):
      
      WebKit:
              * COM/ChromeClientWin.cpp:
              (ChromeClientWin::addMessageToConsole):
              (ChromeClientWin::runBeforeUnloadConfirmPanel):
              * COM/ChromeClientWin.h:
              * COM/ContextMenuClientWin.cpp:
              (ContextMenuClientWin::contextMenuItemSelected):
              * COM/ContextMenuClientWin.h:
              * COM/WebFrameLoaderClient.cpp:
              (WebFrameLoaderClient::setDocumentViewFromPageCache):
              (WebFrameLoaderClient::forceLayout):
              (WebFrameLoaderClient::forceLayoutForNonHTML):
              (WebFrameLoaderClient::updateGlobalHistoryForStandardLoad):
              (WebFrameLoaderClient::updateGlobalHistoryForReload):
              (WebFrameLoaderClient::shouldGoToHistoryItem):
              (WebFrameLoaderClient::saveScrollPositionAndViewStateToItem):
              (WebFrameLoaderClient::restoreScrollPositionAndViewState):
              (WebFrameLoaderClient::provisionalLoadStarted):
              (WebFrameLoaderClient::saveDocumentViewToPageCache):
              (WebFrameLoaderClient::canCachePage):
              * COM/WebFrameLoaderClient.h:
              * WebKit.vcproj/WebKit.vcproj:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@18579 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      54ee1988
  6. 07 Sep, 2006 1 commit
    • aroben's avatar
      2006-09-07 MorganL <morlmor@yahoo.com> · a55daed7
      aroben authored
              Reviewed by Darin, landed by Adam.
      
              Fixes part of bug 10743: Windows build busted.
      
              * platform/win/FontCacheWin.cpp: Add missing #include, set svn:eol-style to native
              (WebCore::FontCache::getFontLinkInterface):
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/win/FontDataWin.cpp: Ditto.
              (WebCore::FontData::platformWidthForGlyph):
              * platform/win/FontWin.cpp: Add missing #include, band-aid over const problem with GlyphBufferGlyph
              (WebCore::Font::drawGlyphs):
              * platform/win/ResourceLoaderWin.cpp: Add missing #include, change .ascii() to .latin1()
              (WebCore::ResourceLoaderWndProc):
              (WebCore::ResourceLoader::start):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@16264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a55daed7
  7. 01 Sep, 2006 1 commit
  8. 24 May, 2006 1 commit
  9. 21 May, 2006 1 commit
  10. 14 May, 2006 4 commits
    • sfalken's avatar
      2006-05-14 Steve Falkenburg <sfalken@apple.com> · 4df2c76e
      sfalken authored
              Fix Windows build.
      
              * platform/win/FontWin.cpp:
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::hackishExtentForString):
              (WebCore::Font::floatWidth):
              (WebCore::Font::drawText):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::offsetForPosition):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14369 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4df2c76e
    • hyatt's avatar
      Fix Win32 build bustage. · 8e46b69e
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14368 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      8e46b69e
    • hyatt's avatar
      Fix Win32 build bustage. · 7694a9a4
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14367 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      7694a9a4
    • hyatt's avatar
      Bug 8895. Rework font substitution and fallback. Lift the concept of · cc6e7696
      hyatt authored
              substitution and fallback out of FontData and up into the FontFallbackList.
              See the bug for details of issues fixed in the fallback code.
      
              Reviewed by darin
      
              * WebCore.xcodeproj/project.pbxproj:
              * platform/Font.cpp:
              (WebCore::m_finalRoundingWidth):
              (WebCore::WidthIterator::advance):
              (WebCore::Font::primaryFont):
              (WebCore::Font::fontDataAt):
              (WebCore::Font::fontDataForCharacters):
              (WebCore::Font::ascent):
              (WebCore::Font::descent):
              (WebCore::Font::lineSpacing):
              (WebCore::Font::xHeight):
              (WebCore::Font::isFixedPitch):
              * platform/Font.h:
              (WebCore::Font::getNSFont):
              * platform/FontCache.h: Added.
              * platform/FontData.h:
              (WebCore::FontData::pitch):
              (WebCore::FontData::getNSFont):
              (WebCore::):
              * platform/FontFallbackList.cpp: Added.
              (WebCore::m_pitch):
              (WebCore::FontFallbackList::~FontFallbackList):
              (WebCore::FontFallbackList::invalidate):
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
              * platform/FontFallbackList.h:
              (WebCore::FontFallbackList::isFixedPitch):
              (WebCore::FontFallbackList::primaryFont):
              * platform/FontFamily.h:
              * platform/mac/FontCacheMac.mm: Added.
              (WebCore::FontCache::getFontData):
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/mac/FontData.mm:
              (WebCore::FontData::containsCharacters):
              * platform/mac/FontMac.mm:
              (WebCore::ATSULayoutParameters::initialize):
              * platform/mac/WebTextRendererFactory.h:
              * platform/mac/WebTextRendererFactory.mm:
              (-[WebTextRendererFactory fallbackFontWithTraits:size:]):
              (-[WebTextRendererFactory fontWithDescription:WebCore::familyIndex:]):
              * platform/win/FontWin.cpp:
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::primaryFont):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14366 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      cc6e7696
  11. 13 May, 2006 2 commits
  12. 12 May, 2006 1 commit
    • hyatt's avatar
      Bug 8877. Change form controls and the bridge entry points from the · 29e8eac4
      hyatt authored
              Safari UI to use Font instead of FontData.
      
              Reviewed by mjs
      
              * bridge/mac/WebCoreStringTruncator.mm:
              (stringWidth):
              (truncateString):
              (+[WebCoreStringTruncator widthOfString:font:]):
              (+[WebCoreStringTruncator clear]):
              * kwq/KWQComboBox.mm:
              (QComboBox::sizeHint):
              * kwq/KWQLineEdit.mm:
              (QLineEdit::sizeForCharacterWidth):
              * kwq/KWQListBox.mm:
              (itemTextRenderer):
              (groupLabelTextRenderer):
              (QListBox::sizeForNumberOfLines):
              (QListBox::clearCachedTextRenderers):
              (-[KWQTableView drawRow:clipRect:]):
              * platform/Font.cpp:
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              * platform/Font.h:
              (WebCore::TextStyle::disableRoundingHacks):
              (WebCore::TextStyle::setRTL):
              * platform/FontData.h:
              * platform/FontFallbackList.h:
              * platform/FontPlatformData.h:
              (WebCore::FontPlatformData::syntheticOblique):
              * platform/Pen.h:
              * platform/mac/FontData.mm:
              (WebCore::FontData::smallCapsFontData):
              (WebCore::findSubstituteRenderer):
              * platform/mac/FontMac.mm:
              (WebCore::FontFallbackList::setPlatformFont):
              (WebCore::m_wordSpacing):
              (WebCore::Font::drawComplexText):
              * platform/mac/WebCoreTextRenderer.mm:
              (WebCoreDrawTextAtPoint):
              (WebCoreTextFloatWidth):
              * platform/win/FontWin.cpp:
              (WebCore::Font::drawText):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::positionForOffset):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14337 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      29e8eac4
  13. 11 May, 2006 4 commits
    • hyatt's avatar
      Remove the misspelling drawing code from Font and FontData. Implement it · a19cbc48
      hyatt authored
              natively in GraphicContext instead.
      
              Reviewed by maciej
      
              * platform/FontData.h:
              * platform/GraphicsContext.cpp:
              * platform/GraphicsContext.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawLineForMisspelling):
              * platform/mac/FontData.mm:
              * platform/mac/FontMac.mm:
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContext::drawLineForMisspelling):
              * platform/win/FontWin.cpp:
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paintSpellingMarker):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14318 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      a19cbc48
    • hyatt's avatar
      Remove drawLineForText from the Font API. Implement it natively in · e9911eaa
      hyatt authored
              the two GraphicsContexts (CG and Cairo) instead.
      
              Reviewed by maciej
      
              * platform/Font.h:
              * platform/FontData.h:
              * platform/GraphicsContext.cpp:
              * platform/GraphicsContext.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawLineForText):
              * platform/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::drawLineForText):
              * platform/mac/FontData.mm:
              * platform/mac/FontMac.mm:
              * platform/win/FontWin.cpp:
              (WebCore::Font::drawLineForText):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::paintDecoration):
              (WebCore::InlineTextBox::paintMarkedTextUnderline):
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintDecorations):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14317 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      e9911eaa
    • hyatt's avatar
      This patch makes drawHighlightForText a completely cross-platform method · c7f19ccb
      hyatt authored
              implemented by the GraphicsContext.  The platform-specific implementations
              of the method in the Font class have been eliminated.
      
              Reviewed by andersca
      
              * platform/Font.h:
              * platform/FontData.h:
              Remove the drawHighlight methods.  Change the selectionRect method in
              Font to return a FloatRect so that the GraphicsContext can do an accurate
              fill.
      
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawHighlightForText):
              Implement the drawHighlightFunction in terms of the cross-platform
              Font selectionRect functions and a new float-based fillRect graphics context
              function.
      
              * platform/GraphicsContext.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::fillRect):
              * platform/cg/GraphicsContextCG.cpp:
              (WebCore::GraphicsContext::fillRect):
              Add the new float-based fillRect function for Cairo and CG.
      
              * platform/mac/FontData.mm:
              (WebCore::CG_draw):
              (WebCore::ATSU_draw):
              Removed the CG and ATSU drawHighlight methods.  Remove the drawing of
              the background from the deprecated draw methods (they'll be removed
              soon).
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForText):
              * platform/win/FontWin.cpp:
              (WebCore::Font::selectionRectForText):
              Change selectionRectForText to return a FloatRect instead of an IntRect,
              so that the GraphicsContext can do a precise fill.
      
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::positionForOffset):
              Modify the callers who expect an int-based selection rect so that they call
              enclosingIntRect.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14304 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c7f19ccb
    • hyatt's avatar
      Bug 8845. Define a TextRun (similar to the old WebCoreTextRun) and · 43d6c79b
      hyatt authored
              make it the new API for Font and GraphicsContext when drawing/measuring
              text.
      
              Reviewed by andersca
      
              * platform/Font.cpp:
              (WebCore::m_finalRoundingWidth):
              (WebCore::WidthIterator::advance):
              (WebCore::WidthIterator::normalizeVoicingMarks):
              (WebCore::Font::width):
              (WebCore::Font::canUseGlyphCache):
              (WebCore::Font::drawSimpleText):
              (WebCore::Font::drawText):
              (WebCore::Font::floatWidth):
              (WebCore::Font::floatWidthForSimpleText):
              * platform/Font.h:
              (WebCore::TextRun::m_to):
              (WebCore::TextRun::operator[]):
              (WebCore::TextRun::data):
              (WebCore::TextRun::adjustFrom):
              (WebCore::TextRun::adjustTo):
              (WebCore::TextRun::characters):
              (WebCore::TextRun::length):
              (WebCore::TextRun::from):
              (WebCore::TextRun::to):
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContext::drawText):
              (WebCore::GraphicsContext::drawHighlightForText):
              * platform/GraphicsContext.h:
              * platform/mac/FontMac.mm:
              (WebCore::addDirectionalOverride):
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawComplexText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::floatWidthForComplexText):
              (WebCore::Font::checkSelectionPoint):
              * platform/win/FontWin.cpp:
              (WebCore::hackishExtentForString):
              (WebCore::Font::floatWidth):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::checkSelectionPoint):
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect):
              (WebCore::InlineTextBox::paint):
              (WebCore::InlineTextBox::paintSelection):
              (WebCore::InlineTextBox::paintMarkedTextBackground):
              (WebCore::InlineTextBox::paintTextMatchMarker):
              (WebCore::InlineTextBox::offsetForPosition):
              (WebCore::InlineTextBox::positionForOffset):
              * rendering/RenderBlock.cpp:
              (WebCore::stripTrailingSpace):
              * rendering/RenderFlexibleBox.cpp:
              (WebCore::RenderFlexibleBox::layoutVerticalBox):
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::imageChanged):
              (WebCore::RenderImage::paint):
              * rendering/RenderText.cpp:
              (WebCore::RenderText::cacheWidths):
              (WebCore::RenderText::widthFromCache):
              (WebCore::RenderText::trimmedMinMaxWidth):
              (WebCore::RenderText::calcMinMaxWidth):
              (WebCore::RenderText::width):
              * rendering/RenderTextField.cpp:
              (WebCore::RenderTextField::calcMinMaxWidth):
              * rendering/bidi.cpp:
              (WebCore::RenderBlock::tabWidth):
              (WebCore::RenderBlock::checkLinesForTextOverflow):
              * rendering/render_line.cpp:
              (WebCore::EllipsisBox::paint):
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint):
              (WebCore::RenderListMarker::calcMinMaxWidth):
              (WebCore::RenderListMarker::getRelativeMarkerRect):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14297 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43d6c79b
  14. 10 May, 2006 1 commit
  15. 09 May, 2006 1 commit
    • darin's avatar
      WebCore: · 41319bd3
      darin authored
              - fix build
      
              * rendering/render_style.cpp: (WebCore::RenderStyle::getPseudoStyle):
              Fix a typo.
      
              - attempt to fix Windows build
      
              * css/maketokenizer: Use UChar instead of unsigned short.
              * platform/win/FontWin.cpp:
              (WebCore::getFontData): Removed cast to QChar.
              (WebCore::hackishExtentForString): Use UChar.
              (WebCore::Font::floatWidth): Use UChar.
              (WebCore::Font::drawText): Use UChar.
              (WebCore::Font::drawHighlightForText): Use UChar.
              (WebCore::Font::selectionRectForText): Use UChar.
              (WebCore::Font::checkSelectionPoint): Use UChar.
              * platform/win/KeyEventWin.cpp:
              (WebCore::singleCharacterString): Added.
              (WebCore::PlatformKeyboardEvent::PlatformKeyboardEvent): Use above function.
              * platform/win/TemporaryLinkStubs.cpp:
              (WebCore::findNextSentenceFromIndex): Use UChar.
              (WebCore::findSentenceBoundary): Use UChar.
              (WebCore::findNextWordFromIndex): Use UChar.
              (WebCore::findWordBoundary): Use UChar.
              * platform/win/TransferJobWin.cpp:
              (WebCore::TransferJob::start): Use a different String constructor.
              * rendering/RenderTable.h: Added an include of DeprecatedArray.h.
              * rendering/RenderText.cpp: Added an include of DeprecatedString.h.
              * rendering/render_list.h: Ditto.
      
      WebKitWin:
      
              - attempt to fix the Windows build
      
              * WebView.cpp: (WebKit::WebViewWndProc): Convert to String explicitly via UChar instead of
              implicitly via QChar.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14274 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      41319bd3
  16. 06 May, 2006 1 commit
    • hyatt's avatar
      Rename WebCoreFont to FontPlatformData and WebTextRenderer to... · 4f04d3e6
      hyatt authored
              Rename WebCoreFont to FontPlatformData and WebTextRenderer to FontData.  Merge them into the
              headers (uncleanly with ifdefs at the moment, so I can see what I'm working towards).
      
              Reviewed by mjs
      
              * ChangeLog:
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * bridge/mac/WebCoreStringTruncator.mm:
              (stringWidth):
              (truncateString):
              (+[WebCoreStringTruncator widthOfString:font:]):
              * kwq/KWQComboBox.mm:
              (QComboBox::sizeHint):
              * kwq/KWQLineEdit.mm:
              (QLineEdit::sizeForCharacterWidth):
              * kwq/KWQListBox.mm:
              (itemTextRenderer):
              (groupLabelTextRenderer):
              (QListBox::sizeForNumberOfLines):
              (-[KWQTableView drawRow:clipRect:]):
              * platform/Font.cpp:
              (WebCore::m_wordSpacing):
              (WebCore::Font::Font):
              (WebCore::Font::operator=):
              (WebCore::Font::update):
              (WebCore::Font::ascent):
              (WebCore::Font::descent):
              (WebCore::Font::lineSpacing):
              (WebCore::Font::xHeight):
              (WebCore::Font::isFixedPitch):
              * platform/Font.h:
              (WebCore::Font::getNSFont):
              * platform/FontData.h:
              (WebCore::FontData::ascent):
              (WebCore::FontData::descent):
              (WebCore::FontData::lineSpacing):
              (WebCore::FontData::lineGap):
              (WebCore::FontData::misspellingLineThickness):
              (WebCore::FontData::misspellingLinePatternWidth):
              (WebCore::FontData::misspellingLinePatternGapWidth):
              * platform/FontDataSet.h: Removed.
              * platform/FontFallbackList.h: Added.
              * platform/FontPlatformData.h:
              * platform/mac/FontData.mm: Added.
              (WebCore::WebCoreInitializeFont):
              (WebCore::WebCoreInitializeEmptyTextGeometry):
              (WebCore::widthForGlyph):
              (WebCore::overrideLayoutOperation):
              (WebCore::FontData::~FontData):
              (WebCore::FontData::xHeight):
              (WebCore::FontData::drawRun):
              (WebCore::FontData::floatWidthForRun):
              (WebCore::FontData::drawLineForCharacters):
              (WebCore::FontData::selectionRectForRun):
              (WebCore::FontData::drawHighlightForRun):
              (WebCore::FontData::drawLineForMisspelling):
              (WebCore::FontData::pointToOffset):
              (WebCore::FontData::setAlwaysUseATSU):
              (WebCore::getSmallCapsRenderer):
              (WebCore::findSubstituteFont):
              (WebCore::rendererForAlternateFont):
              (WebCore::findSubstituteRenderer):
              (WebCore::computeWidthForSpace):
              (WebCore::setUpFont):
              (WebCore::CG_drawHighlight):
              (WebCore::CG_selectionRect):
              (WebCore::CG_draw):
              (WebCore::CG_floatWidthForRun):
              (WebCore::updateGlyphMapEntry):
              (WebCore::extendGlyphMap):
              (WebCore::extendWidthMap):
              (WebCore::initializeATSUStyle):
              (WebCore::createATSULayoutParameters):
              (WebCore::getTextBounds):
              (WebCore::ATSU_floatWidthForRun):
              (WebCore::ATSU_drawHighlight):
              (WebCore::ATSU_selectionRect):
              (WebCore::ATSU_draw):
              (WebCore::ATSU_pointToOffset):
              (WebCore::advanceWidthIteratorOneCharacter):
              (WebCore::CG_pointToOffset):
              (WebCore::glyphForCharacter):
              (WebCore::initializeWidthIterator):
              (WebCore::advanceWidthIterator):
              * platform/mac/FontMac.mm:
              (WebCore::m_font):
              (WebCore::FontFallbackList::~FontFallbackList):
              (WebCore::FontFallbackList::platformFont):
              (WebCore::FontFallbackList::primaryFont):
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::invalidate):
              (WebCore::Font::platformFont):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::drawLineForText):
              (WebCore::Font::drawLineForMisspelling):
              (WebCore::Font::misspellingLineThickness):
              (WebCore::Font::floatWidth):
              (WebCore::Font::checkSelectionPoint):
              * platform/mac/WebCoreTextRenderer.mm:
              (WebCoreDrawTextAtPoint):
              (WebCoreTextFloatWidth):
              (WebCoreSetAlwaysUseATSU):
              * platform/mac/WebTextRenderer.h: Removed.
              * platform/mac/WebTextRenderer.mm: Removed.
              * platform/mac/WebTextRendererFactory.h:
              * platform/mac/WebTextRendererFactory.mm:
              (-[WebTextRendererFactory isFontFixedPitch:]):
              (-[WebTextRendererFactory init]):
              (-[WebTextRendererFactory rendererWithFont:]):
              (-[WebTextRendererFactory fontWithFamilies:traits:size:]):
              * platform/win/FontWin.cpp:
              (WebCore::FontFallbackList::~FontFallbackList):
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::invalidate):
              (WebCore::FontFallbackList::primaryFont):
              (WebCore::Font::floatWidth):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::checkSelectionPoint):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@14216 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4f04d3e6
  17. 05 May, 2006 1 commit
  18. 21 Apr, 2006 1 commit
    • darin's avatar
      Reviewed by Hyatt. · 33137f7d
      darin authored
              - make <canvas> element and related API behave more like the draft of
                the WhatWG Web Application specification, checking parameter validity
                and raising exceptions
              - changed HTMLCanvasElement bindings to be auto-generated, fixing all
                issues so we can generate bindings for classes drived from HTMLElement
              - change GraphicsContext API to use IntRect/Point/Size in more cases
              - change GraphicsContext so it is closer to truly wrapping a graphics
                context rather than representing the current NSGraphicsContext; there
                are still some things like text and rectangle fills that are tied to
                NSGraphicsContext, but we're most of the way there
              - removed Brush class since it just amounted to a color, using an RGBA32
                instead where we used to use a Brush
      
              * DerivedSources.make: Added JSHTMLCanvasElement.h.
              * WebCore.xcodeproj/project.pbxproj: Added new files.
      
              * bindings/js/JSCanvasRenderingContext2DBase.h: Added toJS.
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              (WebCore::JSCanvasRenderingContext2DBaseProtoFunc::callAsFunction):
              Added exception code handling for strokeRect, drawImage, and createPattern.
              Added version of createPattern that takes a canvas. Use TYPE_MISMATCH_ERR
              instead of JavaScript TypeError when parameter is neither an image or canvas
              element. Adapt for new HTMLCanvasElement binding.
              (WebCore::toJS): Added. Converts context object to JS wrapper.
      
              * bindings/js/JSHTMLElementWrapperFactory.h: Added.
              * bindings/js/JSHTMLElementWrapperFactory.cpp: Added. Creates a JavaScript
              wrapper for an arbitrary HTML element. Better than putting this all in the
              DOM node class toJS function.
      
              * bindings/js/JSXMLSerializer.cpp: Tweaked to make it build.
              * bindings/js/kjs_dom.cpp: (KJS::toJS): Changed to call the
              JSHTMLElementWrapperFactory function createJSWrapper, instead
              of always creating a JSHTMLElement.
      
              * bindings/js/kjs_html.h: Removed canvas-related stuff. Added HTMLElement
              prototype.
              * bindings/js/kjs_html.cpp:
              (KJS::JSHTMLElement::classInfo): Removed canvas element.
              (KJS::JSHTMLElement::accessors): Ditto.
              (KJS::JSHTMLElementProtoFunc::callAsFunction): Added, to help the auto-binding
              machiner cope with HTMLElement.
              (KJS::HTMLElementFunction::callAsFunction): Removed canvas element.
      
              * bindings/scripts/CodeGeneratorJS.pm: Added types needed for HTMLCanvasElement.
      
              * bridge/mac/FrameMac.mm: (WebCore::FrameMac::setDisplaysWithFocusAttributes):
              Changed to create a GraphicsContext with the new constructor that takes
              a CGContextRef.
              * bridge/mac/WebCoreFrameBridge.mm: (-[WebCoreFrameBridge drawRect:]):
              Changed to create a GraphicsContext with the new constructor that takes
              a NSGraphicsContext.
              * page/Frame.cpp: (WebCore::Frame::adjustPageHeight): Changed to create a
              GraphicsContext with the new constructor that takes a CGContextRef.
      
              * editing/SelectionController.cpp: (WebCore::SelectionController::paintCaret):
              Eliminated a use of obsolete class Brush.
      
              * html/CanvasPattern.h:
              * html/CanvasPattern.cpp:
              (WebCore::CanvasPattern::parseRepetitionType): Added. Parses a repetition
              type. Different from the old logic in that it is case-sensitive and rejects
              anything other than null, empty string, or the four repeat types.
              (WebCore::CanvasPattern::CanvasPattern): Added constructor that takes
              a CGImageRef. Changed constructor to take two booleans instead of the repetition
              type string. It's the caller's responsibility to parse the string.
              (WebCore::CanvasPattern::~CanvasPattern): Release the CGImage.
              (WebCore::patternCallback): Handle the CGImage case. Also changed the code
              to create a GraphicsContext as needed and call the image drawing code with that.
              (WebCore::CanvasPattern::createPattern): Handle both the image element case and
              the canvas element case.
              
              * html/CanvasRenderingContext2D.h:
              * html/CanvasRenderingContext2D.cpp:
              (WebCore::CanvasRenderingContext2D::State::State): Change line cap, line join,
              and global composite to store enum values instead of strings.
              (WebCore::CanvasRenderingContext2D::setLineWidth): Do nothing if width is NaN
              or <= 0.
              (WebCore::CanvasRenderingContext2D::lineCap): Return a string based on a
              stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setLineCap): Do nothing if the string is
              not one of the standard line cap types. Also case sensitive and stores enum
              rather than the string.
              (WebCore::CanvasRenderingContext2D::lineJoin): Return a string based on a
              stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setLineJoin): Do nothing if the string is
              not one of the standard line join types. Also case sensitive and stores enum
              rather than the string.
              (WebCore::CanvasRenderingContext2D::setMiterLimit): Do nothing if limit is NaN
              or <= 0.
              (WebCore::CanvasRenderingContext2D::setGlobalAlpha): Do nothing if alpha is NaN
              or < 0 or > 1.
              (WebCore::CanvasRenderingContext2D::globalCompositeOperation): Return a string
              based on a stored enum, rather than returning a stored string.
              (WebCore::CanvasRenderingContext2D::setGlobalCompositeOperation): Do nothing if
              the string is not one of the standard compositing modes. Also case sensitive and
              stores enum rather than the string.
              (WebCore::CanvasRenderingContext2D::arcTo): Generate INDEX_SIZE_ERR exception
              if radius is NaN or <= 0.
              (WebCore::CanvasRenderingContext2D::arc): Ditto.
              (WebCore::CanvasRenderingContext2D::rect): Generate INDEX_SIZE_ERR exception
              if width or height is NaN or <= 0.
              (WebCore::CanvasRenderingContext2D::clearRect): Ditto.
              (WebCore::CanvasRenderingContext2D::fillRect): Ditto.
              (WebCore::CanvasRenderingContext2D::strokeRect): Ditto, same for line width.
              Changed the case where the line width is not specified to share code with the
              case where it is.
              (WebCore::size): Renamed from imageSize, since C++ overloads based on parameter
              types anyway.
              (WebCore::CanvasRenderingContext2D::drawImage): Generate INDEX_SIZE_ERR exception
              if the source rect is not entirely inside the image rect, or if the width or height
              of either the source or destination rect is NaN or <= 0. Changed image drawing
              code to be platform-independent for the image element case, but not yet for the
              canvas case.
              (WebCore::CanvasRenderingContext2D::drawImageFromRect): Change code to parse the
              composite operation to use the new code shared with Image.
              (WebCore::CanvasRenderingContext2D::createPattern): Added code to parse the
              repetition type separately before creating the pattern. Added an overload for
              canvas elements.
              (WebCore::CanvasRenderingContext2D::drawingContext): Changed to return a
              GraphicsContext*.
              (WebCore::CanvasRenderingContext2D::platformContext): Added. Now does what
              drawingContext used to do.
      
              * html/CanvasRenderingContext2D.idl: Added exception declarations as needed
              for changes above.
      
              * html/HTMLCanvasElement.h:
              * html/HTMLCanvasElement.cpp:
              (WebCore::HTMLCanvasElement::HTMLCanvasElement): Changed m_drawingContext
              to be a GraphicsContext instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::~HTMLCanvasElement): Ditto.
              (WebCore::HTMLCanvasElement::getContext): Removed special cases for null
              and empty string. Only give a 2D graphics context if the string is "2d".
              (WebCore::HTMLCanvasElement::reset): Updated for change to GraphicsContext
              from CGContextRef.
              (WebCore::HTMLCanvasElement::paint): Ditto.
              (WebCore::HTMLCanvasElement::createDrawingContext): Changed to create a
              GraphicsContext* instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::drawingContext): Changed to return a
              GraphicsContext* instead of a CGContextRef.
              (WebCore::HTMLCanvasElement::createPlatformImage): Updated for changes above.
      
              * html/HTMLCanvasElement.idl: Added.
      
              * html/HTMLParser.h:
              * html/HTMLParser.cpp:
              (WebCore::HTMLParser::canvasCreateErrorCheck): Added. An attempt to implement the
              fallback behavior for canvas elements when JavaScript is off.
              (WebCore::HTMLParser::getNode): Sorted list of functions. Added case for canvas.
      
              * html/html_imageimpl.h:
              * html/html_imageimpl.cpp:
              (WebCore::HTMLImageElement::HTMLImageElement): Changed m_compositeOperator to be
              an enum instead of a string.
              (WebCore::HTMLImageElement::parseMappedAttribute): Parse the enum here.
      
              * kcanvas/KCanvasResources.h:
              * kcanvas/KCanvasResources.cpp: (WebCore::KCanvasMarker::draw): Changed to take a
              GraphicsContext parameter.
      
              * kcanvas/RenderPath.h: Added GraphicsContext parameter to drawMarkersIfNeeded.
      
              * kcanvas/RenderPath.cpp: (WebCore::RenderPath::paint):
              * kcanvas/RenderSVGImage.cpp: (WebCore::RenderSVGImage::paint):
              * kcanvas/RenderSVGText.cpp: (WebCore::RenderSVGText::paint):
              Changed to generate and use an appropriate GraphicsContext.
      
              * kcanvas/device/quartz/KCanvasItemQuartz.h: Added GraphicsContext parameter to
              drawMarkersIfNeeded.
              * kcanvas/device/quartz/KCanvasItemQuartz.mm:
              (WebCore::DrawMarkersData::DrawMarkersData): Added GraphicsContext*.
              (WebCore::drawMarkerWithData): Pass along a GraphicsContext*.
              (WebCore::drawStartAndMidMarkers): Ditto.
              (WebCore::KCanvasItemQuartz::drawMarkersIfNeeded): Pass a long a GraphicsContext*.
      
              * kcanvas/device/KRenderingDevice.h: Added a pure virtual createGraphicsContext
              to bridge back to a GraphicsContext. Long term that class will replace this one.
              * kcanvas/device/quartz/KRenderingDeviceQuartz.h:
              * kcanvas/device/quartz/KRenderingDeviceQuartz.mm:
              (WebCore::KRenderingDeviceContextQuartz::createGraphicsContext): Added.
      
              * ksvg2/svg/SVGMaskElement.cpp: (WebCore::SVGMaskElement::drawMaskerContent):
              Create and pass a GraphicsContext -- old code used the default constructor for
              GraphicsContext which meant "current context", and that no longer exists.
              * ksvg2/svg/SVGPatternElement.cpp:
              (WebCore::SVGPatternElement::drawPatternContentIntoTile): Ditto.
      
              * platform/Brush.h: Removed.
              * platform/CompositeOperator.h: Added.
              * platform/CompositeOperator.cpp: Added.
      
              * platform/Font.h: Changed calls to use IntPoint instead of pairs of ints.
              Also removed the const from all the uses of GraphicsContext*.
      
              * platform/GraphicsContext.h: Eliminated default constructor and constructor
              that takes only a boolean. Replaced with constructors that take platform
              graphics contexts only. Replaced brush-related calls with fill color calls.
              Replaced use of Brush with use of Color. Changed Image::CompositeOperator to
              just plain CompositeOperator. Changed tuples of ints into IntRect and IntPoint.
              Moved setFocusRingClip and clearFocusRingClip out of ifdefs. Removed unused
              getCompositeOperation and string-based setCompositeOperation. Moved
              currentCGContext and the other setCompositeOperation out of the GraphicsContext
              class and made them global functions. Fixed platformContext so it won't always
              return the CGContextRef of the current NSGraphicsContext. Instead, it will
              return the appropriate CGContextRef for the GraphicsContext. This eliminates
              the need to use void* for the image-drawing functions.
      
              * platform/GraphicsContext.cpp:
              (WebCore::GraphicsContextState::GraphicsContextState): Replaced Brush with
              an RGBA fill color.
              (WebCore::GraphicsContext::setFillColor): Renamed from setBrush.
              (WebCore::GraphicsContext::fillColor): Renamed from brush.
              (WebCore::GraphicsContext::drawImage): Changed to use IntRect.
              (WebCore::GraphicsContext::drawTiledImage): Moved here from GraphicsContextMac.mm.
              (WebCore::GraphicsContext::drawText): Changed to use IntPoint.
              (WebCore::GraphicsContext::drawHighlightForText): Ditto.
              (WebCore::GraphicsContext::drawLineForText): Ditto.
              (WebCore::GraphicsContext::drawLineForMisspelling): Ditto.
      
              * platform/Image.h: Removed CompositeOperator and related functions.
              Removed void* context parameters from draw functions.
      
              * platform/Image.cpp: Removed compositeOperatorFromString.
      
              * platform/Widget.h: Added a GraphicsContext* return value from lockDrawingFocus
              that you pass back to unlockDrawingFocus (for deletion).
      
              * platform/mac/FontMac.mm:
              (WebCore::Font::selectionRectForText): Changed parameter to point and removed
              const on GraphicsContext* parameter.
              (WebCore::Font::drawText): Ditto.
              (WebCore::Font::drawHighlightForText): Ditto.
              (WebCore::Font::drawLineForText): Ditto.
              (WebCore::Font::drawLineForMisspelling): Ditto.
              (WebCore::Font::misspellingLineThickness): Removed const.
      
              * platform/mac/GraphicsContextMac.mm:
              (WebCore::GraphicsContextPlatformPrivate::GraphicsContextPlatformPrivate):
              Added fields to store a CGContextRef and an NSGraphicsContext.
              (WebCore::GraphicsContextPlatformPrivate::~GraphicsContextPlatformPrivate):
              Release both the CGContextRef and the NSGraphicsContext.
              (WebCore::GraphicsContext::GraphicsContext): Implement to set up both the
              CGContextRef and the NSGraphicsContext in one case, and only the CGContextRef
              in the other.
              (WebCore::GraphicsContext::savePlatformState): Implement for the CGContext-only
              case.
              (WebCore::GraphicsContext::restorePlatformState): Ditto.
              (WebCore::GraphicsContext::drawRect): Assert that the NS context is present
              and 
              (WebCore::GraphicsContext::setColorFromFillColor): Renamed from
              setColorFromBrush.
              (WebCore::GraphicsContext::setColorFromPen): Added assertion.
              (WebCore::GraphicsContext::drawLine): Added assertion.
              (WebCore::GraphicsContext::drawEllipse): Get CGContext from the platformContext
              function instead of currentCGContext, and changed to use fillColor.
              (WebCore::GraphicsContext::drawArc): Ditto.
              (WebCore::GraphicsContext::drawConvexPolygon): Ditto.
              (WebCore::setCompositeOperation): Changed to global function and also changed
              to do the work here -- no need to use WebCoreImageRendererFactory.
              (WebCore::GraphicsContext::drawImage): Move most of this into GraphicsContext.cpp.
              Remove the void* context parameter. Changed to take rects instead of separate coordinates.
              (WebCore::GraphicsContext::fillRect): Changed to take color instead of Brush.
              (WebCore::GraphicsContext::addClip): Added assertion.
              (WebCore::GraphicsContext::addRoundedRectClip): Get CGContextRef from the platformContext
              function instead of currentCGContext.
              (WebCore::GraphicsContext::createRenderingDeviceContext): Ditto.
              (WebCore::GraphicsContext::beginTransparencyLayer): Ditto.
              (WebCore::GraphicsContext::endTransparencyLayer): Ditto.
              (WebCore::GraphicsContext::setShadow): Change to take size instead of x,y. Also get
              CGCOntextRef from the platformContext function instead of currentCGContext.
              (WebCore::GraphicsContext::clearShadow): Get CGContextRef from the platformContext
              function instead of currentCGContext.
              (WebCore::GraphicsContext::platformContext): Added. Returns m_data->m_cgContext.
      
              * platform/mac/ImageMac.mm:
              (WebCore::fillSolidColorInRect): Updated for change in CompositeOperator type.
              (WebCore::Image::checkForSolidColor): Ditto.
              (WebCore::Image::draw): Removed void* context parameter and replaced it with
              a GraphicsContext* parameter. Renamed from drawInRect.
              (WebCore::Image::drawTiled): Ditto. Renamed from tileInRect and scaleAndTileInRect.
      
              * platform/mac/PDFDocumentImage.h: Updated for change in CompositeOperator type.
              * platform/mac/PDFDocumentImage.mm: (WebCore::PDFDocumentImage::draw): Ditto.
      
              * platform/mac/WidgetMac.mm:
              (WebCore::Widget::lockDrawingFocus): Changed to return a GraphicsContext*.
              (WebCore::Widget::unlockDrawingFocus): Changed to take a GraphicsContext*.
      
              * rendering/InlineTextBox.cpp:
              (WebCore::InlineTextBox::selectionRect): Changed to pass IntPoint.
              (WebCore::InlineTextBox::paint): Changed to pass IntSize.
              (WebCore::InlineTextBox::paintSelection): More of the same.
              (WebCore::InlineTextBox::paintMarkedTextBackground): Ditto.
              (WebCore::InlineTextBox::paintDecoration): Ditto.
              (WebCore::InlineTextBox::paintSpellingMarker): Ditto.
              (WebCore::InlineTextBox::paintTextMatchMarker): Ditto.
              (WebCore::InlineTextBox::paintMarkedTextUnderline): Ditto.
              (WebCore::InlineTextBox::positionForOffset): Ditto.
              * rendering/RenderBlock.cpp:
              (WebCore::RenderBlock::fillHorizontalSelectionGap): Ditto.
              (WebCore::RenderBlock::fillVerticalSelectionGap): Ditto.
              (WebCore::RenderBlock::fillLeftSelectionGap): Ditto.
              (WebCore::RenderBlock::fillRightSelectionGap): Ditto.
              * rendering/RenderBox.cpp:
              (WebCore::RenderBox::paintBackgroundExtended): Ditto.
              (WebCore::RenderBox::outlineBox): Ditto.
              * rendering/RenderImage.cpp:
              (WebCore::RenderImage::paint): Ditto.
              * rendering/RenderLayer.cpp:
              (WebCore::setClip): Take out ifdefs. We'll do that inside GraphicsContext instead.
              (WebCore::restoreClip): Ditto.
              * rendering/RenderObject.cpp:
              (WebCore::RenderObject::drawBorder): More of the same.
              (WebCore::RenderObject::paintBorderImage): Ditto.
              * rendering/render_line.cpp:
              (WebCore::InlineFlowBox::paintDecorations): Ditto.
              (WebCore::EllipsisBox::paint): Ditto.
              * rendering/render_list.cpp:
              (WebCore::RenderListMarker::paint): Ditto.
      
              * rendering/render_frames.cpp: (WebCore::RenderFrameSet::userResize): Set up a graphics
              context by calling lockDrawingFocus. Also changed a color here to be a constant.
      
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawImage): Update for parameter type changes.
              (WebCore::GraphicsContext::drawScaledAndTiledImage):
              (WebCore::GraphicsContext::setFocusRingClip):
              (WebCore::GraphicsContext::clearFocusRingClip):
              * platform/cairo/ImageCairo.cpp:
              (WebCore::setCompositingOperation):
              (WebCore::Image::tileInRect):
              (WebCore::Image::scaleAndTileInRect):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13992 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      33137f7d
  19. 19 Apr, 2006 1 commit
    • adele's avatar
      LayoutTests: · d8a760c2
      adele authored
              Updated results for: http://bugzilla.opendarwin.org/show_bug.cgi?id=8297
              REGRESSION: Input element extends outside of DIV element at http://www.macdock.com/
      
              * editing/selection/3690703-2-expected.checksum:
              * editing/selection/3690703-2-expected.png:
              * editing/selection/3690703-2-expected.txt:
              * editing/selection/3690703-expected.checksum:
              * editing/selection/3690703-expected.png:
              * editing/selection/3690703-expected.txt:
              * editing/selection/3690719-expected.checksum:
              * editing/selection/3690719-expected.png:
              * editing/selection/3690719-expected.txt:
              * fast/forms/input-appearance-minWidth-expected.checksum:
              * fast/forms/input-appearance-minWidth-expected.png:
              * fast/forms/input-appearance-minWidth-expected.txt:
              * fast/forms/input-appearance-width-expected.checksum:
              * fast/forms/input-appearance-width-expected.png:
              * fast/forms/input-appearance-width-expected.txt:
              * fast/forms/input-double-click-selection-gap-bug-expected.checksum:
              * fast/replaced/width100percent-expected.checksum:
              * fast/replaced/width100percent-expected.png:
              * fast/replaced/width100percent-expected.txt:
              * tables/mozilla/bugs/bug1188-expected.checksum:
              * tables/mozilla/bugs/bug1188-expected.png:
              * tables/mozilla/bugs/bug1188-expected.txt:
              * tables/mozilla/bugs/bug12384-expected.checksum:
              * tables/mozilla/bugs/bug12384-expected.png:
              * tables/mozilla/bugs/bug12384-expected.txt:
              * tables/mozilla/bugs/bug18359-expected.checksum:
              * tables/mozilla/bugs/bug18359-expected.png:
              * tables/mozilla/bugs/bug18359-expected.txt:
              * tables/mozilla/bugs/bug55545-expected.checksum:
              * tables/mozilla/bugs/bug55545-expected.png:
              * tables/mozilla/bugs/bug55545-expected.txt:
              * tables/mozilla/bugs/bug7342-expected.checksum:
              * tables/mozilla/bugs/bug7342-expected.png:
              * tables/mozilla/bugs/bug7342-expected.txt:
              * tables/mozilla_expected_failures/bugs/bug2479-2-expected.checksum:
              * tables/mozilla_expected_failures/bugs/bug2479-2-expected.png:
              * tables/mozilla_expected_failures/bugs/bug2479-2-expected.txt:
      
      WebCore:
      
              Reviewed by Hyatt.
      
              Fix for: http://bugzilla.opendarwin.org/show_bug.cgi?id=8297
              REGRESSION: Input element extends outside of DIV element at http://www.macdock.com/
      
              * platform/Font.h: Added runRounding parameter to floatWidth.
              * platform/mac/FontMac.mm: (WebCore::Font::floatWidth): ditto.
              * platform/win/FontWin.cpp: (WebCore::Font::floatWidth): ditto.
              * rendering/RenderTextField.cpp: (WebCore::RenderTextField::calcMinMaxWidth):
                Use new floatWidth parameter to turn off run rounding.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13975 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      d8a760c2
  20. 31 Mar, 2006 1 commit
  21. 20 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-20 Eric Seidel <eseidel@apple.com> · 4d9498fe
      eseidel authored
              Reviewed by hyatt.
      
              Fix win32 compile.
      
              * Viewer/ImageView.cpp:
              * platform/GraphicsContext.cpp:
              (WebCore::WebCore::GraphicsContext::createGraphicsContextPrivate):
              (WebCore::WebCore::GraphicsContext::destroyGraphicsContextPrivate):
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::fillRectSourceOver):
              (WebCore::GraphicsContext::drawLine):
              (WebCore::GraphicsContext::drawFocusRing):
              * platform/win/FontWin.cpp:
              (WebCore::Font::drawHighlightForText):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13398 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      4d9498fe
  22. 16 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-16 Eric Seidel <eseidel@apple.com> · f825ec04
      eseidel authored
              Reviewed by darin.
      
              Add additional hackish Font, focusring and caret code.
              http://bugzilla.opendarwin.org/show_bug.cgi?id=7803
      
              * WebCore.vcproj/WebCore/WebCore.vcproj:
              * WebCore.vcproj/WebCore/build-generated-files.sh:
              * bindings/js/JSCanvasRenderingContext2DBase.cpp:
              * bridge/win/FrameWin.cpp:
              (WebCore::FrameWin::keyPress):
              * bridge/win/FrameWin.h:
              * html/CanvasRenderingContext2D.h:
              * platform/IntSize.h:
              * platform/KeyEvent.h:
              * platform/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::drawArc):
              (WebCore::GraphicsContext::drawFocusRing):
              * platform/win/FontWin.cpp:
              (WebCore::hackishExtentForString):
              (WebCore::Font::floatWidth):
              (WebCore::convertRange):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::checkSelectionPoint):
              (WebCore::Font::drawLineForText):
              (WebCore::Font::misspellingLineThickness):
              * platform/win/IntSizeWin.cpp: Added.
              (WebCore::IntSize::IntSize):
              (WebCore::IntSize::operator SIZE):
              * platform/win/ScrollViewWin.cpp:
              (WebCore::ScrollView::visibleContentRect):
              * platform/win/TemporaryLinkStubs.cpp:
              (Widget::disableFlushDrawing):
              (GraphicsContext::GraphicsContext):
              (QListBox::setSelected):
              (QListBox::sizeForNumberOfLines):
              (QListBox::isSelected):
              (QListBox::appendItem):
              (QListBox::doneAppendingItems):
              (FrameWin::locationbarVisible):
              (FrameWin::canUndo):
              (FrameWin::mimeTypeForFileName):
              (FrameWin::issueTransposeCommand):
              (RenderCanvasImage::setNeedsImageUpdate):
              (FrameWin::shouldChangeSelection):
              (FrameWin::respondToChangedSelection):
              (FrameWin::clearRecordedFormValues):
              (FrameWin::recordFormValue):
              (BrowserExtensionWin::getHistoryLength):
              (Widget::setIsSelected):
              (GraphicsContext::selectedTextBackgroundColor):
              (GraphicsContext::addRoundedRectClip):
              (QScrollBar::QScrollBar):
              (QScrollBar::~QScrollBar):
              (QScrollBar::setSteps):
              (QScrollBar::scroll):
              (QScrollBar::setValue):
              (QScrollBar::setKnobProportion):
              (QListBox::QListBox):
              (QListBox::~QListBox):
              (QListBox::setSelectionMode):
              (QListBox::setFont):
              * rendering/render_canvasimage.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13340 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f825ec04
  23. 13 Mar, 2006 1 commit
    • eseidel's avatar
      2006-03-13 Eric Seidel <eseidel@apple.com> · bf370e27
      eseidel authored
              Reviewed by mjs.
      
              Close DeviceContext leaks in Font code.
              Also add moveCursor stub to make maps.google.com not crash.
      
              * platform/win/FontWin.cpp:
              (WebCore::getFontData):
              (WebCore::Font::floatWidth):
              (WebCore::Font::drawText):
              * platform/win/TemporaryLinkStubs.cpp:
              (Cursor::Cursor):
              (WebCore::moveCursor):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13279 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      bf370e27
  24. 10 Mar, 2006 6 commits
    • hyatt's avatar
      Font refactoring on win32. · eeb16a55
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13255 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eeb16a55
    • eseidel's avatar
      2006-03-10 Eric Seidel <eseidel@apple.com> · 2927ff72
      eseidel authored
              Fix build.
      
              * platform/win/FontWin.cpp:
              (WebCore::getFontData):
              * platform/win/TemporaryLinkStubs.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13251 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      2927ff72
    • eseidel's avatar
      2006-03-10 Eric Seidel <eseidel@apple.com> · 9a8ebeb3
      eseidel authored
              Reviewed by darin.
      
              Add real ScrollViewWin implementation (fixes redraw bugs, adds ScrollBar support.)
      
              * platform/ScrollView.h:
              * platform/Widget.h:
              * platform/win/FontWin.cpp:
              (WebCore::getCairoFont): Fix crasher.
              * platform/win/ScrollViewWin.cpp:
              (WebCore::ScrollView::ScrollViewPrivate::ScrollViewPrivate):
              (WebCore::ScrollView::ScrollView):
              (WebCore::ScrollView::~ScrollView):
              (WebCore::ScrollView::updateContents):
              (WebCore::ScrollView::visibleWidth):
              (WebCore::ScrollView::visibleHeight):
              (WebCore::ScrollView::setContentsPos):
              (WebCore::ScrollView::resizeContents):
              (WebCore::ScrollView::contentsX):
              (WebCore::ScrollView::contentsY):
              (WebCore::ScrollView::contentsWidth):
              (WebCore::ScrollView::contentsHeight):
              (WebCore::ScrollView::viewportToContents):
              (WebCore::ScrollView::contentsToViewport):
              (WebCore::ScrollView::scrollXOffset):
              (WebCore::ScrollView::scrollYOffset):
              (WebCore::ScrollView::scrollBy):
              (WebCore::ScrollView::hScrollBarMode):
              (WebCore::ScrollView::vScrollBarMode):
              (WebCore::ScrollView::suppressScrollBars):
              (WebCore::ScrollView::setHScrollBarMode):
              (WebCore::ScrollView::setVScrollBarMode):
              (WebCore::ScrollView::setScrollBarsMode):
              (WebCore::ScrollView::setStaticBackground):
              (WebCore::ScrollView::updateScrollInfo):
              (WebCore::ScrollView::updateScrollBars):
              * platform/win/TemporaryLinkStubs.cpp:
              (BrowserExtensionWin::goBackOrForward):
              (BrowserExtensionWin::setIconURL):
              (ScrollView::scrollPointRecursively):
              * platform/win/WidgetWin.cpp:
              (WebCore::Widget::windowHandle): mark as const
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13249 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a8ebeb3
    • hyatt's avatar
      Rename the m_renderer variable to m_dataSet now that the class name · 43efc9cd
      hyatt authored
              has changed.
      
              Reviewed by adele
      
              * platform/Font.cpp:
              (WebCore::m_wordSpacing):
              (WebCore::Font::Font):
              (WebCore::Font::operator=):
              (WebCore::Font::update):
              * platform/Font.h:
              * platform/FontDataSet.h:
              * platform/mac/FontMac.mm:
              (WebCore::Font::getWebCoreFont):
              (WebCore::Font::ascent):
              (WebCore::Font::descent):
              (WebCore::Font::lineSpacing):
              (WebCore::Font::xHeight):
              (WebCore::Font::isFixedPitch):
              (WebCore::Font::selectionRectForText):
              (WebCore::Font::drawText):
              (WebCore::Font::drawHighlightForText):
              (WebCore::Font::drawLineForText):
              (WebCore::Font::drawLineForMisspelling):
              (WebCore::Font::misspellingLineThickness):
              (WebCore::Font::floatWidth):
              (WebCore::Font::checkSelectionPoint):
              * platform/win/FontWin.cpp:
              (WebCore::FontData::FontData):
              (WebCore::FontData::~FontData):
              (WebCore::getFontData):
              (WebCore::FontDataSet::primaryFont):
              (WebCore::Font::floatWidth):
              (WebCore::Font::ascent):
              (WebCore::Font::descent):
              (WebCore::Font::xHeight):
              (WebCore::Font::lineSpacing):
              (WebCore::Font::isFixedPitch):
              (WebCore::Font::drawText):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      43efc9cd
    • hyatt's avatar
      Rename FontRenderer to FontDataSet. · 1a76e8f2
      hyatt authored
              Reviewed by adele
      
              * WebCore.xcodeproj/project.pbxproj:
              * platform/Font.cpp:
              (WebCore::Font::update):
              * platform/Font.h:
              * platform/FontDataSet.h: Added.
              * platform/FontRenderer.h: Removed.
              * platform/mac/FontMac.mm:
              (WebCore::FontDataSet::~FontDataSet):
              (WebCore::FontDataSet::getWebCoreFont):
              (WebCore::FontDataSet::getRenderer):
              (WebCore::FontDataSet::determinePitch):
              (WebCore::FontDataSet::invalidate):
              * platform/win/FontWin.cpp:
              (WebCore::getCairoFont):
              (WebCore::FontDataSet::~FontDataSet):
              (WebCore::FontDataSet::determinePitch):
              (WebCore::FontDataSet::invalidate):
              (WebCore::FontDataSet::primaryCairoFont):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13247 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      1a76e8f2
    • hyatt's avatar
      FIx a couple of font crashers. · 95a9a63a
      hyatt authored
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@13246 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      95a9a63a
  25. 09 Mar, 2006 3 commits