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

Unified Diff: Source/core/html/forms/InputType.cpp

Issue 1033943002: Rename LayoutStyle to papayawhip (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ensureComputedStyle Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/forms/ImageInputType.cpp ('k') | Source/core/html/forms/InputTypeView.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « Source/core/html/forms/ImageInputType.cpp ('k') | Source/core/html/forms/InputTypeView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698