Reviewed by Tim Horton.
* WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
(WebKit::PlatformCALayerRemote::recursiveBuildTransaction):
(WebKit::PlatformCALayerRemote::ensureBackingStore):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168456
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
2014-05-07 Simon Fraser <simon.fraser@apple.com>
+ Put a better version of the assertion back, and add one when we ensureBackingStore.
+
+ Reviewed by Tim Horton.
+
+ * WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
+ (WebKit::PlatformCALayerRemote::recursiveBuildTransaction):
+ (WebKit::PlatformCALayerRemote::ensureBackingStore):
+
+2014-05-07 Simon Fraser <simon.fraser@apple.com>
+
This assertion was wrong and fired every time. Remove it.
* WebProcess/WebPage/mac/PlatformCALayerRemote.cpp:
void PlatformCALayerRemote::recursiveBuildTransaction(RemoteLayerTreeTransaction& transaction)
{
+ ASSERT(!m_properties.backingStore || owner());
+
if (m_properties.backingStore && (!owner() || !owner()->platformCALayerDrawsContent())) {
m_properties.backingStore = nullptr;
m_properties.notePropertiesChanged(RemoteLayerTreeTransaction::BackingStoreChanged);
void PlatformCALayerRemote::ensureBackingStore()
{
+ ASSERT(owner());
+
if (!m_properties.backingStore)
m_properties.backingStore = std::make_unique<RemoteLayerBackingStore>(m_context);