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

Unified Diff: third_party/WebKit/WebCore/rendering/InlineFlowBox.h

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 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: third_party/WebKit/WebCore/rendering/InlineFlowBox.h
===================================================================
--- third_party/WebKit/WebCore/rendering/InlineFlowBox.h (revision 9391)
+++ third_party/WebKit/WebCore/rendering/InlineFlowBox.h (working copy)
@@ -36,6 +36,9 @@
, m_firstChild(0)
, m_lastChild(0)
, m_maxHorizontalVisualOverflow(0)
+ , m_includeLeftEdge(false)
+ , m_includeRightEdge(false)
+ , m_hasTextChildren(true)
#ifndef NDEBUG
, m_hasBadChildList(false)
#endif
@@ -101,10 +104,10 @@
int marginBorderPaddingRight();
int marginLeft();
int marginRight();
- int borderLeft() { if (includeLeftEdge()) return renderBox()->borderLeft(); return 0; }
- int borderRight() { if (includeRightEdge()) return renderBox()->borderRight(); return 0; }
- int paddingLeft() { if (includeLeftEdge()) return renderBox()->paddingLeft(); return 0; }
- int paddingRight() { if (includeRightEdge()) return renderBox()->paddingRight(); return 0; }
+ int borderLeft() { if (includeLeftEdge()) return object()->style()->borderLeftWidth(); return 0; }
+ int borderRight() { if (includeRightEdge()) return object()->style()->borderRightWidth(); return 0; }
+ int paddingLeft() { if (includeLeftEdge()) return boxModelObject()->paddingLeft(); return 0; }
+ int paddingRight() { if (includeRightEdge()) return boxModelObject()->paddingRight(); return 0; }
bool includeLeftEdge() { return m_includeLeftEdge; }
bool includeRightEdge() { return m_includeRightEdge; }
@@ -130,7 +133,7 @@
virtual void setVerticalOverflowPositions(int /*top*/, int /*bottom*/) { }
virtual void setVerticalSelectionPositions(int /*top*/, int /*bottom*/) { }
- int maxHorizontalVisualOverflow() const { return m_maxHorizontalVisualOverflow; }
+ short maxHorizontalVisualOverflow() const { return m_maxHorizontalVisualOverflow; }
void removeChild(InlineBox* child);
@@ -139,13 +142,19 @@
virtual bool canAccommodateEllipsis(bool ltr, int blockEdge, int ellipsisWidth);
virtual int placeEllipsisBox(bool ltr, int blockEdge, int ellipsisWidth, bool&);
+ bool hasTextChildren() const { return m_hasTextChildren; }
+
void checkConsistency() const;
void setHasBadChildList();
private:
InlineBox* m_firstChild;
InlineBox* m_lastChild;
- int m_maxHorizontalVisualOverflow;
+ short m_maxHorizontalVisualOverflow;
+
+ bool m_includeLeftEdge : 1;
+ bool m_includeRightEdge : 1;
+ bool m_hasTextChildren : 1;
#ifndef NDEBUG
bool m_hasBadChildList;
« no previous file with comments | « third_party/WebKit/WebCore/rendering/InlineBox.h ('k') | third_party/WebKit/WebCore/rendering/InlineFlowBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698