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

Unified Diff: Source/core/style/ComputedStyle.h

Issue 1251523003: Delete AuthorStyleInfo and move its data into ComputedStyle.RareNonInheritedData. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Remove spurious comment Created 5 years, 5 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/style/ComputedStyle.h
diff --git a/Source/core/style/ComputedStyle.h b/Source/core/style/ComputedStyle.h
index dcaba3799d9cd350b768467b630688f4c6a187b9..e214c7a30d4f52899cc20e59acff35b9e5b8ae5e 100644
--- a/Source/core/style/ComputedStyle.h
+++ b/Source/core/style/ComputedStyle.h
@@ -1564,6 +1564,11 @@ public:
bool borderObscuresBackground() const;
void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = true, bool includeLogicalRightEdge = true) const;
+ void setHasAuthorBackground(bool authorBg) { SET_VAR(rareNonInheritedData, m_hasAuthorBackground, authorBg ? 1 : 0); }
Timothy Loh 2015/07/29 03:37:08 No need to abbreviate background. Also does the te
meade_UTC10 2015/07/30 05:38:18 SET_VAR seems to do bitwise operations, and I didn
+ void setHasAuthorBorder(bool authorBorder) { SET_VAR(rareNonInheritedData, m_hasAuthorBorder, authorBorder ? 1 : 0); }
+ bool hasAuthorBackground() const { return rareNonInheritedData->m_hasAuthorBackground; };
+ bool hasAuthorBorder() const { return rareNonInheritedData->m_hasAuthorBorder; };
+
// Initial values for all the properties
static EBorderCollapse initialBorderCollapse() { return BSEPARATE; }
static EBorderStyle initialBorderStyle() { return BNONE; }

Powered by Google App Engine
This is Rietveld 408576698