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

Side by Side Diff: third_party/WebKit/Source/platform/transforms/TransformOperations.h

Issue 2714283002: Fix unexpected blurry text caused by combination of skew and promotion (Closed)
Patch Set: Layout test update && bug fix 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
« no previous file with comments | « third_party/WebKit/Source/platform/transforms/TransformOperation.h ('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) 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 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com) 6 * Copyright (C) 2006 Graham Dennis (graham.dennis@gmail.com)
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Return true if any of the operation types are 3D operation types (even if 56 // Return true if any of the operation types are 3D operation types (even if
57 // the values describe affine transforms) 57 // the values describe affine transforms)
58 bool has3DOperation() const { 58 bool has3DOperation() const {
59 for (unsigned i = 0; i < m_operations.size(); ++i) 59 for (unsigned i = 0; i < m_operations.size(); ++i)
60 if (m_operations[i]->is3DOperation()) 60 if (m_operations[i]->is3DOperation())
61 return true; 61 return true;
62 return false; 62 return false;
63 } 63 }
64 64
65 bool hasSkew() const {
66 for (unsigned i = 0; i < m_operations.size(); ++i) {
67 if (m_operations[i]->isSkewOperation())
68 return true;
69 }
70 return false;
71 }
72
65 bool dependsOnBoxSize() const { 73 bool dependsOnBoxSize() const {
66 for (unsigned i = 0; i < m_operations.size(); ++i) { 74 for (unsigned i = 0; i < m_operations.size(); ++i) {
67 if (m_operations[i]->dependsOnBoxSize()) 75 if (m_operations[i]->dependsOnBoxSize())
68 return true; 76 return true;
69 } 77 }
70 return false; 78 return false;
71 } 79 }
72 80
73 bool operationsMatch(const TransformOperations&) const; 81 bool operationsMatch(const TransformOperations&) const;
74 82
(...skipping 24 matching lines...) Expand all
99 TransformOperations add(const TransformOperations& addend) const; 107 TransformOperations add(const TransformOperations& addend) const;
100 TransformOperations zoom(double factor) const; 108 TransformOperations zoom(double factor) const;
101 109
102 private: 110 private:
103 Vector<RefPtr<TransformOperation>> m_operations; 111 Vector<RefPtr<TransformOperation>> m_operations;
104 }; 112 };
105 113
106 } // namespace blink 114 } // namespace blink
107 115
108 #endif // TransformOperations_h 116 #endif // TransformOperations_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/transforms/TransformOperation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698