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

Side by Side Diff: Source/core/rendering/RenderSearchField.cpp

Issue 339333002: Removing using declarations that import names in the C++ Standard library. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fixing mac error Created 6 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
« no previous file with comments | « Source/core/rendering/RenderScrollbarPart.cpp ('k') | Source/core/rendering/RenderTable.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) 2006, 2007, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2010 Apple Inc. All rights reserved.
3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 3 * (C) 2008 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
4 * Copyright (C) 2010 Google Inc. All rights reserved. 4 * Copyright (C) 2010 Google Inc. All rights reserved.
5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). 5 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 10 matching lines...) Expand all
21 * 21 *
22 */ 22 */
23 23
24 #include "config.h" 24 #include "config.h"
25 #include "core/rendering/RenderSearchField.h" 25 #include "core/rendering/RenderSearchField.h"
26 26
27 #include "core/dom/shadow/ShadowRoot.h" 27 #include "core/dom/shadow/ShadowRoot.h"
28 #include "core/html/HTMLInputElement.h" 28 #include "core/html/HTMLInputElement.h"
29 #include "core/html/shadow/ShadowElementNames.h" 29 #include "core/html/shadow/ShadowElementNames.h"
30 30
31 using namespace std;
32
33 namespace WebCore { 31 namespace WebCore {
34 32
35 using namespace HTMLNames; 33 using namespace HTMLNames;
36 34
37 // ---------------------------- 35 // ----------------------------
38 36
39 RenderSearchField::RenderSearchField(HTMLInputElement* element) 37 RenderSearchField::RenderSearchField(HTMLInputElement* element)
40 : RenderTextControlSingleLine(element) 38 : RenderTextControlSingleLine(element)
41 { 39 {
42 ASSERT(element->isSearchField()); 40 ASSERT(element->isSearchField());
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 if (containerRenderer->logicalHeight() <= contentLogicalHeight()) 85 if (containerRenderer->logicalHeight() <= contentLogicalHeight())
88 return; 86 return;
89 87
90 // A quirk for find-in-page box on Safari Windows. 88 // A quirk for find-in-page box on Safari Windows.
91 // http://webkit.org/b/63157 89 // http://webkit.org/b/63157
92 LayoutUnit logicalHeightDiff = containerRenderer->logicalHeight() - contentL ogicalHeight(); 90 LayoutUnit logicalHeightDiff = containerRenderer->logicalHeight() - contentL ogicalHeight();
93 containerRenderer->setLogicalTop(containerRenderer->logicalTop() - (logicalH eightDiff / 2 + layoutMod(logicalHeightDiff, 2))); 91 containerRenderer->setLogicalTop(containerRenderer->logicalTop() - (logicalH eightDiff / 2 + layoutMod(logicalHeightDiff, 2)));
94 } 92 }
95 93
96 } 94 }
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderScrollbarPart.cpp ('k') | Source/core/rendering/RenderTable.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698