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

Unified Diff: Source/core/rendering/RenderBox.h

Issue 802813003: Skip PositionedMovementLayout when descendants depend on element's height (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Updated Created 5 years, 11 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 | « Source/core/rendering/RenderBlock.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/rendering/RenderBox.h
diff --git a/Source/core/rendering/RenderBox.h b/Source/core/rendering/RenderBox.h
index be4880c3ef11cbacf93ce68b61acdddac960c19c..365afde44f203d28c04afc1d37e95cf5afb3097b 100644
--- a/Source/core/rendering/RenderBox.h
+++ b/Source/core/rendering/RenderBox.h
@@ -524,24 +524,6 @@ public:
void logicalExtentAfterUpdatingLogicalWidth(const LayoutUnit& logicalTop, LogicalExtentComputedValues&);
- // Called when a positioned object moves but doesn't necessarily change size. A simplified layout is attempted
- // that just updates the object's position. If the size does change, the object remains dirty.
- bool tryLayoutDoingPositionedMovementOnly()
- {
- LayoutUnit oldWidth = logicalWidth();
- LogicalExtentComputedValues computedValues;
- logicalExtentAfterUpdatingLogicalWidth(logicalTop(), computedValues);
- // If we shrink to fit our width may have changed, so we still need full layout.
- if (oldWidth != computedValues.m_extent)
- return false;
- setLogicalWidth(computedValues.m_extent);
- setLogicalLeft(computedValues.m_position);
- setMarginStart(computedValues.m_margins.m_start);
- setMarginEnd(computedValues.m_margins.m_end);
- updateLogicalHeight();
- return true;
- }
-
virtual PositionWithAffinity positionForPoint(const LayoutPoint&) override;
void removeFloatingOrPositionedChildFromBlockLists();
« no previous file with comments | « Source/core/rendering/RenderBlock.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698