Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(382)

Side by Side Diff: cc/blink/web_display_item_list_impl.cc

Issue 2297213003: Fix CSS reference filters with negative transformed children. (Closed)
Patch Set: Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/blink/web_layer_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/blink/web_display_item_list_impl.h" 5 #include "cc/blink/web_display_item_list_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 bounds, sk_ref_sp(color_filter), kLcdTextRequiresOpaqueLayer); 125 bounds, sk_ref_sp(color_filter), kLcdTextRequiresOpaqueLayer);
126 } 126 }
127 127
128 void WebDisplayItemListImpl::appendEndCompositingItem() { 128 void WebDisplayItemListImpl::appendEndCompositingItem() {
129 display_item_list_ 129 display_item_list_
130 ->CreateAndAppendPairedEndItem<cc::EndCompositingDisplayItem>(); 130 ->CreateAndAppendPairedEndItem<cc::EndCompositingDisplayItem>();
131 } 131 }
132 132
133 void WebDisplayItemListImpl::appendFilterItem( 133 void WebDisplayItemListImpl::appendFilterItem(
134 const cc::FilterOperations& filters, 134 const cc::FilterOperations& filters,
135 const blink::WebFloatRect& filter_bounds) { 135 const blink::WebFloatRect& filter_bounds,
136 const blink::WebFloatPoint& origin) {
136 display_item_list_ 137 display_item_list_
137 ->CreateAndAppendPairedBeginItemWithVisualRect<cc::FilterDisplayItem>( 138 ->CreateAndAppendPairedBeginItemWithVisualRect<cc::FilterDisplayItem>(
138 gfx::ToEnclosingRect(filter_bounds), filters, filter_bounds); 139 gfx::ToEnclosingRect(filter_bounds), filters, filter_bounds, origin);
139 } 140 }
140 141
141 void WebDisplayItemListImpl::appendEndFilterItem() { 142 void WebDisplayItemListImpl::appendEndFilterItem() {
142 display_item_list_->CreateAndAppendPairedEndItem<cc::EndFilterDisplayItem>(); 143 display_item_list_->CreateAndAppendPairedEndItem<cc::EndFilterDisplayItem>();
143 } 144 }
144 145
145 void WebDisplayItemListImpl::appendScrollItem( 146 void WebDisplayItemListImpl::appendScrollItem(
146 const blink::WebSize& scroll_offset, 147 const blink::WebSize& scroll_offset,
147 ScrollContainerId) { 148 ScrollContainerId) {
148 SkMatrix44 matrix(SkMatrix44::kUninitialized_Constructor); 149 SkMatrix44 matrix(SkMatrix44::kUninitialized_Constructor);
149 matrix.setTranslate(-scroll_offset.width, -scroll_offset.height, 0); 150 matrix.setTranslate(-scroll_offset.width, -scroll_offset.height, 0);
150 // TODO(wkorman): http://crbug.com/633636 Should we translate the visual rect 151 // TODO(wkorman): http://crbug.com/633636 Should we translate the visual rect
151 // as well? Create a test case and investigate. 152 // as well? Create a test case and investigate.
152 appendTransformItem(matrix); 153 appendTransformItem(matrix);
153 } 154 }
154 155
155 void WebDisplayItemListImpl::appendEndScrollItem() { 156 void WebDisplayItemListImpl::appendEndScrollItem() {
156 appendEndTransformItem(); 157 appendEndTransformItem();
157 } 158 }
158 159
159 void WebDisplayItemListImpl::setIsSuitableForGpuRasterization(bool isSuitable) { 160 void WebDisplayItemListImpl::setIsSuitableForGpuRasterization(bool isSuitable) {
160 display_item_list_->SetIsSuitableForGpuRasterization(isSuitable); 161 display_item_list_->SetIsSuitableForGpuRasterization(isSuitable);
161 } 162 }
162 163
163 WebDisplayItemListImpl::~WebDisplayItemListImpl() { 164 WebDisplayItemListImpl::~WebDisplayItemListImpl() {
164 } 165 }
165 166
166 } // namespace cc_blink 167 } // namespace cc_blink
OLDNEW
« no previous file with comments | « cc/blink/web_display_item_list_impl.h ('k') | cc/blink/web_layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698