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

Unified Diff: ui/compositor/layer.cc

Issue 10407089: Revert 138212 - Implement High Contrast mode for Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
===================================================================
--- ui/compositor/layer.cc (revision 138238)
+++ ui/compositor/layer.cc (working copy)
@@ -52,7 +52,6 @@
fills_bounds_opaquely_(true),
layer_updated_externally_(false),
opacity_(1.0f),
- inverted_(false),
delegate_(NULL),
scale_canvas_(true),
device_scale_factor_(1.0f) {
@@ -67,7 +66,6 @@
fills_bounds_opaquely_(true),
layer_updated_externally_(false),
opacity_(1.0f),
- inverted_(false),
delegate_(NULL),
scale_canvas_(true),
device_scale_factor_(1.0f) {
@@ -196,7 +194,8 @@
GetAnimator()->SetOpacity(opacity);
}
-void Layer::SetBackgroundBlur(int blur_radius) {
+void Layer::SetBackgroundBlur(int blur_radius)
+{
WebKit::WebFilterOperations filters;
if (blur_radius) {
#if WEBKIT_HAS_NEW_WEBFILTEROPERATION_API
@@ -210,18 +209,6 @@
background_blur_radius_ = blur_radius;
}
-void Layer::SetInverted(bool inverted) {
- WebKit::WebFilterOperations filters;
- if (inverted) {
- filters.append(WebKit::WebBasicComponentTransferFilterOperation(
- WebKit::WebBasicComponentTransferFilterOperation::
- BasicComponentTransferFilterTypeInvert, 1.0));
- }
- web_layer_.setFilters(filters);
-
- inverted_ = inverted;
-}
-
float Layer::GetTargetOpacity() const {
if (animator_.get() && animator_->IsAnimatingProperty(
LayerAnimationElement::OPACITY))
« no previous file with comments | « ui/compositor/layer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698