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

Side by Side Diff: third_party/WebKit/Source/core/layout/LayoutBox.h

Issue 2657183002: Use full mapLocalToAncestor machinery in ScrollingCoordinator. (Closed)
Patch Set: Delete unused test file Created 3 years, 10 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) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved. 4 * Copyright (C) 2003, 2006, 2007 Apple Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 } 382 }
383 LayoutSize contentBoxOffset() const { 383 LayoutSize contentBoxOffset() const {
384 return LayoutSize(borderLeft() + paddingLeft(), borderTop() + paddingTop()); 384 return LayoutSize(borderLeft() + paddingLeft(), borderTop() + paddingTop());
385 } 385 }
386 // The content box in absolute coords. Ignores transforms. 386 // The content box in absolute coords. Ignores transforms.
387 IntRect absoluteContentBox() const; 387 IntRect absoluteContentBox() const;
388 // The offset of the content box in absolute coords, ignoring transforms. 388 // The offset of the content box in absolute coords, ignoring transforms.
389 IntSize absoluteContentBoxOffset() const; 389 IntSize absoluteContentBoxOffset() const;
390 // The content box converted to absolute coords (taking transforms into 390 // The content box converted to absolute coords (taking transforms into
391 // account). 391 // account).
392 FloatQuad absoluteContentQuad() const; 392 FloatQuad absoluteContentQuad(MapCoordinatesFlags = 0) const;
393 // The enclosing rectangle of the background with given opacity requirement. 393 // The enclosing rectangle of the background with given opacity requirement.
394 LayoutRect backgroundRect(BackgroundRectType) const; 394 LayoutRect backgroundRect(BackgroundRectType) const;
395 395
396 // This returns the content area of the box (excluding padding and border). 396 // This returns the content area of the box (excluding padding and border).
397 // The only difference with contentBoxRect is that computedCSSContentBoxRect 397 // The only difference with contentBoxRect is that computedCSSContentBoxRect
398 // does include the intrinsic padding in the content box as this is what some 398 // does include the intrinsic padding in the content box as this is what some
399 // callers expect (like getComputedStyle). 399 // callers expect (like getComputedStyle).
400 LayoutRect computedCSSContentBoxRect() const { 400 LayoutRect computedCSSContentBoxRect() const {
401 return LayoutRect( 401 return LayoutRect(
402 borderLeft() + computedCSSPaddingLeft(), 402 borderLeft() + computedCSSPaddingLeft(),
(...skipping 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after
1631 1631
1632 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) { 1632 inline bool LayoutBox::isForcedFragmentainerBreakValue(EBreak breakValue) {
1633 return breakValue == BreakColumn || breakValue == BreakLeft || 1633 return breakValue == BreakColumn || breakValue == BreakLeft ||
1634 breakValue == BreakPage || breakValue == BreakRecto || 1634 breakValue == BreakPage || breakValue == BreakRecto ||
1635 breakValue == BreakRight || breakValue == BreakVerso; 1635 breakValue == BreakRight || breakValue == BreakVerso;
1636 } 1636 }
1637 1637
1638 } // namespace blink 1638 } // namespace blink
1639 1639
1640 #endif // LayoutBox_h 1640 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutBox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698