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

Side by Side Diff: Source/core/layout/style/LayoutStyle.cpp

Issue 900443006: Check visited color for visual diff. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Avoid privacy issue Created 5 years, 10 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
« no previous file with comments | « LayoutTests/fast/history/visited-link-hover-expected.html ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 689
690 if (rareNonInheritedData->opacity != other.rareNonInheritedData->opacity ) 690 if (rareNonInheritedData->opacity != other.rareNonInheritedData->opacity )
691 diff.setOpacityChanged(); 691 diff.setOpacityChanged();
692 692
693 if (rareNonInheritedData->m_filter != other.rareNonInheritedData->m_filt er) 693 if (rareNonInheritedData->m_filter != other.rareNonInheritedData->m_filt er)
694 diff.setFilterChanged(); 694 diff.setFilterChanged();
695 } 695 }
696 696
697 if (!diff.needsPaintInvalidation()) { 697 if (!diff.needsPaintInvalidation()) {
698 if (inherited->color != other.inherited->color 698 if (inherited->color != other.inherited->color
699 || inherited->visitedLinkColor != other.inherited->visitedLinkColor
699 || inherited_flags.m_textUnderline != other.inherited_flags.m_textUn derline 700 || inherited_flags.m_textUnderline != other.inherited_flags.m_textUn derline
700 || visual->textDecoration != other.visual->textDecoration) { 701 || visual->textDecoration != other.visual->textDecoration) {
701 diff.setTextOrColorChanged(); 702 diff.setTextOrColorChanged();
702 } else if (rareNonInheritedData.get() != other.rareNonInheritedData.get( )) { 703 } else if (rareNonInheritedData.get() != other.rareNonInheritedData.get( )) {
703 if (rareNonInheritedData->m_textDecorationStyle != other.rareNonInhe ritedData->m_textDecorationStyle 704 if (rareNonInheritedData->m_textDecorationStyle != other.rareNonInhe ritedData->m_textDecorationStyle
704 || rareNonInheritedData->m_textDecorationColor != other.rareNonI nheritedData->m_textDecorationColor) 705 || rareNonInheritedData->m_textDecorationColor != other.rareNonI nheritedData->m_textDecorationColor)
705 diff.setTextOrColorChanged(); 706 diff.setTextOrColorChanged();
706 } else if (rareInheritedData.get() != other.rareInheritedData.get()) { 707 } else if (rareInheritedData.get() != other.rareInheritedData.get()) {
707 if (rareInheritedData->textFillColor() != other.rareInheritedData->t extFillColor() 708 if (rareInheritedData->textFillColor() != other.rareInheritedData->t extFillColor()
708 || rareInheritedData->textStrokeColor() != other.rareInheritedDa ta->textStrokeColor() 709 || rareInheritedData->textStrokeColor() != other.rareInheritedDa ta->textStrokeColor()
(...skipping 956 matching lines...) Expand 10 before | Expand all | Expand 10 after
1665 horizontal || includeLogicalRightEdge); 1666 horizontal || includeLogicalRightEdge);
1666 1667
1667 edges[BSLeft] = BorderEdge(borderLeftWidth(), 1668 edges[BSLeft] = BorderEdge(borderLeftWidth(),
1668 visitedDependentColor(CSSPropertyBorderLeftColor), 1669 visitedDependentColor(CSSPropertyBorderLeftColor),
1669 borderLeftStyle(), 1670 borderLeftStyle(),
1670 borderLeftIsTransparent(), 1671 borderLeftIsTransparent(),
1671 !horizontal || includeLogicalLeftEdge); 1672 !horizontal || includeLogicalLeftEdge);
1672 } 1673 }
1673 1674
1674 } // namespace blink 1675 } // namespace blink
OLDNEW
« no previous file with comments | « LayoutTests/fast/history/visited-link-hover-expected.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698