| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple 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 | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. 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 2620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2631 bool Internals::selectPopupItemStyleIsRtl(Node* node, int itemIndex) { | 2631 bool Internals::selectPopupItemStyleIsRtl(Node* node, int itemIndex) { |
| 2632 if (!node || !isHTMLSelectElement(*node)) | 2632 if (!node || !isHTMLSelectElement(*node)) |
| 2633 return false; | 2633 return false; |
| 2634 | 2634 |
| 2635 HTMLSelectElement& select = toHTMLSelectElement(*node); | 2635 HTMLSelectElement& select = toHTMLSelectElement(*node); |
| 2636 if (itemIndex < 0 || | 2636 if (itemIndex < 0 || |
| 2637 static_cast<size_t>(itemIndex) >= select.listItems().size()) | 2637 static_cast<size_t>(itemIndex) >= select.listItems().size()) |
| 2638 return false; | 2638 return false; |
| 2639 const ComputedStyle* itemStyle = | 2639 const ComputedStyle* itemStyle = |
| 2640 select.itemComputedStyle(*select.listItems()[itemIndex]); | 2640 select.itemComputedStyle(*select.listItems()[itemIndex]); |
| 2641 return itemStyle && itemStyle->direction() == RTL; | 2641 return itemStyle && itemStyle->direction() == TextDirection::Rtl; |
| 2642 } | 2642 } |
| 2643 | 2643 |
| 2644 int Internals::selectPopupItemStyleFontHeight(Node* node, int itemIndex) { | 2644 int Internals::selectPopupItemStyleFontHeight(Node* node, int itemIndex) { |
| 2645 if (!node || !isHTMLSelectElement(*node)) | 2645 if (!node || !isHTMLSelectElement(*node)) |
| 2646 return false; | 2646 return false; |
| 2647 | 2647 |
| 2648 HTMLSelectElement& select = toHTMLSelectElement(*node); | 2648 HTMLSelectElement& select = toHTMLSelectElement(*node); |
| 2649 if (itemIndex < 0 || | 2649 if (itemIndex < 0 || |
| 2650 static_cast<size_t>(itemIndex) >= select.listItems().size()) | 2650 static_cast<size_t>(itemIndex) >= select.listItems().size()) |
| 2651 return false; | 2651 return false; |
| (...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3080 | 3080 |
| 3081 void Internals::crash() { | 3081 void Internals::crash() { |
| 3082 CHECK(false) << "Intentional crash"; | 3082 CHECK(false) << "Intentional crash"; |
| 3083 } | 3083 } |
| 3084 | 3084 |
| 3085 void Internals::setIsLowEndDevice(bool isLowEndDevice) { | 3085 void Internals::setIsLowEndDevice(bool isLowEndDevice) { |
| 3086 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); | 3086 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); |
| 3087 } | 3087 } |
| 3088 | 3088 |
| 3089 } // namespace blink | 3089 } // namespace blink |
| OLD | NEW |