From 0648ca4f7a06e682451da4ee478f3224abf23831 Mon Sep 17 00:00:00 2001 From: "simon.fraser@apple.com" Date: Sat, 3 May 2014 20:32:31 +0000 Subject: [PATCH] [UI-side compositing] Assertion in PlatformCAFilters::setFiltersOnLayer with animated reference filter https://bugs.webkit.org/show_bug.cgi?id=132528 Reviewed by Tim Horton. Source/WebKit2: Allow PASSTHROUGH filters to be encoded and sent to the UI process; they can be set on layers as the result of a filter animation using a reference filter, and just get ignored anyway, but encoding them maintains consistency of the filters list. * Shared/WebCoreArgumentCoders.cpp: (IPC::ArgumentCoder::encode): Assert during encoding if we try to encode a NONE or REFERENCE filter (to match the decoding assertions). (IPC::decodeFilterOperation): Allow decoding of PASSTHROUGH filters. Have trying to decode a NONE or REFERENCE filter mark the message as invalid. (IPC::ArgumentCoder::decode): Mark the message invalid when receiving unexpected key types. * Shared/mac/RemoteLayerTreeTransaction.mm: (WebKit::RemoteLayerTreeTextStream::operator<<): Have the logging not crash if a filter is null (should never happen). LayoutTests: Make the animation duration a little longer to cause bug 132528 to reproduce more reliably. The test does notifyDone() from an animation start event, so this doesn't increase test duration. * css3/filters/crash-filter-animation-invalid-url.html: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@168228 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- LayoutTests/ChangeLog | 14 +++++++++++++ .../crash-filter-animation-invalid-url.html | 2 +- Source/WebKit2/ChangeLog | 23 ++++++++++++++++++++++ Source/WebKit2/Shared/WebCoreArgumentCoders.cpp | 13 +++++++----- .../Shared/mac/RemoteLayerTreeTransaction.mm | 5 ++++- 5 files changed, 50 insertions(+), 7 deletions(-) diff --git a/LayoutTests/ChangeLog b/LayoutTests/ChangeLog index be1f1ca..9bf85b5 100644 --- a/LayoutTests/ChangeLog +++ b/LayoutTests/ChangeLog @@ -1,5 +1,19 @@ 2014-05-03 Simon Fraser + [UI-side compositing] Assertion in PlatformCAFilters::setFiltersOnLayer with animated reference filter + https://bugs.webkit.org/show_bug.cgi?id=132528 + + + Reviewed by Tim Horton. + + Make the animation duration a little longer to cause bug 132528 to reproduce more + reliably. The test does notifyDone() from an animation start event, so this doesn't + increase test duration. + + * css3/filters/crash-filter-animation-invalid-url.html: + +2014-05-03 Simon Fraser + Very fuzzy layers under non-decompasable matrices https://bugs.webkit.org/show_bug.cgi?id=132516 diff --git a/LayoutTests/css3/filters/crash-filter-animation-invalid-url.html b/LayoutTests/css3/filters/crash-filter-animation-invalid-url.html index d867c23..f4fe0f45 100644 --- a/LayoutTests/css3/filters/crash-filter-animation-invalid-url.html +++ b/LayoutTests/css3/filters/crash-filter-animation-invalid-url.html @@ -3,7 +3,7 @@