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

Side by Side Diff: Source/core/layout/LayoutFrameSet.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/layout/LayoutFrameSet.h ('k') | Source/core/layout/LayoutFullScreen.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /** 1 /**
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 2000 Simon Hausmann <hausmann@kde.org> 3 * (C) 2000 Simon Hausmann <hausmann@kde.org>
4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de) 4 * (C) 2000 Stefan Schimanski (1Stein@gmx.de)
5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc. 5 * Copyright (C) 2004, 2005, 2006 Apple Computer, Inc.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after
548 548
549 int splitPosition = axis.m_sizes[0]; 549 int splitPosition = axis.m_sizes[0];
550 for (size_t i = 1; i < size; ++i) { 550 for (size_t i = 1; i < size; ++i) {
551 if (position >= splitPosition && position < splitPosition + borderThickn ess) 551 if (position >= splitPosition && position < splitPosition + borderThickn ess)
552 return i; 552 return i;
553 splitPosition += borderThickness + axis.m_sizes[i]; 553 splitPosition += borderThickness + axis.m_sizes[i];
554 } 554 }
555 return noSplit; 555 return noSplit;
556 } 556 }
557 557
558 bool LayoutFrameSet::isChildAllowed(LayoutObject* child, const LayoutStyle&) con st 558 bool LayoutFrameSet::isChildAllowed(LayoutObject* child, const ComputedStyle&) c onst
559 { 559 {
560 return child->isFrame() || child->isFrameSet(); 560 return child->isFrame() || child->isFrameSet();
561 } 561 }
562 562
563 CursorDirective LayoutFrameSet::getCursor(const LayoutPoint& point, Cursor& curs or) const 563 CursorDirective LayoutFrameSet::getCursor(const LayoutPoint& point, Cursor& curs or) const
564 { 564 {
565 IntPoint roundedPoint = roundedIntPoint(point); 565 IntPoint roundedPoint = roundedIntPoint(point);
566 if (canResizeRow(roundedPoint)) { 566 if (canResizeRow(roundedPoint)) {
567 cursor = rowResizeCursor(); 567 cursor = rowResizeCursor();
568 return SetCursor; 568 return SetCursor;
569 } 569 }
570 if (canResizeColumn(roundedPoint)) { 570 if (canResizeColumn(roundedPoint)) {
571 cursor = columnResizeCursor(); 571 cursor = columnResizeCursor();
572 return SetCursor; 572 return SetCursor;
573 } 573 }
574 return LayoutBox::getCursor(point, cursor); 574 return LayoutBox::getCursor(point, cursor);
575 } 575 }
576 576
577 } // namespace blink 577 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/layout/LayoutFrameSet.h ('k') | Source/core/layout/LayoutFullScreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698