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

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

Issue 2761863002: Add StyleDifference::needsVisualRectUpdate (Closed)
Patch Set: Still keep visibility change detection for full paint invalidation. Will optimize in later CLs Created 3 years, 9 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 3670 matching lines...) Expand 10 before | Expand all | Expand 10 after
3681 bool scrollAnchorDisablingPropertyChanged(const ComputedStyle& other, 3681 bool scrollAnchorDisablingPropertyChanged(const ComputedStyle& other,
3682 const StyleDifference&) const; 3682 const StyleDifference&) const;
3683 bool diffNeedsFullLayoutAndPaintInvalidation( 3683 bool diffNeedsFullLayoutAndPaintInvalidation(
3684 const ComputedStyle& other) const; 3684 const ComputedStyle& other) const;
3685 bool diffNeedsFullLayout(const ComputedStyle& other) const; 3685 bool diffNeedsFullLayout(const ComputedStyle& other) const;
3686 bool diffNeedsPaintInvalidationSubtree(const ComputedStyle& other) const; 3686 bool diffNeedsPaintInvalidationSubtree(const ComputedStyle& other) const;
3687 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const; 3687 bool diffNeedsPaintInvalidationObject(const ComputedStyle& other) const;
3688 bool diffNeedsPaintInvalidationObjectForPaintImage( 3688 bool diffNeedsPaintInvalidationObjectForPaintImage(
3689 const StyleImage*, 3689 const StyleImage*,
3690 const ComputedStyle& other) const; 3690 const ComputedStyle& other) const;
3691 bool diffNeedsVisualRectUpdate(const ComputedStyle& other) const;
3691 void updatePropertySpecificDifferences(const ComputedStyle& other, 3692 void updatePropertySpecificDifferences(const ComputedStyle& other,
3692 StyleDifference&) const; 3693 StyleDifference&) const;
3693 3694
3694 static bool shadowListHasCurrentColor(const ShadowList*); 3695 static bool shadowListHasCurrentColor(const ShadowList*);
3695 3696
3696 StyleInheritedVariables& mutableInheritedVariables(); 3697 StyleInheritedVariables& mutableInheritedVariables();
3697 StyleNonInheritedVariables& mutableNonInheritedVariables(); 3698 StyleNonInheritedVariables& mutableNonInheritedVariables();
3698 }; 3699 };
3699 3700
3700 // FIXME: Reduce/remove the dependency on zoom adjusted int values. 3701 // FIXME: Reduce/remove the dependency on zoom adjusted int values.
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
3783 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId); 3784 m_nonInheritedData.m_pseudoBits |= 1 << (pseudo - FirstPublicPseudoId);
3784 } 3785 }
3785 3786
3786 inline bool ComputedStyle::hasPseudoElementStyle() const { 3787 inline bool ComputedStyle::hasPseudoElementStyle() const {
3787 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask; 3788 return m_nonInheritedData.m_pseudoBits & ElementPseudoIdMask;
3788 } 3789 }
3789 3790
3790 } // namespace blink 3791 } // namespace blink
3791 3792
3792 #endif // ComputedStyle_h 3793 #endif // ComputedStyle_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/paint/BoxPaintInvalidator.cpp ('k') | third_party/WebKit/Source/core/style/ComputedStyle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698