| Index: Source/core/html/forms/InputType.cpp
|
| diff --git a/Source/core/html/forms/InputType.cpp b/Source/core/html/forms/InputType.cpp
|
| index 9688a060540d9be2848125eac523680e2e1cabfb..856a28699a0ce8fee963e7f1fbe13cdcdffca490 100644
|
| --- a/Source/core/html/forms/InputType.cpp
|
| +++ b/Source/core/html/forms/InputType.cpp
|
| @@ -33,7 +33,7 @@
|
| #include "core/InputTypeNames.h"
|
| #include "core/dom/AXObjectCache.h"
|
| #include "core/dom/ExceptionCode.h"
|
| -#include "core/dom/NodeLayoutStyle.h"
|
| +#include "core/dom/NodeComputedStyle.h"
|
| #include "core/events/KeyboardEvent.h"
|
| #include "core/events/ScopedEventQueue.h"
|
| #include "core/fileapi/FileList.h"
|
| @@ -599,7 +599,7 @@ String InputType::sanitizeValue(const String& proposedValue) const
|
| void InputType::warnIfValueIsInvalidAndElementIsVisible(const String& value) const
|
| {
|
| // Don't warn if the value is set in Modernizr.
|
| - const LayoutStyle* style = element().layoutStyle();
|
| + const ComputedStyle* style = element().computedStyle();
|
| if (style && style->visibility() != HIDDEN)
|
| warnIfValueIsInvalid(value);
|
| }
|
| @@ -743,7 +743,7 @@ unsigned InputType::width() const
|
|
|
| TextDirection InputType::computedTextDirection()
|
| {
|
| - return element().computedStyle()->direction();
|
| + return element().ensureComputedStyle()->direction();
|
| }
|
|
|
| ColorChooserClient* InputType::colorChooserClient()
|
| @@ -910,7 +910,7 @@ void InputType::stepUpFromRenderer(int n)
|
|
|
| void InputType::countUsageIfVisible(UseCounter::Feature feature) const
|
| {
|
| - if (const LayoutStyle* style = element().layoutStyle()) {
|
| + if (const ComputedStyle* style = element().computedStyle()) {
|
| if (style->visibility() != HIDDEN)
|
| UseCounter::count(element().document(), feature);
|
| }
|
|
|