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

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

Issue 2825343003: Clean compositing inputs for location APIs for sticky-affected elements. (Closed)
Patch Set: First pass addressing reviewer comments Created 3 years, 7 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 1544 matching lines...) Expand 10 before | Expand all | Expand 10 after
1555 PageSizeType GetPageSizeType() const { 1555 PageSizeType GetPageSizeType() const {
1556 return static_cast<PageSizeType>(rare_non_inherited_data_->page_size_type_); 1556 return static_cast<PageSizeType>(rare_non_inherited_data_->page_size_type_);
1557 } 1557 }
1558 void SetPageSize(const FloatSize& s) { 1558 void SetPageSize(const FloatSize& s) {
1559 SET_VAR(rare_non_inherited_data_, page_size_, s); 1559 SET_VAR(rare_non_inherited_data_, page_size_, s);
1560 } 1560 }
1561 void SetPageSizeType(PageSizeType t) { 1561 void SetPageSizeType(PageSizeType t) {
1562 SET_VAR(rare_non_inherited_data_, page_size_type_, t); 1562 SET_VAR(rare_non_inherited_data_, page_size_type_, t);
1563 } 1563 }
1564 1564
1565 // sticky subtrees
1566 bool IsInStickySubtree() const {
1567 return rare_inherited_data_->is_in_sticky_subtree_;
1568 }
1569 void SetIsInStickySubtree(bool b) {
1570 SET_VAR(rare_inherited_data_, is_in_sticky_subtree_, b);
1571 }
1572
1565 // Text decoration properties. 1573 // Text decoration properties.
1566 // text-decoration-line 1574 // text-decoration-line
1567 static TextDecoration InitialTextDecoration() { return kTextDecorationNone; } 1575 static TextDecoration InitialTextDecoration() { return kTextDecorationNone; }
1568 TextDecoration GetTextDecoration() const { 1576 TextDecoration GetTextDecoration() const {
1569 return static_cast<TextDecoration>(visual_->text_decoration); 1577 return static_cast<TextDecoration>(visual_->text_decoration);
1570 } 1578 }
1571 void SetTextDecoration(TextDecoration v) { 1579 void SetTextDecoration(TextDecoration v) {
1572 SET_VAR(visual_, text_decoration, v); 1580 SET_VAR(visual_, text_decoration, v);
1573 } 1581 }
1574 1582
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after
3741 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId))); 3749 PseudoBitsInternal() | 1 << (pseudo - kFirstPublicPseudoId)));
3742 } 3750 }
3743 3751
3744 inline bool ComputedStyle::HasPseudoElementStyle() const { 3752 inline bool ComputedStyle::HasPseudoElementStyle() const {
3745 return PseudoBitsInternal() & kElementPseudoIdMask; 3753 return PseudoBitsInternal() & kElementPseudoIdMask;
3746 } 3754 }
3747 3755
3748 } // namespace blink 3756 } // namespace blink
3749 3757
3750 #endif // ComputedStyle_h 3758 #endif // ComputedStyle_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698