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

Unified Diff: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp

Issue 1628283002: posinset and setsize for input type, radio, exposed in AX tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed review comments Created 4 years, 10 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
Index: third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
index e9d007419042c786cccfc583a3b5e339e3730c45..23fe093e9d4c38fb5da325bcd5e321cd867278c7 100644
--- a/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutBlockFlow.cpp
@@ -30,11 +30,13 @@
#include "core/layout/LayoutBlockFlow.h"
+#include "core/InputTypeNames.h"
#include "core/dom/AXObjectCache.h"
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/frame/Settings.h"
#include "core/html/HTMLDialogElement.h"
+#include "core/html/HTMLInputElement.h"
#include "core/layout/HitTestLocation.h"
#include "core/layout/LayoutAnalyzer.h"
#include "core/layout/LayoutFlowThread.h"
@@ -319,6 +321,9 @@ void LayoutBlockFlow::layoutBlock(bool relayoutChildren)
if (isHTMLDialogElement(node()) && isOutOfFlowPositioned())
positionDialog();
+ if (isHTMLInputElement(node()) && toHTMLInputElement(*node()).type() == InputTypeNames::radio)
keishi 2016/02/16 02:22:47 We try to avoid the "if (input.type==foo) input.ba
je_julie(Not used) 2016/02/16 05:19:03 OK. I'll update it on next patch.
+ toHTMLInputElement(*node()).needUpdatePositionOfRadioGroup();
+
clearNeedsLayout();
}

Powered by Google App Engine
This is Rietveld 408576698