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

Side by Side Diff: Source/core/html/shadow/TextControlInnerElements.cpp

Issue 988523003: Reimplement min-width: auto (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: review comments Created 5 years, 8 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/css/themeInputMultipleFields.css ('k') | Source/core/layout/LayoutBox.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) 2006, 2008, 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008, 2010 Apple Inc. All rights reserved.
3 * Copyright (C) 2010 Google Inc. All rights reserved. 3 * Copyright (C) 2010 Google Inc. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 } 78 }
79 79
80 PassRefPtr<ComputedStyle> EditingViewPortElement::customStyleForLayoutObject() 80 PassRefPtr<ComputedStyle> EditingViewPortElement::customStyleForLayoutObject()
81 { 81 {
82 // FXIME: Move these styles to html.css. 82 // FXIME: Move these styles to html.css.
83 83
84 RefPtr<ComputedStyle> style = ComputedStyle::create(); 84 RefPtr<ComputedStyle> style = ComputedStyle::create();
85 style->inheritFrom(shadowHost()->computedStyleRef()); 85 style->inheritFrom(shadowHost()->computedStyleRef());
86 86
87 style->setFlexGrow(1); 87 style->setFlexGrow(1);
88 style->setMinWidth(Length(0, Fixed));
88 style->setDisplay(BLOCK); 89 style->setDisplay(BLOCK);
89 style->setDirection(LTR); 90 style->setDirection(LTR);
90 91
91 // We don't want the shadow dom to be editable, so we set this block to 92 // We don't want the shadow dom to be editable, so we set this block to
92 // read-only in case the input itself is editable. 93 // read-only in case the input itself is editable.
93 style->setUserModify(READ_ONLY); 94 style->setUserModify(READ_ONLY);
94 style->setUnique(); 95 style->setUnique();
95 96
96 return style.release(); 97 return style.release();
97 } 98 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 bool SearchFieldCancelButtonElement::willRespondToMouseClickEvents() 244 bool SearchFieldCancelButtonElement::willRespondToMouseClickEvents()
244 { 245 {
245 const HTMLInputElement* input = toHTMLInputElement(shadowHost()); 246 const HTMLInputElement* input = toHTMLInputElement(shadowHost());
246 if (input && !input->isDisabledOrReadOnly()) 247 if (input && !input->isDisabledOrReadOnly())
247 return true; 248 return true;
248 249
249 return HTMLDivElement::willRespondToMouseClickEvents(); 250 return HTMLDivElement::willRespondToMouseClickEvents();
250 } 251 }
251 252
252 } 253 }
OLDNEW
« no previous file with comments | « Source/core/css/themeInputMultipleFields.css ('k') | Source/core/layout/LayoutBox.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698