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

Side by Side 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: update comment Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « Source/core/style/AuthorStyleInfo.h ('k') | Source/core/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 2000 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Antti Koivisto (koivisto@kde.org) 3 * (C) 2000 Antti Koivisto (koivisto@kde.org)
4 * (C) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 bool hasExplicitlyInheritedProperties() const { return noninherited_flags.ex plicitInheritance; } 1558 bool hasExplicitlyInheritedProperties() const { return noninherited_flags.ex plicitInheritance; }
1559 1559
1560 bool hasChildDependentFlags() const { return emptyState() || hasExplicitlyIn heritedProperties(); } 1560 bool hasChildDependentFlags() const { return emptyState() || hasExplicitlyIn heritedProperties(); }
1561 void copyChildDependentFlagsFrom(const ComputedStyle&); 1561 void copyChildDependentFlagsFrom(const ComputedStyle&);
1562 1562
1563 bool hasBoxDecorations() const { return hasBorderDecoration() || hasBorderRa dius() || hasOutline() || hasAppearance() || boxShadow() || hasFilter() || resiz e() != RESIZE_NONE; } 1563 bool hasBoxDecorations() const { return hasBorderDecoration() || hasBorderRa dius() || hasOutline() || hasAppearance() || boxShadow() || hasFilter() || resiz e() != RESIZE_NONE; }
1564 1564
1565 bool borderObscuresBackground() const; 1565 bool borderObscuresBackground() const;
1566 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru e, bool includeLogicalRightEdge = true) const; 1566 void getBorderEdgeInfo(BorderEdge edges[], bool includeLogicalLeftEdge = tru e, bool includeLogicalRightEdge = true) const;
1567 1567
1568 void setHasAuthorBackground(bool authorBackground) { SET_VAR(rareNonInherite dData, m_hasAuthorBackground, authorBackground); }
1569 void setHasAuthorBorder(bool authorBorder) { SET_VAR(rareNonInheritedData, m _hasAuthorBorder, authorBorder); }
1570 bool hasAuthorBackground() const { return rareNonInheritedData->m_hasAuthorB ackground; };
1571 bool hasAuthorBorder() const { return rareNonInheritedData->m_hasAuthorBorde r; };
1572
1568 // Initial values for all the properties 1573 // Initial values for all the properties
1569 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; } 1574 static EBorderCollapse initialBorderCollapse() { return BSEPARATE; }
1570 static EBorderStyle initialBorderStyle() { return BNONE; } 1575 static EBorderStyle initialBorderStyle() { return BNONE; }
1571 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; } 1576 static OutlineIsAuto initialOutlineStyleIsAuto() { return AUTO_OFF; }
1572 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); } 1577 static NinePieceImage initialNinePieceImage() { return NinePieceImage(); }
1573 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed) , Length(0, Fixed)); } 1578 static LengthSize initialBorderRadius() { return LengthSize(Length(0, Fixed) , Length(0, Fixed)); }
1574 static ECaptionSide initialCaptionSide() { return CAPTOP; } 1579 static ECaptionSide initialCaptionSide() { return CAPTOP; }
1575 static EClear initialClear() { return CNONE; } 1580 static EClear initialClear() { return CNONE; }
1576 static LengthBox initialClip() { return LengthBox(); } 1581 static LengthBox initialClip() { return LengthBox(); }
1577 static TextDirection initialDirection() { return LTR; } 1582 static TextDirection initialDirection() { return LTR; }
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1941 } 1946 }
1942 1947
1943 inline bool ComputedStyle::hasPseudoElementStyle() const 1948 inline bool ComputedStyle::hasPseudoElementStyle() const
1944 { 1949 {
1945 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1950 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1946 } 1951 }
1947 1952
1948 } // namespace blink 1953 } // namespace blink
1949 1954
1950 #endif // ComputedStyle_h 1955 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « Source/core/style/AuthorStyleInfo.h ('k') | Source/core/style/StyleRareNonInheritedData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698