Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
| 8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
| 9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
| 10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 38 case kCheckboxPart: | 38 case kCheckboxPart: |
| 39 case kRadioPart: | 39 case kRadioPart: |
| 40 return LengthBox(0); | 40 return LengthBox(0); |
| 41 default: | 41 default: |
| 42 return zoomed_box; | 42 return zoomed_box; |
| 43 } | 43 } |
| 44 } | 44 } |
| 45 | 45 |
| 46 LengthBox Theme::ControlPadding(ControlPart part, | 46 LengthBox Theme::ControlPadding(ControlPart part, |
| 47 const FontDescription&, | 47 const FontDescription&, |
| 48 const LengthBox& zoomed_box, | 48 const Length& zoomed_box_top, |
| 49 const Length& zoomed_box_right, | |
| 50 const Length& zoomed_box_bottom, | |
| 51 const Length& zoomed_box_left, | |
| 49 float) const { | 52 float) const { |
| 50 switch (part) { | 53 switch (part) { |
| 51 case kMenulistPart: | 54 case kMenulistPart: |
| 52 case kMenulistButtonPart: | 55 case kMenulistButtonPart: |
| 53 case kCheckboxPart: | 56 case kCheckboxPart: |
| 54 case kRadioPart: | 57 case kRadioPart: |
| 55 return LengthBox(0); | 58 return LengthBox(0); |
| 56 default: | 59 default: |
| 57 return zoomed_box; | 60 return LengthBox(zoomed_box_top, zoomed_box_right, zoomed_box_bottom, |
|
shend
2017/04/20 07:07:20
Does this get called often? If so, there might be
nainar
2017/04/20 07:13:09
Yes, it gets called up through StyleResolver::Styl
shend
2017/04/20 07:20:56
That's annoying. Maybe ask alancutter@ for advice
nainar
2017/04/21 00:15:19
Adding him for owners and asking his opinion on th
alancutter (OOO until 2018)
2017/04/21 03:13:32
It was doing a copy anyway, I wouldn't worry about
| |
| 61 zoomed_box_left); | |
| 58 } | 62 } |
| 59 } | 63 } |
| 60 | 64 |
| 61 } // namespace blink | 65 } // namespace blink |
| OLD | NEW |