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

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

Issue 2696183002: Migrate WTF::HashSet::remove() to ::erase() [part 1] (Closed)
Patch Set: one more platform-specific reference 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 * (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 5680 matching lines...) Expand 10 before | Expand all | Expand 10 after
5691 areas->clear(); 5691 areas->clear();
5692 } 5692 }
5693 } 5693 }
5694 5694
5695 void LayoutBox::addSnapArea(const LayoutBox& snapArea) { 5695 void LayoutBox::addSnapArea(const LayoutBox& snapArea) {
5696 ensureRareData().ensureSnapAreas().insert(&snapArea); 5696 ensureRareData().ensureSnapAreas().insert(&snapArea);
5697 } 5697 }
5698 5698
5699 void LayoutBox::removeSnapArea(const LayoutBox& snapArea) { 5699 void LayoutBox::removeSnapArea(const LayoutBox& snapArea) {
5700 if (m_rareData && m_rareData->m_snapAreas) { 5700 if (m_rareData && m_rareData->m_snapAreas) {
5701 m_rareData->m_snapAreas->remove(&snapArea); 5701 m_rareData->m_snapAreas->erase(&snapArea);
5702 } 5702 }
5703 } 5703 }
5704 5704
5705 SnapAreaSet* LayoutBox::snapAreas() const { 5705 SnapAreaSet* LayoutBox::snapAreas() const {
5706 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr; 5706 return m_rareData ? m_rareData->m_snapAreas.get() : nullptr;
5707 } 5707 }
5708 5708
5709 LayoutRect LayoutBox::debugRect() const { 5709 LayoutRect LayoutBox::debugRect() const {
5710 LayoutRect rect = frameRect(); 5710 LayoutRect rect = frameRect();
5711 5711
5712 LayoutBlock* block = containingBlock(); 5712 LayoutBlock* block = containingBlock();
5713 if (block) 5713 if (block)
5714 block->adjustChildDebugRect(rect); 5714 block->adjustChildDebugRect(rect);
5715 5715
5716 return rect; 5716 return rect;
5717 } 5717 }
5718 5718
5719 bool LayoutBox::shouldClipOverflow() const { 5719 bool LayoutBox::shouldClipOverflow() const {
5720 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip(); 5720 return hasOverflowClip() || styleRef().containsPaint() || hasControlClip();
5721 } 5721 }
5722 5722
5723 } // namespace blink 5723 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp ('k') | third_party/WebKit/Source/core/layout/TextAutosizer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698