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

Side by Side Diff: Source/WebCore/html/InputType.cpp

Issue 12703031: Revert 146726 "AXObjectCache gets recreated during document tear..." (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1453/
Patch Set: Created 7 years, 9 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
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) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved. 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r ights reserved.
6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 6 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org) 7 * Copyright (C) 2007 Samuel Weinig (sam@webkit.org)
8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. 8 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved.
9 * Copyright (C) 2012 Samsung Electronics. All rights reserved. 9 * Copyright (C) 2012 Samsung Electronics. All rights reserved.
10 * 10 *
(...skipping 995 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 1006
1007 if (newValue - stepRange.maximum() > acceptableErrorValue) { 1007 if (newValue - stepRange.maximum() > acceptableErrorValue) {
1008 ec = INVALID_STATE_ERR; 1008 ec = INVALID_STATE_ERR;
1009 return; 1009 return;
1010 } 1010 }
1011 if (newValue > stepRange.maximum()) 1011 if (newValue > stepRange.maximum())
1012 newValue = stepRange.maximum(); 1012 newValue = stepRange.maximum();
1013 1013
1014 setValueAsDecimal(newValue, eventBehavior, ec); 1014 setValueAsDecimal(newValue, eventBehavior, ec);
1015 1015
1016 if (AXObjectCache* cache = element()->document()->existingAXObjectCache()) 1016 if (AXObjectCache::accessibilityEnabled())
1017 cache->postNotification(element(), AXObjectCache::AXValueChanged, true); 1017 element()->document()->axObjectCache()->postNotification(element(), AXO bjectCache::AXValueChanged, true);
1018 } 1018 }
1019 1019
1020 bool InputType::getAllowedValueStep(Decimal* step) const 1020 bool InputType::getAllowedValueStep(Decimal* step) const
1021 { 1021 {
1022 StepRange stepRange(createStepRange(RejectAny)); 1022 StepRange stepRange(createStepRange(RejectAny));
1023 *step = stepRange.step(); 1023 *step = stepRange.step();
1024 return stepRange.hasStep(); 1024 return stepRange.hasStep();
1025 } 1025 }
1026 1026
1027 StepRange InputType::createStepRange(AnyStepHandling) const 1027 StepRange InputType::createStepRange(AnyStepHandling) const
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 1142
1143 void InputType::observeFeatureIfVisible(FeatureObserver::Feature feature) const 1143 void InputType::observeFeatureIfVisible(FeatureObserver::Feature feature) const
1144 { 1144 {
1145 if (RenderStyle* style = element()->renderStyle()) { 1145 if (RenderStyle* style = element()->renderStyle()) {
1146 if (style->visibility() != HIDDEN) 1146 if (style->visibility() != HIDDEN)
1147 FeatureObserver::observe(element()->document(), feature); 1147 FeatureObserver::observe(element()->document(), feature);
1148 } 1148 }
1149 } 1149 }
1150 1150
1151 } // namespace WebCore 1151 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/WebCore/html/HTMLTextFormControlElement.cpp ('k') | Source/WebCore/html/RangeInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698