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

Unified Diff: third_party/WebKit/public/platform/WebLayer.h

Issue 2733633002: Handle nested position:sticky elements correctly (compositor) (Closed)
Patch Set: Revert float changes to unittests too 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/public/platform/WebLayer.h
diff --git a/third_party/WebKit/public/platform/WebLayer.h b/third_party/WebKit/public/platform/WebLayer.h
index 457ee2ee5a2daa15154c6e180bbfe7234a9f72d4..806e2bf26d360a88a96a3ef040574f41125a45b5 100644
--- a/third_party/WebKit/public/platform/WebLayer.h
+++ b/third_party/WebKit/public/platform/WebLayer.h
@@ -26,6 +26,8 @@
#ifndef WebLayer_h
#define WebLayer_h
+#include "cc/layers/layer.h"
+
#include "WebBlendMode.h"
#include "WebColor.h"
#include "WebCommon.h"
@@ -58,6 +60,8 @@ class WebLayer {
public:
virtual ~WebLayer() {}
+ static constexpr int kInvalidLayerId = cc::Layer::INVALID_ID;
+
// Returns a positive ID that will be unique across all WebLayers allocated in
// this process.
virtual int id() const = 0;

Powered by Google App Engine
This is Rietveld 408576698