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

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

Issue 2715243004: [blink] Support (semi-)transparent background colors in WebView/Frame. (Closed)
Patch Set: address comments 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 dcaacbcf8c23311905e408621585bb18e1b8140e..029ff411fb19812d0cee6d80a1a5ce69f472d6a1 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