1. 23 Feb, 2008 1 commit
  2. 22 Feb, 2008 2 commits
    • oliver@apple.com's avatar
      Bug 17486: Support HTML5 Canvas.getImageData API · ae996a97
      oliver@apple.com authored
      Support Canvas.getImageData and Canvas.createImageData
      
      Reviewed by Sam W.
      
      This patch adds support for all the pixel reading portions
      of the HTML5 Canvas spec.  There are two new types ImageData
      and CanvasPixelArray which are used to provide the HTML5
      ImageData object, and the required semantics for assignment
      to the ImageData data array.
      
      We only implement the CG version of ImageBuffer::getImageData,
      but the logic is null safe, so this will not introduce any
      crashes into other platforms, unfortunately it will result in
      JS Object detection "lying" on non-CG platforms.
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30506 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ae996a97
    • weinig@apple.com's avatar
      WebCore: · ac324818
      weinig@apple.com authored
              Rubber-stamped by Adam Roben.
      
              Rid the project of the Devil known as DeprecatedString!
      
              * GNUmakefile.am:
              * WebCore.base.exp:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * dom/Node.h:
              * html/HTMLFormElement.cpp:
              * platform/DeprecatedString.cpp: Removed.
              * platform/DeprecatedString.h: Removed.
              * platform/graphics/qt/IconQt.cpp:
              * platform/graphics/win/MediaPlayerPrivateQuickTimeWin.cpp:
              * platform/gtk/CookieJarGtk.cpp:
              * platform/gtk/CursorGtk.cpp:
              * platform/gtk/KeyEventGtk.cpp:
              * platform/mac/DeprecatedStringMac.mm: Removed.
              * platform/network/qt/ResourceHandleQt.cpp:
              * platform/network/win/CookieJarWin.cpp:
              (WebCore::cookies):
              * platform/qt/ClipboardQt.cpp:
              * platform/qt/CookieJarQt.cpp:
              * platform/qt/CursorQt.cpp:
              * platform/symbian/DeprecatedStringSymbian.cpp: Removed.
              * platform/text/AtomicString.cpp:
              * platform/text/AtomicString.h:
              * platform/text/PlatformString.h:
              * platform/text/String.cpp:
              * platform/text/StringImpl.cpp:
              * platform/text/qt/StringQt.cpp:
              (WebCore::String::String):
              * platform/text/wx/StringWx.cpp:
              * platform/win/BString.cpp:
              * platform/win/BString.h:
              * platform/win/PasteboardWin.cpp:
      
      WebKit/qt:
      
              Rubber-stamped by Adam Roben.
      
              Rid the project of the Devil known as DeprecatedString!
      
              * Api/qwebhistory.cpp:
              * Api/qwebhistoryinterface.cpp:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30501 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      ac324818
  3. 18 Feb, 2008 1 commit
    • weinig@apple.com's avatar
      Reviewed and landed by Sam. · 9f677452
      weinig@apple.com authored
              Remove DeprecatedStringList.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * editing/markup.cpp:
              * platform/DeprecatedStringList.cpp: Removed.
              * platform/DeprecatedStringList.h: Removed.
              * platform/mac/DeprecatedStringListMac.mm: Removed.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@30377 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9f677452
  4. 15 Feb, 2008 2 commits
  5. 13 Feb, 2008 1 commit
  6. 12 Feb, 2008 1 commit
  7. 04 Feb, 2008 2 commits
  8. 31 Jan, 2008 2 commits
  9. 27 Jan, 2008 1 commit
  10. 22 Jan, 2008 1 commit
  11. 21 Jan, 2008 1 commit
  12. 18 Jan, 2008 1 commit
  13. 17 Jan, 2008 4 commits
  14. 16 Jan, 2008 3 commits
  15. 12 Jan, 2008 1 commit
  16. 11 Jan, 2008 2 commits
    • alp@webkit.org's avatar
      2008-01-11 Alp Toker <alp@atoker.com> · c55e5905
      alp@webkit.org authored
              Reviewed by Dave Hyatt and Mark Rowe.
      
              http://bugs.webkit.org/show_bug.cgi?id=16089
              [GTK] Support custom fonts, CachedFont::platformDataFromCustomData()
      
              Add support for CSS2 @font-face custom/downloadable fonts to the GTK+
              port.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * loader/CachedFont.cpp:
              (WebCore::CachedFont::~CachedFont):
              (WebCore::CachedFont::ensureCustomFontData):
              (WebCore::CachedFont::platformDataFromCustomData):
              (WebCore::CachedFont::allReferencesRemoved):
              * platform/graphics/gtk/FontCustomPlatformData.cpp: Added.
              (WebCore::FontCustomPlatformData::~FontCustomPlatformData):
              (WebCore::FontCustomPlatformData::fontPlatformData):
              (WebCore::releaseData):
              (WebCore::createFontCustomPlatformData):
              * platform/graphics/gtk/FontCustomPlatformData.h: Added.
              (WebCore::FontCustomPlatformData::FontCustomPlatformData):
              * platform/graphics/gtk/FontPlatformData.h:
              * platform/graphics/gtk/FontPlatformDataGtk.cpp:
              (WebCore::FontPlatformData::FontPlatformData):
              (WebCore::FontPlatformData::init):
              (WebCore::FontPlatformData::isFixedPitch):
              * platform/graphics/gtk/SimpleFontDataGtk.cpp:
              (WebCore::SimpleFontData::platformDestroy):
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29418 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      c55e5905
    • mrowe@apple.com's avatar
      2008-01-11 Rodney Dawes <dobey@wayofthemonkey.com> · f3ebb304
      mrowe@apple.com authored
              Reviewed by Anders Carlsson.
      
              Bug 16779: Make the PluginStream implementation be shared across platforms
              http://bugs.webkit.org/show_bug.cgi?id=16779
      
              Add the new shared PluginStream files to the GTK+ and Win32 builds.
              Add PluginStreamClient class for the streamDidFinishLoading method.
              Add open/close/write methods to FileSystem for temporary file handling.
              Add PluginDebug.h and npfunctions.h for shared PluginStream.
              Add shared PluginStream.
              Remove PluginStreamWin.
              Update PluginViewWin to use shared PluginStream and PluginStreamClass.
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * platform/FileSystem.h:
              * platform/gtk/FileSystemGtk.cpp:
              * platform/win/FileSystemWin.cpp:
              * plugins/PluginDebug.h:
              * plugins/PluginStream.cpp:
              * plugins/PluginStream.h:
              * plugins/npfunctions.h:
              * plugins/win/PluginDebug: Moved to PluginDebug.h.
              * plugins/win/PluginStreamWin.cpp: Moved to PluginStream.cpp.
              * plugins/win/PluginStreamWin.h: Moved to PluginStream.h
              * plugins/win/PluginViewWin.cpp:
              * plugins/win/PluginViewWin.h:
              * plugins/win/npfunctions.h: Moved to npfunctions.h
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29399 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f3ebb304
  17. 10 Jan, 2008 2 commits
    • mjs@apple.com's avatar
      WebCore: · 9a407967
      mjs@apple.com authored
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * GNUmakefile.am:
              * WebCore.base.exp:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/js/JSDOMWindowCustom.cpp:
              (WebCore::JSDOMWindow::postMessage):
              * dom/Document.cpp:
              (WebCore::Document::domain):
              * page/Chrome.cpp:
              (WebCore::Chrome::requestQuotaIncreaseForNewDatabase):
              (WebCore::Chrome::requestQuotaIncreaseForDatabaseOperation):
              * page/Chrome.h:
              * page/ChromeClient.h:
              * platform/SecurityOrigin.cpp:
              (WebCore::SecurityOrigin::copy):
              (WebCore::SecurityOrigin::createFromIdentifier):
              (WebCore::SecurityOrigin::stringIdentifier):
              * platform/SecurityOrigin.h:
              (WebCore::SecurityOrigin::host):
              (WebCore::SecurityOrigin::protocol):
              (WebCore::SecurityOrigin::port):
              (WebCore::SecurityOrigin::equal):
              * platform/SecurityOriginData.cpp: Removed.
              * platform/SecurityOriginData.h: Removed.
              * storage/Database.cpp:
              (WebCore::Database::openDatabase):
              (WebCore::Database::Database):
              (WebCore::Database::securityOriginCopy):
              * storage/Database.h:
              * storage/DatabaseTracker.cpp:
              (WebCore::SecurityOriginHash::hash):
              (WebCore::SecurityOriginHash::equal):
              (WebCore::SecurityOriginTraits::deletedValue):
              (WebCore::SecurityOriginTraits::emptyValue):
              (WebCore::DatabaseTracker::canEstablishDatabase):
              (WebCore::DatabaseTracker::hasEntryForOrigin):
              (WebCore::DatabaseTracker::hasEntryForDatabase):
              (WebCore::DatabaseTracker::establishEntryForOrigin):
              (WebCore::DatabaseTracker::fullPathForDatabase):
              (WebCore::DatabaseTracker::populateOrigins):
              (WebCore::DatabaseTracker::origins):
              (WebCore::DatabaseTracker::databaseNamesForOrigin):
              (WebCore::DatabaseTracker::detailsForNameAndOrigin):
              (WebCore::DatabaseTracker::setDatabaseDetails):
              (WebCore::DatabaseTracker::usageForDatabase):
              (WebCore::DatabaseTracker::usageForOrigin):
              (WebCore::DatabaseTracker::quotaForOrigin):
              (WebCore::DatabaseTracker::setQuota):
              (WebCore::DatabaseTracker::addDatabase):
              (WebCore::DatabaseTracker::deleteAllDatabases):
              (WebCore::DatabaseTracker::deleteDatabasesWithOrigin):
              (WebCore::DatabaseTracker::deleteDatabase):
              (WebCore::DatabaseTracker::deleteDatabaseFile):
              (WebCore::notificationQueue):
              (WebCore::DatabaseTracker::scheduleNotifyDatabaseChanged):
              (WebCore::DatabaseTracker::notifyDatabasesChanged):
              * storage/DatabaseTracker.h:
              * storage/DatabaseTrackerClient.h:
              * storage/SQLTransaction.cpp:
              (WebCore::SQLTransaction::openTransactionAndPreflight):
              (WebCore::SQLTransaction::runStatements):
              (WebCore::SQLTransaction::deliverQuotaIncreaseCallback):
              (WebCore::SQLTransaction::postflightAndCommit):
              (WebCore::SQLTransaction::cleanupAfterTransactionErrorCallback):
              * svg/graphics/SVGImageEmptyClients.h:
              (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForNewDatabase):
              (WebCore::SVGEmptyChromeClient::requestQuotaIncreaseForDatabaseOperation):
      
      WebKit/gtk:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * WebCoreSupport/ChromeClientGtk.cpp:
              (WebKit::ChromeClient::requestQuotaIncreaseForNewDatabase):
              (WebKit::ChromeClient::requestQuotaIncreaseForDatabaseOperation):
              * WebCoreSupport/ChromeClientGtk.h:
      
      WebKit/mac:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * Storage/WebDatabaseManager.mm:
              (-[WebDatabaseManager origins]):
              (-[WebDatabaseManager databasesWithOrigin:]):
              (-[WebDatabaseManager detailsForDatabase:withOrigin:]):
              (-[WebDatabaseManager deleteDatabasesWithOrigin:]):
              (-[WebDatabaseManager deleteDatabase:withOrigin:]):
              * Storage/WebDatabaseTrackerClient.h:
              * Storage/WebDatabaseTrackerClient.mm:
              (WebDatabaseTrackerClient::dispatchDidModifyOrigin):
              (WebDatabaseTrackerClient::dispatchDidModifyDatabase):
              * Storage/WebSecurityOrigin.mm:
              (-[WebSecurityOrigin initWithProtocol:domain:port:]):
              (-[WebSecurityOrigin protocol]):
              (-[WebSecurityOrigin domain]):
              (-[WebSecurityOrigin port]):
              (-[WebSecurityOrigin usage]):
              (-[WebSecurityOrigin quota]):
              (-[WebSecurityOrigin setQuota:]):
              (-[WebSecurityOrigin isEqual:]):
              (-[WebSecurityOrigin dealloc]):
              (-[WebSecurityOrigin finalize]):
              (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
              (-[WebSecurityOrigin _core]):
              * Storage/WebSecurityOriginInternal.h:
              * WebCoreSupport/WebChromeClient.h:
              * WebCoreSupport/WebChromeClient.mm:
              (WebChromeClient::requestQuotaIncreaseForNewDatabase):
              (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
      
      WebKit/qt:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * WebCoreSupport/ChromeClientQt.cpp:
              (WebCore::ChromeClientQt::requestQuotaIncreaseForNewDatabase):
              (WebCore::ChromeClientQt::requestQuotaIncreaseForDatabaseOperation):
              * WebCoreSupport/ChromeClientQt.h:
      
      WebKit/win:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * WebChromeClient.cpp:
              (WebChromeClient::requestQuotaIncreaseForNewDatabase):
              (WebChromeClient::requestQuotaIncreaseForDatabaseOperation):
              * WebChromeClient.h:
              * WebDatabaseManager.cpp:
              (WebDatabaseManager::origins):
              (WebDatabaseManager::databasesWithOrigin):
              (WebDatabaseManager::detailsForDatabaseWithOrigin):
              (WebDatabaseManager::deleteDatabasesWithOrigin):
              (WebDatabaseManager::deleteDatabaseWithOrigin):
              (WebDatabaseManager::dispatchDidModifyOrigin):
              (WebDatabaseManager::dispatchDidModifyDatabase):
              * WebDatabaseManager.h:
              * WebSecurityOrigin.cpp:
              (WebSecurityOrigin::createInstance):
              (WebSecurityOrigin::WebSecurityOrigin):
              (WebSecurityOrigin::protocol):
              (WebSecurityOrigin::domain):
              (WebSecurityOrigin::port):
              (WebSecurityOrigin::usage):
              (WebSecurityOrigin::quota):
              (WebSecurityOrigin::setQuota):
              * WebSecurityOrigin.h:
      
      WebKit/wx:
      
              Reviewed by Sam.
      
              - remove SecurityOriginData and fold its functionality into SecurityOrigin
      
              * WebKitSupport/ChromeClientWx.cpp:
              (WebCore::ChromeClientWx::requestQuotaIncreaseForNewDatabase):
              (WebCore::ChromeClientWx::requestQuotaIncreaseForDatabaseOperation):
              * WebKitSupport/ChromeClientWx.h:
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29386 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      9a407967
    • hausmann@webkit.org's avatar
      rename QWebPageHistory to QWebHistory. · 21b000f0
      hausmann@webkit.org authored
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29359 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      21b000f0
  18. 08 Jan, 2008 6 commits
  19. 07 Jan, 2008 4 commits
    • mitz@apple.com's avatar
      Build fixes. · 0350ca5c
      mitz@apple.com authored
              * WebCore.pro:
              * platform/graphics/qt/FontCacheQt.cpp:
              (WebCore::FontCache::getCachedFontData):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29264 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0350ca5c
    • alp@webkit.org's avatar
      2008-01-07 Alp Toker <alp@atoker.com> · f101e963
      alp@webkit.org authored
              Prospective GTK+ autotools/qmake VIDEO build fix for breakage
              introduced in r29257.
      
              * GNUmakefile.am:
              * WebCore.pro:
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29261 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      f101e963
    • mitz@apple.com's avatar
      WebCore: · 648b73b1
      mitz@apple.com authored
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * GNUmakefile.am:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * WebCoreSources.bkl:
              * bindings/objc/DOM.mm:
              * bridge/mac/WebCoreAXObject.mm:
              * css/CSSComputedStyleDeclaration.cpp:
              (WebCore::CSSComputedStyleDeclaration::getPropertyCSSValue):
              * css/CSSFontFace.cpp:
              (WebCore::CSSFontFace::fontLoaded): Changed to call the owning segmented
              font face.
              (WebCore::CSSFontFace::getFontData):
              * css/CSSFontFace.h:
              (WebCore::CSSFontFace::CSSFontFace):
              (WebCore::CSSFontFace::setSegmentedFontFace):
              * css/CSSFontFaceSource.cpp:
              (WebCore::CSSFontFaceSource::pruneTable): Removed the calls to
              GlyphPageTreeNode::pruneTreeCustomFontData because the fonts in the
              font table are not exposed in the glyph page tree. Only the segmented
              font is, and that is taken care of by the segmented font face.
              (WebCore::CSSFontFaceSource::getFontData):
              * css/CSSFontFaceSource.h:
              * css/CSSFontSelector.cpp:
              (WebCore::CSSFontSelector::addFontFaceRule): Changed to collect
              @font-face rules with the same family and traits into a single
              segmented font face, instead of just retaining the most recent one.
              (WebCore::CSSFontSelector::fontLoaded):
              (WebCore::CSSFontSelector::getFontData):
              * css/CSSFontSelector.h:
              * css/CSSGrammar.y:
              * css/CSSParser.cpp:
              (WebCore::CSSParser::parseValue):
              (WebCore::CSSParser::parseFontFaceUnicodeRange): Added. Parses a unicode
              range value.
              * css/CSSParser.h:
              * css/CSSPrimitiveValue.h:
              (WebCore::CSSPrimitiveValue::):
              * css/CSSPropertyNames.in:
              * css/CSSSegmentedFontFace.cpp: Added.
              (WebCore::CSSSegmentedFontFace::CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::~CSSSegmentedFontFace):
              (WebCore::CSSSegmentedFontFace::pruneTable):
              (WebCore::CSSSegmentedFontFace::isLoaded):
              (WebCore::CSSSegmentedFontFace::isValid):
              (WebCore::CSSSegmentedFontFace::fontLoaded):
              (WebCore::CSSSegmentedFontFace::overlayRange):
              (WebCore::CSSSegmentedFontFace::getFontData):
              * css/CSSSegmentedFontFace.h: Added.
              (WebCore::FontFaceRange::FontFaceRange):
              (WebCore::FontFaceRange::from):
              (WebCore::FontFaceRange::to):
              (WebCore::FontFaceRange::fontFace):
              (WebCore::CSSSegmentedFontFace::fontSelector):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::applyProperty):
              * css/CSSUnicodeRangeValue.cpp: Added.
              (WebCore::CSSUnicodeRangeValue::~CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::cssText):
              * css/CSSUnicodeRangeValue.h: Added.
              (WebCore::CSSUnicodeRangeValue::CSSUnicodeRangeValue):
              (WebCore::CSSUnicodeRangeValue::from):
              (WebCore::CSSUnicodeRangeValue::to):
              * css/SVGCSSFontFace.cpp:
              (WebCore::SVGCSSFontFace::getFontData):
              * css/SVGCSSFontFace.h:
              * editing/Editor.cpp:
              (WebCore::Editor::fontForSelection):
              * editing/Editor.h:
              * page/mac/FrameMac.mm:
              * page/mac/WebCoreFrameBridge.mm:
              (-[WebCoreFrameBridge fontForSelection:]):
              * platform/graphics/Font.cpp:
              (WebCore::WidthIterator::advance):
              (WebCore::Font::glyphDataForCharacter):
              (WebCore::Font::primaryFont): Changed to return the simple font data
              used for the space character.
              (WebCore::Font::fontDataAt):
              (WebCore::Font::fontDataForCharacters):
              (WebCore::Font::drawGlyphBuffer):
              * platform/graphics/Font.h:
              * platform/graphics/FontCache.cpp:
              (WebCore::FontCache::getCachedFontData):
              (WebCore::FontCache::getFontData):
              * platform/graphics/FontCache.h:
              * platform/graphics/FontData.cpp: Renamed to SimpleFontData.cpp
              * platform/graphics/FontData.h: Renamed to SimpleFontData.cpp.
              * platform/graphics/FontDataBaseClass.cpp: Added. This will be renamed
              FontData.cpp.
              (WebCore::FontData::~FontData):
              * platform/graphics/FontDataBaseClass.h: Added. This will be renamed
              FontData.h.
              * platform/graphics/FontFallbackList.cpp:
              (WebCore::FontFallbackList::determinePitch):
              (WebCore::FontFallbackList::fontDataAt):
              (WebCore::FontFallbackList::fontDataForCharacters):
              * platform/graphics/FontFallbackList.h:
              (WebCore::FontFallbackList::primaryFont):
              * platform/graphics/FontSelector.h:
              * platform/graphics/GlyphBuffer.h:
              (WebCore::GlyphBuffer::fontDataAt):
              (WebCore::GlyphBuffer::swap):
              (WebCore::GlyphBuffer::add):
              * platform/graphics/GlyphPageTreeNode.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              (WebCore::GlyphPageTreeNode::initializePage): Added code to initialize
              pages for segmented font data.
              (WebCore::GlyphPageTreeNode::getChild):
              (WebCore::GlyphPageTreeNode::pruneCustomFontData):
              * platform/graphics/GlyphPageTreeNode.h:
              (WebCore::GlyphPage::setGlyphDataForCharacter):
              (WebCore::GlyphPage::setGlyphDataForIndex):
              (WebCore::GlyphPageTreeNode::getRootChild):
              * platform/graphics/SegmentedFontData.cpp: Added.
              (WebCore::SegmentedFontData::~SegmentedFontData):
              (WebCore::SegmentedFontData::fontDataForCharacter):
              (WebCore::SegmentedFontData::containsCharacters):
              (WebCore::SegmentedFontData::isCustomFont):
              (WebCore::SegmentedFontData::isLoading):
              (WebCore::SegmentedFontData::isSegmented):
              * platform/graphics/SegmentedFontData.h: Added.
              (WebCore::FontDataRange::FontDataRange):
              (WebCore::FontDataRange::from):
              (WebCore::FontDataRange::to):
              (WebCore::FontDataRange::fontData):
              (WebCore::SegmentedFontData::appendRange):
              (WebCore::SegmentedFontData::numRanges):
              (WebCore::SegmentedFontData::rangeAt):
              * platform/graphics/SimpleFontData.cpp: Copied from WebCore/platform/graphics/FontData.cpp.
              (WebCore::SimpleFontData::SimpleFontData):
              (WebCore::SimpleFontData::~SimpleFontData):
              (WebCore::SimpleFontData::ascent):
              (WebCore::SimpleFontData::descent):
              (WebCore::SimpleFontData::widthForGlyph):
              (WebCore::SimpleFontData::fontDataForCharacter):
              (WebCore::SimpleFontData::isSegmented):
              * platform/graphics/SimpleFontData.h: Copied from WebCore/platform/graphics/FontData.h.
              (WebCore::SimpleFontData::isCustomFont):
              (WebCore::SimpleFontData::isLoading):
              * platform/graphics/cairo/GraphicsContextCairo.cpp:
              (WebCore::GraphicsContext::setPlatformFont):
              * platform/graphics/gtk/FontCacheGtk.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/gtk/FontDataGtk.cpp: Renamed to
              SimpleFontDataGtk.cpp.
              * platform/graphics/gtk/FontGtk.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/gtk/GlyphPageTreeNodeGtk.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/gtk/SimpleFontDataGtk.cpp: Copied from WebCore/platform/graphics/gtk/FontDataGtk.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::setFont):
              * platform/graphics/mac/FontCacheMac.mm:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/mac/FontDataMac.mm: Renamed to SimpleFontDataMac.mm.
              * platform/graphics/mac/FontMac.mm:
              (WebCore::initializeATSUStyle):
              (WebCore::overrideLayoutOperation):
              (WebCore::ATSULayoutParameters::initialize):
              (WebCore::Font::drawGlyphs):
              * platform/graphics/mac/GlyphPageTreeNodeMac.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/mac/SimpleFontDataMac.mm: Copied from WebCore/platform/graphics/mac/FontDataMac.mm.
              (WebCore::initFontData):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::checkShapesArabic):
              * platform/graphics/qt/FontDataQt.cpp: Renamed to SimpleFontDataQt.cpp.
              * platform/graphics/qt/GlyphPageTreeNodeQt.cpp:
              (WebCore::GlyphPageTreeNode::pruneTreeCustomFontData):
              * platform/graphics/qt/SimpleFontDataQt.cpp: Copied from WebCore/platform/graphics/qt/FontDataQt.cpp.
              * platform/graphics/win/FontCacheWin.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/win/FontDataWin.cpp: Renamed to
              SimpleFontDataWin.cpp.
              * platform/graphics/win/FontWin.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/win/GlyphPageTreeNodeWin.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/win/SimpleFontDataWin.cpp: Copied from WebCore/platform/graphics/win/FontDataWin.cpp.
              (WebCore::SimpleFontData::setShouldApplyMacAscentHack):
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              (WebCore::SimpleFontData::scriptFontProperties):
              * platform/graphics/wx/FontCacheWx.cpp:
              (WebCore::FontCache::getFontDataForCharacters):
              * platform/graphics/wx/FontDataWx.cpp: Renamed to SimpleFontDataWx.cpp.
              * platform/graphics/wx/FontWx.cpp:
              (WebCore::Font::drawGlyphs):
              * platform/graphics/wx/GlyphMapWx.cpp:
              (WebCore::GlyphPage::fill):
              * platform/graphics/wx/SimpleFontDataWx.cpp: Copied from WebCore/platform/graphics/wx/FontDataWx.cpp.
              (WebCore::SimpleFontData::platformInit):
              (WebCore::SimpleFontData::platformDestroy):
              (WebCore::SimpleFontData::smallCapsFontData):
              (WebCore::SimpleFontData::containsCharacters):
              (WebCore::SimpleFontData::determinePitch):
              (WebCore::SimpleFontData::platformWidthForGlyph):
              * platform/mac/FileChooserMac.mm:
              * platform/mac/PopupMenuMac.mm:
              * platform/mac/WebCoreTextRenderer.mm:
              * platform/win/PopupMenuWin.cpp:
              * platform/win/UniscribeController.cpp:
              (WebCore::UniscribeController::advance):
              (WebCore::UniscribeController::itemizeShapeAndPlace):
              (WebCore::UniscribeController::shapeAndPlaceItem):
              (WebCore::UniscribeController::shape):
              * platform/win/UniscribeController.h:
              * svg/SVGFont.cpp:
              (WebCore::Font::drawGlyphsWithSVGFont):
              * svg/SVGFontElement.cpp:
              (WebCore::SVGFontElement::collectGlyphs):
              * svg/SVGFontFaceElement.cpp:
              (WebCore::SVGFontFaceElement::createFontData):
              * svg/SVGFontFaceElement.h:
              * svg/SVGGlyphElement.cpp:
      
      WebKit/mac:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * Misc/WebNSAttributedStringExtras.mm:
      
      WebKit/win:
      
              Reviewed by Dave Hyatt.
      
              - <rdar://problem/5665216> Support the unicode-range property in @font-face rules
      
              * WebView.cpp:
              (WebView::setShouldApplyMacFontAscentHack):
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29250 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      648b73b1
    • hausmann@webkit.org's avatar
      Ported of the network backend of the Qt platform to Qt 4.4's new networking API. · 0ad8f5ec
      hausmann@webkit.org authored
      Signed-off-by: Lars
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29222 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      0ad8f5ec
  20. 03 Jan, 2008 1 commit
  21. 02 Jan, 2008 1 commit
    • darin@apple.com's avatar
      WebCore: · eb70180f
      darin@apple.com authored
              Reviewed by Maciej.
      
              - fix http://bugs.webkit.org/show_bug.cgi?id=16657
                Acid3 failure since table.caption and table.thead do not work for nodes added by appendChild
              - fix http://bugs.webkit.org/show_bug.cgi?id=16659
                Acid3 expects HTMLTableElement.rows to include a <tr> element that is an immediate child of the <table>
      
              Tests: dom/html/level2/html/HTMLCollection07.html
                     dom/html/level2/html/HTMLCollection08.html
                     dom/html/level2/xhtml/HTMLCollection07.xhtml
                     dom/html/level2/xhtml/HTMLCollection08.xhtml
                     fast/dom/HTMLTableElement/early-acid3-65-excerpt.html
                     fast/dom/HTMLTableElement/early-acid3-66-excerpt.html
      
              * GNUmakefile.am: Added HTMLTableRowsCollection.
              * WebCore.pro: Ditto.
              * WebCore.vcproj/WebCore.vcproj: Ditto.
              * WebCore.xcodeproj/project.pbxproj: Ditto.
              * WebCoreSources.bkl: Ditto.
      
              * dom/XMLTokenizer.cpp: Took out stray include.
      
              * html/HTMLCollection.cpp:
              (WebCore::HTMLCollection::itemAfter): Removed all the table rows code, since we now use
              a separate class for that collection. Also got rid of the distinct types for custom collections
              that don't need them (use Other for both).
              * html/HTMLCollection.h: Also made firstItem non-virtual because it doesn't need to be virtual.
      
              * html/HTMLFormCollection.cpp:
              (WebCore::HTMLFormCollection::HTMLFormCollection): Use Other instead of FormElements
              for the HTMLCollection type.
      
              * html/HTMLTableElement.cpp:
              (WebCore::HTMLTableElement::HTMLTableElement): Eliminated m_head, m_foot, m_firstBody, and m_caption.
              (WebCore::HTMLTableElement::caption): Added non-inline version. Finds the caption rather than
              keeping a pointer to it.
              (WebCore::HTMLTableElement::setCaption): Rewrote.
              (WebCore::HTMLTableElement::tHead): Ditto.
              (WebCore::HTMLTableElement::setTHead): Ditto.
              (WebCore::HTMLTableElement::tFoot): Ditto.
              (WebCore::HTMLTableElement::setTFoot): Ditto.
              (WebCore::HTMLTableElement::createTHead): Ditto.
              (WebCore::HTMLTableElement::deleteTHead): Ditto.
              (WebCore::HTMLTableElement::createTFoot): Ditto.
              (WebCore::HTMLTableElement::deleteTFoot): Ditto.
              (WebCore::HTMLTableElement::createCaption): Ditto.
              (WebCore::HTMLTableElement::deleteCaption): Ditto.
              (WebCore::HTMLTableElement::lastBody): Added.
              (WebCore::HTMLTableElement::insertRow): Rewrote to use a loop based on code in HTMLTableRowsCollection.
              This is different from the old code mainly in how it handles rows outside any section.
              (WebCore::HTMLTableElement::deleteRow): Ditto.
              (WebCore::HTMLTableElement::addChild): Removed code to set the various members. Keeping pointers to
              these was a possible source of serious bugs too, including crashes with stale pointers, although I
              didn't write any test cases to prove those bugs existed.
              (WebCore::HTMLTableElement::parseMappedAttribute): Changed the rules code to visit all cells, not
              just the cells of the first body. I believe this fixed rendering on some table tests. I think the code
              visits too many cells and also the use of recursion is overkill, but I didn't try to fix that.
              (WebCore::HTMLTableElement::rows): Changed to use the new HTMLTableRowsCollection.
              * html/HTMLTableElement.h: Changed functions to return PassRefPtr, which can be important if strange
              things like DOM mutation events take things ot of the tree before they are safely referenced by
              JavaScript wrappers. Also changed functions to take PassRefPtr and added exceptions. Removed unneeded
              firstTBody and setTBody functions and childrenChanged function override, as well as unused Rules and
              Frame enums. Removed m_head, m_foot, m_firstBody, and m_caption, and added lastBody function. Removed
              unneeded friend declaration for HTMLTableCellElement.
              * html/HTMLTableElement.idl: Allow the setteres for caption, tHead, and tFoot to raise exceptions.
      
              * html/HTMLTableRowsCollection.cpp: Added. Implements the HTML 5 rule for which rows are in the
              collection in which order.
              * html/HTMLTableRowsCollection.h: Added.
      
              * loader/FTPDirectoryDocument.cpp:
              (WebCore::FTPDirectoryTokenizer::appendEntry): Use the standard insertRow function instead of
              coming up with our own way of inserting a row. Simplifies things -- we can remove the code to
              create a tbody element.
      
      LayoutTests:
      
              Reviewed by Maciej.
      
              - test for http://bugs.webkit.org/show_bug.cgi?id=16657
                Acid3 failure since table.caption and table.thead do not work for nodes added by appendChild
              - test for http://bugs.webkit.org/show_bug.cgi?id=16659
                Acid3 expects HTMLTableElement.rows to include a <tr> element that is an immediate child of the <table>
      
              * fast/dom/HTMLTableElement/early-acid3-65-excerpt-expected.txt: Added.
              * fast/dom/HTMLTableElement/early-acid3-65-excerpt.html: Added.
              * fast/dom/HTMLTableElement/early-acid3-66-excerpt-expected.txt: Added.
              * fast/dom/HTMLTableElement/early-acid3-66-excerpt.html: Added.
              * fast/dom/HTMLTableElement/resources/early-acid3-65-excerpt.js: Added.
              * fast/dom/HTMLTableElement/resources/early-acid3-66-excerpt.js: Added.
      
              * dom/html/level2/html/HTMLCollection07-expected.txt: Updated to reflect success.
              * dom/html/level2/html/HTMLCollection08-expected.txt: Updated to reflect success.
              * dom/xhtml/level2/html/HTMLCollection07-expected.txt: Updated to reflect success.
              * dom/xhtml/level2/html/HTMLCollection08-expected.txt: Updated to reflect success.
      
              * fast/dom/HTMLTableElement/resources/rows.js: Changed to expect HTML 5 behavior for rows outside
              table sections.
              * fast/dom/HTMLTableElement/rows-expected.txt: Updated.
      
              * platform/mac/tables/mozilla/bugs/bug30418-expected.checksum: Updated to reflect better results.
              * platform/mac/tables/mozilla/bugs/bug30418-expected.png: Ditto.
              * platform/mac/tables/mozilla/bugs/bug30418-expected.txt: Ditto.
      
      
      
      git-svn-id: http://svn.webkit.org/repository/webkit/trunk@29101 268f45cc-cd09-0410-ab3c-d52691b4dbfc
      eb70180f