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

Side by Side Diff: Source/core/layout/style/LayoutStyle.h

Issue 921843004: Stop explicit inheritance if LayoutStyle doesn't change. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 unified diff | Download patch
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 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 && pageBreakBefore == other.pageBreakBefore 220 && pageBreakBefore == other.pageBreakBefore
221 && pageBreakAfter == other.pageBreakAfter 221 && pageBreakAfter == other.pageBreakAfter
222 && pageBreakInside == other.pageBreakInside 222 && pageBreakInside == other.pageBreakInside
223 && styleType == other.styleType 223 && styleType == other.styleType
224 && affectedByFocus == other.affectedByFocus 224 && affectedByFocus == other.affectedByFocus
225 && affectedByHover == other.affectedByHover 225 && affectedByHover == other.affectedByHover
226 && affectedByActive == other.affectedByActive 226 && affectedByActive == other.affectedByActive
227 && affectedByDrag == other.affectedByDrag 227 && affectedByDrag == other.affectedByDrag
228 && pseudoBits == other.pseudoBits 228 && pseudoBits == other.pseudoBits
229 && unicodeBidi == other.unicodeBidi 229 && unicodeBidi == other.unicodeBidi
230 && explicitInheritance == other.explicitInheritance
esprehn 2015/02/13 02:29:13 This doesn't seem right, why is it okay to return
231 && unique == other.unique 230 && unique == other.unique
232 && emptyState == other.emptyState 231 && emptyState == other.emptyState
233 && isLink == other.isLink; 232 && isLink == other.isLink;
234 } 233 }
235 234
236 bool operator!=(const NonInheritedFlags& other) const { return !(*this = = other); } 235 bool operator!=(const NonInheritedFlags& other) const { return !(*this = = other); }
237 236
238 unsigned effectiveDisplay : 5; // EDisplay 237 unsigned effectiveDisplay : 5; // EDisplay
239 unsigned originalDisplay : 5; // EDisplay 238 unsigned originalDisplay : 5; // EDisplay
240 unsigned overflowX : 3; // EOverflow 239 unsigned overflowX : 3; // EOverflow
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after
1851 } 1850 }
1852 1851
1853 inline bool LayoutStyle::hasPseudoElementStyle() const 1852 inline bool LayoutStyle::hasPseudoElementStyle() const
1854 { 1853 {
1855 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK; 1854 return noninherited_flags.pseudoBits & PSEUDO_ELEMENT_MASK;
1856 } 1855 }
1857 1856
1858 } // namespace blink 1857 } // namespace blink
1859 1858
1860 #endif // LayoutStyle_h 1859 #endif // LayoutStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698