Index: Source/core/html/InputType.cpp |
diff --git a/Source/core/html/InputType.cpp b/Source/core/html/InputType.cpp |
index 80949f51e7745f41e40e8d21ef28d168a6f1d0f9..8b2ebc389b867ec04db0da4fa685a01667983a8a 100644 |
--- a/Source/core/html/InputType.cpp |
+++ b/Source/core/html/InputType.cpp |
@@ -396,7 +396,7 @@ void InputType::destroyShadowSubtree() |
// FIXME: Remove the PasswordGeneratorButtonElement's shadow root and then remove this loop. |
while ((root = root->youngerShadowRoot())) { |
root->removeChildren(); |
- root->appendChild(HTMLShadowElement::create(shadowTag, element()->document())); |
+ root->appendChild(HTMLShadowElement::create(shadowTag, &element()->document())); |
} |
} |
@@ -432,7 +432,7 @@ void InputType::dispatchSimulatedClickIfActive(KeyboardEvent* event) const |
Chrome* InputType::chrome() const |
{ |
- if (Page* page = element()->document()->page()) |
+ if (Page* page = element()->document().page()) |
return &page->chrome(); |
return 0; |
} |
@@ -827,7 +827,7 @@ void InputType::applyStep(int count, AnyStepHandling anyStepHandling, TextFieldE |
setValueAsDecimal(newValue, eventBehavior, es); |
- if (AXObjectCache* cache = element()->document()->existingAXObjectCache()) |
+ if (AXObjectCache* cache = element()->document().existingAXObjectCache()) |
cache->postNotification(element(), AXObjectCache::AXValueChanged, true); |
} |
@@ -960,7 +960,7 @@ void InputType::observeFeatureIfVisible(UseCounter::Feature feature) const |
{ |
if (RenderStyle* style = element()->renderStyle()) { |
if (style->visibility() != HIDDEN) |
- UseCounter::count(element()->document(), feature); |
+ UseCounter::count(&element()->document(), feature); |
} |
} |