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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutScrollbar.cpp

Issue 2670643004: Rename EDisplay values with k prefix. (Closed)
Patch Set: Rebase Created 3 years, 9 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) 2008, 2009 Apple Inc. All Rights Reserved. 2 * Copyright (C) 2008, 2009 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 bool destroy) { 221 bool destroy) {
222 if (partType == NoPart) 222 if (partType == NoPart)
223 return; 223 return;
224 224
225 RefPtr<ComputedStyle> partStyle = 225 RefPtr<ComputedStyle> partStyle =
226 !destroy 226 !destroy
227 ? getScrollbarPseudoStyle(partType, pseudoForScrollbarPart(partType)) 227 ? getScrollbarPseudoStyle(partType, pseudoForScrollbarPart(partType))
228 : PassRefPtr<ComputedStyle>(nullptr); 228 : PassRefPtr<ComputedStyle>(nullptr);
229 229
230 bool needLayoutObject = 230 bool needLayoutObject =
231 !destroy && partStyle && partStyle->display() != EDisplay::None; 231 !destroy && partStyle && partStyle->display() != EDisplay::kNone;
232 232
233 if (needLayoutObject && partStyle->display() != EDisplay::Block) { 233 if (needLayoutObject && partStyle->display() != EDisplay::kBlock) {
234 // See if we are a button that should not be visible according to OS 234 // See if we are a button that should not be visible according to OS
235 // settings. 235 // settings.
236 WebScrollbarButtonsPlacement buttonsPlacement = theme().buttonsPlacement(); 236 WebScrollbarButtonsPlacement buttonsPlacement = theme().buttonsPlacement();
237 switch (partType) { 237 switch (partType) {
238 case BackButtonStartPart: 238 case BackButtonStartPart:
239 needLayoutObject = 239 needLayoutObject =
240 (buttonsPlacement == WebScrollbarButtonsPlacementSingle || 240 (buttonsPlacement == WebScrollbarButtonsPlacementSingle ||
241 buttonsPlacement == WebScrollbarButtonsPlacementDoubleStart || 241 buttonsPlacement == WebScrollbarButtonsPlacementDoubleStart ||
242 buttonsPlacement == WebScrollbarButtonsPlacementDoubleBoth); 242 buttonsPlacement == WebScrollbarButtonsPlacementDoubleBoth);
243 break; 243 break;
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 } 388 }
389 } 389 }
390 390
391 void LayoutScrollbar::setVisualRect(const LayoutRect& rect) { 391 void LayoutScrollbar::setVisualRect(const LayoutRect& rect) {
392 Scrollbar::setVisualRect(rect); 392 Scrollbar::setVisualRect(rect);
393 for (auto& part : m_parts) 393 for (auto& part : m_parts)
394 part.value->setVisualRect(rect); 394 part.value->setVisualRect(rect);
395 } 395 }
396 396
397 } // namespace blink 397 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutRubyRun.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698