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

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

Issue 16194013: Mouse press should focus on any types of form controls. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 7 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/rendering/RenderInline.cpp ('k') | Source/core/rendering/RenderTheme.h » ('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) 2000 Dirk Mueller (mueller@kde.org) 4 * (C) 2000 Dirk Mueller (mueller@kde.org)
5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com) 5 * (C) 2004 Allan Sandfeld Jensen (kde@carewolf.com)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2011 Apple Inc. All rights reserv ed.
7 * Copyright (C) 2009 Google Inc. All rights reserved. 7 * Copyright (C) 2009 Google Inc. All rights reserved.
8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/) 8 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo bile.com/)
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 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1143 { 1143 {
1144 if (!hasOutline()) 1144 if (!hasOutline())
1145 return; 1145 return;
1146 1146
1147 RenderStyle* styleToUse = style(); 1147 RenderStyle* styleToUse = style();
1148 LayoutUnit outlineWidth = styleToUse->outlineWidth(); 1148 LayoutUnit outlineWidth = styleToUse->outlineWidth();
1149 1149
1150 int outlineOffset = styleToUse->outlineOffset(); 1150 int outlineOffset = styleToUse->outlineOffset();
1151 1151
1152 if (styleToUse->outlineStyleIsAuto() || hasOutlineAnnotation()) { 1152 if (styleToUse->outlineStyleIsAuto() || hasOutlineAnnotation()) {
1153 if (!theme()->supportsFocusRing(styleToUse)) { 1153 if (theme()->shouldDrawDefaultFocusRing(this)) {
1154 // Only paint the focus ring by hand if the theme isn't able to draw the focus ring. 1154 // Only paint the focus ring by hand if the theme isn't able to draw the focus ring.
1155 paintFocusRing(paintInfo, paintRect.location(), styleToUse); 1155 paintFocusRing(paintInfo, paintRect.location(), styleToUse);
1156 } 1156 }
1157 } 1157 }
1158 1158
1159 if (styleToUse->outlineStyleIsAuto() || styleToUse->outlineStyle() == BNONE) 1159 if (styleToUse->outlineStyleIsAuto() || styleToUse->outlineStyle() == BNONE)
1160 return; 1160 return;
1161 1161
1162 IntRect inner = pixelSnappedIntRect(paintRect); 1162 IntRect inner = pixelSnappedIntRect(paintRect);
1163 inner.inflate(outlineOffset); 1163 inner.inflate(outlineOffset);
(...skipping 2073 matching lines...) Expand 10 before | Expand all | Expand 10 after
3237 { 3237 {
3238 if (object1) { 3238 if (object1) {
3239 const WebCore::RenderObject* root = object1; 3239 const WebCore::RenderObject* root = object1;
3240 while (root->parent()) 3240 while (root->parent())
3241 root = root->parent(); 3241 root = root->parent();
3242 root->showRenderTreeAndMark(object1, "*", object2, "-", 0); 3242 root->showRenderTreeAndMark(object1, "*", object2, "-", 0);
3243 } 3243 }
3244 } 3244 }
3245 3245
3246 #endif 3246 #endif
OLDNEW
« no previous file with comments | « Source/core/rendering/RenderInline.cpp ('k') | Source/core/rendering/RenderTheme.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698