OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010 Google Inc. All rights reserved. | 3 * Copyright (C) 2010 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
7 * met: | 7 * met: |
8 * | 8 * |
9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 if (isVertical) | 135 if (isVertical) |
136 thumbLocation.setY(thumbLocation.y() + track->contentHeight() - thumb->h
eight() - offset); | 136 thumbLocation.setY(thumbLocation.y() + track->contentHeight() - thumb->h
eight() - offset); |
137 else if (style()->isLeftToRightDirection()) | 137 else if (style()->isLeftToRightDirection()) |
138 thumbLocation.setX(thumbLocation.x() + offset); | 138 thumbLocation.setX(thumbLocation.x() + offset); |
139 else | 139 else |
140 thumbLocation.setX(thumbLocation.x() - offset); | 140 thumbLocation.setX(thumbLocation.x() - offset); |
141 thumb->setLocation(thumbLocation); | 141 thumb->setLocation(thumbLocation); |
142 | 142 |
143 // We need one-off invalidation code here because painting of the timeline e
lement does not go through style. | 143 // We need one-off invalidation code here because painting of the timeline e
lement does not go through style. |
144 // Instead it has a custom implementation in C++ code. | 144 // Instead it has a custom implementation in C++ code. |
145 // Therefore the style system cannot understand when it needs to be repainte
d. | 145 // Therefore the style system cannot understand when it needs to be paint in
validated. |
146 setShouldDoFullPaintInvalidation(true); | 146 setShouldDoFullPaintInvalidation(true); |
147 } | 147 } |
148 | 148 |
149 } // namespace blink | 149 } // namespace blink |
OLD | NEW |