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

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

Issue 2916493002: Make SelectionState enum class (Closed)
Patch Set: Created 3 years, 6 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 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com) 4 * (C) 2005 Allan Sandfeld Jensen (kde@carewolf.com)
5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com) 5 * (C) 2005, 2006 Samuel Weinig (sam.weinig@gmail.com)
6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc. 6 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Apple Inc.
7 * All rights reserved. 7 * All rights reserved.
8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved. 8 * Copyright (C) 2013 Adobe Systems Incorporated. All rights reserved.
9 * 9 *
10 * This library is free software; you can redistribute it and/or 10 * This library is free software; you can redistribute it and/or
(...skipping 2385 matching lines...) Expand 10 before | Expand all | Expand 10 after
2396 // value of the previous in-flow object, even though we're not at a class A 2396 // value of the previous in-flow object, even though we're not at a class A
2397 // break point. 2397 // break point.
2398 EBreakBetween break_value = 2398 EBreakBetween break_value =
2399 IsFloatingOrOutOfFlowPositioned() 2399 IsFloatingOrOutOfFlowPositioned()
2400 ? previous_break_after_value 2400 ? previous_break_after_value
2401 : ClassABreakPointValue(previous_break_after_value); 2401 : ClassABreakPointValue(previous_break_after_value);
2402 return IsForcedFragmentainerBreakValue(break_value); 2402 return IsForcedFragmentainerBreakValue(break_value);
2403 } 2403 }
2404 2404
2405 bool LayoutBox::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const { 2405 bool LayoutBox::PaintedOutputOfObjectHasNoEffectRegardlessOfSize() const {
2406 if (HasNonCompositedScrollbars() || GetSelectionState() != SelectionNone || 2406 if (HasNonCompositedScrollbars() ||
2407 GetSelectionState() != SelectionState::kNone ||
2407 HasBoxDecorationBackground() || StyleRef().HasBoxDecorations() || 2408 HasBoxDecorationBackground() || StyleRef().HasBoxDecorations() ||
2408 StyleRef().HasVisualOverflowingEffect()) 2409 StyleRef().HasVisualOverflowingEffect())
2409 return false; 2410 return false;
2410 2411
2411 // Both mask and clip-path generates drawing display items that depends on 2412 // Both mask and clip-path generates drawing display items that depends on
2412 // the size of the box. 2413 // the size of the box.
2413 if (HasMask() || HasClipPath()) 2414 if (HasMask() || HasClipPath())
2414 return false; 2415 return false;
2415 2416
2416 // If the box has any kind of clip, we need issue paint invalidation to cover 2417 // If the box has any kind of clip, we need issue paint invalidation to cover
(...skipping 3475 matching lines...) Expand 10 before | Expand all | Expand 10 after
5892 void LayoutBox::MutableForPainting:: 5893 void LayoutBox::MutableForPainting::
5893 SavePreviousContentBoxSizeAndLayoutOverflowRect() { 5894 SavePreviousContentBoxSizeAndLayoutOverflowRect() {
5894 auto& rare_data = GetLayoutBox().EnsureRareData(); 5895 auto& rare_data = GetLayoutBox().EnsureRareData();
5895 rare_data.has_previous_content_box_size_and_layout_overflow_rect_ = true; 5896 rare_data.has_previous_content_box_size_and_layout_overflow_rect_ = true;
5896 rare_data.previous_content_box_size_ = GetLayoutBox().ContentBoxRect().Size(); 5897 rare_data.previous_content_box_size_ = GetLayoutBox().ContentBoxRect().Size();
5897 rare_data.previous_layout_overflow_rect_ = 5898 rare_data.previous_layout_overflow_rect_ =
5898 GetLayoutBox().LayoutOverflowRect(); 5899 GetLayoutBox().LayoutOverflowRect();
5899 } 5900 }
5900 5901
5901 } // namespace blink 5902 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698