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

Unified Diff: Source/core/layout/line/LineLayoutState.h

Issue 1102953002: BR styled clear is ignored while partially relayouting. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Better approach. Created 5 years, 8 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: Source/core/layout/line/LineLayoutState.h
diff --git a/Source/core/layout/line/LineLayoutState.h b/Source/core/layout/line/LineLayoutState.h
index 87b885748ce0b43811c600f2e9efc3c6e3424360..36e9135715166ce38558c3a779abd4379266c50f 100644
--- a/Source/core/layout/line/LineLayoutState.h
+++ b/Source/core/layout/line/LineLayoutState.h
@@ -42,6 +42,7 @@ public:
, m_checkForFloatsFromLastLine(false)
, m_hasInlineChild(false)
, m_isFullLayout(fullLayout)
+ , m_containsClearBR(false)
, m_paintInvalidationLogicalTop(paintInvalidationLogicalTop)
, m_paintInvalidationLogicalBottom(paintInvalidationLogicalBottom)
, m_adjustedLogicalLineTop(0)
@@ -76,6 +77,9 @@ public:
bool hasInlineChild() const { return m_hasInlineChild; }
void setHasInlineChild(bool hasInlineChild) { m_hasInlineChild = hasInlineChild; }
+ bool containsClearBR() const { return m_containsClearBR; }
leviw_travelin_and_unemployed 2015/05/11 00:25:29 Nit: I'd call this "containsBRWithClear" or "conta
changseok 2015/05/11 15:56:46 containsBRWithClear sounds good to me. =)
+ void setContainsClearBR(bool containsBR) { m_containsClearBR = containsBR; }
+
LineInfo& lineInfo() { return m_lineInfo; }
const LineInfo& lineInfo() const { return m_lineInfo; }
@@ -114,6 +118,8 @@ private:
bool m_isFullLayout;
+ bool m_containsClearBR;
+
// FIXME: Should this be a range object instead of two ints?
LayoutUnit& m_paintInvalidationLogicalTop;
LayoutUnit& m_paintInvalidationLogicalBottom;
« Source/core/layout/LayoutBlockFlowLine.cpp ('K') | « Source/core/layout/LayoutBlockFlowLine.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698