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

Side by Side Diff: Source/core/rendering/FloatingObjects.h

Issue 463123003: Cleanup namespace usage in Source/core/rendering (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 6 years, 4 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
« no previous file with comments | « no previous file | Source/core/rendering/GraphicsContextAnnotator.cpp » ('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) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2007 David Smith (catfish.man@gmail.com) 4 * (C) 2007 David Smith (catfish.man@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights reserved.
6 * Copyright (C) Research In Motion Limited 2010. All rights reserved. 6 * Copyright (C) Research In Motion Limited 2010. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 static unsigned hash(const PassOwnPtr<FloatingObject>& key) { return hash(ke y.get()); } 117 static unsigned hash(const PassOwnPtr<FloatingObject>& key) { return hash(ke y.get()); }
118 static bool equal(OwnPtr<FloatingObject>& a, FloatingObject* b) { return a-> renderer() == b->renderer(); } 118 static bool equal(OwnPtr<FloatingObject>& a, FloatingObject* b) { return a-> renderer() == b->renderer(); }
119 static bool equal(OwnPtr<FloatingObject>& a, const OwnPtr<FloatingObject>& b ) { return equal(a, b.get()); } 119 static bool equal(OwnPtr<FloatingObject>& a, const OwnPtr<FloatingObject>& b ) { return equal(a, b.get()); }
120 static bool equal(OwnPtr<FloatingObject>& a, const PassOwnPtr<FloatingObject >& b) { return equal(a, b.get()); } 120 static bool equal(OwnPtr<FloatingObject>& a, const PassOwnPtr<FloatingObject >& b) { return equal(a, b.get()); }
121 121
122 static const bool safeToCompareToEmptyOrDeleted = true; 122 static const bool safeToCompareToEmptyOrDeleted = true;
123 }; 123 };
124 struct FloatingObjectHashTranslator { 124 struct FloatingObjectHashTranslator {
125 static unsigned hash(RenderBox* key) { return DefaultHash<RenderBox*>::Hash: :hash(key); } 125 static unsigned hash(RenderBox* key) { return DefaultHash<RenderBox*>::Hash: :hash(key); }
126 static bool equal(FloatingObject* a, RenderBox* b) { return a->renderer() == b; } 126 static bool equal(FloatingObject* a, RenderBox* b) { return a->renderer() == b; }
127 static bool equal(const OwnPtr<blink::FloatingObject>& a, RenderBox* b) { re turn a->renderer() == b; } 127 static bool equal(const OwnPtr<FloatingObject>& a, RenderBox* b) { return a- >renderer() == b; }
128 }; 128 };
129 typedef ListHashSet<OwnPtr<FloatingObject>, 4, FloatingObjectHashFunctions> Floa tingObjectSet; 129 typedef ListHashSet<OwnPtr<FloatingObject>, 4, FloatingObjectHashFunctions> Floa tingObjectSet;
130 typedef FloatingObjectSet::const_iterator FloatingObjectSetIterator; 130 typedef FloatingObjectSet::const_iterator FloatingObjectSetIterator;
131 typedef PODInterval<int, FloatingObject*> FloatingObjectInterval; 131 typedef PODInterval<int, FloatingObject*> FloatingObjectInterval;
132 typedef PODIntervalTree<int, FloatingObject*> FloatingObjectTree; 132 typedef PODIntervalTree<int, FloatingObject*> FloatingObjectTree;
133 typedef PODFreeListArena<PODRedBlackTree<FloatingObjectInterval>::Node> Interval Arena; 133 typedef PODFreeListArena<PODRedBlackTree<FloatingObjectInterval>::Node> Interval Arena;
134 typedef HashMap<RenderBox*, OwnPtr<FloatingObject> > RendererToFloatInfoMap; 134 typedef HashMap<RenderBox*, OwnPtr<FloatingObject> > RendererToFloatInfoMap;
135 135
136 class FloatingObjects { 136 class FloatingObjects {
137 WTF_MAKE_NONCOPYABLE(FloatingObjects); WTF_MAKE_FAST_ALLOCATED; 137 WTF_MAKE_NONCOPYABLE(FloatingObjects); WTF_MAKE_FAST_ALLOCATED;
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 static String string(const int value); 199 static String string(const int value);
200 }; 200 };
201 template<> struct ValueToString<FloatingObject*> { 201 template<> struct ValueToString<FloatingObject*> {
202 static String string(const FloatingObject*); 202 static String string(const FloatingObject*);
203 }; 203 };
204 #endif 204 #endif
205 205
206 } // namespace blink 206 } // namespace blink
207 207
208 #endif // FloatingObjects_h 208 #endif // FloatingObjects_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/rendering/GraphicsContextAnnotator.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698