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

Side by Side Diff: third_party/WebKit/Source/core/style/ComputedStyle.h

Issue 2072473003: Change CSS containment should invalidate layout (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: correct LayoutObject::canContainAbsolutePositionObjects Created 4 years, 6 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 450 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; } 461 void setRTLOrdering(Order o) { inherited_flags.m_rtlOrdering = o; }
462 462
463 bool isStyleAvailable() const; 463 bool isStyleAvailable() const;
464 464
465 bool hasAnyPublicPseudoStyles() const; 465 bool hasAnyPublicPseudoStyles() const;
466 bool hasPseudoStyle(PseudoId) const; 466 bool hasPseudoStyle(PseudoId) const;
467 void setHasPseudoStyle(PseudoId); 467 void setHasPseudoStyle(PseudoId);
468 bool hasUniquePseudoStyle() const; 468 bool hasUniquePseudoStyle() const;
469 bool hasPseudoElementStyle() const; 469 bool hasPseudoElementStyle() const;
470 470
471 bool canContainAbsolutePositionObjects() const { return position() != Static Position; }
472 bool canContainFixedPositionObjects() const { return hasTransformRelatedProp erty() || containsPaint();}
473
471 // attribute getter methods 474 // attribute getter methods
472 475
473 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.e ffectiveDisplay); } 476 EDisplay display() const { return static_cast<EDisplay>(noninherited_flags.e ffectiveDisplay); }
474 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited _flags.originalDisplay); } 477 EDisplay originalDisplay() const { return static_cast<EDisplay>(noninherited _flags.originalDisplay); }
475 478
476 const Length& left() const { return surround->offset.left(); } 479 const Length& left() const { return surround->offset.left(); }
477 const Length& right() const { return surround->offset.right(); } 480 const Length& right() const { return surround->offset.right(); }
478 const Length& top() const { return surround->offset.top(); } 481 const Length& top() const { return surround->offset.top(); }
479 const Length& bottom() const { return surround->offset.bottom(); } 482 const Length& bottom() const { return surround->offset.bottom(); }
480 483
(...skipping 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
2025 } 2028 }
2026 2029
2027 inline bool ComputedStyle::hasPseudoElementStyle() const 2030 inline bool ComputedStyle::hasPseudoElementStyle() const
2028 { 2031 {
2029 return noninherited_flags.pseudoBits & ElementPseudoIdMask; 2032 return noninherited_flags.pseudoBits & ElementPseudoIdMask;
2030 } 2033 }
2031 2034
2032 } // namespace blink 2035 } // namespace blink
2033 2036
2034 #endif // ComputedStyle_h 2037 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutObject.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698