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

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

Issue 2812593005: Rename cleanup in comments in style/ directory. (Closed)
Patch Set: Created 3 years, 8 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 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All
6 * rights reserved. 6 * rights reserved.
7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * 8 *
9 * This library is free software; you can redistribute it and/or 9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU Library General Public 10 * modify it under the terms of the GNU Library General Public
(...skipping 3263 matching lines...) Expand 10 before | Expand all | Expand 10 after
3274 // negZOrderList 3274 // negZOrderList
3275 // and posZOrderList) in their enclosing stacking contexts. 3275 // and posZOrderList) in their enclosing stacking contexts.
3276 // 3276 //
3277 // [1] According to CSS2.1, Appendix E.2.8 3277 // [1] According to CSS2.1, Appendix E.2.8
3278 // (https://www.w3.org/TR/CSS21/zindex.html), 3278 // (https://www.w3.org/TR/CSS21/zindex.html),
3279 // positioned elements with 'z-index: auto' are "treated as if it created a 3279 // positioned elements with 'z-index: auto' are "treated as if it created a
3280 // new stacking context" and z-ordered together with other elements with 3280 // new stacking context" and z-ordered together with other elements with
3281 // 'z-index: 0'. The difference of them from normal stacking contexts is that 3281 // 'z-index: 0'. The difference of them from normal stacking contexts is that
3282 // they don't determine the stacking of the elements underneath them. (Note: 3282 // they don't determine the stacking of the elements underneath them. (Note:
3283 // There are also other elements treated as stacking context during painting, 3283 // There are also other elements treated as stacking context during painting,
3284 // but not managed in stacks. See ObjectPainter::paintAllPhasesAtomically().) 3284 // but not managed in stacks. See ObjectPainter::PaintAllPhasesAtomically().)
3285 void UpdateIsStackingContext(bool is_document_element, bool is_in_top_layer); 3285 void UpdateIsStackingContext(bool is_document_element, bool is_in_top_layer);
3286 bool IsStacked() const { 3286 bool IsStacked() const {
3287 return IsStackingContext() || GetPosition() != EPosition::kStatic; 3287 return IsStackingContext() || GetPosition() != EPosition::kStatic;
3288 } 3288 }
3289 3289
3290 // Pseudo-styles 3290 // Pseudo-styles
3291 bool HasAnyPublicPseudoStyles() const; 3291 bool HasAnyPublicPseudoStyles() const;
3292 bool HasPseudoStyle(PseudoId) const; 3292 bool HasPseudoStyle(PseudoId) const;
3293 void SetHasPseudoStyle(PseudoId); 3293 void SetHasPseudoStyle(PseudoId);
3294 bool HasUniquePseudoStyle() const; 3294 bool HasUniquePseudoStyle() const;
3295 bool HasPseudoElementStyle() const; 3295 bool HasPseudoElementStyle() const;
3296 3296
3297 // Note: canContainAbsolutePositionObjects should return true if 3297 // Note: CanContainAbsolutePositionObjects should return true if
3298 // canContainFixedPositionObjects. We currently never use this value 3298 // CanContainFixedPositionObjects. We currently never use this value
3299 // directly, always OR'ing it with canContainFixedPositionObjects. 3299 // directly, always OR'ing it with CanContainFixedPositionObjects.
3300 bool CanContainAbsolutePositionObjects() const { 3300 bool CanContainAbsolutePositionObjects() const {
3301 return GetPosition() != EPosition::kStatic; 3301 return GetPosition() != EPosition::kStatic;
3302 } 3302 }
3303 bool CanContainFixedPositionObjects() const { 3303 bool CanContainFixedPositionObjects() const {
3304 return HasTransformRelatedProperty() || ContainsPaint(); 3304 return HasTransformRelatedProperty() || ContainsPaint();
3305 } 3305 }
3306 3306
3307 // Whitespace utility functions. 3307 // Whitespace utility functions.
3308 static bool AutoWrap(EWhiteSpace ws) { 3308 static bool AutoWrap(EWhiteSpace ws) {
3309 // Nowrap and pre don't automatically wrap. 3309 // Nowrap and pre don't automatically wrap.
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
3503 display == EDisplay::kTableHeaderGroup || 3503 display == EDisplay::kTableHeaderGroup ||
3504 display == EDisplay::kTableFooterGroup || 3504 display == EDisplay::kTableFooterGroup ||
3505 display == EDisplay::kTableRow || 3505 display == EDisplay::kTableRow ||
3506 display == EDisplay::kTableColumnGroup || 3506 display == EDisplay::kTableColumnGroup ||
3507 display == EDisplay::kTableColumn || 3507 display == EDisplay::kTableColumn ||
3508 display == EDisplay::kTableCell || 3508 display == EDisplay::kTableCell ||
3509 display == EDisplay::kTableCaption; 3509 display == EDisplay::kTableCaption;
3510 } 3510 }
3511 3511
3512 // Color accessors are all private to make sure callers use 3512 // Color accessors are all private to make sure callers use
3513 // visitedDependentColor instead to access them. 3513 // VisitedDependentColor instead to access them.
3514 StyleColor BorderLeftColor() const { 3514 StyleColor BorderLeftColor() const {
3515 return surround_->border_.Left().GetColor(); 3515 return surround_->border_.Left().GetColor();
3516 } 3516 }
3517 StyleColor BorderRightColor() const { 3517 StyleColor BorderRightColor() const {
3518 return surround_->border_.Right().GetColor(); 3518 return surround_->border_.Right().GetColor();
3519 } 3519 }
3520 StyleColor BorderTopColor() const { 3520 StyleColor BorderTopColor() const {
3521 return surround_->border_.Top().GetColor(); 3521 return surround_->border_.Top().GetColor();
3522 } 3522 }
3523 StyleColor BorderBottomColor() const { 3523 StyleColor BorderBottomColor() const {
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
3711 pseudo_bits_ |= 1 << (pseudo - kFirstPublicPseudoId); 3711 pseudo_bits_ |= 1 << (pseudo - kFirstPublicPseudoId);
3712 } 3712 }
3713 3713
3714 inline bool ComputedStyle::HasPseudoElementStyle() const { 3714 inline bool ComputedStyle::HasPseudoElementStyle() const {
3715 return pseudo_bits_ & kElementPseudoIdMask; 3715 return pseudo_bits_ & kElementPseudoIdMask;
3716 } 3716 }
3717 3717
3718 } // namespace blink 3718 } // namespace blink
3719 3719
3720 #endif // ComputedStyle_h 3720 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/CachedUAStyle.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