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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayer.h

Issue 2430313004: Paint collapsed borders of a table as one display item (Closed)
Patch Set: Rebaseline-cl Created 4 years, 1 month 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/core/paint/PaintLayer.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.h b/third_party/WebKit/Source/core/paint/PaintLayer.h
index 21f32a0bed73a086d96b347bfeae2a616dfc2bf3..70d8e5786d6addd5d393c1fd02ebc4c801b433b1 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.h
@@ -55,6 +55,7 @@
#include "core/paint/PaintLayerScrollableArea.h"
#include "core/paint/PaintLayerStackingNode.h"
#include "core/paint/PaintLayerStackingNodeIterator.h"
+#include "core/paint/PaintResult.h"
#include "platform/graphics/CompositingReasons.h"
#include "platform/graphics/SquashingDisallowedReasons.h"
#include "wtf/Allocator.h"
@@ -924,10 +925,10 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
m_previousPaintDirtyRect = rect;
}
- PaintLayerPainter::PaintResult previousPaintResult() const {
- return static_cast<PaintLayerPainter::PaintResult>(m_previousPaintResult);
+ PaintResult previousPaintResult() const {
+ return static_cast<PaintResult>(m_previousPaintResult);
}
- void setPreviousPaintResult(PaintLayerPainter::PaintResult result) {
+ void setPreviousPaintResult(PaintResult result) {
m_previousPaintResult = static_cast<unsigned>(result);
DCHECK(m_previousPaintResult == static_cast<unsigned>(result));
}
@@ -1182,7 +1183,9 @@ class CORE_EXPORT PaintLayer : public DisplayItemClient {
unsigned m_lostGroupedMapping : 1;
unsigned m_needsRepaint : 1;
- unsigned m_previousPaintResult : 1; // PaintLayerPainter::PaintResult
+ unsigned m_previousPaintResult : 1; // PaintResult
+ static_assert(MaxPaintResult <= 2,
+ "Should update number of bits of m_previousPaintResult");
unsigned m_needsPaintPhaseDescendantOutlines : 1;
unsigned m_previousPaintPhaseDescendantOutlinesWasEmpty : 1;

Powered by Google App Engine
This is Rietveld 408576698