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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGrid.cpp

Issue 2358813002: [css-grid] Remove redundant setNeedsLayout() call (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | 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/layout/LayoutGrid.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
index ec13d1934a0da3df498bbfaa44792491e7bfb277..9d220b0829b077c4b5fe8f13eeb871b10a56cc08 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
@@ -1791,13 +1791,6 @@ void LayoutGrid::dirtyGrid()
if (m_gridIsDirty)
return;
- // Even if this could be redundant, it could be seen as a defensive strategy against
- // style changes events happening during the layout phase or even while the painting process
- // is still ongoing.
- // Forcing a new layout for the Grid layout would cancel any ongoing painting and ensure
- // the grid and its children are correctly laid out according to the new style rules.
- setNeedsLayout(LayoutInvalidationReason::GridChanged);
-
m_grid.resize(0);
m_gridItemArea.clear();
m_gridItemsOverflowingGridArea.resize(0);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698