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

Side by Side Diff: Source/WebCore/html/HTMLInputElement.h

Issue 11415195: Merge 135829 - :read-only selector should match to date/time input types (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 years 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
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 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2010 Apple Inc. All rights reserved.
6 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 6 * Copyright (C) 2012 Samsung Electronics. 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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 281
282 virtual void blur() OVERRIDE; 282 virtual void blur() OVERRIDE;
283 void defaultBlur(); 283 void defaultBlur();
284 void defaultFocus(bool restorePreviousSelection); 284 void defaultFocus(bool restorePreviousSelection);
285 virtual void focus(bool restorePreviousSelection = true) OVERRIDE; 285 virtual void focus(bool restorePreviousSelection = true) OVERRIDE;
286 286
287 virtual const AtomicString& name() const OVERRIDE; 287 virtual const AtomicString& name() const OVERRIDE;
288 288
289 static Vector<FileChooserFileInfo> filesFromFileInputFormControlState(const FormControlState&); 289 static Vector<FileChooserFileInfo> filesFromFileInputFormControlState(const FormControlState&);
290 290
291 virtual bool shouldMatchReadOnlySelector() const OVERRIDE;
292 virtual bool shouldMatchReadWriteSelector() const OVERRIDE;
291 virtual void setRangeText(const String& replacement, ExceptionCode&) OVERRID E; 293 virtual void setRangeText(const String& replacement, ExceptionCode&) OVERRID E;
292 virtual void setRangeText(const String& replacement, unsigned start, unsigne d end, const String& selectionMode, ExceptionCode&) OVERRIDE; 294 virtual void setRangeText(const String& replacement, unsigned start, unsigne d end, const String& selectionMode, ExceptionCode&) OVERRIDE;
293 295
294 protected: 296 protected:
295 HTMLInputElement(const QualifiedName&, Document*, HTMLFormElement*, bool cre atedByParser); 297 HTMLInputElement(const QualifiedName&, Document*, HTMLFormElement*, bool cre atedByParser);
296 void createShadowSubtree(); 298 void createShadowSubtree();
297 virtual void defaultEventHandler(Event*); 299 virtual void defaultEventHandler(Event*);
298 // FIXME: Author shadows should be allowed 300 // FIXME: Author shadows should be allowed
299 // https://bugs.webkit.org/show_bug.cgi?id=92608 301 // https://bugs.webkit.org/show_bug.cgi?id=92608
300 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; } 302 virtual bool areAuthorShadowsAllowed() const OVERRIDE { return false; }
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 }; 429 };
428 430
429 inline bool isHTMLInputElement(Node* node) 431 inline bool isHTMLInputElement(Node* node)
430 { 432 {
431 ASSERT(node); 433 ASSERT(node);
432 return node->hasTagName(HTMLNames::inputTag); 434 return node->hasTagName(HTMLNames::inputTag);
433 } 435 }
434 436
435 } //namespace 437 } //namespace
436 #endif 438 #endif
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLFormControlElement.cpp ('k') | Source/WebCore/html/HTMLInputElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698