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

Side by Side Diff: Source/core/rendering/style/RenderStyle.cpp

Issue 222473005: Don't repaint when setting border or outline 0 with style none (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: make cross platform Created 6 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org) 2 * Copyright (C) 1999 Antti Koivisto (koivisto@kde.org)
3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved. 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserved.
4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 4 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 604 matching lines...) Expand 10 before | Expand all | Expand 10 after
615 changedContextSensitiveProperties |= ContextSensitivePropertyFilter; 615 changedContextSensitiveProperties |= ContextSensitivePropertyFilter;
616 } 616 }
617 617
618 if (rareNonInheritedData->m_mask != other.rareNonInheritedData->m_mask 618 if (rareNonInheritedData->m_mask != other.rareNonInheritedData->m_mask
619 || rareNonInheritedData->m_maskBoxImage != other.rareNonInheritedData->m _maskBoxImage) 619 || rareNonInheritedData->m_maskBoxImage != other.rareNonInheritedData->m _maskBoxImage)
620 return StyleDifferenceRepaintLayer; 620 return StyleDifferenceRepaintLayer;
621 621
622 if (inherited_flags._visibility != other.inherited_flags._visibility 622 if (inherited_flags._visibility != other.inherited_flags._visibility
623 || inherited_flags.m_printColorAdjust != other.inherited_flags.m_printCo lorAdjust 623 || inherited_flags.m_printColorAdjust != other.inherited_flags.m_printCo lorAdjust
624 || inherited_flags._insideLink != other.inherited_flags._insideLink 624 || inherited_flags._insideLink != other.inherited_flags._insideLink
625 || surround->border != other.surround->border 625 || !surround->border.visuallyEqual(other.surround->border)
626 || *m_background.get() != *other.m_background.get() 626 || !m_background->visuallyEqual(*other.m_background)
627 || rareInheritedData->userModify != other.rareInheritedData->userModify 627 || rareInheritedData->userModify != other.rareInheritedData->userModify
628 || rareInheritedData->userSelect != other.rareInheritedData->userSelect 628 || rareInheritedData->userSelect != other.rareInheritedData->userSelect
629 || rareNonInheritedData->userDrag != other.rareNonInheritedData->userDra g 629 || rareNonInheritedData->userDrag != other.rareNonInheritedData->userDra g
630 || rareNonInheritedData->m_borderFit != other.rareNonInheritedData->m_bo rderFit 630 || rareNonInheritedData->m_borderFit != other.rareNonInheritedData->m_bo rderFit
631 || rareNonInheritedData->m_objectFit != other.rareNonInheritedData->m_ob jectFit 631 || rareNonInheritedData->m_objectFit != other.rareNonInheritedData->m_ob jectFit
632 || rareNonInheritedData->m_objectPosition != other.rareNonInheritedData- >m_objectPosition 632 || rareNonInheritedData->m_objectPosition != other.rareNonInheritedData- >m_objectPosition
633 || rareInheritedData->m_imageRendering != other.rareInheritedData->m_ima geRendering) 633 || rareInheritedData->m_imageRendering != other.rareInheritedData->m_ima geRendering)
634 return StyleDifferenceRepaint; 634 return StyleDifferenceRepaint;
635 635
636 // FIXME: The current spec is being reworked to remove dependencies betw een exclusions and affected 636 // FIXME: The current spec is being reworked to remove dependencies betw een exclusions and affected
(...skipping 1017 matching lines...) Expand 10 before | Expand all | Expand 10 after
1654 // right 1654 // right
1655 radiiSum = radii.topRight().height() + radii.bottomRight().height(); 1655 radiiSum = radii.topRight().height() + radii.bottomRight().height();
1656 if (radiiSum > rect.height()) 1656 if (radiiSum > rect.height())
1657 factor = std::min(rect.height() / radiiSum, factor); 1657 factor = std::min(rect.height() / radiiSum, factor);
1658 1658
1659 ASSERT(factor <= 1); 1659 ASSERT(factor <= 1);
1660 return factor; 1660 return factor;
1661 } 1661 }
1662 1662
1663 } // namespace WebCore 1663 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/rendering/style/BorderValue.h ('k') | Source/core/rendering/style/StyleBackgroundData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698