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

Side by Side Diff: third_party/WebKit/Source/core/testing/Internals.cpp

Issue 2614883007: Change computed style enums to be prefixed with 'k'. (Closed)
Patch Set: Rebase on ToT. Created 3 years, 11 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
OLDNEW
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 2632 matching lines...) Expand 10 before | Expand all | Expand 10 after
2643 bool Internals::selectPopupItemStyleIsRtl(Node* node, int itemIndex) { 2643 bool Internals::selectPopupItemStyleIsRtl(Node* node, int itemIndex) {
2644 if (!node || !isHTMLSelectElement(*node)) 2644 if (!node || !isHTMLSelectElement(*node))
2645 return false; 2645 return false;
2646 2646
2647 HTMLSelectElement& select = toHTMLSelectElement(*node); 2647 HTMLSelectElement& select = toHTMLSelectElement(*node);
2648 if (itemIndex < 0 || 2648 if (itemIndex < 0 ||
2649 static_cast<size_t>(itemIndex) >= select.listItems().size()) 2649 static_cast<size_t>(itemIndex) >= select.listItems().size())
2650 return false; 2650 return false;
2651 const ComputedStyle* itemStyle = 2651 const ComputedStyle* itemStyle =
2652 select.itemComputedStyle(*select.listItems()[itemIndex]); 2652 select.itemComputedStyle(*select.listItems()[itemIndex]);
2653 return itemStyle && itemStyle->direction() == TextDirection::Rtl; 2653 return itemStyle && itemStyle->direction() == TextDirection::kRtl;
2654 } 2654 }
2655 2655
2656 int Internals::selectPopupItemStyleFontHeight(Node* node, int itemIndex) { 2656 int Internals::selectPopupItemStyleFontHeight(Node* node, int itemIndex) {
2657 if (!node || !isHTMLSelectElement(*node)) 2657 if (!node || !isHTMLSelectElement(*node))
2658 return false; 2658 return false;
2659 2659
2660 HTMLSelectElement& select = toHTMLSelectElement(*node); 2660 HTMLSelectElement& select = toHTMLSelectElement(*node);
2661 if (itemIndex < 0 || 2661 if (itemIndex < 0 ||
2662 static_cast<size_t>(itemIndex) >= select.listItems().size()) 2662 static_cast<size_t>(itemIndex) >= select.listItems().size())
2663 return false; 2663 return false;
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after
3092 3092
3093 void Internals::crash() { 3093 void Internals::crash() {
3094 CHECK(false) << "Intentional crash"; 3094 CHECK(false) << "Intentional crash";
3095 } 3095 }
3096 3096
3097 void Internals::setIsLowEndDevice(bool isLowEndDevice) { 3097 void Internals::setIsLowEndDevice(bool isLowEndDevice) {
3098 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice); 3098 MemoryCoordinator::setIsLowEndDeviceForTesting(isLowEndDevice);
3099 } 3099 }
3100 3100
3101 } // namespace blink 3101 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698