| OLD | NEW |
| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "CSSFontSelector.h" | 27 #include "CSSFontSelector.h" |
| 28 #include "CSSValueKeywords.h" | 28 #include "CSSValueKeywords.h" |
| 29 #include "Chrome.h" | 29 #include "Chrome.h" |
| 30 #include "Frame.h" | 30 #include "Frame.h" |
| 31 #include "FrameSelection.h" | 31 #include "FrameSelection.h" |
| 32 #include "FrameView.h" | 32 #include "FrameView.h" |
| 33 #include "HTMLInputElement.h" | 33 #include "HTMLInputElement.h" |
| 34 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
| 35 #include "HitTestResult.h" | 35 #include "HitTestResult.h" |
| 36 #include "LocalizedStrings.h" | |
| 37 #include "Page.h" | 36 #include "Page.h" |
| 38 #include "PlatformKeyboardEvent.h" | |
| 39 #include "RenderLayer.h" | 37 #include "RenderLayer.h" |
| 40 #include "RenderScrollbar.h" | 38 #include "RenderScrollbar.h" |
| 41 #include "RenderTheme.h" | 39 #include "RenderTheme.h" |
| 42 #include "SearchPopupMenu.h" | |
| 43 #include "Settings.h" | 40 #include "Settings.h" |
| 44 #include "StyleResolver.h" | 41 #include "StyleResolver.h" |
| 45 #include "TextControlInnerElements.h" | 42 #include "TextControlInnerElements.h" |
| 43 #include "core/platform/LocalizedStrings.h" |
| 44 #include "core/platform/PlatformKeyboardEvent.h" |
| 45 #include "core/platform/SearchPopupMenu.h" |
| 46 #include "core/platform/graphics/SimpleFontData.h" | 46 #include "core/platform/graphics/SimpleFontData.h" |
| 47 | 47 |
| 48 using namespace std; | 48 using namespace std; |
| 49 | 49 |
| 50 namespace WebCore { | 50 namespace WebCore { |
| 51 | 51 |
| 52 using namespace HTMLNames; | 52 using namespace HTMLNames; |
| 53 | 53 |
| 54 // ---------------------------- | 54 // ---------------------------- |
| 55 | 55 |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 if (containerRenderer->logicalHeight() <= contentLogicalHeight()) | 372 if (containerRenderer->logicalHeight() <= contentLogicalHeight()) |
| 373 return; | 373 return; |
| 374 | 374 |
| 375 // A quirk for find-in-page box on Safari Windows. | 375 // A quirk for find-in-page box on Safari Windows. |
| 376 // http://webkit.org/b/63157 | 376 // http://webkit.org/b/63157 |
| 377 LayoutUnit logicalHeightDiff = containerRenderer->logicalHeight() - contentL
ogicalHeight(); | 377 LayoutUnit logicalHeightDiff = containerRenderer->logicalHeight() - contentL
ogicalHeight(); |
| 378 containerRenderer->setLogicalTop(containerRenderer->logicalTop() - (logicalH
eightDiff / 2 + layoutMod(logicalHeightDiff, 2))); | 378 containerRenderer->setLogicalTop(containerRenderer->logicalTop() - (logicalH
eightDiff / 2 + layoutMod(logicalHeightDiff, 2))); |
| 379 } | 379 } |
| 380 | 380 |
| 381 } | 381 } |
| OLD | NEW |