OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 | 121 |
122 bool WebNode::isTextNode() const | 122 bool WebNode::isTextNode() const |
123 { | 123 { |
124 return m_private->isTextNode(); | 124 return m_private->isTextNode(); |
125 } | 125 } |
126 | 126 |
127 bool WebNode::isFocusable() const | 127 bool WebNode::isFocusable() const |
128 { | 128 { |
129 if (!m_private->isElementNode()) | 129 if (!m_private->isElementNode()) |
130 return false; | 130 return false; |
131 m_private->document().updateLayoutIgnorePendingStylesheets(); | 131 m_private->document().updateLayout(); |
132 return toElement(m_private.get())->isFocusable(); | 132 return toElement(m_private.get())->isFocusable(); |
133 } | 133 } |
134 | 134 |
135 bool WebNode::isContentEditable() const | 135 bool WebNode::isContentEditable() const |
136 { | 136 { |
137 return m_private->isContentEditable(); | 137 return m_private->isContentEditable(); |
138 } | 138 } |
139 | 139 |
140 bool WebNode::isElementNode() const | 140 bool WebNode::isElementNode() const |
141 { | 141 { |
(...skipping 27 matching lines...) Expand all Loading... |
169 | 169 |
170 bool WebNode::remove() | 170 bool WebNode::remove() |
171 { | 171 { |
172 TrackExceptionState exceptionState; | 172 TrackExceptionState exceptionState; |
173 m_private->remove(exceptionState); | 173 m_private->remove(exceptionState); |
174 return !exceptionState.hadException(); | 174 return !exceptionState.hadException(); |
175 } | 175 } |
176 | 176 |
177 bool WebNode::hasNonEmptyBoundingBox() const | 177 bool WebNode::hasNonEmptyBoundingBox() const |
178 { | 178 { |
179 m_private->document().updateLayoutIgnorePendingStylesheets(); | 179 m_private->document().updateLayout(); |
180 return m_private->hasNonEmptyBoundingBox(); | 180 return m_private->hasNonEmptyBoundingBox(); |
181 } | 181 } |
182 | 182 |
183 bool WebNode::containsIncludingShadowDOM(const WebNode& other) const | 183 bool WebNode::containsIncludingShadowDOM(const WebNode& other) const |
184 { | 184 { |
185 return m_private->containsIncludingShadowDOM(other.m_private.get()); | 185 return m_private->containsIncludingShadowDOM(other.m_private.get()); |
186 } | 186 } |
187 | 187 |
188 WebElement WebNode::shadowHost() const | 188 WebElement WebNode::shadowHost() const |
189 { | 189 { |
(...skipping 13 matching lines...) Expand all Loading... |
203 m_private = node; | 203 m_private = node; |
204 return *this; | 204 return *this; |
205 } | 205 } |
206 | 206 |
207 WebNode::operator PassRefPtr<Node>() const | 207 WebNode::operator PassRefPtr<Node>() const |
208 { | 208 { |
209 return m_private.get(); | 209 return m_private.get(); |
210 } | 210 } |
211 | 211 |
212 } // namespace blink | 212 } // namespace blink |
OLD | NEW |