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

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

Issue 1410833004: Revert "Implement FullScreen using top layer." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 void updateLayerTransformAfterLayout(); 381 void updateLayerTransformAfterLayout();
382 382
383 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad dingRight(); } 383 LayoutUnit contentWidth() const { return clientWidth() - paddingLeft() - pad dingRight(); }
384 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa ddingBottom(); } 384 LayoutUnit contentHeight() const { return clientHeight() - paddingTop() - pa ddingBottom(); }
385 LayoutSize contentSize() const { return LayoutSize(contentWidth(), contentHe ight()); } 385 LayoutSize contentSize() const { return LayoutSize(contentWidth(), contentHe ight()); }
386 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting Mode() ? contentWidth() : contentHeight(); } 386 LayoutUnit contentLogicalWidth() const { return style()->isHorizontalWriting Mode() ? contentWidth() : contentHeight(); }
387 LayoutUnit contentLogicalHeight() const { return style()->isHorizontalWritin gMode() ? contentHeight() : contentWidth(); } 387 LayoutUnit contentLogicalHeight() const { return style()->isHorizontalWritin gMode() ? contentHeight() : contentWidth(); }
388 388
389 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin es (LayoutFlow) 389 // IE extensions. Used to calculate offsetWidth/Height. Overridden by inlin es (LayoutFlow)
390 // to return the remaining width on a given line (and the height of a single line). 390 // to return the remaining width on a given line (and the height of a single line).
391 LayoutUnit offsetWidth() const final { return m_frameRect.width(); } 391 LayoutUnit offsetWidth() const override { return m_frameRect.width(); }
392 LayoutUnit offsetHeight() const final { return m_frameRect.height(); } 392 LayoutUnit offsetHeight() const override { return m_frameRect.height(); }
393 393
394 int pixelSnappedOffsetWidth() const final; 394 int pixelSnappedOffsetWidth() const final;
395 int pixelSnappedOffsetHeight() const final; 395 int pixelSnappedOffsetHeight() const final;
396 396
397 // More IE extensions. clientWidth and clientHeight represent the interior of an object 397 // More IE extensions. clientWidth and clientHeight represent the interior of an object
398 // excluding border and scrollbar. clientLeft/Top are just the borderLeftWi dth and borderTopWidth. 398 // excluding border and scrollbar. clientLeft/Top are just the borderLeftWi dth and borderTopWidth.
399 LayoutUnit clientLeft() const { return borderLeft() + (shouldPlaceBlockDirec tionScrollbarOnLogicalLeft() ? verticalScrollbarWidth() : 0); } 399 LayoutUnit clientLeft() const { return borderLeft() + (shouldPlaceBlockDirec tionScrollbarOnLogicalLeft() ? verticalScrollbarWidth() : 0); }
400 LayoutUnit clientTop() const { return borderTop(); } 400 LayoutUnit clientTop() const { return borderTop(); }
401 LayoutUnit clientWidth() const; 401 LayoutUnit clientWidth() const;
402 LayoutUnit clientHeight() const; 402 LayoutUnit clientHeight() const;
(...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 bool isWritingModeRoot() const { return !parent() || parent()->style()->writ ingMode() != style()->writingMode(); } 722 bool isWritingModeRoot() const { return !parent() || parent()->style()->writ ingMode() != style()->writingMode(); }
723 723
724 bool isDeprecatedFlexItem() const { return !isInline() && !isFloatingOrOutOf FlowPositioned() && parent() && parent()->isDeprecatedFlexibleBox(); } 724 bool isDeprecatedFlexItem() const { return !isInline() && !isFloatingOrOutOf FlowPositioned() && parent() && parent()->isDeprecatedFlexibleBox(); }
725 bool isFlexItemIncludingDeprecated() const { return !isInline() && !isFloati ngOrOutOfFlowPositioned() && parent() && parent()->isFlexibleBoxIncludingDepreca ted(); } 725 bool isFlexItemIncludingDeprecated() const { return !isInline() && !isFloati ngOrOutOfFlowPositioned() && parent() && parent()->isFlexibleBoxIncludingDepreca ted(); }
726 726
727 bool isGridItem() const { return parent() && parent()->isLayoutGrid(); } 727 bool isGridItem() const { return parent() && parent()->isLayoutGrid(); }
728 728
729 LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override; 729 LayoutUnit lineHeight(bool firstLine, LineDirectionMode, LinePositionMode = PositionOnContainingLine) const override;
730 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo sitionMode = PositionOnContainingLine) const override; 730 int baselinePosition(FontBaseline, bool firstLine, LineDirectionMode, LinePo sitionMode = PositionOnContainingLine) const override;
731 731
732 LayoutUnit offsetLeft() const final; 732 LayoutUnit offsetLeft() const override;
733 LayoutUnit offsetTop() const final; 733 LayoutUnit offsetTop() const override;
734 734
735 LayoutPoint flipForWritingModeForChild(const LayoutBox* child, const LayoutP oint&) const; 735 LayoutPoint flipForWritingModeForChild(const LayoutBox* child, const LayoutP oint&) const;
736 LayoutUnit flipForWritingMode(LayoutUnit position) const WARN_UNUSED_RETURN { 736 LayoutUnit flipForWritingMode(LayoutUnit position) const WARN_UNUSED_RETURN {
737 // The offset is in the block direction (y for horizontal writing modes, x for vertical writing modes). 737 // The offset is in the block direction (y for horizontal writing modes, x for vertical writing modes).
738 if (!UNLIKELY(hasFlippedBlocksWritingMode())) 738 if (!UNLIKELY(hasFlippedBlocksWritingMode()))
739 return position; 739 return position;
740 return logicalHeight() - position; 740 return logicalHeight() - position;
741 } 741 }
742 LayoutPoint flipForWritingMode(const LayoutPoint& position) const WARN_UNUSE D_RETURN { 742 LayoutPoint flipForWritingMode(const LayoutPoint& position) const WARN_UNUSE D_RETURN {
743 if (!UNLIKELY(hasFlippedBlocksWritingMode())) 743 if (!UNLIKELY(hasFlippedBlocksWritingMode()))
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 if (UNLIKELY(inlineBoxWrapper() != nullptr)) 1054 if (UNLIKELY(inlineBoxWrapper() != nullptr))
1055 deleteLineBoxWrapper(); 1055 deleteLineBoxWrapper();
1056 } 1056 }
1057 1057
1058 ensureRareData().m_inlineBoxWrapper = boxWrapper; 1058 ensureRareData().m_inlineBoxWrapper = boxWrapper;
1059 } 1059 }
1060 1060
1061 } // namespace blink 1061 } // namespace blink
1062 1062
1063 #endif // LayoutBox_h 1063 #endif // LayoutBox_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlock.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutFullScreen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698