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

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2715243004: [blink] Support (semi-)transparent background colors in WebView/Frame. (Closed)
Patch Set: remove set/isTransparent from WebViewImpl and FrameView, use setBaseBackgroundColor instead Created 3 years, 9 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
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index c806ccf5bb2817eaa64aadf0cb45cbf50f1595bb..05af0281a11ee6793a7ff664381e46ec867e3217 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -8116,8 +8116,8 @@ namespace {
class TestFullscreenWebLayerTreeView : public WebLayerTreeView {
public:
- void setHasTransparentBackground(bool value) override {
- hasTransparentBackground = value;
+ void setBackgroundColor(blink::WebColor color) override {
+ hasTransparentBackground = SkColorGetA(color) < SK_AlphaOPAQUE;
}
bool hasTransparentBackground = false;
};

Powered by Google App Engine
This is Rietveld 408576698