| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2008 Apple Inc. All Rights Reserved. |    2  * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 
|    3  * Copyright (C) 2008, 2009 Google Inc. |    3  * Copyright (C) 2008, 2009 Google Inc. | 
|    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 |    6  * modification, are permitted provided that the following conditions | 
|    7  * are met: |    7  * are met: | 
|    8  * 1. Redistributions of source code must retain the above copyright |    8  * 1. Redistributions of source code must retain the above copyright | 
|    9  *    notice, this list of conditions and the following disclaimer. |    9  *    notice, this list of conditions and the following disclaimer. | 
|   10  * 2. Redistributions in binary form must reproduce the above copyright |   10  * 2. Redistributions in binary form must reproduce the above copyright | 
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  109     GraphicsContextStateSaver stateSaver(*context); |  109     GraphicsContextStateSaver stateSaver(*context); | 
|  110     context->setShouldAntialias(false); |  110     context->setShouldAntialias(false); | 
|  111  |  111  | 
|  112     for (Vector<IntRect>::const_iterator i = tickmarks.begin(); i != tickmarks.e
     nd(); ++i) { |  112     for (Vector<IntRect>::const_iterator i = tickmarks.begin(); i != tickmarks.e
     nd(); ++i) { | 
|  113         // Calculate how far down (in %) the tick-mark should appear. |  113         // Calculate how far down (in %) the tick-mark should appear. | 
|  114         const float percent = static_cast<float>(i->y()) / scrollbar->totalSize(
     ); |  114         const float percent = static_cast<float>(i->y()) / scrollbar->totalSize(
     ); | 
|  115  |  115  | 
|  116         // Calculate how far down (in pixels) the tick-mark should appear. |  116         // Calculate how far down (in pixels) the tick-mark should appear. | 
|  117         const int yPos = rect.y() + (rect.height() * percent); |  117         const int yPos = rect.y() + (rect.height() * percent); | 
|  118  |  118  | 
|  119         context->setFillColor(Color(0xCC, 0xAA, 0x00, 0xFF)); |  | 
|  120         FloatRect tickRect(rect.x(), yPos, rect.width(), 3); |  119         FloatRect tickRect(rect.x(), yPos, rect.width(), 3); | 
|  121         context->fillRect(tickRect); |  120         context->fillRect(tickRect, Color(0xCC, 0xAA, 0x00, 0xFF)); | 
|  122  |  121  | 
|  123         context->setFillColor(Color(0xFF, 0xDD, 0x00, 0xFF)); |  | 
|  124         FloatRect tickStroke(rect.x(), yPos + 1, rect.width(), 1); |  122         FloatRect tickStroke(rect.x(), yPos + 1, rect.width(), 1); | 
|  125         context->fillRect(tickStroke); |  123         context->fillRect(tickStroke, Color(0xFF, 0xDD, 0x00, 0xFF)); | 
|  126     } |  124     } | 
|  127 } |  125 } | 
|  128  |  126  | 
|  129 } // namespace blink |  127 } // namespace blink | 
| OLD | NEW |