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

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

Issue 2570463002: Moved -webkit-print-color-adjust property to be generated. (Closed)
Patch Set: Rebase Created 4 years 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) 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 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved. 5 * Copyright (C) 2011 Adobe Systems Incorporated. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 other.m_rareNonInheritedData->m_maskBoxImage) 941 other.m_rareNonInheritedData->m_maskBoxImage)
942 return true; 942 return true;
943 } 943 }
944 944
945 return false; 945 return false;
946 } 946 }
947 947
948 bool ComputedStyle::diffNeedsPaintInvalidationObject( 948 bool ComputedStyle::diffNeedsPaintInvalidationObject(
949 const ComputedStyle& other) const { 949 const ComputedStyle& other) const {
950 if (visibility() != other.visibility() || 950 if (visibility() != other.visibility() ||
951 m_inheritedData.m_printColorAdjust != 951 printColorAdjust() != other.printColorAdjust() ||
952 other.m_inheritedData.m_printColorAdjust ||
953 m_inheritedData.m_insideLink != other.m_inheritedData.m_insideLink || 952 m_inheritedData.m_insideLink != other.m_inheritedData.m_insideLink ||
954 !m_surround->border.visuallyEqual(other.m_surround->border) || 953 !m_surround->border.visuallyEqual(other.m_surround->border) ||
955 *m_background != *other.m_background) 954 *m_background != *other.m_background)
956 return true; 955 return true;
957 956
958 if (m_rareInheritedData.get() != other.m_rareInheritedData.get()) { 957 if (m_rareInheritedData.get() != other.m_rareInheritedData.get()) {
959 if (m_rareInheritedData->userModify != 958 if (m_rareInheritedData->userModify !=
960 other.m_rareInheritedData->userModify || 959 other.m_rareInheritedData->userModify ||
961 m_rareInheritedData->userSelect != 960 m_rareInheritedData->userSelect !=
962 other.m_rareInheritedData->userSelect || 961 other.m_rareInheritedData->userSelect ||
(...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
2474 if (value < 0) 2473 if (value < 0)
2475 fvalue -= 0.5f; 2474 fvalue -= 0.5f;
2476 else 2475 else
2477 fvalue += 0.5f; 2476 fvalue += 0.5f;
2478 } 2477 }
2479 2478
2480 return roundForImpreciseConversion<int>(fvalue / zoomFactor); 2479 return roundForImpreciseConversion<int>(fvalue / zoomFactor);
2481 } 2480 }
2482 2481
2483 } // namespace blink 2482 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/style/ComputedStyle.h ('k') | third_party/WebKit/Source/core/style/ComputedStyleConstants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698