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

Side by Side Diff: Source/core/rendering/style/RenderStyle.h

Issue 144963002: Make pseudo element update work with LocalStyleChange. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixed review issues and removed always true if-tests. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/rendering/style/RenderStyleConstants.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 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 Order rtlOrdering() const { return static_cast<Order>(inherited_flags.m_rtlO rdering); } 431 Order rtlOrdering() const { return static_cast<Order>(inherited_flags.m_rtlO rdering); }
432 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; } 432 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; }
433 433
434 bool isStyleAvailable() const; 434 bool isStyleAvailable() const;
435 435
436 bool hasAnyPublicPseudoStyles() const; 436 bool hasAnyPublicPseudoStyles() const;
437 bool hasPseudoStyle(PseudoId pseudo) const; 437 bool hasPseudoStyle(PseudoId pseudo) const;
438 void setHasPseudoStyle(PseudoId pseudo); 438 void setHasPseudoStyle(PseudoId pseudo);
439 bool hasUniquePseudoStyle() const; 439 bool hasUniquePseudoStyle() const;
440 bool hasPseudoElementStyle() const;
440 441
441 // attribute getter methods 442 // attribute getter methods
442 443
443 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags._ effectiveDisplay); } 444 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags._ effectiveDisplay); }
444 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited _flags._originalDisplay); } 445 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited _flags._originalDisplay); }
445 446
446 Length left() const { return surround->offset.left(); } 447 Length left() const { return surround->offset.left(); }
447 Length right() const { return surround->offset.right(); } 448 Length right() const { return surround->offset.right(); }
448 Length top() const { return surround->offset.top(); } 449 Length top() const { return surround->offset.top(); }
449 Length bottom() const { return surround->offset.bottom(); } 450 Length bottom() const { return surround->offset.bottom(); }
(...skipping 1433 matching lines...) Expand 10 before | Expand all | Expand 10 after
1883 return (1 << (pseudo - 1)) & noninherited_flags._pseudoBits; 1884 return (1 << (pseudo - 1)) & noninherited_flags._pseudoBits;
1884 } 1885 }
1885 1886
1886 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo) 1887 inline void RenderStyle::setHasPseudoStyle(PseudoId pseudo)
1887 { 1888 {
1888 ASSERT(pseudo > NOPSEUDO); 1889 ASSERT(pseudo > NOPSEUDO);
1889 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID); 1890 ASSERT(pseudo < FIRST_INTERNAL_PSEUDOID);
1890 noninherited_flags._pseudoBits |= 1 << (pseudo - 1); 1891 noninherited_flags._pseudoBits |= 1 << (pseudo - 1);
1891 } 1892 }
1892 1893
1894 inline bool RenderStyle::hasPseudoElementStyle() const
1895 {
1896 return noninherited_flags._pseudoBits & PSEUDO_ELEMENT_MASK;
1897 }
1898
1893 } // namespace WebCore 1899 } // namespace WebCore
1894 1900
1895 #endif // RenderStyle_h 1901 #endif // RenderStyle_h
OLDNEW
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | Source/core/rendering/style/RenderStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698