1. 12 Mar, 2011 11 commits
    • beidson@apple.com's avatar
      More Windows build fix for https://bugs.webkit.org/show_bug.cgi?id=56216 · f62d4793
      beidson@apple.com authored
      * WebCoreStatistics.cpp:
      * WebIconDatabase.cpp:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80908 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f62d4793
    • dcheng@chromium.org's avatar
      2011-03-11 Daniel Cheng <dcheng@chromium.org> · f96c0ada
      dcheng@chromium.org authored
              Reviewed by Tony Chang.
      
              [chromium] Correct return type of WebClipboard::readImage.
              https://bugs.webkit.org/show_bug.cgi?id=56234
      
              Update the return type to reflect that we are returning a blob of PNG
              data, not a bitmap.
      
              * public/WebClipboard.h:
              (WebKit::WebClipboard::readImage):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80907 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f96c0ada
    • dglazkov@chromium.org's avatar
      2011-03-11 Dimitri Glazkov <dglazkov@chromium.org> · a6837d86
      dglazkov@chromium.org authored
              Reviewed by Eric Seidel.
      
              Introduce project_dir variable and make paths a whole lot saner. Ok, a little bit saner.
              https://bugs.webkit.org/show_bug.cgi?id=56231
      
              * JavaScriptCore.gypi: Added project_dir variable.
              * gyp/JavaScriptCore.gyp: Changed to use project_dir, rather than DEPTH/JavaScriptCore.
              * gyp/generate-dtrace-header.sh: Changed to use project_dir.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80906 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a6837d86
    • beidson@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=56216 · d89c370a
      beidson@apple.com authored
      Fix the Qt build following the same pattern of the patch.
      
      ../WebCore: 
      
      * loader/icon/IconDatabase.h:
      * loader/icon/IconDatabaseBase.cpp:
      (WebCore::IconDatabaseBase::databasePath): Added to the virtual base.
      * loader/icon/IconDatabaseBase.h:
      (WebCore::IconDatabaseBase::isOpen): Ditto.
      
      ../WebKit/qt: 
      
      Reviewed by attempt at build fix!
      
      * Api/qwebsettings.cpp:
      (QWebSettings::setIconDatabasePath): Call the static method via IconDatabase:: and not via iconDatabase()
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80905 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d89c370a
    • levin@chromium.org's avatar
      Source/WebKit/chromium: Update chromium deps to pick up the skia roll. · e319c136
      levin@chromium.org authored
      * DEPS:
      
      LayoutTests: Update some baselines due to Skia update in Chromium.
      Filed http://crbug.com/75820 about the odd look of the results (but
      the odd look previously existed).
      
      * platform/chromium-linux/svg/css/composite-shadow-text-expected.checksum:
      * platform/chromium-linux/svg/css/composite-shadow-text-expected.png:
      * platform/chromium-win/svg/css/composite-shadow-text-expected.checksum:
      * platform/chromium-win/svg/css/composite-shadow-text-expected.png:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80904 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e319c136
    • commit-queue@webkit.org's avatar
      2011-03-11 Ben Taylor <bentaylor.solx86@gmail.com> · 3419933c
      commit-queue@webkit.org authored
              Reviewed by Alexey Proskuryakov.
      
              https://bugs.webkit.org/show_bug.cgi?id=56198
              Fix conditional which had an int for one case and a pointer for another.
      
              No new tests. Fix compilation on Solaris 10 with SunStudio 12 C++
      
              * loader/appcache/ApplicationCacheGroup.cpp:
              (WebCore::ApplicationCacheGroup::checkIfLoadIsComplete):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80903 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3419933c
    • beidson@apple.com's avatar
      Windows build fix. · 6dd338e1
      beidson@apple.com authored
      * history/HistoryItem.cpp:
      * loader/icon/IconDatabaseBase.cpp:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80902 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      6dd338e1
    • ap@apple.com's avatar
      2011-03-11 Alexey Proskuryakov <ap@apple.com> · da3c7500
      ap@apple.com authored
              Reviewed by Sam Weinig.
      
              https://bugs.webkit.org/show_bug.cgi?id=56222
              A window remains frozen if web process crashes during printing
      
              * UIProcess/API/mac/PageClientImpl.h:
              * UIProcess/API/mac/PageClientImpl.mm:
              * UIProcess/PageClient.h:
              * UIProcess/WebPageProxy.cpp:
              (WebKit::WebPageProxy::setComplexTextInputEnabled):
              * UIProcess/WebPageProxy.h:
              Moved setAutodisplay code into WKPrintingView.
      
              * UIProcess/API/mac/WKPrintingView.h:
              * UIProcess/API/mac/WKView.mm:
              (-[WKView printOperationWithPrintInfo:forFrame:]):
              Keep a reference to the actual WKView, so that we can manipulate how it displays, even if
              page goes away.
      
              * UIProcess/API/mac/WKPrintingView.mm:
              (-[WKPrintingView initWithFrameProxy:WebKit::view:]):
              (-[WKPrintingView _setAutodisplay:]):
              (-[WKPrintingView _suspendAutodisplay]):
              (-[WKPrintingView _delayedResumeAutodisplayTimerFired]):
              Move setAutodisplay here.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80901 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      da3c7500
    • beidson@apple.com's avatar
      <rdar://problem/8648311> and https://bugs.webkit.org/show_bug.cgi?id=56216 · cb25834e
      beidson@apple.com authored
      Rework disabled IconDatabase builds while allowing for a pluggable icon database implementation.
      
      ../WebCore: 
      
      Reviewed by Sam Weinig.
      
      Project file stuff:
      * Android.mk:
      * CMakeLists.txt:
      * GNUmakefile.am:
      * WebCore.gyp/WebCore.gyp:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.xcodeproj/project.pbxproj:
      * WebCore.vcproj/WebCore.vcproj:
      
      * loader/icon/IconDatabase.cpp:
      * loader/icon/IconDatabase.h: Inherit from IconDatabaseBase.
      
      * loader/icon/IconDatabaseBase.cpp: Added.
      (WebCore::IconDatabaseBase::iconURLForPageURL):
      (WebCore::iconDatabase):
      (WebCore::setGlobalIconDatabase):
      * loader/icon/IconDatabaseBase.h: Added.
      (WebCore::IconDatabaseBase::IconDatabaseBase):
      (WebCore::IconDatabaseBase::~IconDatabaseBase):
      (WebCore::IconDatabaseBase::setEnabled):
      (WebCore::IconDatabaseBase::isEnabled):
      (WebCore::IconDatabaseBase::defaultIcon):
      (WebCore::IconDatabaseBase::retainIconForPageURL):
      (WebCore::IconDatabaseBase::releaseIconForPageURL):
      (WebCore::IconDatabaseBase::iconForPageURL):
      (WebCore::IconDatabaseBase::setIconURLForPageURL):
      (WebCore::IconDatabaseBase::setIconDataForIconURL):
      (WebCore::IconDatabaseBase::iconDataKnownForIconURL):
      (WebCore::IconDatabaseBase::loadDecisionForIconURL):
      (WebCore::IconDatabaseBase::pageURLMappingCount):
      (WebCore::IconDatabaseBase::retainedPageURLCount):
      (WebCore::IconDatabaseBase::iconRecordCount):
      (WebCore::IconDatabaseBase::iconRecordCountWithData):
      (WebCore::IconDatabaseBase::importIconURLForPageURL):
      (WebCore::IconDatabaseBase::importIconDataForIconURL):
      (WebCore::IconDatabaseBase::shouldStopThreadActivity):
      (WebCore::IconDatabaseBase::open):
      (WebCore::IconDatabaseBase::close):
      (WebCore::IconDatabaseBase::removeAllIcons):
      (WebCore::IconDatabaseBase::setPrivateBrowsingEnabled):
      (WebCore::IconDatabaseBase::setClient):
      
      * loader/icon/IconDatabaseNone.cpp: Removed.
      
      ../WebKit/mac: 
      
      Reviewed by Anders Carlsson
      
      * Misc/WebIconDatabase.mm:
      (+[WebIconDatabase _checkIntegrityBeforeOpening]): Call these static methods on IconDatabase::, not iconDatabase().
      (-[WebIconDatabase _startUpIconDatabase]): Ditto.
      (importToWebCoreFormat):
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80900 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      cb25834e
    • andersca@apple.com's avatar
      2011-03-11 Anders Carlsson <andersca@apple.com> · f92cc2dc
      andersca@apple.com authored
              Reviewed by Sam Weinig.
      
              Add a shared memory cache to the web process
              https://bugs.webkit.org/show_bug.cgi?id=56232
      
              Add a very simple shared memory cache to the web process, so that we don't have to allocate and
              free memory over and over when painting.
      
              * Shared/ShareableBitmap.cpp:
              (WebKit::ShareableBitmap::create):
              (WebKit::ShareableBitmap::createShareable):
              (WebKit::ShareableBitmap::resize):
              * Shared/ShareableBitmap.h:
              (WebKit::ShareableBitmap::numBytesNeededForBitmapSize):
              (WebKit::ShareableBitmap::sizeInBytes):
              Rename numBytesForSize to numBytesNeededForBitmapSize.
      
              * UIProcess/DrawingAreaProxyImpl.cpp:
              (WebKit::DrawingAreaProxyImpl::update):
              Always send back a DidUpdate message, even if we didn't use the update info.
              This is needed so that the web process knows when the UI process is done with the shared memory inside
              the update info struct.
      
              * WebKit2.xcodeproj/project.pbxproj:
              Add new files.
      
              * WebProcess/WebPage/DrawingArea.h:
              (WebKit::DrawingArea::didUpdate):
              * WebProcess/WebPage/DrawingArea.messages.in:
              DidUpdate now takes a boolean.
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::sharedMemoryCache):
              Add shared memory cache.
      
              (WebKit::DrawingAreaImpl::~DrawingAreaImpl):
              Return the shared memory to the cache.
      
              (WebKit::DrawingAreaImpl::sendDidUpdateBackingStoreState):
              display now takes an extra boolean.
      
              (WebKit::DrawingAreaImpl::didUpdate):
              Return the shared memory to the cache.
      
              (WebKit::DrawingAreaImpl::display):
              If useSharedMemoryCache is true, get shared memory from the cache.
      
              * WebProcess/WebPage/SharedMemoryCache.cpp: Added.
              (WebKit::SharedMemoryCache::acquireSharedMemory):
              If the memory we currently hold on to is big enough, return it.
      
              (WebKit::SharedMemoryCache::releaseSharedMemory):
              If we're already holding on to shared memory, evict it if the returned
              shared memory object is bigger than the one we currently hold.
      
              (WebKit::SharedMemoryCache::clearCacheTimerFired):
              Null out the shared memory object.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80899 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f92cc2dc
    • beidson@apple.com's avatar
      Attempt at a build-fix for https://bugs.webkit.org/show_bug.cgi?id=51878 · fb3c5bf7
      beidson@apple.com authored
      * page/PageGroup.h: Declare this method, even if the definition will end up being empty.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80898 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      fb3c5bf7
  2. 11 Mar, 2011 29 commits
    • michaeln@google.com's avatar
      2011-03-11 Michael Nordman <michaeln@google.com> · d8588897
      michaeln@google.com authored
              Reviewed by Dmitry Titov.
      
              Adding the '~' to the dtor (duh).
      
              No new tests.
      
              * storage/SQLCallbackWrapper.h:
              (WebCore::SQLCallbackWrapper::~SQLCallbackWrapper):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80897 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d8588897
    • ericu@chromium.org's avatar
      2010-3-11 Eric Uhrhane <ericu@chromium.org> · 81fb7b58
      ericu@chromium.org authored
      Reviewed by David Levin.
      
      Add tests for FileWriter
      https://bugs.webkit.org/show_bug.cgi?id=44363
      
      Fix small bugs in the utility functions and add setFileContents().
      * fast/filesystem/resources/file-writer-utils.js:
      
      Port the GC Blob test over to the new FileWriter utilities.
      * fast/filesystem/file-writer-gc-blob-expected.txt:
      * fast/filesystem/file-writer-gc-blob.html:
      * fast/filesystem/resources/file-writer-gc-blob.js: Copied from LayoutTests/fast/filesystem/file-writer-gc-blob.html.
      
      Add tests for progress events and overlapping writes [via seek].
      * fast/filesystem/file-writer-events-expected.txt: Added.
      * fast/filesystem/file-writer-events.html: Added.
      * fast/filesystem/resources/file-writer-events.js: Added.
      * fast/filesystem/file-writer-write-overlapped-expected.txt: Added.
      * fast/filesystem/file-writer-write-overlapped.html: Added.
      * fast/filesystem/resources/file-writer-write-overlapped.js: Added.
      
      Worker versions of the above tests.
      * fast/filesystem/workers/file-writer-events-expected.txt: Added.
      * fast/filesystem/workers/file-writer-events.html: Added.
      * fast/filesystem/workers/file-writer-gc-blob-expected.html: Added.
      * fast/filesystem/workers/file-writer-gc-blob.html: Added.
      * fast/filesystem/workers/file-writer-write-overlapped-expected.html: Added.
      * fast/filesystem/workers/file-writer-write-overlapped.html: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80896 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      81fb7b58
    • carol.szabo@nokia.com's avatar
      2011-03-11 Carol Szabo <carol.szabo@nokia.com> · 82ed0cf6
      carol.szabo@nokia.com authored
              Reviewed by David Hyatt.
      
              Introduced double linkage between a CounterNode and its display renderer.
      
              use of freed pointer in WebCore::RenderCounter::originalText()
              https://bugs.webkit.org/show_bug.cgi?id=56065
      
              No new tests. This bug could only be reproduced manually by
              refreshing the page during load at a critical point.
              See bug attachment for testing.
      
              * rendering/CounterNode.cpp:
              Introduced new member "m_owner" to store the renderer that has the
              style directives that produce the CounterNode.
              Repurposed m_renderer to reffer to the RenderCounter that shows the
              CounterNode.
              (WebCore::CounterNode::CounterNode):
              Updated member initialization.
              (WebCore::CounterNode::create):
              (WebCore::CounterNode::resetRenderer):
              (WebCore::CounterNode::resetRenderers):
              (WebCore::CounterNode::recount):
              (WebCore::CounterNode::removeChild):
              (WebCore::CounterNode::insertAfter):
              No functional changes.
              (WebCore::showTreeAndMark):
              Added flushing to ensure that the output is complete.
              * rendering/CounterNode.h:
              (WebCore::CounterNode::owner):
              Renamed from renderer()
              (WebCore::CounterNode::renderer):
              (WebCore::CounterNode::setRenderer):
              Added new accessors for the display renderer.
              * rendering/RenderCounter.cpp:
              (WebCore::findPlaceForCounter):
              Fixed comments. No functional changes.
              (WebCore::RenderCounter::~RenderCounter):
              Made sure that the CounterNode that this renderers displays is
              detached from this.
              (WebCore::RenderCounter::originalText):
              (WebCore::RenderCounter::invalidate):
              Added code to update m_renderer on the displayed CounterNode.
              (WebCore::destroyCounterNodeWithoutMapRemoval):
              (WebCore::RenderCounter::destroyCounterNodes):
              (WebCore::RenderCounter::destroyCounterNode):
              (WebCore::updateCounters):
              No change, just kept code in line with the changes above.
              (showCounterRendererTree):
              Added fflush to ensure complete display.
              * rendering/RenderCounter.h:
              * rendering/RenderObjectChildList.cpp:
              * rendering/RenderObjectChildList.h:
              Removed unneeded invalidateCounters related functions.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80895 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      82ed0cf6
    • enne@google.com's avatar
      2011-03-11 Adrienne Walker <enne@google.com> · e371c92b
      enne@google.com authored
              Reviewed by Kenneth Russell.
      
              Add missing unit tests to TilingData.
              https://bugs.webkit.org/show_bug.cgi?id=54143
      
              * tests/TilingDataTest.cpp:
              (WebCore::TEST):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80894 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      e371c92b
    • dglazkov@chromium.org's avatar
      2011-03-11 Luke Macpherson <macpherson@chromium.org> · 24f18706
      dglazkov@chromium.org authored
              Reviewed by Eric Seidel.
      
              Introduce lookup-table based approach for applying CSS properties.
              The aim is to be a starting point for refactoring
              CSSStyleSelector::applyProperty() into more readable, maintainable code.
              https://bugs.webkit.org/show_bug.cgi?id=54707
      
              No new behavior / covered by existing tests.
      
              * css/CSSStyleApplyProperty.cpp: Added.
              (WebCore::ApplyPropertyNull):
              Class that provides empty implementations of inherit, initial, value.
              (WebCore::ApplyPropertyDefault::ApplyPropertyDefault):
              Class that calls the appropriate RenderStyle setters directly.
              (WebCore::ApplyPropertyColorBase::ApplyPropertyColorBase):
              Class for handling CSSProperty*Color.
              (WebCore::ApplyPropertyColor::ApplyPropertyColor):
              Class for handling CSSPropertyColor.
              (WebCore::CSSStyleApplyProperty::sharedCSSStyleApplyProperty):
              Singleton initializer.
              (WebCore::CSSStyleApplyProperty::CSSStyleApplyProperty):
              Constructor that bulds up the map from property id to apply-er objects.
              * css/CSSStyleApplyProperty.h: Added.
              (WebCore::CSSStyleApplyProperty::inherit):
              Handle the inherit case for a given property.
              (WebCore::CSSStyleApplyProperty::initial):
              Handle the initial case for a given property.
              (WebCore::CSSStyleApplyProperty::value):
              Apply a value to a given property.
              (WebCore::CSSStyleApplyProperty::implements):
              Returns true if the provided property id is implemented.
              (WebCore::CSSStyleApplyProperty::index):
              Private function to determine the index of a property the property map.
              (WebCore::CSSStyleApplyProperty::valid):
              Function to determine that a given property id is valid.
              (WebCore::CSSStyleApplyProperty::setPropertyValue):
              (WebCore::CSSStyleApplyProperty::propertyValue):
              * css/CSSStyleSelector.cpp:
              (WebCore::CSSStyleSelector::CSSStyleSelector):
              Get reference to the CSSStyleApplyProperty singleton.
              (WebCore::CSSStyleSelector::applyProperty):
              Now calls into CSSStyleApplyProperty for implemented property ids.
              Deleted color-related methods from the property id switch.
              * css/CSSStyleSelector.h:
              (WebCore::CSSStyleSelector::style):
              Made public to allow access from CSSStyleApplyProperty.
              (WebCore::CSSStyleSelector::parentStyle):
              Made public to allow access from CSSStyleApplyProperty.
              * rendering/style/RenderStyle.h:
              Made CSSStyleApplyProperty a friend class. Necessary because it needs
              to access the private getters and setters on this clsass.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80893 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      24f18706
    • beidson@apple.com's avatar
      Reviewed and landed by Brady Eidson. · d240e08a
      beidson@apple.com authored
      Source/WebCore: 
      
      Patch by Anton D'Auria <adauria@apple.com> on 2011-03-11
      Add WebKit1 API to view and delete local storage
      https://bugs.webkit.org/show_bug.cgi?id=51878
      
      Created StorageTracker as a central point for tracking and deleting LocalStorage per origin.
      StorageTracker maintains its own database of origin identifiers and backing db paths,
      and this allows it to contain more relational data in the future, like variable quotas per origin.
      
      On initialization, StorageTracker syncs its database with LocalStorage files on disk. It adds
      an origin entry when StorageAreaSync performs a first sync for an origin.
      
      All StorageTracker file operations are performed on one background thread with a task queue.
      
      Tests: storage/domstorage/localstorage/storagetracker/storage-tracker-1-prepare.html
             storage/domstorage/localstorage/storagetracker/storage-tracker-2-create.html
             storage/domstorage/localstorage/storagetracker/storage-tracker-3-delete-all.html
             storage/domstorage/localstorage/storagetracker/storage-tracker-4-create.html
             storage/domstorage/localstorage/storagetracker/storage-tracker-5-delete-one.html
      
      * GNUmakefile.am:
      * WebCore.exp.in:
      * WebCore.gypi:
      * WebCore.pro:
      * WebCore.vcproj/WebCore.vcproj:
      * WebCore.xcodeproj/project.pbxproj:
      * page/PageGroup.cpp:
      (WebCore::PageGroup::clearLocalStorageForAllOrigins):
      (WebCore::PageGroup::clearLocalStorageForOrigin):
      (WebCore::PageGroup::syncLocalStorage):
      (WebCore::PageGroup::numberOfPageGroups):
      * page/PageGroup.h:
      * platform/chromium/FileSystemChromium.cpp:
      (WebCore::listDirectory):
      * platform/posix/FileSystemPOSIX.cpp:
      (WebCore::listDirectory):
      * storage/LocalStorageTask.cpp:
      (WebCore::LocalStorageTask::LocalStorageTask):
      (WebCore::LocalStorageTask::performTask):
      * storage/LocalStorageTask.h:
      (WebCore::LocalStorageTask::createOriginIdentifiersImport):
      (WebCore::LocalStorageTask::createSetOriginDetails):
      (WebCore::LocalStorageTask::createDeleteOrigin):
      (WebCore::LocalStorageTask::createDeleteAllOrigins):
      * storage/StorageAreaImpl.cpp:
      (WebCore::StorageAreaImpl::clearForOriginDeletion):
      (WebCore::StorageAreaImpl::sync):
      * storage/StorageAreaImpl.h:
      * storage/StorageAreaSync.cpp:
      (WebCore::StorageAreaSync::scheduleCloseDatabase):
      (WebCore::StorageAreaSync::openDatabase):
      (WebCore::StorageAreaSync::sync):
      (WebCore::StorageAreaSync::deleteEmptyDatabase):
      (WebCore::StorageAreaSync::scheduleSync):
      * storage/StorageAreaSync.h:
      * storage/StorageNamespace.h:
      * storage/StorageNamespaceImpl.cpp:
      (WebCore::StorageNamespaceImpl::clearOriginForDeletion):
      (WebCore::StorageNamespaceImpl::clearAllOriginsForDeletion):
      (WebCore::StorageNamespaceImpl::sync):
      * storage/StorageNamespaceImpl.h:
      * storage/StorageTracker.cpp: Added.
      (WebCore::StorageTracker::initializeTracker):
      (WebCore::StorageTracker::tracker):
      (WebCore::StorageTracker::StorageTracker):
      (WebCore::StorageTracker::setStorageDirectoryPath):
      (WebCore::StorageTracker::trackerDatabasePath):
      (WebCore::StorageTracker::openTrackerDatabase):
      (WebCore::StorageTracker::importOriginIdentifiers):
      (WebCore::StorageTracker::syncImportOriginIdentifiers):
      (WebCore::StorageTracker::syncFileSystemAndTrackerDatabase):
      (WebCore::StorageTracker::setOriginDetails):
      (WebCore::StorageTracker::scheduleTask):
      (WebCore::StorageTracker::syncSetOriginDetails):
      (WebCore::StorageTracker::origins):
      (WebCore::StorageTracker::deleteAllOrigins):
      (WebCore::StorageTracker::syncDeleteAllOrigins):
      (WebCore::StorageTracker::deleteOrigin):
      (WebCore::StorageTracker::syncDeleteOrigin):
      (WebCore::StorageTracker::willDeleteAllOrigins):
      (WebCore::StorageTracker::willDeleteOrigin):
      (WebCore::StorageTracker::canDeleteOrigin):
      (WebCore::StorageTracker::cancelDeletingOrigin):
      (WebCore::StorageTracker::setClient):
      (WebCore::StorageTracker::syncLocalStorage):
      * storage/StorageTracker.h: Added.
      * storage/StorageTrackerClient.h: Added.
      (WebCore::StorageTrackerClient::~StorageTrackerClient):
      
      Source/WebKit: 
      
      Patch by Anton D'Auria <adauria@apple.com> on 2011-03-11
      Add WebKit1 API to view and delete local storage
      https://bugs.webkit.org/show_bug.cgi?id=51878
      
      * WebKit.xcodeproj/project.pbxproj:
      
      Source/WebKit/chromium: 
      
      Patch by Anton D'Auria <adauria@apple.com> on 2011-03-11
      Add WebKit1 API to view and delete local storage
      https://bugs.webkit.org/show_bug.cgi?id=51878
      
      * src/StorageNamespaceProxy.cpp:
      (WebCore::StorageNamespaceProxy::clearOriginForDeletion):
      (WebCore::StorageNamespaceProxy::clearAllOriginsForDeletion):
      (WebCore::StorageNamespaceProxy::sync):
      * src/StorageNamespaceProxy.h:
      
      Source/WebKit/mac: 
      
      Patch by Anton D'Auria <adauria@apple.com> on 2011-03-11
      https://bugs.webkit.org/show_bug.cgi?id=51878
      Add WebKit1 API to view and delete local storage
      
      * Storage/WebStorageManager.mm: Added.
      (+[WebStorageManager sharedWebStorageManager]):
      (-[WebStorageManager origins]):
      (-[WebStorageManager deleteAllOrigins]):
      (-[WebStorageManager deleteOrigin:]):
      (-[WebStorageManager syncLocalStorage]):
      (-[WebStorageManager syncFileSystemAndTrackerDatabase]):
      (storageDirectoryPath):
      (WebKitInitializeStorageIfNecessary):
      * Storage/WebStorageManagerInternal.h: Added.
      * Storage/WebStorageManagerPrivate.h: Added.
      * Storage/WebStorageTrackerClient.h: Added.
      * Storage/WebStorageTrackerClient.mm: Added.
      (WebStorageTrackerClient::sharedWebStorageTrackerClient):
      (WebStorageTrackerClient::WebStorageTrackerClient):
      (WebStorageTrackerClient::~WebStorageTrackerClient):
      (WebStorageTrackerClient::dispatchDidModifyOriginOnMainThread):
      (WebStorageTrackerClient::dispatchDidModifyOrigin):
      * WebCoreSupport/WebSecurityOrigin.mm:
      (-[WebSecurityOrigin protocol]):
      (-[WebSecurityOrigin host]):
      (-[WebSecurityOrigin databaseIdentifier]):
      (-[WebSecurityOrigin domain]):
      (-[WebSecurityOrigin _initWithWebCoreSecurityOrigin:]):
      * WebCoreSupport/WebSecurityOriginPrivate.h:
      * WebKit.exp:
      * WebView/WebView.mm:
      (-[WebView _commonInitializationWithFrameName:groupName:usesDocumentViews:]):
      
      Tools: 
      
      Patch by Anton D'Auria <adauria@apple.com> on 2011-03-11
      https://bugs.webkit.org/show_bug.cgi?id=51878
      Add WebKit1 API to view and delete local storage
      
      Added tests that write to LocalStorage, delete one origin, get list of origins with local storage, delete all origins.
      
      * DumpRenderTree/DumpRenderTree.xcodeproj/project.pbxproj:
      * DumpRenderTree/LayoutTestController.cpp:
      (syncLocalStorageCallback):
      (observeStorageTrackerNotificationsCallback):
      (deleteAllLocalStorageCallback):
      (deleteLocalStorageForOriginCallback):
      (originsWithLocalStorageCallback):
      (LayoutTestController::staticFunctions):
      * DumpRenderTree/LayoutTestController.h:
      * DumpRenderTree/StorageTrackerDelegate.h: Added.
      * DumpRenderTree/StorageTrackerDelegate.mm: Added.
      (-[StorageTrackerDelegate init]):
      (-[StorageTrackerDelegate logNotifications:controller:]):
      (-[StorageTrackerDelegate originModified:]):
      (-[StorageTrackerDelegate dealloc]):
      (-[StorageTrackerDelegate setControllerToNotifyDone:]):
      * DumpRenderTree/chromium/LayoutTestController.cpp:
      (LayoutTestController::LayoutTestController):
      (LayoutTestController::deleteAllLocalStorage):
      (LayoutTestController::originsWithLocalStorage):
      (LayoutTestController::deleteLocalStorageForOrigin):
      (observeStorageTrackerNotifications):
      (syncLocalStorage):
      * DumpRenderTree/chromium/LayoutTestController.h:
      * DumpRenderTree/gtk/LayoutTestControllerGtk.cpp:
      (LayoutTestController::originsWithLocalStorage):
      (LayoutTestController::deleteAllLocalStorage):
      (LayoutTestController::deleteLocalStorageForOrigin):
      (LayoutTestController::observeStorageTrackerNotifications):
      (LayoutTestController::syncLocalStorage):
      * DumpRenderTree/mac/DumpRenderTree.mm:
      (resetDefaultsToConsistentValues):
      (allocateGlobalControllers):
      (releaseGlobalControllers):
      * DumpRenderTree/mac/DumpRenderTreeMac.h:
      * DumpRenderTree/mac/LayoutTestControllerMac.mm:
      (LayoutTestController::syncLocalStorage):
      (LayoutTestController::observeStorageTrackerNotifications):
      (LayoutTestController::deleteAllLocalStorage):
      (LayoutTestController::originsWithLocalStorage):
      (LayoutTestController::deleteLocalStorageForOrigin):
      * DumpRenderTree/qt/LayoutTestControllerQt.cpp:
      (LayoutTestController::originsWithLocalStorage):
      (LayoutTestController::deleteAllLocalStorage):
      (LayoutTestController::deleteLocalStorageForOrigin):
      (LayoutTestController::observeStorageTrackerNotifications):
      (LayoutTestController::syncLocalStorage):
      * DumpRenderTree/qt/LayoutTestControllerQt.h:
      * DumpRenderTree/win/LayoutTestControllerWin.cpp:
      (LayoutTestController::clearAllApplicationCaches):
      (LayoutTestController::syncLocalStorage):
      (LayoutTestController::observeStorageTrackerNotifications):
      (LayoutTestController::clearAllDatabases):
      (LayoutTestController::deleteAllLocalStorage):
      (LayoutTestController::originsWithLocalStorage):
      (LayoutTestController::deleteLocalStorageForOrigin):
      * DumpRenderTree/wx/LayoutTestControllerWx.cpp:
      (LayoutTestController::syncLocalStorage):
      (LayoutTestController::observeStorageTrackerNotifications):
      (LayoutTestController::clearAllDatabases):
      (LayoutTestController::deleteAllLocalStorage):
      (LayoutTestController::originsWithLocalStorage):
      (LayoutTestController::deleteLocalStorageForOrigin):
      
      LayoutTests: 
      
      Patch by Anton D'Auria <adauria@apple.com> on 2011-03-11
      Add WebKit1 API to view and delete local storage
      https://bugs.webkit.org/show_bug.cgi?id=51878
      
      * platform/chromium/test_expectations.txt:
      * storage/domstorage/localstorage/storagetracker: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-1-prepare-expected.txt: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-1-prepare.html: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-2-create-expected.txt: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-2-create.html: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-3-delete-all-expected.txt: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-3-delete-all.html: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-4-create-expected.txt: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-4-create.html: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-5-delete-one-expected.txt: Added.
      * storage/domstorage/localstorage/storagetracker/storage-tracker-5-delete-one.html: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80892 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d240e08a
    • jberlin@webkit.org's avatar
      http/tests/websocket/tests/url-with-credential.html sometimes crashes beneath... · 3ef00306
      jberlin@webkit.org authored
      http/tests/websocket/tests/url-with-credential.html sometimes crashes beneath SocketStreamHandle::readStreamCallback on Windows
      https://bugs.webkit.org/show_bug.cgi?id=56185
      
      url-parsing.html appears to be causing the crashes in later tests.
      Skipping the url-parsing.html test and unskipping the url-with-credential.html test.
      
      Unreviewed.
      
      * platform/win/Skipped:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80891 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3ef00306
    • commit-queue@webkit.org's avatar
      2011-03-11 Dominic Mazzoni <dmazzoni@google.com> · 06ae9610
      commit-queue@webkit.org authored
              Reviewed by Dimitri Glazkov.
      
              Add an accessibilityIsIgnored method to WebAccessibilityObject.
              https://bugs.webkit.org/show_bug.cgi?id=50969
      
              * public/WebAccessibilityObject.h:
              * src/WebAccessibilityObject.cpp:
              (WebKit::WebAccessibilityObject::accessibilityIsIgnored):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80890 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      06ae9610
    • rniwa@webkit.org's avatar
      2011-03-11 Ryosuke Niwa <rniwa@webkit.org> · 7f42a9fb
      rniwa@webkit.org authored
              Reviewed by Tony Chang.
      
              drag-text-delay.html should be a dump as text test
              https://bugs.webkit.org/show_bug.cgi?id=56223
      
              Converted the test to a dump as text. Also reorganized the test code and added more descriptions.
      
              * editing/selection/drag-text-delay-expected.txt:
              * editing/selection/drag-text-delay.html:
              * platform/chromium-linux/editing/selection/drag-text-delay-expected.checksum: Removed.
              * platform/chromium-linux/editing/selection/drag-text-delay-expected.png: Removed.
              * platform/chromium-win/editing/selection/drag-text-delay-expected.checksum: Removed.
              * platform/chromium-win/editing/selection/drag-text-delay-expected.png: Removed.
              * platform/chromium-win/editing/selection/drag-text-delay-expected.txt: Removed.
              * platform/gtk/editing/selection/drag-text-delay-expected.checksum: Removed.
              * platform/gtk/editing/selection/drag-text-delay-expected.png: Removed.
              * platform/gtk/editing/selection/drag-text-delay-expected.txt: Removed.
              * platform/mac/editing/selection/drag-text-delay-expected.checksum: Removed.
              * platform/mac/editing/selection/drag-text-delay-expected.png: Removed.
              * platform/mac/editing/selection/drag-text-delay-expected.txt:
              * platform/win/editing/selection/drag-text-delay-expected.checksum: Removed.
              * platform/win/editing/selection/drag-text-delay-expected.png: Removed.
              * platform/win/editing/selection/drag-text-delay-expected.txt:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80889 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7f42a9fb
    • steveblock@google.com's avatar
      2011-03-11 Steve Block <steveblock@google.com> · 9de1296e
      steveblock@google.com authored
              Reviewed by Jeremy Orlow.
      
              JavaMethod does not correctly check for a null jstring for the method name
              https://bugs.webkit.org/show_bug.cgi?id=56187
      
              No new tests, simple typo fix.
      
              * bridge/jni/JavaMethod.cpp:
              (JavaMethod::JavaMethod):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80888 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      9de1296e
    • enne@google.com's avatar
      2011-03-11 Adrienne Walker <enne@google.com> · a000c3dd
      enne@google.com authored
              Reviewed by James Robinson.
      
              [chromium] Compositor uses too much texture memory for scrollbars
              https://bugs.webkit.org/show_bug.cgi?id=56212
      
              Compositor invalidations can be off the page (and very large), but
              scrollbars only need to care about the invalidation that's visible.
              The large invalidation was causing the tiler layer size to grow
              needlessly larger than the scrollbar.
      
              * platform/graphics/chromium/LayerRendererChromium.cpp:
              (WebCore::LayerRendererChromium::invalidateRootLayerRect):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80887 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a000c3dd
    • mihaip@chromium.org's avatar
      2011-03-11 Mihai Parparita <mihaip@chromium.org> · a00079a0
      mihaip@chromium.org authored
              Chromium Mac expectations update. Rebaseline some more tests after
              r80582.
      
              * fast/repaint/text-emphasis-h-expected.checksum:
              * fast/repaint/text-emphasis-h-expected.png:
              * platform/chromium-mac/fast/repaint/text-emphasis-h-expected.txt: Removed.
              * platform/chromium-mac/fast/ruby/base-shorter-than-text-expected.checksum:
              * platform/chromium-mac/fast/ruby/base-shorter-than-text-expected.png:
              * platform/chromium-mac/fast/ruby/base-shorter-than-text-expected.txt: Added.
              * platform/chromium/test_expectations.txt:
              * platform/mac-leopard/fast/blockflow/vertical-baseline-alignment-expected.checksum:
              * platform/mac-leopard/fast/blockflow/vertical-baseline-alignment-expected.png:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80886 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      a00079a0
    • mihaip@chromium.org's avatar
      2011-03-11 Mihai Parparita <mihaip@chromium.org> · 3d16077c
      mihaip@chromium.org authored
              Chromium Mac expectations update. Rebaseline some tests after r80582
              (those that already had chromium-mac-leopard baselines).
      
              * platform/chromium-mac-leopard/fast/blockflow/Kusa-Makura-background-canvas-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/Kusa-Makura-background-canvas-expected.png:
              * platform/chromium-mac-leopard/fast/blockflow/border-vertical-lr-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/border-vertical-lr-expected.png:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-lr-selection-expected.checksum: Removed.
              * platform/chromium-mac-leopard/fast/blockflow/japanese-lr-selection-expected.png: Removed.
              * platform/chromium-mac-leopard/fast/blockflow/japanese-lr-text-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-lr-text-expected.png:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-rl-selection-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-rl-selection-expected.png:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-rl-text-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-rl-text-expected.png:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-ruby-vertical-lr-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-ruby-vertical-lr-expected.png:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-ruby-vertical-rl-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/japanese-ruby-vertical-rl-expected.png:
              * platform/chromium-mac-leopard/fast/blockflow/vertical-align-table-baseline-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/vertical-align-table-baseline-expected.png:
              * platform/chromium-mac-leopard/fast/blockflow/vertical-font-fallback-expected.checksum:
              * platform/chromium-mac-leopard/fast/blockflow/vertical-font-fallback-expected.png:
              * platform/chromium-mac-leopard/fast/repaint/japanese-rl-selection-clear-expected.checksum:
              * platform/chromium-mac-leopard/fast/repaint/japanese-rl-selection-clear-expected.png:
              * platform/chromium-mac-leopard/fast/repaint/japanese-rl-selection-repaint-expected.checksum:
              * platform/chromium-mac-leopard/fast/repaint/japanese-rl-selection-repaint-expected.png:
              * platform/chromium-mac-leopard/fast/repaint/repaint-across-writing-mode-boundary-expected.checksum:
              * platform/chromium-mac-leopard/fast/repaint/repaint-across-writing-mode-boundary-expected.png:
              * platform/chromium-mac-leopard/fast/text/international/text-combine-image-test-expected.checksum:
              * platform/chromium-mac-leopard/fast/text/international/text-combine-image-test-expected.png:
              * platform/chromium-mac-leopard/fast/text/international/text-combine-image-test-expected.txt:
              * platform/chromium-mac/fast/blockflow/japanese-lr-selection-expected.checksum: Removed.
              * platform/chromium-mac/fast/blockflow/japanese-lr-selection-expected.png: Removed.
              * platform/chromium/test_expectations.txt:
              * platform/mac-leopard/fast/blockflow/japanese-lr-selection-expected.checksum:
              * platform/mac-leopard/fast/blockflow/japanese-lr-selection-expected.png:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80885 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3d16077c
    • jberlin@webkit.org's avatar
      Crash calling WebContext::clearResourceCaches(InMemoryResourceCachesOnly) before the Web · ad9b09c1
      jberlin@webkit.org authored
      Process has finished launching.
      https://bugs.webkit.org/show_bug.cgi?id=56208
      
      Reviewed by Adam Roben.
      
      Source/WebKit2: 
      
      Only send the message if the Web Process is valid.
      
      * UIProcess/WebContext.cpp:
      (WebKit::WebContext::clearResourceCaches):
      
      Tools: 
      
      * TestWebKitAPI/Tests/WebKit2/SendingMessagesToTheWebProcessBeforeItIsValid.cpp: Added.
      (TestWebKitAPI::TEST):
      Test that calling WKContextClearResourceCaches works with both options when called before
      the Web Process is valid.
      
      * TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj:
      Add the new test.
      * TestWebKitAPI/win/TestWebKitAPI.vcproj:
      Ditto.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80884 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ad9b09c1
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=52987 · 0d9d2dc5
      hyatt@apple.com authored
              
      Reviewed by Simon Fraser.
      
      REGRESSION: Overflowing columns not repainted correctly
              
      Make sure to add in column overflow as visual overflow as well.  It was only propagating layout overflow, which is obviously not
      sufficient, since blocks paint their own columns.
      
      Added fast/multicol/scrolling-overflow.html
      
      Source/WebCore: 
      
      * rendering/RenderBlock.cpp:
      (WebCore::RenderBlock::addOverflowFromChildren):
      
      LayoutTests: 
      
      * fast/multicol/scrolling-overflow.html: Added.
      * platform/mac/fast/multicol/scrolling-overflow-expected.checksum: Added.
      * platform/mac/fast/multicol/scrolling-overflow-expected.png: Added.
      * platform/mac/fast/multicol/scrolling-overflow-expected.txt: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80883 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      0d9d2dc5
    • dglazkov@chromium.org's avatar
      2011-03-11 Dimitri Glazkov <dglazkov@chromium.org> · f34e21fe
      dglazkov@chromium.org authored
              Reviewed by Adam Barth.
      
              Start using derived sources correctly and link minidom with JavaScriptCore gyp project.
              https://bugs.webkit.org/show_bug.cgi?id=56217
      
              * gyp/JavaScriptCore.gyp: Added derived source files and passing of shared directory
                  to the scripts.
              * gyp/generate-derived-sources.sh: Changed to use passed directory.
              * gyp/generate-dtrace-header.sh: Ditto.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80882 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      f34e21fe
    • mihaip@chromium.org's avatar
      2011-03-11 Mihai Parparita <mihaip@chromium.org> · ab05d7a5
      mihaip@chromium.org authored
              Mac and Chromium expectations update. Remove failing expectations for
              tests that no longer fail. Rebaseline fast/overflow/
              overflow-rtl-vertical.html and fast/lists/008-vertical.html after
              r80755.
      
              * platform/chromium/test_expectations.txt:
              * platform/mac/fast/lists/008-vertical-expected.checksum:
              * platform/mac/fast/lists/008-vertical-expected.png:
              * platform/mac/fast/overflow/overflow-rtl-vertical-expected.checksum:
              * platform/mac/fast/overflow/overflow-rtl-vertical-expected.png:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80881 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      ab05d7a5
    • mdelaney@apple.com's avatar
      2011-03-11 Matthew Delaney <mdelaney@apple.com> · bbdb5c9f
      mdelaney@apple.com authored
              Reviewed by Simon Fraser.
      
              Set canvasUsesAcceleratedDrawing setting to be off(false) by default
              https://bugs.webkit.org/show_bug.cgi?id=56215
      
              No new tests. Does not affect behavior. Just keeping the setting off by default.
      
              * page/Settings.cpp:
              (WebCore::Settings::Settings):
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80880 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      bbdb5c9f
    • mihaip@chromium.org's avatar
      2011-03-11 Mihai Parparita <mihaip@chromium.org> · c73c656f
      mihaip@chromium.org authored
              Update Chromium expectations. Remove some commented out lines and
              promote some expectatiosn from chromium-mac to mac-leopard, so that
              those tests pass on chromium Snow Leopard (and mac Leopard).
      
              * platform/chromium/test_expectations.txt:
              * platform/mac-leopard/fast/block/basic/percent-height-inside-anonymous-block-expected.checksum: Renamed from LayoutTests/platform/chromium-mac/fast/block/basic/percent-height-inside-anonymous-block-expected.checksum.
              * platform/mac-leopard/fast/block/basic/percent-height-inside-anonymous-block-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/block/basic/percent-height-inside-anonymous-block-expected.png.
              * platform/mac-leopard/fast/block/positioning/static-distance-with-positioned-ancestor-expected.checksum: Renamed from LayoutTests/platform/chromium-mac/fast/block/positioning/static-distance-with-positioned-ancestor-expected.checksum.
              * platform/mac-leopard/fast/block/positioning/static-distance-with-positioned-ancestor-expected.png: Renamed from LayoutTests/platform/chromium-mac/fast/block/positioning/static-distance-with-positioned-ancestor-expected.png.
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80879 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      c73c656f
    • aestes@apple.com's avatar
      2011-03-11 Andy Estes <aestes@apple.com> · 3b24ae99
      aestes@apple.com authored
              Reviewed by David Hyatt.
      
              Table cells with dynamically added percentage height descendants do not
              grow in size if the table has already been laid out.
              https://bugs.webkit.org/show_bug.cgi?id=56174
              
              Table cells ignore their specified size and collapse to fit their
              children. When a descendent with percentage height is present before
              the table is first laid out, the descendent is sized based on the
              specified size of the table cell. However, when the child isn't present
              when the table is first laid out, the table cell ignores its specified
              size and collapses down to 0. Then, when the child div is added in a
              separate run loop iteration, it is sized to be 100% of the collapsed
              cell height instead of 100% of the cell's specified height. We should
              not get different layouts depending on the timing of tree construction.
              
              Fix this by clearing intrinsic padding before calculating the table
              cell's override height when we detect a child that should flex the
              table cell.
      
              Test: fast/table/dynamic-descendant-percentage-height.html
      
              * rendering/RenderTableCell.cpp:
              (WebCore::RenderTableCell::setOverrideSizeFromRowHeight): clear
              intrinsic padding before setting the override size.
              * rendering/RenderTableCell.h:
              * rendering/RenderTableSection.cpp:
              (WebCore::RenderTableSection::layoutRows): Call
              setOverrideSizeFromRowHeight() instead of setOverrideSize().
      2011-03-11  Andy Estes  <aestes@apple.com>
      
              Reviewed by David Hyatt.
      
              Table cells with dynamically added percentage height descendants do not
              grow in size if the table has already been laid out.
              https://bugs.webkit.org/show_bug.cgi?id=56174
      
              * fast/table/dynamic-descendant-percentage-height.html: Added.
              * platform/mac/fast/table/dynamic-descendant-percentage-height-expected.checksum: Added.
              * platform/mac/fast/table/dynamic-descendant-percentage-height-expected.png: Added.
              * platform/mac/fast/table/dynamic-descendant-percentage-height-expected.txt: Added.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80878 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      3b24ae99
    • hyatt@apple.com's avatar
      Fix Windows build bustage. · d3903a46
      hyatt@apple.com authored
      git-svn-id: svn://svn.chromium.org/blink/trunk@80877 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      d3903a46
    • michaeln@google.com's avatar
      2011-03-11 Michael Nordman <michaeln@google.com> · 7dad9153
      michaeln@google.com authored
              Reviewed by David Levin.
      
              Add SQLCallbackWrapper
              Instead of directly holding RefPtrs to the Callback objects in SQLStatement and SQLTransaction, hold a wrapper objects
              which holds those references whose dtors will schedule the release of those references on the ScriptExecution thread.
              https://bugs.webkit.org/show_bug.cgi?id=55919
      
              No new tests, existing tests apply.
      
              * GNUmakefile.am:
              * WebCore.gypi:
              * WebCore.pro:
              * WebCore.vcproj/WebCore.vcproj:
              * WebCore.xcodeproj/project.pbxproj:
              * storage/SQLCallbackWrapper.h: Added.
              (WebCore::SQLCallbackWrapper::SQLCallbackWrapper):
              (WebCore::SQLCallbackWrapper::clear):
              (WebCore::SQLCallbackWrapper::unwrap):
              (WebCore::SQLCallbackWrapper::hasCallback):
              (WebCore::SQLCallbackWrapper::safeRelease):
              * storage/SQLStatement.cpp:
              (WebCore::SQLStatement::create):
              (WebCore::SQLStatement::SQLStatement):
              (WebCore::SQLStatement::performCallback):
              * storage/SQLStatement.h:
              (WebCore::SQLStatement::hasStatementCallback):
              (WebCore::SQLStatement::hasStatementErrorCallback):
              * storage/SQLTransaction.cpp:
              (WebCore::SQLTransaction::SQLTransaction):
              (WebCore::SQLTransaction::executeSQL):
              (WebCore::SQLTransaction::checkAndHandleClosedOrInterruptedDatabase):
              (WebCore::SQLTransaction::deliverTransactionCallback):
              (WebCore::SQLTransaction::deliverStatementCallback):
              (WebCore::SQLTransaction::postflightAndCommit):
              (WebCore::SQLTransaction::deliverSuccessCallback):
              (WebCore::SQLTransaction::handleTransactionError):
              (WebCore::SQLTransaction::deliverTransactionErrorCallback):
              * storage/SQLTransaction.h:
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80876 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      7dad9153
    • andersca@apple.com's avatar
      2011-03-11 Anders Carlsson <andersca@apple.com> · 64ad8b25
      andersca@apple.com authored
              Reviewed by Dan Bernstein.
      
              Don't paint more than 60 times per second
              https://bugs.webkit.org/show_bug.cgi?id=56206
              <rdar://problem/9085989>
      
              * WebProcess/WebPage/DrawingAreaImpl.cpp:
              (WebKit::DrawingAreaImpl::DrawingAreaImpl):
              Initialize m_lastDisplayTime to 0. Change the display timer to call displayTimerFired.
      
              (WebKit::DrawingAreaImpl::didUpdate):
              Call displayTimerFired instead of display.
      
              (WebKit::DrawingAreaImpl::displayTimerFired):
              If we're asked to paint again less than 1/60th of a second after we've already painted,
              defer painting.
      
              (WebKit::DrawingAreaImpl::display):
              Update m_lastDisplayTime.
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80875 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      64ad8b25
    • eric.carlson@apple.com's avatar
      2011-03-11 Eric Carlson <eric.carlson@apple.com> · fe7ffcba
      eric.carlson@apple.com authored
              Reviewed by Sam Weinig.
      
              <rdar://problem/8955589> Adopt AVFoundation media back end on Lion.
      
              No new tests, existing media tests cover this.
      
              * WebCore.xcodeproj/project.pbxproj:
              * platform/graphics/MediaPlayer.cpp:
              (WebCore::installedMediaEngines): Register MediaPlayerPrivateAVFoundationObjC.
              (WebCore::bestMediaEngineForTypeAndCodecs): Kill some whitespace.
              (WebCore::MediaPlayer::loadWithNextMediaEngine): Ditto.
              (WebCore::MediaPlayer::inMediaDocument): Ditto.
              * platform/graphics/MediaPlayer.h:
      
              * platform/graphics/avfoundation: Added.
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.cpp: Added.
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundation.h: Added.
      
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.h: Added.
              * platform/graphics/avfoundation/MediaPlayerPrivateAVFoundationObjC.mm: Added.
      
      2011-03-11  Eric Carlson  <eric.carlson@apple.com>
      
              Reviewed by Sam Weinig.
      
              <rdar://problem/8955589> Adopt AVFoundation media back end on Lion.
      
              No new tests, existing media tests cover this.
      
              * JavaScriptCore.exp: Export cancelCallOnMainThread
              * wtf/Platform.h: Define WTF_USE_AVFOUNDATION.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80874 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      fe7ffcba
    • dino@apple.com's avatar
      2011-03-11 Dean Jackson <dino@apple.com> · 79cc3526
      dino@apple.com authored
              Reviewed by Simon Fraser.
      
              https://bugs.webkit.org/show_bug.cgi?id=56205
              m_restrictions needs to allow multiple values (a bitfield)
      
              HTMLMediaElement::m_restrictions needs to hold multiple values, so
              change BehaviorRestrictions to an unsigned typedef and rename the
              existing enum BehaviorRestrictionFlags.
      
              * html/HTMLMediaElement.h:
              (WebCore::HTMLMediaElement::setBehaviorRestrictions):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80873 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      79cc3526
    • dglazkov@chromium.org's avatar
      2011-03-11 Dimitri Glazkov <dglazkov@chromium.org> · 2441337d
      dglazkov@chromium.org authored
              [GTK] Update expectations after r80857.
              https://bugs.webkit.org/show_bug.cgi?id=55972
      
              * platform/gtk/media/audio-controls-rendering-expected.txt:
              * platform/gtk/media/audio-repaint-expected.txt:
              * platform/gtk/media/controls-strict-expected.txt:
              * platform/gtk/media/controls-styling-expected.txt:
              * platform/gtk/media/controls-without-preload-expected.txt:
              * platform/gtk/media/media-document-audio-repaint-expected.txt:
              * platform/gtk/media/video-controls-rendering-expected.txt:
              * platform/gtk/media/video-empty-source-expected.txt:
              * platform/gtk/media/video-no-audio-expected.txt:
              * platform/gtk/media/video-volume-slider-expected.txt:
              * platform/gtk/media/video-zoom-controls-expected.txt:
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80872 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      2441337d
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=47206 · 27c111b6
      hyatt@apple.com authored
              
      Reviewed by Dan Bernstein.
      
      Table rows don't support ::before/::after.  Add support to RenderTableRow::styleDidChange so that ::before/::after content gets
      properly constructed.
      
      Added fast/css-generated-content/table-row-before-after.html
      
      Source/WebCore: 
      
      * rendering/RenderTableRow.cpp:
      (WebCore::RenderTableRow::styleDidChange):
      * rendering/RenderTableRow.h:
      
      LayoutTests: 
      
      * fast/css-generated-content/table-row-before-after.html: Added.
      * platform/mac/fast/css-generated-content/table-row-before-after-expected.checksum: Added.
      * platform/mac/fast/css-generated-content/table-row-before-after-expected.png: Added.
      * platform/mac/fast/css-generated-content/table-row-before-after-expected.txt: Added.
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80871 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      27c111b6
    • jamesr@google.com's avatar
      2011-03-11 James Robinson <jamesr@chromium.org> · 79a88371
      jamesr@google.com authored
              Reviewed by Kenneth Russell.
      
              [chromium] Avoid updating a composited layer&apos;s contents if the layer has nonpositive dimensions
              https://bugs.webkit.org/show_bug.cgi?id=56209
      
              This matches the behavior prior to r80482.  No test since the only changes in
              behavior are avoiding work on invisible layers, which is unobservable,
              and fixing a crash due to bug 56153.
      
              * platform/graphics/chromium/LayerRendererChromium.cpp:
              (WebCore::LayerRendererChromium::updateContentsRecursive):
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80869 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      79a88371
    • hyatt@apple.com's avatar
      https://bugs.webkit.org/show_bug.cgi?id=47159 · 034eb365
      hyatt@apple.com authored
              
      Reviewed by Simon Fraser.
      
      CSS2.1 failures in background position parsing.
              
      Rewrite background position component parsing to match the spec.  Our old parsing would allow "100% left" to be valid
      when it should not have.  Rename parseFillPositionXY to parseFillPositionComponent and pass in enough information for
      it to understand what the first component was.
              
      For individual property parsing using background-position-x/y, I added new functions that just handle that without
      worrying about the other component.
              
      In order to pass the CSS2.1 test, I also had to fix multiple background parsing.  The number of layers in multiple
      backgrounds is determined solely by the background-image property and not by any of the other properties.  cullEmptyLayers
      has been changed to always consider a layer empty if it has no image set, even if other properties are set.
              
      A number of layout tests had to be patched as they were invalid.  A couple of them relied on incorrect background-position
      parsing (e.g., "50 left") and another relied on incorrect multiple background parsing.  It's not clear if the computed style
      should actually include the additional values when no image is set though, so that should perhaps be the subject of a 
      follow-up bug.
      
      Added fast/backgrounds/background-position-parsing.html
      
      Source/WebCore: 
      
      * css/CSSParser.cpp:
      (WebCore::CSSParser::parseFillPositionX):
      (WebCore::CSSParser::parseFillPositionY):
      (WebCore::CSSParser::parseFillPositionComponent):
      (WebCore::CSSParser::parseFillPosition):
      (WebCore::CSSParser::parseFillProperty):
      (WebCore::CSSParser::parseTransformOrigin):
      (WebCore::CSSParser::parsePerspectiveOrigin):
      * css/CSSParser.h:
      * rendering/style/FillLayer.cpp:
      (WebCore::FillLayer::fillUnsetProperties):
      (WebCore::FillLayer::cullEmptyLayers):
      
      LayoutTests: 
      
      * fast/backgrounds/background-position-1.html:
      * fast/backgrounds/background-position-parsing.html: Added.
      * fast/backgrounds/multiple-backgrounds-computed-style-expected.txt:
      * fast/backgrounds/repeat/parsing-background-repeat-expected.txt:
      * fast/backgrounds/repeat/script-tests/parsing-background-repeat.js:
      * fast/backgrounds/resources/diamond.png: Added.
      * fast/backgrounds/resources/ring.png: Added.
      * fast/backgrounds/script-tests/multiple-backgrounds-computed-style.js:
      * platform/mac/fast/backgrounds/animated-svg-as-background-expected.checksum:
      * platform/mac/fast/backgrounds/animated-svg-as-background-expected.png:
      * platform/mac/fast/backgrounds/animated-svg-as-mask-expected.checksum:
      * platform/mac/fast/backgrounds/animated-svg-as-mask-expected.png:
      * platform/mac/fast/backgrounds/background-position-parsing-expected.checksum: Added.
      * platform/mac/fast/backgrounds/background-position-parsing-expected.png: Added.
      * platform/mac/fast/backgrounds/background-position-parsing-expected.txt: Added.
      * platform/mac/fast/backgrounds/bgCompositeCopy-expected.png:
      * platform/mac/fast/backgrounds/repeat/noRepeatCorrectClip-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize01-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize03-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize05-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize06-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize07-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize08-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize09-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize10-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize11-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize12-expected.png:
      * platform/mac/fast/backgrounds/size/backgroundSize22-expected.checksum:
      * platform/mac/fast/backgrounds/size/backgroundSize22-expected.png:
      * platform/mac/fast/backgrounds/size/contain-and-cover-expected.checksum:
      * platform/mac/fast/backgrounds/size/contain-and-cover-expected.png:
      * platform/mac/fast/backgrounds/svg-as-background-4-expected.png:
      
      
      
      git-svn-id: svn://svn.chromium.org/blink/trunk@80868 bbb929c8-8fbe-4397-9dbb-9b2b20218538
      034eb365