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

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

Issue 1743803002: Rename enums/functions that collide in chromium style in core/style/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-8
Patch Set: get-names-9: rebase Created 4 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) 2012 Apple Inc. All rights reserved. 2 * Copyright (C) 2012 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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 { 264 {
265 LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread(); 265 LayoutMultiColumnFlowThread* flowThread = multiColumnFlowThread();
266 if (!flowThread->isLayoutPagedFlowThread()) { 266 if (!flowThread->isLayoutPagedFlowThread()) {
267 // If support for the column-fill property isn't enabled, we want to beh ave as if 267 // If support for the column-fill property isn't enabled, we want to beh ave as if
268 // column-fill were auto, so that multicol containers with specified hei ght don't get their 268 // column-fill were auto, so that multicol containers with specified hei ght don't get their
269 // columns balanced (auto-height multicol containers will still get thei r columns balanced, 269 // columns balanced (auto-height multicol containers will still get thei r columns balanced,
270 // even if column-fill isn't 'balance' - in accordance with the spec). P retending that 270 // even if column-fill isn't 'balance' - in accordance with the spec). P retending that
271 // column-fill is auto also matches the old multicol implementation, whi ch has no support 271 // column-fill is auto also matches the old multicol implementation, whi ch has no support
272 // for this property. 272 // for this property.
273 if (RuntimeEnabledFeatures::columnFillEnabled()) { 273 if (RuntimeEnabledFeatures::columnFillEnabled()) {
274 if (multiColumnBlockFlow()->style()->columnFill() == ColumnFillBalan ce) 274 if (multiColumnBlockFlow()->style()->getColumnFill() == ColumnFillBa lance)
275 return true; 275 return true;
276 } 276 }
277 if (LayoutBox* next = nextSiblingBox()) { 277 if (LayoutBox* next = nextSiblingBox()) {
278 if (next->isLayoutMultiColumnSpannerPlaceholder()) { 278 if (next->isLayoutMultiColumnSpannerPlaceholder()) {
279 // If we're followed by a spanner, we need to balance. 279 // If we're followed by a spanner, we need to balance.
280 return true; 280 return true;
281 } 281 }
282 } 282 }
283 } 283 }
284 return !flowThread->columnHeightAvailable(); 284 return !flowThread->columnHeightAvailable();
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 LayoutRect LayoutMultiColumnSet::flowThreadPortionRect() const 453 LayoutRect LayoutMultiColumnSet::flowThreadPortionRect() const
454 { 454 {
455 LayoutRect portionRect(LayoutUnit(), logicalTopInFlowThread(), pageLogicalWi dth(), logicalHeightInFlowThread()); 455 LayoutRect portionRect(LayoutUnit(), logicalTopInFlowThread(), pageLogicalWi dth(), logicalHeightInFlowThread());
456 if (!isHorizontalWritingMode()) 456 if (!isHorizontalWritingMode())
457 return portionRect.transposedRect(); 457 return portionRect.transposedRect();
458 return portionRect; 458 return portionRect;
459 } 459 }
460 460
461 } // namespace blink 461 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698