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

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

Issue 2173963002: Ensure that we consistently check contains: paint for fixed position containment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove trailing whitespace Created 4 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
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 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 void setRTLOrdering(Order o) { m_inheritedData.m_rtlOrdering = o; } 475 void setRTLOrdering(Order o) { m_inheritedData.m_rtlOrdering = o; }
476 476
477 bool isStyleAvailable() const; 477 bool isStyleAvailable() const;
478 478
479 bool hasAnyPublicPseudoStyles() const; 479 bool hasAnyPublicPseudoStyles() const;
480 bool hasPseudoStyle(PseudoId) const; 480 bool hasPseudoStyle(PseudoId) const;
481 void setHasPseudoStyle(PseudoId); 481 void setHasPseudoStyle(PseudoId);
482 bool hasUniquePseudoStyle() const; 482 bool hasUniquePseudoStyle() const;
483 bool hasPseudoElementStyle() const; 483 bool hasPseudoElementStyle() const;
484 484
485 // Note: canContainAbsolutePositionObjects should return true if canContainF ixedPositionObjects.
486 // We currently never use this value directly, always OR'ing it with canCont ainFixedPositionObjects.
485 bool canContainAbsolutePositionObjects() const { return position() != Static Position; } 487 bool canContainAbsolutePositionObjects() const { return position() != Static Position; }
486 bool canContainFixedPositionObjects() const { return hasTransformRelatedProp erty() || containsPaint();} 488 bool canContainFixedPositionObjects() const { return hasTransformRelatedProp erty() || containsPaint();}
487 489
488 // attribute getter methods 490 // attribute getter methods
489 491
490 EDisplay display() const { return static_cast<EDisplay>(m_nonInheritedData.m _effectiveDisplay); } 492 EDisplay display() const { return static_cast<EDisplay>(m_nonInheritedData.m _effectiveDisplay); }
491 EDisplay originalDisplay() const { return static_cast<EDisplay>(m_nonInherit edData.m_originalDisplay); } 493 EDisplay originalDisplay() const { return static_cast<EDisplay>(m_nonInherit edData.m_originalDisplay); }
492 494
493 const Length& left() const { return m_surround->offset.left(); } 495 const Length& left() const { return m_surround->offset.left(); }
494 const Length& right() const { return m_surround->offset.right(); } 496 const Length& right() const { return m_surround->offset.right(); }
(...skipping 1566 matching lines...) Expand 10 before | Expand all | Expand 10 after
2061 } 2063 }
2062 2064
2063 inline bool ComputedStyle::hasPseudoElementStyle() const 2065 inline bool ComputedStyle::hasPseudoElementStyle() const
2064 { 2066 {
2065 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 2067 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
2066 } 2068 }
2067 2069
2068 } // namespace blink 2070 } // namespace blink
2069 2071
2070 #endif // ComputedStyle_h 2072 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698