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

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

Issue 2479403002: Move all ancestor-dependent properties out of PaintLayer and into an aux. struct. (Closed)
Patch Set: none 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
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/PaintLayer.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayer.cpp b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
index db3c3beb68441d732cc9ccfd2f4c5c89a48f06f0..7d8cc1a7c9af5f96fc11f4fe0f6e479e44cf0e89 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayer.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayer.cpp
@@ -101,15 +101,11 @@ static CompositingQueryMode gCompositingQueryMode =
struct SameSizeAsPaintLayer : DisplayItemClient {
int bitFields;
- void* pointers[10];
chrishtr 2016/11/08 00:48:42 This was wrong before.
+ void* pointers[11];
LayoutUnit layoutUnits[4];
IntSize size;
Persistent<PaintLayerScrollableArea> scrollableArea;
struct {
- IntRect rect, rect2;
- void* pointers[2];
- } ancestorCompositingInputs;
- struct {
IntSize size;
void* pointer;
LayoutRect rect;
@@ -1025,14 +1021,9 @@ void PaintLayer::setNeedsCompositingInputsUpdate() {
void PaintLayer::updateAncestorDependentCompositingInputs(
const AncestorDependentCompositingInputs& compositingInputs,
- const RareAncestorDependentCompositingInputs& rareCompositingInputs,
bool hasAncestorWithClipPath) {
- m_ancestorDependentCompositingInputs = compositingInputs;
- if (rareCompositingInputs.isDefault())
- m_rareAncestorDependentCompositingInputs.reset();
- else
- m_rareAncestorDependentCompositingInputs = wrapUnique(
- new RareAncestorDependentCompositingInputs(rareCompositingInputs));
+ m_ancestorDependentCompositingInputs =
+ wrapUnique(new AncestorDependentCompositingInputs(compositingInputs));
m_hasAncestorWithClipPath = hasAncestorWithClipPath;
m_needsAncestorDependentCompositingInputsUpdate = false;
}
« no previous file with comments | « third_party/WebKit/Source/core/paint/PaintLayer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698